Free Molarity Calculator with Worked Steps

Solve M = n ÷ V for molarity, moles, solute mass, or solution volume — plus molality and mass percent — and see every unit conversion and substitution written out like a graded solution, not just the final number.

Molarity Calculator

Pick what to solve for, fill in the rest, and read the worked steps — every unit conversion and substitution is shown.

Molarity (M) is moles of solute per litre of solution — units mol/L.

Solute given as

Add up the atomic masses from the periodic table — e.g. NaCl = 22.99 + 35.45 = 58.44 g/mol.

Total volume of the finished solution, not just the water added.

Molarity of the solution

0.20021 mol/L

  1. 1. Convert grams to moles with the molar mass (Mm)
    n = m ÷ Mm = 5.85 g ÷ 58.44 g/mol = 0.1001 mol
  2. 2. Convert the solution volume to litres
    500 mL ÷ 1000 = 0.5 L
  3. 3. Write the molarity formula
    M = n ÷ V
  4. 4. Substitute and solve
    M = 0.1001 mol ÷ 0.5 L = 0.20021 mol/L

The molarity formula, and how to rearrange it

Molarity is the amount of solute, in moles, divided by the volume of the solution, in litres: M = n ÷ V. The units are mol/L, which chemists abbreviate to a capital M — a 0.5 M solution contains 0.5 moles of solute in every litre of solution.

Because it is one equation with three quantities, you can solve for any of them as long as you know the other two. The calculator above does the rearranging for you, but you should be able to do it yourself:

  • Molarity: M = n ÷ V
  • Moles of solute: n = M × V
  • Volume of solution: V = n ÷ M
  • Mass of solute: find n = M × V first, then multiply by the molar mass (m = n × Mm)

A worked example: 5.85 g of NaCl in 500 mL

This is the example the calculator loads with, so you can follow along. Suppose you dissolve 5.85 g of table salt in enough water to make 500 mL of solution.

First, grams have to become moles, because molarity counts particles, not weight. The molar mass of NaCl is 22.99 (Na) + 35.45 (Cl) = 58.44 g/mol, so n = 5.85 g ÷ 58.44 g/mol = 0.1001 mol.

Second, the volume has to be in litres: 500 mL ÷ 1000 = 0.500 L.

Finally, substitute into the formula: M = 0.1001 mol ÷ 0.500 L = 0.200 mol/L. The answer is a 0.200 M sodium chloride solution. Notice that every step is either a unit conversion or a substitution — there is no hidden magic, and this is exactly what the steps panel in the calculator prints.

Molarity vs molality: the mistake that changes your answer

Molarity (mol/L) and molality (mol/kg) look and sound almost identical, but they divide by different things. Molarity divides by litres of the finished solution. Molality divides by kilograms of the solvent alone — the water you dissolved the solute into, not the mixture you ended up with.

For dilute solutions in water the two numbers come out close, because a litre of dilute aqueous solution weighs about a kilogram. They are still not the same quantity, and for concentrated solutions or solvents other than water they diverge badly. Exam questions exploit this: if a problem gives you the mass of the solvent, it is a molality problem; if it gives you the volume of the solution, it is a molarity problem.

That is why this calculator puts molality on its own tab with its own inputs. The molality tab asks for the mass of the solvent only, in grams or kilograms, and never asks for a volume — so you cannot accidentally compute mol per litre and label it mol per kilogram.

Other mistakes that cost marks

  • Forgetting to convert millilitres to litres. Plugging 500 mL straight into M = n ÷ V makes your answer 1000 times too small. The calculator shows this conversion as its own step so you never skip it on paper.
  • Using grams where moles belong. The n in the formula is always moles. If you are given a mass, divide by the molar mass first — that is a separate, visible step, not part of the molarity formula itself.
  • Using the volume of water added instead of the volume of solution. Molarity is defined per litre of the whole solution. In practice you dissolve the solute and then fill to the mark; the solution volume is what the flask reads, not what you poured in.
  • Getting the molar mass wrong. Diatomic elements (Cl₂ is 70.90 g/mol, not 35.45) and hydrated salts (CuSO₄·5H₂O includes the five waters) are the classic traps. This calculator takes the molar mass as an input, so check it against the periodic table before trusting the result.
  • Reporting more precision than your data has. If your mass was weighed to three significant figures, an answer quoted to seven figures is wrong even if the arithmetic is right.

How to check your answer

Three quick checks catch almost every error. First, cancel the units: mol ÷ L gives mol/L, so if your written-out fraction does not cancel to the unit you want, a conversion is missing. This is the single fastest way to find a mL/L slip.

Second, do an order-of-magnitude sanity check. Everyday lab solutions run from about 0.001 M to a few molar; concentrated hydrochloric acid is about 12 M and that is near the practical ceiling for aqueous solutions. If your answer says 400 M, a conversion went the wrong way.

Third, substitute back. If you solved for volume and got 0.25 L, multiply it by the molarity you were given and confirm it returns the moles you started with. The steps panel in the calculator is built for exactly this — compare its substitution line against your own working line by line and the first disagreement is where your error lives.

Related free tools

Frequently Asked Questions

What is the formula for molarity?

Molarity = moles of solute ÷ litres of solution, written M = n ÷ V. If you are given the solute as a mass in grams, first convert it to moles by dividing by the molar mass (from the periodic table), then divide by the solution volume in litres.

What is the difference between molarity and molality?

Molarity is moles of solute per litre of solution (mol/L); molality is moles of solute per kilogram of solvent (mol/kg). Different denominators: molarity uses the volume of the whole mixture, molality uses only the mass of the solvent you dissolved into. They are numerically close only for dilute aqueous solutions, and molality is preferred when temperature changes, because mass does not expand but volume does.

How do I calculate molarity from grams?

Two steps. Convert grams to moles: n = mass ÷ molar mass (e.g. 5.85 g of NaCl ÷ 58.44 g/mol = 0.1001 mol). Then divide by the solution volume in litres: 0.1001 mol ÷ 0.500 L = 0.200 M. The calculator does both and shows each step.

What does a 1 M solution mean?

It means 1 mole of solute is dissolved in every litre of solution. For NaCl that is 58.44 g of salt made up to a total volume of 1 L. Note that you dissolve the solute and then fill to 1 L — you do not add 1 L of water, because the solute itself takes up some volume.

Why do I have to convert mL to L before using the formula?

Because molarity is defined in mol per litre. If you plug 500 mL in as if it were litres, your answer comes out 1000 times too small; if you forget the conversion entirely and treat 500 as litres, it is 1000 times too big. Divide millilitres by 1000 first — 500 mL = 0.500 L — and write that conversion as its own line so you can spot it when checking.

Can this calculator find the molar mass of my compound for me?

No — you enter the molar mass yourself, taken from the periodic table or your data sheet (e.g. NaCl = 58.44 g/mol, glucose = 180.16 g/mol). That is deliberate: automatic formula parsers silently misread hydrates and diatomic elements, and a wrong molar mass poisons every later step. Adding it up yourself is one line of arithmetic and you will be expected to do it in exams anyway.

Continue in the app

Use Chemistry AI: Chymia for the full guided result after this quick check.

Download on the App Store
Get it on Google Play