Molarity Calculator

Find the molarity of a solution from the mass of solute and the volume, or the mass you need for a target concentration, with the molar mass worked out from the chemical formula. Watch the dots crowd together or spread out as you change the beaker.

Answer

NaCl: 58.44 g/mol

1 M

Moles of solute0.5 mol
Molarity1 mol/L
Volume500 mL
Mass29.22 g

Molarity uses the volume of the final solution, not of the water added: dissolve the solute, then fill to the mark.

The beaker

500 mLeach dot ≈ 12.5 mmolsolute 29.22 g+ add− lessvolume 500 mL1 M

Every dot is the same amount of NaCl. Drag the blue handle to change the volume, add solute with + add, or click mass, volume or molarity to type. Same dots in more liquid = lower concentration.

Why this answer

  1. Molar mass. Na + Cl = 58.44 g/mol.
  2. Moles. mol = mass ÷ molar mass = 29.22 ÷ 58.44 = 0.5 mol.
  3. Molarity. M = mol ÷ liters of solution = 0.5 ÷ 0.5 = 1 M.

Why it works

What is concentration?

1,000 mLeach dot ≈ 25 mmol1 mol/L

Step 1 of 3

Add water

1 mol of salt dissolved to make 1 L is 1 M. Add water until there are 2 L. The concentration becomes…

Make a prediction, then watch.

Put it to use

Making a solution in the lab

Weigh the solute, dissolve it in a little water in a volumetric flask, then add water up to the line. Saline for contact lenses is about 0.15 M NaCl; sports drinks around 0.02 M sodium; seawater about 0.6 M. To water a stock solution down, use the Dilution Calculator.

How it works

The molarity calculator finds the concentration of a solution in moles per liter (M), the mass of solute you need for a target molarity, or the volume of solution, from the solute's chemical formula.

It works out the molar mass by adding the atomic masses in the formula (NaCl = 22.99 + 35.45 = 58.44 g/mol; parentheses and hydrates like CuSO4·5H2O are handled). Moles = mass ÷ molar mass, and molarity = moles ÷ liters of solution.

Molarity uses the final volume of the solution, not the volume of water added.

M = mol ÷ L of solutionmol = mass (g) ÷ molar mass (g/mol)mass = M × L × molar massL = mol ÷ M

Worked example: 29.22 g of NaCl in 500 mL

  1. Molar mass of NaCl: 22.99 + 35.45 = 58.44 g/mol.
  2. Moles: 29.22 ÷ 58.44 = 0.5 mol.
  3. Volume: 500 mL = 0.5 L.
  4. Molarity: 0.5 ÷ 0.5 = 1 M.

Common mistakes

  • Using milliliters instead of liters.
  • Using the volume of water instead of the total solution volume.
  • Forgetting the water in a hydrate's molar mass.
  • Confusing molarity (per liter of solution) with molality (per kg of solvent).

Frequently asked questions

How do you calculate molarity?

Divide the moles of solute by the liters of solution. For grams, first divide by the molar mass to get moles.

How many grams do I need for a 0.1 M solution?

Multiply 0.1 by the volume in liters and by the molar mass. For 250 mL of 0.1 M NaCl: 0.1 × 0.25 × 58.44 = 1.46 g.

What does 1 M mean?

One mole of solute per liter of solution.

How do you find the molar mass?

Add the atomic masses of every atom in the formula: H₂O = 2 × 1.008 + 15.999 = 18.015 g/mol.

Does adding water change molarity?

Yes: the moles stay the same but the volume grows, so molarity drops (use the Dilution Calculator).

Sources & assumptions

  • Molar masses are computed from standard atomic weights (abridged values).
  • Molarity uses the final volume of the solution, not the volume of solvent added.

Sources

Last reviewed: October 2026. Results are estimates, not legal, tax, financial or engineering advice. See our editorial standards.