Part of the Science & Chemistry suite · 71 calculators

Molarity Calculator

Find the molarity of a solution from the mass of solute, its molar mass and the solution volume — with moles, g/L and millimolar alongside.

Moles of solute per liter, from what you weighed out.

g
g/mol
mL
Results update as you type
Results
Molarity
0.4004 mol/L
Moles of solute
Millimolar (mmol/L)
Grams per liter
Reviewed September 2026. Chemistry is the same in every country: SI and laboratory units throughout.
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About molarity

How the molarity calculator works

Molarity is moles of solute per liter of solution. Divide the mass by the molar mass to get moles, then divide by the volume in liters. 5.85 g of NaCl (58.44 g/mol) in 250 mL is 0.1001 mol ÷ 0.25 L = 0.400 M.

Use the molar-mass calculator for the formula mass, and the solution-preparation calculator for the reverse question — how much to weigh out for a target molarity.

Formula: M = (mass ÷ molar mass) ÷ volume in litres

Worked examples

InputsMolarityNote
5.85 g NaCl in 250 mL0.4004 mol/L0.400 M
10 g glucose in 500 mL0.111 mol/L0.111 M
4.0 g NaOH in 1 L0.1 mol/L0.100 M

Frequently asked questions

Is the volume the solvent or the solution?

The final solution. Dissolve the solute, then make up to the mark — the solute itself takes up some volume.

What is the difference between molarity and molality?

Molarity is moles per liter of solution; molality is moles per kilogram of solvent. Molality does not change with temperature, so it is used for colligative properties.

How do I convert mg/L to molarity?

Divide mg/L by 1,000 to get g/L, then by the molar mass. 100 mg/L of NaCl is 0.1 ÷ 58.44 = 0.00171 M.

What does M mean?

Moles per liter — "a 0.4 M solution" is 0.4 mol/L.

Where these figures come from

Last checked: September 2026. Atomic masses are the IUPAC conventional values; constants are CODATA 2018; equations are the standard textbook forms.