Chemistry
How To Calculate Molarity
Molarity is the concentration chemists reach for first: moles of solute per litre of solution. Everything difficult about it lives in two distinctions — moles rather than grams, and solution rather than solvent.
Quick Answer
M = n / V
- M
- Molarity — moles of solute per litre of solution
- n
- Amount of solute in moles
- V
- Volume of the solution in litres, not the solvent
- Mr
- Molar mass in g/mol, used to turn a weighed mass into moles
Divide the moles of solute by the volume of the solution in litres. Half a mole dissolved in two litres gives 0.5 / 2 = 0.25 M, which is 500 millimoles, or 0.00025 mol per millilitre. Because the definition uses litres, a volume measured in millilitres must be divided by 1000 before it goes anywhere near the formula. If you weighed the solute rather than counting moles, convert first by dividing grams by molar mass.
What Is Molarity?
A mole is simply a counting unit, the chemist's version of a dozen. It is defined as exactly 6.02214076 x 10^23 entities — atoms, molecules, ions, or whatever the substance is built from. That number, Avogadro's constant, is not arbitrary: it was chosen so that one mole of a substance has a mass in grams numerically equal to its atomic or molecular mass. Carbon-12 has a molar mass of 12 g/mol, so 12 g of it is one mole, while water at 18 g/mol makes 18 g one mole. The practical consequence is that you can move between a weighable mass and a countable number of particles with a single division, and molarity is where that ability matters most.
Chemistry runs on moles rather than grams because reactions happen particle to particle. Two hydrogen molecules react with one oxygen molecule, not with some arbitrary mass of oxygen, and a balanced equation is written entirely in moles. A concentration in moles per litre therefore tells you directly how much reactive material sits in a given volume, letting you read reactant ratios straight off the equation. If a reaction needs two moles of one reagent for every mole of another, a 1 M solution delivers twice as many moles per litre as a 0.5 M one, and the volumes needed follow immediately. Grams per litre would force an extra division by molar mass at every step, and that extra step is where errors accumulate.
The V in M = n / V is the volume of the final solution, measured after the solute has dissolved, not the volume of solvent poured in first. This is the single most common conceptual error, and it is easy to see why it happens: the solvent is what you measure out, so it feels like the natural volume to use. But dissolving a solute adds volume of its own. Dissolving 0.5 mol of a salt and then topping up to 2 litres in a volumetric flask gives exactly 0.25 M; adding the same salt to 2 litres of water gives a slightly larger total volume and therefore a slightly lower molarity. The flask is filled to the mark after dissolving for exactly this reason, and the mark is the only volume that counts.
Because volume appears in the denominator, anything that changes volume changes molarity even when the amount of solute is untouched. Liquids expand when heated, so a solution prepared at 20 C and then warmed to 40 C occupies a slightly larger volume and has a correspondingly lower molarity, with no solute added or removed. The effect is small for water over ordinary laboratory ranges, roughly a fraction of a percent, but it is real, and it is why molarity is called a temperature-dependent concentration. Careful work either reports the temperature alongside the molarity or avoids the problem entirely by using molality, moles per kilogram of solvent, which is built on a mass and so does not move when the solution warms up.
Most people do not have a mole counter, so the practical starting point is a balance. Convert the weighed mass to moles by dividing by molar mass: n = m / Mr. Twenty grams of a substance with a molar mass of 40 g/mol is 20 / 40 = 0.5 mol, which is exactly the amount used in the worked example on this page. Molar mass comes from adding the atomic masses on the periodic table, and for a compound you must add every atom in the formula, not just the first one. Getting the molar mass wrong shifts the final molarity by the same proportion, so a ten percent error in Mr becomes a ten percent error in M.
Molarity sits in a family of related measures and confusing them is easy, because they all describe concentration and they all involve moles somewhere. Mass concentration, in grams per litre, is simply molarity multiplied by molar mass, so a 0.25 M solution of a 40 g/mol substance is 10 g/L. Molality, in moles per kilogram of solvent, uses mass where molarity uses volume. Mole fraction compares the moles of one component with the total moles present and is dimensionless. Each answers a slightly different question, and molarity's question is narrow and specific: how many moles are in this volume of solution?
Molarity makes dilution arithmetic unusually clean. Adding solvent changes the volume but not the number of moles, so the product of molarity and volume stays constant: M1 V1 = M2 V2. Diluting 2 litres of 0.25 M solution to 4 litres keeps the 0.5 mol of solute but halves the concentration to 0.125 M. Notice that the moles are conserved while the volume is not, and that the equation is really just a statement that the amount of solute is identical before and after. The same relation lets you work backwards, solving for the stock volume needed to prepare a target concentration.
Because a litre is a large unit for bench chemistry, results are often restated in millimoles and millilitres. One millimole is a thousandth of a mole, so 0.5 mol is 500 mmol. A molarity of 0.25 M is also 0.25 mmol per millilitre, since dividing both the moles and the litres by a thousand leaves the ratio unchanged. That coincidence of scales is genuinely useful: a reading in mmol/mL is numerically the same as the same reading in mol/L, and laboratory protocols switch between the two freely. Keeping the millimole scale in mind prevents the factor-of-a-thousand slips that plague unit handling here.
Finally, molarity is only as good as its two inputs, and the weaker input sets the limit. A volume read from a beaker to the nearest 10 millilitres cannot support a molarity quoted to four decimal places, however precisely the moles were known. Volumetric flasks and pipettes exist because measuring volume well is genuinely difficult, and it is usually the limiting measurement in a molarity calculation. Carry full precision through the arithmetic to avoid compounding rounding, then round the displayed answer to something the volume measurement honestly supports. Reporting 0.2500 M from a rough beaker reading claims an accuracy that was never there.
Formula
M = n / V
The defining relation. Divide moles of solute by litres of solution — the volume measured after dissolving, not the solvent added.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| M | Molarity | mol/L | Moles of solute per litre of solution; the standard concentration unit. |
| n | Amount of solute | moles | In moles. Convert from a weighed mass by dividing by molar mass. |
| V | Volume of solution | litres | In litres, measured after the solute has dissolved. |
n = m / Mr
The bridge from the balance to the mole. Molar mass is the sum of atomic masses, in grams per mole.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| m | Mass of solute | grams | What the balance reads, before any chemistry happens. |
| Mr | Molar mass | g/mol | Grams per mole. 40 g/mol turns 20 g into 0.5 mol. |
M1 x V1 = M2 x V2
Adding solvent leaves the moles of solute unchanged, so the concentration-volume product is conserved.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| M1 | Molarity before dilution | mol/L | The concentrated stock solution. |
| V1 | Volume before dilution | litres | The aliquot taken from the stock. |
| M2 | Molarity after dilution | mol/L | What you solve for when topping up to a final volume. |
How To Calculate Molarity
- 1
Decide whether you have moles or grams
If the solute came off a balance you have grams and must convert; if you measured a standard solution you may already have moles. Everything downstream depends on getting the amount into moles first, because the formula is written in moles and will not accept grams.
- 2
Convert mass to moles when needed
Divide grams by molar mass: 20 g at 40 g/mol is 0.5 mol. Molar mass is the sum of atomic masses, so check the formula of the compound before adding them together. A salt such as sodium chloride has two atoms to account for, not one.
- 3
Measure the volume of the finished solution in litres
Fill to the mark after dissolving. A volume in millilitres must be divided by 1000, so 500 mL enters the formula as 0.5 L, not as 500. This is the single most frequent arithmetic slip, and it changes the answer by a factor of a thousand.
- 4
Divide moles by litres
0.5 mol in 2 L gives 0.5 / 2 = 0.25 M. This single division is the whole calculation; everything else is unit hygiene and presentation. There is no constant to look up and no exponent to apply.
- 5
Restate the answer in a convenient scale and check it
0.25 M is 500 mmol, or 0.00025 mol per millilitre. Multiplying molarity back by volume should return the moles you started with, a quick way to catch a slip. If the round trip does not return 0.5 mol, the volume or the moles were transcribed wrongly.
Examples
Example 1: Half a mole dissolved in two litres
- Amount of solute
- 0.5 mol
- Volume of solution
- 2 L
| Step | Calculation | Result |
|---|---|---|
| Molarity | 0.5 / 2 | 0.25 |
| Solute restated in millimoles | 0.5 x 1000 | 500 |
| Moles per millilitre | 0.5 / 2000 | 0.00025 |
| Volume that would give a 1 M solution | 0.5 / 1 | 0.5 |
Result: 0.5 mol in 2 litres gives 0.25 M, which is 500 mmol, or 0.00025 mol per millilitre; to make the same 0.5 mol reach exactly 1 M you would dissolve it in only 0.5 litres.
Example 2: Starting from a weighed mass
- Mass of solute
- 20 g
- Molar mass
- 40 g/mol
- Volume of solution
- 2 L
| Step | Calculation | Result |
|---|---|---|
| Moles from the mass | 20 / 40 | 0.5 |
| Molarity in 2 litres | 0.5 / 2 | 0.25 |
| Solute restated in millimoles | 0.5 x 1000 | 500 |
Result: 20 g of a substance with a molar mass of 40 g/mol is 0.5 mol, and dissolving that in 2 litres gives 0.25 M, or 500 mmol.
Example 3: Diluting a 0.25 M solution to four litres
- Starting molarity
- 0.25 M
- Starting volume
- 2 L
- Final volume
- 4 L
| Step | Calculation | Result |
|---|---|---|
| Moles of solute, unchanged by dilution | 0.25 x 2 | 0.5 |
| New molarity after topping up | 0.5 / 4 | 0.125 |
Result: Diluting 2 litres of 0.25 M solution to 4 litres keeps the 0.5 mol of solute but lowers the concentration to 0.125 M — the M1 V1 = M2 V2 relation in action.
Calculator
Molarity in moles per litre
0.25
- The solute restated in millimoles
- 500
- Litres needed to reach a 1 M solution
- 4
- Moles per millilitre
- 0.0003
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the Molarity calculator page.
Common Mistakes
Putting millilitres straight into the litres formula
The definition is moles per litre, so a volume of 500 mL must become 0.5 L before dividing. Substituting 500 gives an answer a thousand times too small, and the number often still looks plausible. Converting every volume to litres at the moment you record it removes the temptation entirely.
Using the solvent volume instead of the solution volume
Dissolving solute adds to the volume. Molarity uses the final solution volume, measured after dissolving, which is why volumetric glassware is filled to the mark rather than to the solvent's original level. Using the solvent volume always biases the result high, because the true denominator is larger than the liquid you started with.
Forgetting to convert mass into moles
Grams divided by litres is not a concentration. If the solute was weighed, divide by molar mass first: 20 g at 40 g/mol is 0.5 mol, and only then divide that by the volume. Skipping the conversion leaves you comparing masses, which have no fixed relationship to particle counts across different substances.
Assuming volumes add exactly when diluting
Mixing liquids can shrink or expand the total slightly because of how molecules pack. For dilute aqueous work the error is small, but for concentrated solutions or mixed solvents the final volume must be measured, not assumed. Adding a litre of water to a litre of ethanol gives noticeably less than two litres of mixture, and any molarity built on the naive sum will be wrong.
Confusing molarity with molality
Molarity is moles per litre of solution; molality is moles per kilogram of solvent. They differ because one divides by a volume and the other by a mass, and the gap widens as temperature changes or concentration rises. The symbols look similar and the units are easy to misread, so check whether the denominator is a litre or a kilogram before using a quoted concentration.
FAQ
What is the difference between molarity and molality?
Molarity is moles of solute per litre of solution. Molality is moles of solute per kilogram of solvent. Molarity depends on volume and therefore on temperature; molality depends only on masses and so does not move when the solution warms up. The two coincide numerically only in very dilute aqueous solutions near room temperature, where a litre of solution weighs almost exactly a kilogram.
Do I use litres of solution or litres of solvent?
Solution, always — the final volume after the solute has dissolved. Using the solvent volume makes the answer slightly too high, because dissolving the solute increases the total volume above what you poured in. In a volumetric flask the difference is removed by filling to the mark after dissolving, which is precisely what the mark is for.
How do I go from grams to molarity?
Two steps. Divide the mass by molar mass to get moles, then divide those moles by the solution volume in litres. Twenty grams at 40 g/mol is 0.5 mol, which in 2 litres is 0.25 M. If your volume is in millilitres, convert it to litres before the second step, or the answer will be a thousand times too small.
Why does warming a solution change its molarity?
Because it changes the volume. Liquids expand on heating, so the same moles occupy more litres and the molarity falls. Molality, based on solvent mass, is unaffected and is preferred when temperature varies. For most room-temperature aqueous work the change is small enough to ignore, but it becomes significant near boiling or in non-aqueous solvents.
What does 0.25 M actually mean?
It means 0.25 moles of solute in every litre of solution — equivalently 500 millimoles per litre, or 0.00025 mol per millilitre. The millimole and millilitre scales keep the same ratio, so 0.25 M is also 0.25 mmol/mL. In a 2 litre batch that is 0.5 mol of solute in total, whatever the volume of liquid it happens to occupy.
References
- [1]Wikipedia, Molar concentration — https://en.wikipedia.org/wiki/Molar_concentration
- [2]Wikipedia, Solution — https://en.wikipedia.org/wiki/Solution
- [3]Wikipedia, Mole (unit) — https://en.wikipedia.org/wiki/Mole_(unit)