Maths

Molarity Calculator

Find a solution’s molarity from moles or mass, or after a dilution.

By Nitin Raturi · Last reviewed

Your solution

How to use the Molarity Calculator

Find the concentration of a solution in moles per litre.

  1. Choose whether you know the moles, the mass, or a stock solution to dilute.
  2. Enter the amounts and volumes.
  3. Read the molarity and the moles of solute.

Good to know

  • M means mol/L.
  • Always use the final solution volume.
I know

I know

What you are starting from.

How to fill it in

  • Moles: moles of solute and volume.
  • Mass: grams of solute, molar mass and volume.
  • Dilution: a stock solution and the volume you dilute it to.

Moles of solute

The amount of dissolved substance, in moles.

How to fill it in

  • Enter a value above 0.

Example

0.133 mol of sucrose in 355 mL is 0.375 M.

Solution volume

The final volume of the whole solution, not the water added.

How to fill it in

  • Enter millilitres. 1 L is 1,000 mL.

Molarity

0.3746 M

The solution holds 0.1330 mol of solute, a concentration of 0.3746 M (mol/L).

M = moles of solute ÷ litres of solution.

How this calculator works

  1. Step 1Molesmass ÷ molar massTurn grams into moles if needed.
  2. Step 2LitresmL ÷ 1000Use the volume of the whole solution.
  3. Step 3Molaritymol ÷ LMoles per litre, written M.

Molarity tells you how much substance is dissolved in each litre of solution. A 1 M solution has one mole in every litre.

Worked example: vinegar

25.2 g of acetic acid in 500 mL (OpenStax Example 3.16)
Molarity
(mass ÷ molar mass) ÷ litres
  1. Moles25.2 g ÷ 60.052 g/mol0.4196 mol
  2. Litres500 mL ÷ 10000.500 L
  3. Molaritymoles ÷ litres0.839 M

The textbook gives 0.839 M.

Dilution

  • Sucrose in a drink0.375 M0.133 mol in 355 mL (Example 3.14).
  • Diluted Cu(NO₃)₂2.36 M850 mL of 5.00 M made up to 1.80 L (Example 3.19).

Diluting adds solvent, not solute: the moles stay the same, so C₁V₁ = C₂V₂.

Assumptions and limits

  • Final volumeVolume of the solution, not the water used.
  • Additive volumesReal mixtures can shrink slightly.
  • Your molar massEnter it from the formula or label.
  • Not for medicinesUse lab procedures for real preparations.

Molarity needs moles. Molar mass turns grams into moles.

To find a compound’s molar mass, use the molecular weight calculator. For acidity from concentration, try the pH calculator, and for gases, the ideal gas law calculator.

Common mistakes

  • Mistake: Dividing by millilitres.

    Instead: Convert to litres first.

  • Mistake: Using the water volume.

    Instead: Use the total solution volume.

  • Mistake: Using grams as moles.

    Instead: Divide by the molar mass.

Checking the method

A separate script re-works every golden value in millimoles per millilitre with exact fractions, and reproduces the three OpenStax examples.

Read how we test our calculators, or browse more maths calculators.

Frequently asked questions

How do I calculate molarity?

Divide moles of solute by litres of solution. 0.133 mol in 355 mL is 0.375 M.

How do I find molarity from grams?

Turn grams into moles with the molar mass first. 25.2 g of acetic acid in 500 mL is 0.839 M.

How does dilution change molarity?

C₂ = C₁V₁ ÷ V₂. 850 mL of 5.00 M made up to 1.80 L is 2.36 M.

What does 1 M mean?

One mole of solute in every litre of solution.

Should I use the water volume or the solution volume?

The final solution volume, after the solute has dissolved.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 4 Nov 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.