Molarity calculator

Work out how much to weigh for a solution of a given concentration, or convert between mass and molar concentration units using the molar mass you supply.

What do you need?

g/mol
Use the form you weigh, including any water of hydration. No compound database is supplied.
% by mass
Illustrative example
Mass to weigh
—
m = c × V × M
Enter your values or load the example.

One relationship, three unknowns

The amount of substance is n = m / M, and concentration is n / V. Together they give m = c × V × M, with m in g, c in mol/L, V in L and M in g/mol. Units are converted before calculating and the working is shown in those base units.

Mass concentration and amount concentration are different quantities. 1 mg/mL equals 1 g/L; dividing by the molar mass gives mol/L.

Concentration units explained ↗

Check the substance, not just the sum

The molar mass you enter is used as given. Check whether your material is a hydrate, a salt or a solution itself, and whether its purity is stated by mass. The calculator does not model density, volume changes on dissolving or incomplete dissolution.

Diluting the solution afterwards? Carry the concentration into the dilution calculator.

IUPAC: amount concentration ↗

Common questions

How do I calculate the mass needed to make a solution?

Multiply concentration (mol/L) by volume (L) by molar mass (g/mol): m = c × V × M. For 100 mL of a 50 mM solution of a substance with a molar mass of 200 g/mol: 0.05 mol/L × 0.1 L × 200 g/mol = 1 g.

How do I convert mg/mL to molarity?

Divide the mass concentration in g/L by the molar mass in g/mol. 1 mg/mL equals 1 g/L, so with a molar mass of 200 g/mol it is 1 / 200 = 0.005 mol/L, or 5 mM.

Which molar mass should I use?

Use the molar mass of the exact material you weigh, including any water of hydration, counter-ions or other parts of the formula. A hydrate and the anhydrous form have different molar masses, so using the wrong one changes the concentration. This site does not supply molar masses.

What is the difference between molarity and molality?

Molarity, or amount concentration, is moles of solute per litre of solution. Molality is moles of solute per kilogram of solvent. This calculator uses molarity; converting to molality needs more information, such as the density of the solution.

Does the calculator account for purity?

Optionally. Enter the purity as a mass percentage and the calculator scales the mass to weigh: material that is 98% pure needs 1 / 0.98 ≈ 1.0204 times the mass of the pure substance. It assumes the impurity does not contribute to the measurement.