Molarity Explained: The Formula and How to Prepare a Molar Solution
Molarity is moles of solute per litre of solution — written M, defined by M = n/V. This guide derives the three working forms of the equation, walks a 500 mL phosphate-buffer preparation step by step, covers dilution and serial dilution maths, and lists the hydrate, temperature and solute-volume pitfalls that most often turn a "1.000 M" solution into a 0.96 M one.
What molarity actually measures
Molarity is concentration counted in moles, not grams. Specifically, it is the number of moles of solute dissolved per litre of total solution — written M (capital), with the unit mol/L. A 1.00 M glucose solution contains exactly one mole of glucose (180.16 g) per litre of the final liquid in the flask. The molarity calculator exists because chemists almost never need just one of the four quantities — mass, molar mass, volume, molarity — in isolation. They need to start from three of them and solve for the fourth, then flip the problem to check, then dilute, then prepare a stock. The underlying relation is one line of algebra; the awkward part is keeping the unit conversions straight, and that is what the calculator handles silently.
The reason moles are the unit of chemistry, rather than grams or molecules, is that a balanced chemical equation is a ratio of moles. When sulfuric acid neutralises sodium hydroxide as H₂SO₄ + 2 NaOH → Na₂SO₄ + 2 H₂O, you need two moles of NaOH for every one mole of H₂SO₄, regardless of which substance happens to weigh more per mole. Express that in molarity and the stoichiometry reads straight off the bottle: 50 mL of 1.0 M H₂SO₄ is neutralised by 100 mL of 1.0 M NaOH because the moles balance. Try the same calculation in grams and you have to convert through molar masses on every line.
The equation, three ways
The defining formula is M = n / V, where n is moles of solute and V is the volume of the whole solution in litres. Moles are unmeasurable directly, so you reach them through mass and molar mass: n = m / MW, where m is the solute mass in grams and MW is the molar mass in grams per mole. Substitute and you have the working form:
M = m / (MW × V)
That single equation generates the three problems the calculator is built around. Rearrange for mass and you get the preparation formula:
m = M × V × MW
Rearrange for volume and you get the dilution-by-target-volume formula:
V = m / (MW × M)
All three are the same equation. The molarity calculator lets you pick which variable to solve for at the top of the page and then applies the matching rearrangement internally, so you never have to remember which letter goes where. The molar mass MW is fixed by the chemical formula — if you do not have it, the molecular weight calculator will sum atomic masses from the formula string and hand the answer back in g/mol, ready to paste in.
Worked example: making a 0.250 M phosphate buffer
Suppose a protocol calls for 500 mL of 0.250 M monobasic potassium phosphate (KH₂PO₄, MW 136.09 g/mol) — a routine buffer component. Open the molarity calculator, pick "Solve for solute mass", and enter molarity 0.250, molar mass 136.09, volume 0.500. The answer is m = 0.250 × 0.500 × 136.09 = 17.01 g. That is the mass to weigh out.
The bench procedure follows directly. Weigh 17.01 g of KH₂PO₄ on a balance accurate to at least ±0.02 g (0.1 % of the value). Transfer the solid into a 500 mL volumetric flask through a dry funnel. Add about 300 mL of deionised water, stopper and swirl until fully dissolved — phosphate dissolves easily but takes a minute. Let the flask sit until the contents return to room temperature, because the solution warms slightly as the salt dissolves and warm water occupies more volume than cool water. Top up to the calibration line on the neck with deionised water, stopper, and invert 10–15 times to mix.
Check by reversing the problem: enter mass 17.01, molar mass 136.09, volume 0.500, solve for molarity. You should see 0.250 M exactly. If you accidentally read the line at eye level off — say you topped up to 502 mL — molarity drops to 0.249 M, a 0.4 % error. That is small for routine work but matters in analytical chemistry, which is why volumetric glassware is calibrated to a single tolerance band at 20 °C.
Dilution: M₁V₁ = M₂V₂
The second most common molarity calculation is dilution from a stock. The principle is conservation of moles: when you take a portion of concentrated solution and add solvent, the number of moles of solute does not change — only the volume that contains them. Since n = M × V, conserving n means M₁ × V₁ = M₂ × V₂, where the 1 subscript refers to the stock taken and the 2 subscript to the final diluted solution.
Rearrange for the volume of stock needed: V₁ = (M₂ × V₂) / M₁. To make 100 mL of 0.10 M NaCl from a 1.0 M stock, V₁ = (0.10 × 0.100) / 1.0 = 0.010 L = 10 mL of stock, topped up to 100 mL with solvent in a volumetric flask. The molarity calculator handles the forward problem (mass-volume-molarity relationships); the dilution case is the same equation applied in a different order, and you can run it as two separate calls — once to find the moles in the target solution, once to find the stock volume that contains them.
Serial dilutions extend the logic. If a step dilutes 1:10, each step multiplies the molarity by 0.1, so three steps in series give a 1000-fold dilution. The arithmetic is the same; the only practical caution is that each transfer step adds a few percent of pipetting error, and those compound, so a four-step serial dilution to reach 10⁻⁵ M from 10⁻¹ M is typically more accurate than trying to weigh out micrograms directly.
Factors that affect a molar solution
Temperature
Molarity is defined on volume, and water expands by roughly 0.021 % per °C around room temperature. A 1.000 M solution made up at 20 °C measures about 0.998 M at 30 °C, because the same moles of solute now occupy a 0.2 % larger volume. That is negligible for most teaching and synthesis work, noticeable for precise analytical chemistry, and significant at temperature extremes. Pharmacopoeial solutions and titrants are always specified together with a reference temperature, typically 20 °C, because volumetric glassware is calibrated against that.
Hydrates and waters of crystallisation
Many common salts come from the supplier as hydrates — sodium sulfate decahydrate Na₂SO₄·10H₂O, copper sulfate pentahydrate CuSO₄·5H₂O, magnesium chloride hexahydrate MgCl₂·6H₂O. The water molecules are part of the crystal and count in the molar mass. CuSO₄ on its own is 159.61 g/mol, but the pentahydrate CuSO₄·5H₂O is 249.71 g/mol — the difference is five times the molar mass of water. Weighing 159.61 g of the pentahydrate gives you only 0.64 moles of CuSO₄, not 1.00, and your "1 M" solution ends up 36 % weak. Always read the label and use the molar mass of the actual hydrate you are weighing.
Solute purity
Reagent labels quote an assay (e.g. ≥ 99 %, ACS grade) that is the fraction of the weighed mass that is actually the named compound. The rest is moisture, related salts or stated impurities. For most work you ignore this; for analytical standards it matters, and you correct by dividing the target mass by the assay fraction. To weigh out 5.000 g of a compound at 98.5 % assay, you actually weigh 5.000 / 0.985 = 5.076 g of the labelled material.
Volume of the solute itself
Molarity is moles per litre of total solution, not per litre of solvent. The solute itself takes up volume. For dilute solutions of small molecules the contribution is negligible, which is why you can sometimes get away with "dissolve in 1 L of water" — but for concentrated solutions, large molecules, or salts of high molar volume, you must use a volumetric flask, dissolve, then top up to the line. Anything else introduces a systematic error that grows with concentration.
pH and protonation state
For acids, bases, buffers and any compound that protonates or deprotonates with pH, the "concentration" you measure depends on what you count. A 0.10 M acetic acid solution contains 0.10 mol/L of total acetate species, but only a small fraction exists as free acetate ion at neutral pH — the rest is the protonated acid. For buffer work, total molarity is the figure you report; for ion-selective electrode work or speciation calculations, you also need the pH and the pKa. The pH calculator handles the Henderson–Hasselbalch arithmetic for buffer mixtures.
How to set up a molarity calculation reliably
- Start from the formula, not the recipe. Compute the mass you need each time rather than trusting a memorised number. A protocol that says "5.844 g of NaCl in 1 L" is doing the same M = m / (MW × V) under the hood; recomputing protects you against typos in the source.
- Always express volume in litres. The formula assumes SI base units. 250 mL is 0.250 L, 50 µL is 5.0 × 10⁻⁵ L. Forgetting this is the single most common error in molarity arithmetic, and the calculator is unit-strict so it surfaces mistakes that hand calculations bury.
- Use volumetric flasks, not beakers, for accurate molarity. A 250 mL beaker is accurate to about ±5 mL (2 %), a 250 mL volumetric flask to about ±0.12 mL (0.05 %). For analytical work the difference matters; for "rough working solution" use a measuring cylinder, but do not call it 1.000 M.
- Match your significant figures to your equipment. A four-place balance and Grade A glassware will support a 0.1 % number; reporting molarity to five decimal places when you weighed the salt on a 0.1 g balance is fiction. The percent error calculator can help you carry the right uncertainty through.
- Compute molar mass from the formula, not from memory. Even simple compounds trip people up (NaHCO₃ vs Na₂CO₃, CuSO₄ vs CuSO₄·5H₂O). Drop the formula into the molecular weight calculator and copy the result; this removes the most common silent error in molarity work.
- Reverse-check every preparation. Solve forward to find the mass, then solve backwards from the measured mass and volume to find the molarity. If both numbers match the target, the arithmetic is right.
Common mistakes
Confusing molarity (M) with molality (m). Molarity is mol/L of solution; molality is mol/kg of solvent. The difference is small in dilute aqueous solutions, large in concentrated ones, and crucial in colligative-property work (freezing-point depression, boiling-point elevation, osmotic pressure) because those depend on molality, not molarity. Lowercase m means molality; capital M means molarity, and they are not interchangeable.
Topping up to a measured mass of solvent rather than a measured volume of solution. Adding "1 L of water" to 58.44 g of NaCl gives a solution of about 1.018 L total volume, and a molarity of 0.982 M rather than 1.000 M. For accurate molarity, dissolve in a portion of solvent, then top up to the target volume in a volumetric flask.
Using the anhydrous molar mass when the salt is a hydrate. CuSO₄ is 159.61 g/mol; CuSO₄·5H₂O is 249.71 g/mol. Weighing out 159.61 g of the pentahydrate to make "1 M CuSO₄" gives 0.64 M. Always match the molar mass to the physical material in the bottle, not the formula of the anhydrous ion you are interested in.
Ignoring solute volume for concentrated stocks. For dilute solutions, "dissolve in 1 L of water" and "make up to 1 L of solution" give nearly identical results. For concentrated solutions (≥ 1 M of a high-molar-volume solute) the difference can be several percent. Volumetric flask, always, if the number matters.
When to look beyond molarity
Molarity is the right unit for most synthetic, analytical and biological chemistry — but not all. Use mass percent or mass fraction for industrial bulk solutions where volume measurement is impractical and a weight ratio is more robust. Use molality for colligative-property work and for any solution that will operate across a temperature range where volume changes matter. Use normality (equivalents per litre) for acid-base titrations where the number of reactive protons matters; the equivalence relation is concentration × stoichiometric coefficient. Use parts-per-million (ppm) or parts-per-billion (ppb) for trace contaminants where the molarity number would be unwieldy.
For any concentration outside the routine range, double-check against authoritative sources — the NIST WebBook for physical properties, the IUPAC Gold Book for definitions, or a well-thumbed analytical chemistry textbook such as Harris's Quantitative Chemical Analysis. The molarity calculator handles the M = n/V arithmetic; the surrounding judgment about which concentration unit fits the application is yours.
Frequently asked questions
Common questions about molarity, in order of how often they come up in the lab.
Frequently asked questions
What is molarity and how is it calculated?
Molarity is the concentration of a solute expressed as moles per litre of total solution, written M (capital). The formula is M = n / V, where n is moles of solute and V is the volume of the whole solution in litres. Since moles equal mass divided by molar mass, the working form is M = m / (MW × V). A 1.00 M solution contains exactly one mole of solute per litre of the final solution, measured to the calibration mark of a volumetric flask — not one litre of solvent added on top of the solute.
What is the difference between molarity and molality?
Molarity (capital M) is moles of solute per litre of solution; molality (lowercase m) is moles of solute per kilogram of solvent. They differ in two important ways. First, molarity uses volume, so it changes with temperature as the solution expands or contracts; molality uses mass, so it does not. Second, molarity counts the whole solution including the solute volume, while molality counts only the solvent. Molarity is the default unit in synthetic and analytical chemistry; molality is the right choice for colligative-property work (freezing-point depression, osmotic pressure) and for solutions used across a temperature range.
How do I prepare a 1 M solution from a solid?
Calculate the mass needed from m = M × V × MW. Weigh that mass on a balance accurate to at least 0.1 % of the target. Transfer the solid into a volumetric flask of the target volume (not a beaker, which is too imprecise), add about 60–70 % of the solvent, swirl until fully dissolved, and let the flask return to room temperature if dissolution generated heat. Top up to the calibration line with solvent, stopper, and invert 10–15 times to mix. The result is a solution of known molarity at the calibration temperature, conventionally 20 °C.
How does the M₁V₁ = M₂V₂ dilution formula work?
It comes straight from conservation of moles. When you dilute a stock, the number of moles of solute does not change — only the volume containing them. Since n = M × V, keeping n constant means M₁ × V₁ = M₂ × V₂, where the 1 subscript is the stock and the 2 subscript is the final dilution. Rearrange for the stock volume: V₁ = (M₂ × V₂) / M₁. To make 100 mL of 0.10 M solution from 1.0 M stock, take 10 mL of stock and top up to 100 mL with solvent in a volumetric flask.
Why does my molarity come out wrong when I use a hydrated salt?
Because the molar mass of a hydrate includes the waters of crystallisation. CuSO₄ on its own is 159.61 g/mol, but the pentahydrate CuSO₄·5H₂O is 249.71 g/mol. If you weigh 159.61 g of the pentahydrate intending to make 1 M CuSO₄ in 1 L, you actually get 0.64 M, because most of what you weighed was water. Always use the molar mass of the substance physically in the bottle — copy it from the label or look up the hydrate explicitly — and not the molar mass of the anhydrous ion you happen to be thinking about.
Does temperature affect molarity?
Yes, slightly. Molarity is defined on volume, and water expands by roughly 0.021 % per °C around room temperature. A 1.000 M solution made up at 20 °C measures about 0.998 M at 30 °C, because the moles of solute now occupy a 0.2 % larger volume. This is negligible for routine work but matters in precise analytical chemistry and titrations, which is why pharmacopoeial solutions are always specified together with a reference temperature, typically 20 °C, and why volumetric glassware is calibrated against that temperature.
Is M the same as mol/L?
Yes, exactly. M is the symbol for molarity, mol/L (or equivalently mol·L⁻¹) is the unit. They are interchangeable: 0.5 M = 0.5 mol/L. The capital-M shorthand is universal in chemistry literature and is read aloud as "molar", so 0.5 M is "zero point five molar". Be careful with the lowercase m, which is molality (mol of solute per kg of solvent) — a different quantity with a different unit.
How accurate does my molarity actually need to be?
It depends on the application. Buffer preparation for biology routinely uses two-significant-figure molarities and tolerates a few percent variation. Titration standards in analytical chemistry are prepared to four significant figures and the assay of the parent salt is corrected for. Pharmaceutical formulations are typically held to within 1–2 % of the stated concentration. Match your glassware, balance and significant figures to the application: a four-place balance and Grade A volumetric glassware support 0.1 % work, but reporting 1.0000 M off a 0.1 g balance is fiction.
Informational only. Not personalised financial, legal, or tax advice.