Molarity Calculator

Solve for molarity, mass, volume or moles when preparing a solution — enter any three of the four to find the fourth.

How to use this calculator

  1. 1Choose which value you need to find.
  2. 2Enter the molar mass of your solute and the other two known values.

How the calculation works

Molarity (M) = moles of solute / litres of solution, moles = mass / molar mass
M
Molarity, in moles per litre (mol/L)
moles
Amount of substance, mol = grams ÷ (grams per mole)

Molar mass is specific to each compound — it is the sum of the atomic masses of every atom in the formula, found on the label of most lab reagents or calculated from a periodic table.

Worked example

Molarity of 5.844 g NaCl (molar mass 58.44 g/mol) in 1 L of water

  1. 1.Moles = 5.844 g ÷ 58.44 g/mol = 0.1 mol.
  2. 2.Molarity = 0.1 mol ÷ 1 L = 0.1 mol/L.

Result: 0.1 mol/L

What molarity measures, and why chemists use it

Molarity expresses how concentrated a solution is as moles of dissolved substance per litre of solution (mol/L, often written M). Chemists favour it over a simple mass-based concentration because chemical reactions happen mole-to-mole, not gram-to-gram — a reaction that consumes two moles of one reactant for every mole of another follows that same 2:1 ratio regardless of how much each mole happens to weigh. Molarity lets a recipe or a reaction equation be read directly in the units chemistry actually runs on.

A mole itself is simply a fixed, very large count of particles — about 6.022 × 10²³, Avogadro’s number — the chemist’s equivalent of a "dozen," sized so that one mole of a substance weighs out to a convenient number of grams equal to its molecular weight. That link between a countable quantity (moles) and a measurable one (grams, via molar mass) is what lets this calculator move between mass, moles and concentration.

Preparing a solution to a target molarity

Standard laboratory practice for preparing a solution to a specific molarity is not to add a fixed volume of solvent to the solute, but to dissolve the solute and then add solvent up to a final total volume — typically using a volumetric flask marked with a precise fill line. This matters because dissolving something can slightly change the total volume of the mixture; measuring to a fixed final volume, rather than adding a fixed amount of solvent, is what keeps the resulting molarity accurate.

  1. 1Weigh the soluteusing its molar mass to work out how many grams correspond to the target number of moles.
  2. 2Dissolve it partiallyin less than the final target volume of solvent, to make sure it fully dissolves before topping up.
  3. 3Top up to the final volumein a volumetric flask, then mix thoroughly — this final total volume, not the solvent added, is what molarity is calculated against.

Other ways to express concentration

Molarity is only one of several concentration units in regular use, and each solves a slightly different problem. Molality (moles of solute per kilogram of solvent, not solution) is preferred when temperature will change during an experiment, because it does not shift as a liquid expands or contracts with heat the way a per-litre measurement does. Normality (equivalents per litre) accounts for how many reactive units a single mole of a substance actually contributes — relevant for acids and bases that can donate more than one proton per molecule. Percent-by-mass and parts-per-million are common outside the lab, in fields like water testing and food science, where the audience is less likely to be working directly with moles.

This calculator sticks to molarity because it is by far the most common unit for the everyday tasks of preparing reagents and interpreting reaction stoichiometry, but recognising when a different unit is more appropriate is part of using concentration data correctly.

Where molarity shows up outside the lab

Molarity is not confined to a chemistry bench. Medical and pharmaceutical dosing frequently specifies drug concentrations in molar terms so that a dose scales correctly regardless of the compound’s molecular weight; environmental and water-quality testing reports contaminant levels this way when a reaction-based, rather than purely mass-based, threshold matters; and titration — the drop-by-drop method used to determine an unknown solution’s concentration by reacting it against a solution of known molarity — is a foundational technique across analytical chemistry and biology.

In every one of these cases, the underlying reason is the same one that makes molarity useful in a first-year chemistry lab: reactions and biological processes respond to how many molecules are present and interacting, not simply to how many grams of material happen to be in the container.

What this assumes, and where it stops

Assumptions

  • The solute fully dissolves and the final solution volume is the value entered (not the volume of solvent added before mixing).

Limitations

  • Does not account for volume changes on mixing (some solutions are not perfectly additive in volume) or for temperature-dependent density effects.

Common questions

What is the difference between molarity and molar mass?

Molar mass is a fixed property of a substance — how much one mole of it weighs (in g/mol). Molarity is a property of a specific solution you have made — how many moles of that substance are dissolved per litre. You need molar mass to convert between a mass you can weigh and moles, and then moles and volume to find molarity.

Why is the final volume of solution, not the volume of solvent added?

Standard lab practice is to dissolve the solute and then add solvent up to a total final volume (using a volumetric flask), rather than adding a fixed amount of solvent to the solute — because dissolving something can change the total volume slightly, using the final volume is what makes the molarity figure accurate.

Sources

  • MolarityUS National Institute of Standards and Technology

Formula and content last reviewed on .

Results are estimates for information only, not professional advice.

Report an error

Tools people commonly use alongside the molarity calculator.

See all science & engineering calculators →