Molarity Calculator

Solve for molarity, mass of solute or volume of solution. Pick a compound or enter its molar mass, and see every step of the math as you type.

How to use this molarity calculator

  1. Choose what to solve for: molarity, mass of solute, or volume of solution.
  2. Pick a compound to fill in its molar mass, or type the molar mass yourself.
  3. Enter the other two values. Choose mL or L for the volume.

The answer, the moles of solute and every step of the math update as you type.

Molarity formula

Molarity (M) is the number of moles of solute in one liter of solution. Its unit is mol/L, written M.

Molarity = moles of solute ÷ liters of solution, and moles = mass ÷ molar mass

Combine the two and you can solve for any one value from the other three:

  • Molarity: M = mass ÷ (molar mass × volume in L)
  • Mass of solute: mass = M × volume in L × molar mass
  • Volume of solution: volume in L = mass ÷ (molar mass × M)

How to calculate molarity: worked examples

Find the molarity. You dissolve 5.844 g of sodium chloride (NaCl, 58.44 g/mol) in water to make 250 mL of solution.

  • Moles: 5.844 g ÷ 58.44 g/mol = 0.1000 mol
  • Volume: 250 mL = 0.250 L
  • Molarity: 0.1000 mol ÷ 0.250 L = 0.400 M

Find the mass. You need 500 mL of 0.100 M sodium hydroxide (NaOH, 40.00 g/mol).

  • Moles: 0.100 M × 0.500 L = 0.0500 mol
  • Mass: 0.0500 mol × 40.00 g/mol = 2.00 g

Lab problems have answers in the back of the book. Real research does not. Design an experiment around a question you care about, one-on-one with a PhD mentor from a top-20 university. See how the program works.

Molar masses of common compounds

CompoundFormulaMolar mass (g/mol)
Sodium chlorideNaCl58.44
Sodium hydroxideNaOH40.00
Hydrochloric acidHCl36.46
Sulfuric acidH₂SO₄98.07
Potassium chlorideKCl74.55
Calcium chlorideCaCl₂110.98
Sodium bicarbonateNaHCO₃84.01
Copper(II) sulfateCuSO₄159.60
Silver nitrateAgNO₃169.87
GlucoseC₆H₁₂O₆180.16

Molar masses are calculated from IUPAC standard atomic weights. To find a molar mass yourself, add the atomic masses of every atom in the formula. For NaCl: 22.99 + 35.45 = 58.44 g/mol.

Dilution: M1V1 = M2V2

When you dilute a solution, the moles of solute stay the same. Only the volume changes, so M1 × V1 = M2 × V2.

Example: you dilute 10.0 mL of 2.00 M HCl to a total of 100.0 mL. The new molarity is 2.00 M × 10.0 mL ÷ 100.0 mL = 0.200 M.

Curious where chemistry goes beyond the textbook? Tell us what you want to explore and we will help you find a research direction. Contact us.

Common molarity mistakes

  • Forgetting to convert mL to L. 250 mL is 0.250 L. Using 250 gives an answer 1,000 times too small.
  • Using the volume of water, not of solution. Molarity uses the final volume of the whole solution. To make 1.00 L of 1.00 M NaCl, dissolve 58.44 g of NaCl and add water until the total volume is 1.00 L.
  • Using grams instead of moles. Divide the mass by the molar mass first.
  • Mixing up molarity and molality. Molarity is moles per liter of solution. Molality is moles per kilogram of solvent.

Frequently asked questions

What is molarity?

Molarity is the concentration of a solution in moles of solute per liter of solution. A 1 M solution has 1 mole of solute in every liter of solution.

How do you calculate molarity from grams?

Divide the mass in grams by the molar mass to get moles. Then divide the moles by the volume of the solution in liters. For example, 5.844 g of NaCl in 0.250 L of solution is 0.1000 mol ÷ 0.250 L = 0.400 M.

What is the unit of molarity?

Moles per liter, mol/L, written with a capital M. A 0.5 M solution has 0.5 moles of solute per liter of solution.

What is the difference between molarity and molality?

Molarity is moles of solute per liter of solution. Molality is moles of solute per kilogram of solvent. Molality does not change with temperature, because mass does not change when a liquid expands.

Does temperature change molarity?

Slightly. Most liquids expand when they warm, so the volume of the solution grows and the molarity drops a little. Precise lab work states the temperature for this reason.

How do you make a 1 M solution of NaCl?

Weigh 58.44 g of NaCl, dissolve it in less than 1 L of water, and then add water until the total volume is exactly 1.00 L. A volumetric flask gives the most accurate volume.

You already know how to follow a procedure. Find out what it feels like to write your own. Start an original research project with a PhD mentor, on your own schedule. Apply now.

Admission deadlines

Early Admission – November 15, 2026
Regular Admission – December 13, 2026
Late Admission – January 31, 2027

The Program runs four times per year: Spring, Summer, Fall, and Winter.

Apply Now