CHEMISTRY CALCULATOR

Molarity Calculator

Calculate molarity from mass, molar mass and volume, with the moles of solute it represents.

Reviewed by the Calculator.nu math team
Updated August 2026
g
g/mol
litres
Molarity
0.5 mol/L
Moles of solute
1 mol
Concentration
500 mmol/L

The formula

M = moles of solute ÷ litres of solution
# moles = mass ÷ molar mass

How to calculate molarity

Molarity is the concentration of a solution expressed as moles of solute per litre of solution. It is the standard concentration unit in chemistry because reactions happen between numbers of particles, not masses.

Note the denominator: litres of solution, not litres of solvent. Dissolving 58.44 g of salt and topping up to 2 litres is not the same as adding it to 2 litres of water, though at low concentrations the difference is small.

What to enter:

  • Mass of solute (g)
  • Molar mass (g/mol) — sodium chloride is 58.44 g/mol
  • Volume of solution (litres)

Results appear immediately — there is nothing to submit. Changing a field rewrites the link, so you can share the exact scenario you are looking at.

The calculation runs on exactly the numbers currently in the fields above, recomputed in full each time — there is no dependency on the order values are entered in, so adjusting one input to test a scenario and then changing it back leaves the result exactly where it started.

Why molarity matters

This kind of calculation comes up in coursework, in a laboratory or field setting, and in professional practice, and the arithmetic is identical in every case — only the numbers being fed into it, and what is riding on getting them right, actually change.

Beyond a single check, the same calculation is worth rerunning whenever a measured input changes — a new reading, a corrected value, an updated assumption — since the result here always reflects exactly what is currently in the fields above rather than a value calculated once and then left stale.

This calculation sits in a long tradition of being done first by hand with tables and slide rules, then with a scientific calculator, and now with a page like this one — the underlying mathematics has not changed at any point in that history, only the speed and convenience of getting from the inputs to the answer. Understanding the formula itself, shown above, is still worth doing even when a tool computes it instantly, since it is what makes the result trustworthy rather than just fast.

It is worth keeping a note of which inputs were used to produce a given result, particularly where the figure is going into a report or a further calculation — reproducing a result later, or explaining how it was reached, is far easier with the original inputs to hand than by trying to reverse-engineer them from the output alone.

Worked example

A concrete run-through, using the values already in the fields:

  • Mass of solute: 58.44 g
  • Molar mass: 58.44 g/mol
  • Volume of solution: 2 litres

That gives:

  • Molarity: 0.5 mol/L
  • Moles of solute: 1 mol
  • Concentration: 500 mmol/L

The figures above are the calculator's own default values, shown purely so the working is visible rather than hidden — the same steps apply exactly to your own numbers, entered in the fields at the top of this page.

Reading the result

A 1 M solution contains one mole — about 6.02 × 10²³ particles — per litre. Biological buffers usually sit in the millimolar range, and laboratory stock solutions commonly at 1 M or above.

Where this goes wrong. Molarity changes with temperature, because the volume of the solution does. Where precision matters across temperatures, molality — moles per kilogram of solvent — is the better unit.

A result that is wrong by an exact factor of ten, a hundred or a similar round number is almost always a units error rather than a mistake in the formula itself — checking each input against the unit stated beside it is the fastest way to track it down.

Molarity is moles per litre of solution and varies with temperature. Molality is moles per kilogram of solvent and does not, since mass is temperature-independent.

Multiply 0.5 by the volume in litres to get the moles needed, then by the molar mass to get the grams. Dissolve in less than the final volume, then make up to the mark in a volumetric flask.

It returns molarity. With 58.44 g mass of solute, 58.44 g/mol molar mass and 2 litres volume of solution, that comes to 0.5 mol/L. Change any field and the figure moves with it.

Generally, no more than the least precise input justifies — a result reported to six decimal places from inputs measured to two significant figures is implying a precision the calculation does not actually have. The calculator shows full precision so you can round appropriately for your own use.

Yes — the equation shown in the formula section above is the standard form used in textbooks and reference material for this calculation, not a simplified or approximate version.

Yes, in the sense that it applies the correct standard formula and returns an accurate result for the inputs given — but check your own course or publication's requirements for how results should be rounded, presented and referenced, since those conventions vary and are not something a calculator can know on your behalf.

Was this calculator helpful?

Tap a star to rate it. Your feedback helps us improve the tools people rely on most.