Molarity Calculator

g/mol
Find a molar mass from a formula →
Final volume of the solution, not the volume of solvent added.
Chemistry Updated 29 Oct 2026

Calculates the molarity of a solution, or works backwards to the mass of solute or the volume of solution you need for a target molarity. Molarity is the amount of dissolved substance in moles per litre of solution (mol/L, written M). Enter the molar mass with the mass of solute and the final volume, a target molarity, or a mass concentration in g/L, and get the molarity, moles of solute and concentration.

  • Molarity refers to the final volume of solution at the temperature where it was measured.
  • The solute is assumed to be a single pure substance with a known molar mass.

Formula

Molarity (mol/L) = moles ÷ volume (L) = [mass (g) ÷ molar mass (g/mol)] ÷ volume (L); mass = molarity × volume × molar mass; molarity = mass concentration (g/L) ÷ molar mass
  • Moles of solute = mass ÷ molar mass.
  • Mass needed = target molarity × volume in litres × molar mass.
  • Volume needed = moles ÷ target molarity.
  • Units are converted first: 1 mL = 0.001 L, 1 mg = 0.001 g, 1 mM = 0.001 M, 1 µM = 0.000001 M.
  • Results are shown to 4 significant figures.

5.844 g of sodium chloride in 500 mL

Inputs
  • I want to find: molarity
  • Molar mass of solute: 58.44 g/mol
  • Mass of solute: 5.844
  • Mass unit: g
  • Volume of solution: 500
  • Volume unit: ml

5.844 g ÷ 58.44 g/mol = 0.1 mol. The volume is 500 mL = 0.5 L, so the molarity is 0.1 mol ÷ 0.5 L = 0.2 mol/L.

Sources & references

Frequently asked questions

What is molarity?
Molarity is the concentration of a solution expressed as moles of solute per litre of solution. A 1 M solution contains 1 mole of solute in each litre.
Is the volume the solvent or the solution?
It is the total volume of the finished solution. Dissolving a solute can change the volume, so measure the solution up to the final mark in a volumetric flask.
How do I find the molar mass?
Add the atomic weights of all atoms in the chemical formula. For a formula such as NaCl, 22.990 + 35.45 gives about 58.44 g/mol.
How much solute do I weigh out for a given molarity?
Multiply the target molarity by the volume in litres and by the molar mass. For 250 mL of 0.1 M NaCl (58.44 g/mol): 0.1 × 0.25 × 58.44 = 1.461 g. Choose 'Mass of solute needed' to do this.
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. This calculator computes molarity only.
Why is the result shown to four significant figures?
Four significant figures keep the display readable for both concentrated and very dilute solutions. Your inputs are usually less precise than that anyway.

Related calculators