Molarity Calculator

Find a solution's molarity, or work backward to the moles, volume or grams of solute you need. Choose what to solve for and fill in the rest.

g/mol
58.44 is sodium chloride (NaCl). Use the molar mass calculator for other compounds.

Your results

Molarity—
Molarity—
Moles of solute—
Mass of solute—
Volume of solution—

What molarity measures

Molarity is the most common way to express concentration in chemistry. It tells you how many moles of solute are dissolved in each liter of solution, written as M or mol/L. A 0.4 M solution contains 0.4 moles of solute in every liter, or 0.1 moles in every 250 mL.

Because molarity links moles to volume, it lets you measure out a precise number of moles just by measuring volume with a pipette or graduated cylinder. That's why it shows up in titrations, dilutions and reaction stoichiometry.

The formula

M = moles of solute ÷ liters of solution
moles = M × L
L = moles ÷ M
grams needed = M × L × molar mass

If you start with grams, convert to moles first: moles = grams ÷ molar mass. Always convert milliliters to liters by dividing by 1,000.

Example: 5.844 g of NaCl in 250 mL

StepResult
Moles: 5.844 g ÷ 58.44 g/mol0.1 mol
Volume: 250 mL ÷ 1,0000.25 L
Molarity: 0.1 mol ÷ 0.25 L0.4 M (400 mM)

Working backward, to make 250 mL of a 0.4 M NaCl solution you would need 0.4 × 0.25 × 58.44 = 5.844 g.

How to make a solution in the lab

  1. Calculate the grams needed with the "Mass of solute needed" option.
  2. Weigh the solute and transfer it to a volumetric flask of the right size.
  3. Add distilled water to about two-thirds full and swirl until fully dissolved.
  4. Add water until the bottom of the meniscus sits on the line, then cap and invert to mix.

Common mistakes

  • Forgetting to convert mL to L. 250 mL is 0.250 L. Dividing by 250 instead gives an answer 1,000 times too small.
  • Using grams instead of moles. Molarity is moles per liter, never grams per liter.
  • Adding solute to the full volume of water. The solute takes up space, so the final volume ends up a little too big.
  • Ignoring hydrates. If your bottle says CuSO4·5H2O, use its molar mass of 249.68 g/mol, not 159.60 g/mol.

Frequently asked questions

What is molarity?

Molarity (M) is the number of moles of solute per liter of solution. A 1 M sodium chloride solution has 1 mole of NaCl, 58.44 g, dissolved in enough water to make 1 liter of solution in total.

How do I calculate molarity from grams?

Convert grams to moles by dividing by the molar mass, convert the volume to liters, then divide moles by liters. For 5.844 g NaCl in 250 mL: 5.844 ÷ 58.44 = 0.1 mol, 250 mL = 0.250 L, and 0.1 ÷ 0.250 = 0.4 M.

How many grams do I need to make a solution?

Multiply molarity × volume in liters × molar mass. To make 500 mL of 0.2 M NaCl: 0.2 × 0.500 × 58.44 = 5.844 g. Choose 'Mass of solute needed' above to do this automatically.

Is the volume the water or the whole solution?

The whole solution. Molarity uses the final volume after the solute dissolves. In the lab, dissolve the solute in less water than you need, then top up to the mark in a volumetric flask.

What is the difference between molarity and molality?

Molarity is moles per liter of solution; molality (m) is moles per kilogram of solvent. Molarity changes slightly with temperature because liquids expand, while molality does not. For dilute water solutions near room temperature the two numbers are close.

What does mM mean?

mM is millimolar, one thousandth of a mole per liter. 0.4 M is the same as 400 mM. Biology protocols often use mM and µM.

Rates and figures last checked October 2026.

This calculator gives estimates for planning. Check current rates and product labels before you buy, list or file.