Home / Other Calculators / Molarity Calculator

Molarity Calculator

Calculate molarity, moles of solute, solution volume, or the mass to weigh out. Enter your known values, choose units, and view the formula and calculation steps.

Enter your solution details

Enter the molar mass of the exact compound you are weighing. For hydrated salts, use the molar mass of the hydrated form.

For the selected mode, the calculator solves the selected quantity using the other relevant values. For mass calculations, provide molar mass and either molarity plus volume or moles.

Your result

Molarity
1.00 M
0.5 mol ÷ 0.5 L = 1 mol/L
Molarity1 M
Moles0.5 mol
Volume0.5 L
Mass (if molar mass provided)29.22 g
Formula: M = n ÷ V. Volume is the final volume of the solution, expressed in litres.

What is molarity?

Molarity, also called molar concentration, is the number of moles of solute per litre of finished solution. It is commonly written as mol/L or with a capital M. For example, a 1 M solution contains one mole of solute in each litre of solution. The volume means the final solution volume, not simply the amount of solvent used.

Molarity formula

Molarity: M = n ÷ V
Moles: n = M × V
Volume: V = n ÷ M
Mass from moles: mass = n × molar mass
Molarity from mass: M = mass ÷ (molar mass × volume)

In these formulas, M is molarity in mol/L, n is amount in moles, V is final solution volume in litres, and molar mass is in g/mol when mass is entered in grams.

Worked example: sodium chloride

Suppose 5.844 g of sodium chloride (NaCl) has a molar mass of 58.44 g/mol and is dissolved to make 500 mL of solution.

Moles = 5.844 g ÷ 58.44 g/mol = 0.100 mol
Volume = 500 mL ÷ 1,000 = 0.500 L
Molarity = 0.100 mol ÷ 0.500 L = 0.200 M

Important unit and preparation notes

  • Convert millilitres to litres by dividing by 1,000 before using the basic formula.
  • Use the final volume after the solute has dissolved and the solution has been made up to volume.
  • Use the correct molar mass for the compound form actually weighed, including waters of crystallization for hydrated salts.
  • Round only at the end and follow appropriate significant figures for your inputs.

Frequently asked questions

What does 1 M mean?

A 1 M solution contains one mole of solute per litre of final solution.

How do I calculate molarity from grams?

Divide the mass in grams by the molar mass in g/mol to get moles. Then divide those moles by the final solution volume in litres. The combined formula is M = mass ÷ (molar mass × volume in litres).

Is molarity the same as molality?

No. Molarity uses moles per litre of solution, while molality uses moles per kilogram of solvent. Because volume can change with temperature, molarity can vary with temperature.

Why use final solution volume instead of solvent volume?

The dissolved solute can change the total volume. Molarity is defined using the volume of the finished solution, so the solution should be brought to the target volume after dissolving.

What if I enter millilitres instead of litres?

Select mL in the volume unit menu. The calculator converts it to litres before calculating molarity.

Can this calculator be used for laboratory preparation?

It can help with educational calculations, but verify the compound identity, purity, hydration state, temperature, and required precision before preparing laboratory solutions. Follow your lab's safety and measurement procedures.