Molarity calculator

This molarity calculator works out how much of a compound to weigh for a solution of a given molar concentration and volume. Enter the molar mass and any two of mass, concentration and volume, in the units you use at the bench, and it solves for the third.

Calculated in your browser. Nothing you type is sent or stored.

Molarity calculatorOr describe it in Studio →

From the bottle label or the supplier’s data sheet. Use the value for the form you weigh, including any water of hydration.

Mass · calculated
Concentration
Volume

Fill in two of the three and leave the one you want empty.

Mass to weigh

2.922 g

Dissolve 2.922 g and make the solution up to 500 mL for 100 mM.

Amount of substance
0.05 mol
Mass concentration
5.844 g/L

To report

2.922 g in 500 mL = 100 mM (M = 58.44 g/mol)

Check your result: divide the mass by the molar mass and then by the volume in litres: 2.922 g ÷ 58.44 g/mol = 0.05 mol, and 0.05 mol ÷ 0.5 L = 0.1 M. g/L should equal molarity × molar mass: 0.1 × 58.44 = 5.844.
NaCl for 500 mL of 0.1 M
2.922 g
NaCl for 500 mL of 0.1 M
in that solution
0.05 mol
in that solution
the same solution as a mass concentration
5.844 g/L
the same solution as a mass concentration
concentration units, M to nM
4
concentration units, M to nM
  • Solve for mass, concentration or volume
  • M, mM, µM, nM
  • g, mg, µg · L, mL, µL
  • Shows moles and g/L
  • Runs in your browser, free

01

How to use the molarity calculator

  1. Enter the molar mass of the compound in g/mol, from the bottle or the supplier’s data sheet.
  2. Fill in two of mass, concentration and volume, with their units. Leave the third empty.
  3. Read the answer and the preparation line.

02

Molarity formula

molarity (mol/L) = moles of solute ÷ litres of solution
mass (g) = molarity (mol/L) × volume (L) × molar mass (g/mol)

To findFormula
Mass to weighm = C × V × M
ConcentrationC = m ÷ (M × V)
VolumeV = m ÷ (M × C)

03

Worked example

The calculator opens with 500 mL of 0.1 M sodium chloride (molar mass 58.44 g/mol).

m = 0.1 mol/L × 0.5 L × 58.44 g/mol = 2.922 g

Weigh 2.922 g, dissolve it in less than 500 mL of water, then make the solution up to 500 mL. That is 0.05 mol, or 5.844 g/L.

04

Getting the molar mass right

  • Hydrates. Use the molar mass of the form in the bottle. Copper sulfate pentahydrate is far heavier per mole than the anhydrous salt, and using the wrong one gives the wrong concentration.
  • Salts of drugs and buffers. A hydrochloride or sodium salt has a different molar mass from the free compound.
  • Purity. If the label says 95%, divide the calculated mass by 0.95.
  • Liquids. For a liquid reagent, convert the mass to a volume with its density, or use the stock molarity with the dilution calculator.

05

Making the solution

Molarity is defined per litre of solution, not per litre of solvent. Dissolve the solid in part of the solvent, then add solvent until the total volume reaches the mark. Adding the solid to the full volume of solvent gives a slightly lower concentration, because the solid takes up space.

06

Molarity, molality and mass concentration

MeasureDefinitionUnit
Molaritymoles of solute per litre of solutionmol/L (M)
Molalitymoles of solute per kilogram of solventmol/kg
Mass concentrationmass of solute per litre of solutiong/L

07

Common mistakes with molarity

  • Using the anhydrous molar mass for a hydrated salt. 500 mL of 0.1 M calcium chloride needs 5.549 g of CaCl₂ but 7.350 g of CaCl₂·2H₂O; weighing 5.549 g of the dihydrate gives 0.0755 M, 24.5% weak.
  • Picking the wrong volume unit. 500 L instead of 500 mL asks for 2,922 g of sodium chloride instead of 2.922 g.
  • Dissolving in the full volume of water. Add the solid to less than 500 mL, dissolve it, then make up to the mark; the solid itself takes up volume.
  • Mixing M and mM. 100 mM is 0.1 M; entering 100 in the M box asks for 1,000 times the mass.

Trust

How this page is checked

  • The calculation runs on code with automated tests against worked reference values. Every number in the examples on this page was produced by that same code, not typed by hand.
  • The formulas and conventions used are stated on the page, so you can reproduce the result yourself or compare it with your own software.
  • Sources: IUPAC CIAAW, abridged standard atomic weights.
  • Last reviewed by the Sciloom team, Zebra Nine Studio Inc. It is a tool for research and teaching, not a substitute for a statistician, a validated lab method or medical advice.

Cite this page

Sciloom. (2026). Molarity calculator. Zebra Nine Studio Inc. https://sciloom.si/molarity-calculator

Read the full methodology · Who makes Sciloom

Frequently asked questions

How do I calculate molarity?

Divide the moles of solute by the volume of solution in litres. Moles are the mass in grams divided by the molar mass in g/mol.

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

For one litre, the molar mass in grams. For other volumes, multiply the molar mass by the volume in litres: 0.25 L of 1 M NaCl needs 58.44 × 0.25 = 14.61 g.

What is the difference between M and mM?

M is moles per litre; mM is millimoles per litre, one thousandth of that. 150 mM equals 0.15 M.

Where do I find the molar mass?

On the reagent bottle, the certificate of analysis or the supplier’s product page. Make sure it is for the exact form you have, including water of hydration.

Diluting a stock you already have? Use the dilution calculator.
Free to start, no sign-up.
Back to the tool ↑

More research tools