Molarity Calculator

Molarity is moles of dissolved solute per litre of solution. Make sure volume refers to the final solution, not just the solvent.

Molarity Calculator

Molarity = mass ÷ (molecular weight × volume). Leave blank the one box you want to find. The default finds the concentration of 100 g of table salt in 2 L.

Quick answer. Molarity is moles of solute per litre of solution. 100 g of NaCl (58.44 g/mol) in 2 L is 1.711156742 mol, a molarity of 0.855578371 M. To make 500 mL of 0.1 M NaCl, weigh 2.922 g.

What molarity is

Molarity, or molar concentration, is the number of moles of a dissolved substance in each litre of solution. It is written M, so a 2 M solution has 2 moles per litre. The formula is M = n ÷ V, where n is the amount of solute in moles and V is the volume of the solution in litres, not the volume of the solvent alone.

Using mass and molecular weight

You often know the mass of the solute rather than the moles. Divide the mass by the molecular weight, the mass of one mole in grams per mole, to get the moles. So molarity = mass ÷ (molecular weight × volume). The calculator uses “molecular weight” to mean molar mass in g/mol. The Molecular Weight Calculator finds it from a formula.

Worked example with the default numbers

The page opens on 100 g of solute with a molecular weight of 58.44 g/mol, which is sodium chloride, in 2 L of solution, with the concentration left blank. The moles are 100 ÷ 58.44 = 1.711156742 mol. The molarity is 1.711156742 ÷ 2 = 0.855578371 M. The tool also shows the mass concentration, 100 ÷ 2 = 50 g/L.

The default 100 g of NaCl in different volumes of solution (molarity, M)Molarity falls in proportion as the volume grows: the same 1.711 moles in 4 litres is half the concentration of 2 litres.The default 100 g of NaCl in different volumes of solution (molarity, M)1 L1.711156742 M2 L (default)0.855578371 M4 L0.4277891855 M10 L0.1711156742 M
More solution, lower molarity.

Finding any of the four values

Fill in three boxes and leave the one you want blank. The same equation rearranges to find each value.

To findFormulaExample
Molaritymass ÷ (molecular weight × volume)100 g ÷ (58.44 × 2 L) = 0.855578371 M
Massvolume × molarity × molecular weight0.5 L × 0.1 M × 58.44 = 2.922 g
Volumemass ÷ (molecular weight × molarity)5.844 g ÷ (58.44 × 0.5 M) = 0.2 L
Molecular weightmass ÷ (volume × molarity)4 g ÷ (0.1 L × 1 M) = 40 g/mol

The last example, 4 g in 100 mL giving a 1 M solution, points to a molecular weight of 40 g/mol, which is sodium hydroxide. To make 500 mL of 0.1 M salt solution you weigh out 2.922 g.

Molecular weights of common solutes

SubstanceMolecular weight (g/mol)Grams per litre in a 1 M solution
Water (H₂O)18.01518.02
Hydrochloric acid (HCl)36.4636.46
Sodium hydroxide (NaOH)4040
Sodium chloride (NaCl)58.4458.44
Sulfuric acid (H₂SO₄)98.0898.08
Glucose (C₆H₁₂O₆)180.16180.16
Grams of solute in one litre of a 1 M solution (equal to the molecular weight)A 1 M solution of NaCl holds 58.44 g of salt per litre, while 1 M glucose holds 180.16 g, because a mole of each has a different mass.Grams of solute in one litre of a 1 M solution (equal to the molecular weight)Water (H2O)18.02 gHydrochloric acid (HCl)36.46 gSodium hydroxide (NaOH)40 gSodium chloride (NaCl)58.44 gSulfuric acid (H2SO4)98.08 gGlucose (C6H12O6)180.16 g
One mole of each substance has a different mass.

Concentration units

Molar units are M, mM, µM, nM and mol/m³. Mass units are kg/L, g/L, mg/L, kg/m³ and g/m³. The units ppm and ppb are treated as mg/L and µg/L, which holds for dilute solutions in water, where one litre has a mass of about one kilogram.

UnitEquals
1 M1 mol/L
1 mM0.001 mol/L
1 µM0.000001 mol/L
1 nM0.000000001 mol/L
1 mol/m³0.001 mol/L
1 ppm1 mg/L
1 ppb1 µg/L

If you give the concentration as a mass concentration such as g/L, the mass and volume can be found without the molecular weight. For 25 g/L and a volume of 2 L the mass is 50 g. The molecular weight cannot be found from a mass concentration, because mass divided by volume already is the concentration. Enter the concentration in a molar unit, such as M, to find it.

Diluting a solution

Molarity also helps you dilute. The amount of solute does not change when you add water, so M1V1 = M2V2. To make 250 mL of 0.1 M from a 1 M stock you need 0.1 × 250 ÷ 1 = 25 mL of stock, topped up with water to 250 mL in a volumetric flask.

Diluting 1 M to 0.1 M: volume of stock needed per 250 mL of final solution (mL)Use M1 × V1 = M2 × V2: 1 M × V1 = 0.1 M × 250 mL, so V1 = 25 mL, topped up with water to 250 mL.Diluting 1 M to 0.1 M: volume of stock needed per 250 mL of final solution (mL)Stock 1 M25 mLWater added225 mL
A tenfold dilution takes 25 mL of stock.

Mass, volume and weight units

Volume units run from cubic millimetres and millilitres to litres, cubic metres, US gallons, quarts, pints, cups and fluid ounces. Mass units run from micrograms to metric tons, pounds and atomic mass units. The tool converts everything to grams and litres before it calculates, and shows the steps.

Common mistakes

  • Using the volume of the solvent instead of the final solution.
  • Mixing mL and L. One litre is 1,000 mL.
  • Using a molecular weight for the wrong form of the compound, such as an anhydrous salt when yours is a hydrate.
  • Filling in all four boxes. The tool then recalculates the concentration and ignores the one you typed.
  • Treating ppm as exact for solutions that are not dilute water.

How to read your result

The large number is the value you left blank, in the unit you chose. Below it are related values such as the moles of solute and the mass concentration, and a Steps box that shows the formula with your numbers.

Real solutions are not always ideal, and temperature changes volume slightly. For precise lab work follow your method and use calibrated glassware.

What to do next

Common questions

How do you calculate molarity?

Divide the moles of solute by the volume of the solution in litres. If you know the mass, divide it by the molecular weight to get the moles. For 100 g of NaCl in 2 L, the molarity is about 0.856 M.

What is the difference between molarity and molality?

Molarity is moles per litre of solution, so it changes a little with temperature. Molality is moles per kilogram of solvent, which does not change with temperature.

How do I make a solution of a given molarity?

Multiply the molarity by the volume in litres and by the molecular weight to get the grams needed. Dissolve that in some solvent, then add solvent until the final volume is reached.

Why can I not find the molecular weight from g/L?

Mass divided by volume already is the concentration in g/L, so it carries no information about the mass of a mole. Use a molar concentration to find the molecular weight.

What do ppm and ppb mean here?

The calculator treats ppm as mg/L and ppb as micrograms per litre, which holds for dilute solutions in water.

What is M1V1 = M2V2?

It is the dilution equation. The moles of solute stay the same when you add solvent, so the initial molarity times the initial volume equals the final molarity times the final volume.

Sources: Wikipedia: Molar concentration; Wikipedia: Molar mass; Wikipedia: Parts-per notation

More Everyday Calculators

Pick another tool to jump straight to it.