Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Molarity calculator

Work out molarity from mass and volume, or how many grams to weigh out for a solution. Type a molar mass, or just the formula.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Making a weaker solution from this one? Use the dilution calculator. For titrations, convert to normality.

What it does

Molarity is the most common way to describe how concentrated a solution is: moles of solute per liter of solution. This calculator goes in any direction. Use it to find the molarity of a solution you made, the grams to weigh out for a recipe, or the volume a given mass will make. You can type the molar mass, or type the formula (like NaCl, CaCl2 or CuSO4·5H2O) and it's worked out from IUPAC standard atomic weights.

How it's calculated

moles (n) = mass (g) ÷ molar mass (g/mol)
Molarity (M) = n ÷ volume of solution (L)
mass = M × V × molar mass

1 M means 1 mole per liter (mol/L). IUPAC calls this amount concentration, and notes the symbol M is sometimes used for mol/L. The volume is the total volume of the finished solution, not the volume of water you started with.

Worked example

How much sodium chloride do you need for 250 mL of 0.5 M NaCl? The molar mass of NaCl is 22.990 + 35.45 = 58.44 g/mol. Moles needed = 0.5 mol/L × 0.250 L = 0.125 mol. Mass = 0.125 mol × 58.44 g/mol = 7.305 g. Dissolve it in less than 250 mL of water, then add water up to 250 mL.

Going the other way: 5.844 g of NaCl is 5.844 ÷ 58.44 = 0.1 mol. In 100 mL (0.1 L) of solution that's 0.1 ÷ 0.1 = 1 M.

Molar masses of common solutes

CompoundFormulaMolar mass (g/mol)
WaterH₂O18.015
Sodium chlorideNaCl58.44
Sodium hydroxideNaOH39.997
Sulfuric acidH₂SO₄98.072
GlucoseC₆H₁₂O₆180.156
Copper(II) sulfate pentahydrateCuSO₄·5H₂O249.677

These are computed from the CIAAW abridged standard atomic weights. The molar mass calculator shows the breakdown for any formula.

Limitations

  • Molarity changes slightly with temperature because liquids expand when warm. If that matters, use molality (moles per kilogram of solvent), which doesn't depend on volume.
  • Hydrates count. If your bottle says CuSO4·5H2O, use that formula, because the water in the crystal is part of what you weigh.
  • Purity: the answer assumes 100% pure solute. For a 98% reagent, divide the mass by 0.98.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 5.844 g NaCl in 100 mL is 1 M ✓
  • 250 mL of 0.5 M NaCl needs 7.305 g ✓
  • 4 g NaOH (39.997 g/mol) at 0.1 M makes 1.00008 L ✓
  • Typed molar mass: 18.016 g of 180.16 g/mol in 1 L is 0.1 M ✓
  • Unknown symbol in the formula is explained ✓
  • Zero volume is refused ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How do you calculate molarity?

Divide moles of solute by liters of solution. If you have grams, first divide by the molar mass to get moles: 5.844 g of NaCl ÷ 58.44 g/mol = 0.1 mol; in 0.5 L that's 0.2 M.

How many grams do I need to make a 1 M solution?

One molar mass per liter. For NaCl that's 58.44 g made up to 1 L, or 5.844 g made up to 100 mL.

What is the difference between molarity and molality?

Molarity is moles per liter of solution. Molality is moles per kilogram of solvent. Molality doesn't change with temperature; molarity does a little.

What does mM mean?

Millimolar: one thousandth of a mole per liter. 1 M = 1,000 mM = 1,000,000 µM.

Is molarity the same as concentration?

It's one kind of concentration. Others include mass concentration (g/L or mg/mL), percent (w/v or w/w), and normality.

Related calculators