Molarity Calculator

About this calculator

The Molarity Calculator works with the equation molarity = mass ÷ (molecular weight × volume). Fill in any three of mass of solute, molecular weight, solution volume and concentration, and it solves the fourth, showing the steps along with the mass concentration in g/L and the moles of solute. A dilution tab solves C₁V₁ = C₂V₂.

Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

What is molarity?

Molarity, or molar concentration, is the number of moles of a dissolved substance (the solute) per liter of solution. Its unit is moles per liter, written M and read "molar". A 1 M solution of sodium chloride contains one mole of NaCl, about 58.44 g, in every liter of solution.

Molarity (M) = moles of solute ÷ liters of solution

A mole is 6.02214076 × 1023 particles (Avogadro's number). Because counting molecules directly is impossible, chemists weigh the solute and convert grams to moles using its molecular weight.

Measuring molarity using molecular weight

The molecular weight (molar mass) is the mass of one mole of a substance, in g/mol. It is the sum of the atomic weights of the atoms in the formula, which you can get from the molecular weight calculator. Combining the two relationships gives the equation used here:

Molarity = mass ÷ (molecular weight × volume)

Rearranged, it gives any of the four quantities from the other three:

mass = molarity × volume × molecular weight
volume = mass ÷ (molecular weight × molarity)
molecular weight = mass ÷ (molarity × volume)

Worked examples

Finding concentration. 10 g of NaCl (58.44 g/mol) is dissolved to make 500 mL of solution. Moles = 10 ÷ 58.44 = 0.1711 mol, and molarity = 0.1711 ÷ 0.5 L = 0.342 M. The mass concentration is 10 g ÷ 0.5 L = 20 g/L.

Finding mass. To make 2 L of 1 M potassium nitrate (KNO₃, 101.1 g/mol), you need 1 × 2 × 101.1 = 202.2 g of KNO₃.

Finding volume. How much 1 M hydrochloric acid contains 0.5 mol of HCl? Volume = 0.5 ÷ 1 = 0.5 L, or 500 mL.

Simple molarity. Two moles of NaCl dissolved to make 1 liter of solution give a 2 M solution.

Dilutions

Diluting a stock solution adds solvent but no solute, so the number of moles stays the same before and after:

C₁ × V₁ = C₂ × V₂

To make 500 mL of 0.1 M solution from a 1 M stock, you need V₁ = 0.1 × 500 ÷ 1 = 50 mL of stock, topped up with solvent to 500 mL.

Disambiguation of terminology

  • Molarity (M) is moles per liter of solution. It changes slightly with temperature because liquids expand.
  • Molality (m) is moles per kilogram of solvent. It does not depend on temperature, so it is preferred for colligative properties such as boiling point elevation.
  • Mass concentration is grams of solute per liter of solution (g/L). For dilute aqueous solutions, 1 mg/L is approximately 1 ppm.
  • Normality (N) counts reactive equivalents per liter, for example the H⁺ ions an acid can donate. For sulfuric acid, 1 M equals 2 N.

Preparing a solution in the lab

  1. Calculate the mass of solute needed for the volume and molarity you want.
  2. Weigh the solute and dissolve it in less solvent than the final volume, usually about three quarters.
  3. Transfer the solution to a volumetric flask, rinse the beaker into the flask and add solvent up to the calibration mark.
  4. Stopper and invert the flask several times to mix.

Adding the solute to a full liter of water gives a total volume slightly different from one liter, which is why molarity is defined per liter of final solution, not per liter of solvent. For hydrated salts such as CuSO₄·5H₂O, use the molecular weight of the hydrate, because the water of crystallization is part of what you weigh.

Common mistakes

The most frequent errors are mixing milliliters and liters (500 mL is 0.5 L, not 500 L), using the anhydrous molecular weight for a hydrated salt, and confusing molarity with molality. Another is forgetting that strong electrolytes split into ions: a 1 M CaCl₂ solution contains 1 M calcium ions but 2 M chloride ions.

Frequently asked questions

How do you calculate molarity?
Divide the moles of solute by the liters of solution. If you have grams, first divide by the molecular weight to get moles: M = mass ÷ (MW × volume).
What is the molarity of 10 g NaCl in 500 mL?
About 0.342 M: 10 g ÷ 58.44 g/mol = 0.171 mol, divided by 0.5 L.
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.
How do I dilute a solution to a lower molarity?
Use C₁V₁ = C₂V₂. Multiply the target concentration by the target volume and divide by the stock concentration to get how much stock to use.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.