Molarity in one formula
Molarity is M = moles ÷ volume (L). Moles come from mass: moles = mass ÷ molar mass. So the combined formula is M = mass ÷ (molar mass × volume in L) — enter any two of mass/moles/volume and the calculator fills the third.
Example: 5.84 g of NaCl (58.44 g/mol) in 0.25 L gives 5.84 ÷ 58.44 = 0.1 mol, and 0.1 ÷ 0.25 = 0.4 M.
Lab habits that save mistakes
- Always convert volume to litres — the #1 molarity error is plugging mL straight in. 250 mL is 0.25 L.
- H₂SO₄ is tricky: concentrated sulfuric acid is sold by weight percent and density; use the mass, not the bottle's "M" label, for dilutions.
- Hydrates: CuSO₄·5H₂O includes water in its molar mass (249.69 vs 159.61 for anhydrous) — weigh the hydrate, use the hydrate mass.
- Significant figures: molar mass values here are to 2 decimals; report answers to the precision of your least-precise input.
- For diluting stock solutions, see the Solution Dilution Calculator (C₁V₁ = C₂V₂).
Frequently asked questions
What is the formula for molarity?
Molarity M = moles of solute ÷ litres of solution, in mol/L.
How do I get moles from a mass?
moles = mass (g) ÷ molar mass (g/mol), so molarity = mass ÷ (molar mass × volume in litres).
How do I convert a percentage concentration to molarity?
For a w/v percentage, M = (% × 10 × density) ÷ molar mass. For exact work use the measured density of the solution rather than 1 g/mL.
What is the difference between molarity and molality?
Molarity is moles per litre of solution and changes slightly with temperature; molality is moles per kilogram of solvent and does not.
How do I dilute a solution to a target molarity?
Use M₁V₁ = M₂V₂ — the moles of solute stay the same, only the volume changes.