Home › Science › Molarity Calculator

Molarity and Moles Calculator

Enter the mass of solute, its molar mass and the final solution volume. You get moles, molarity, and the mass you would need for a target concentration.

g
g/mol
L
M

Molarity

—

Moles of solute
—
In millimolar
—
Mass needed for target
—

Counting molecules by weighing them

You cannot count molecules on a balance, but molar mass lets you weigh out an exact number of moles. Molarity then says how many of those moles sit in each litre of finished solution. This calculator works both ways: from a mass you weighed to its concentration, or from a target concentration to the mass you need.

Dissolving 5.844 g of sodium chloride (58.44 g/mol) gives 0.1 mol. Made up to 0.5 L, that is 0.2 mol/L, or 200 mM.

Three relationships

Moles = mass (g) ÷ molar mass (g/mol)
Molarity (mol/L) = moles ÷ solution volume (L)
Mass needed = target molarity × volume (L) × molar mass

Volume is the final volume of solution, not the volume of water you started with. Dissolve the solid in less water, then top up to the mark.

Finding the molar mass

Add the atomic masses of every atom in the formula, or read it from the reagent bottle. For hydrated salts, use the hydrate's molar mass: copper sulfate pentahydrate (CuSO₄·5H₂O) is about 249.7 g/mol, compared with about 159.6 for the anhydrous form. Using the wrong one is one of the most common errors in prep rooms.

Weighing out 1 litre at 0.1 M

Mass needed for 1 L of 0.1 M solution
CompoundMolar massMass to weigh
Sodium chloride (NaCl)58.44 g/mol5.844 g
Potassium chloride (KCl)74.55 g/mol7.455 g
Tris base121.14 g/mol12.114 g
Glucose180.16 g/mol18.016 g
CuSO₄·5H₂O249.69 g/mol24.969 g

Preparing a solution step by step

For 250 mL of 0.5 M glucose (molar mass 180.16 g/mol), the mass needed is 22.52 g.

  1. Weigh the solid into a clean beaker.
  2. Dissolve it in about three quarters of the final volume of water.
  3. Transfer to a 250 mL volumetric flask, rinsing the beaker into the flask.
  4. Top up to the mark and invert to mix.

When the mass is too small to weigh well

A balance that reads to 0.01 g cannot weigh 0.005 g accurately. For very dilute solutions, make a more concentrated stock first, then dilute it with the dilution calculator. For example, rather than weighing 5.8 mg of salt for 100 mL of 1 mM NaCl, make 100 mL of 100 mM stock from 0.584 g, then dilute 1 mL of it to 100 mL.

Units that trip people up

  • mM and µM: 1 M = 1,000 mM = 1,000,000 µM.
  • mL vs L: 250 mL is 0.25 L; entering 250 makes the answer 1,000 times too small.
  • Molarity vs molality: molality is moles per kilogram of solvent and does not change with temperature; molarity does, slightly, as liquids expand.
  • Purity: a 99% pure reagent needs about 1% more mass for the same concentration.

Next steps

To dilute a stock you have made, use the dilution calculator. For gases, the ideal gas law calculator converts volume and pressure to moles. The percentage calculator handles percent solutions, and weight converter switches between grams, milligrams and ounces.

For education and planning only. Follow your lab's safety procedures and the safety data sheet for every chemical you handle.

Molarity questions

How do I calculate molarity?

Divide grams by molar mass to get moles, then divide by the solution volume in litres.

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

Multiply the molar mass by the volume in litres. For 0.5 L of 1 M NaCl that is 29.22 g.

What is the difference between M and mM?

1 M equals 1,000 mM.

Should I use the volume of water or of the solution?

The final solution volume. Top up to the mark after dissolving.

Related calculators