Molarity Calculator

Calculate molar concentration from mass or moles, find the mass needed for a target molarity, or run the dilution formula.

Science 4 modes 11 substances
Rate this calculator · 4.5 (2)

Molarity Calculator

4 modes · 11 preset substances · dilution mode

Instructions — Molarity Calculator

Molarity (M) is moles of solute per liter of solution.

  1. Pick a mode: mass to molarity, moles to molarity, molarity to mass needed, or dilution M₁V₁ = M₂V₂.
  2. Choose a substance from the dropdown to autofill molar mass (NaCl, HCl, NaOH, glucose, etc.) or type a custom value.
  3. Enter values: mass in grams, volume in liters, target molarity in mol/L.
  4. For dilution: leave one of M₁, V₁, M₂, V₂ blank and the calculator solves for it.

Formulas

Molarity is one of the most-used concentration units in chemistry.

Definition: $$ M = \frac{n}{V} $$ where $n$ is moles of solute and $V$ is liters of solution.

From mass: $$ M = \frac{m}{M_r \times V} $$ where $m$ is grams and $M_r$ is molar mass in g/mol.

Dilution (conservation of moles): $$ M_1 V_1 = M_2 V_2 $$ The number of moles of solute does not change when you add solvent.

Mass needed for a target molarity: $$ m = M \times V \times M_r $$

Reference

Typical molar concentrations in chemistry and biology:

SolutionMolarity (M)Use
Distilled water0Reference solvent
0.9% saline (isotonic)0.154IV fluid, biology
PBS buffer0.01–0.1Biology standard
Vinegar (5% acetic)~0.83Kitchen, cleaning
Lab standard HCl0.1–1.0Titration
Concentrated HCl (37%)~12Industrial
Concentrated H2SO4 (98%)~18Industrial
Concentrated NaOH (50%)~19Industrial

Safety: always add concentrated acid to water, never the other way. Heat from dissolution can boil and splash if water hits concentrated acid.

Article — Molarity Calculator

Molarity Calculator: M = n/V and the Dilution Formula M₁V₁ = M₂V₂

Molarity is moles of solute per liter of solution: M = n / V. A 1 M (one-molar) NaCl solution contains 1 mole (58.44 g) of NaCl dissolved in enough water to make exactly 1 liter of total solution. The molarity calculator handles four common conversions plus the dilution formula M₁V₁ = M₂V₂.

Molarity is the dominant concentration unit in chemistry, biology, and pharmacology because it relates directly to the stoichiometry of reactions in solution. One liter of 1 M reactant contains exactly 6.022 × 1023 particles of solute.

What molarity measures

Molarity quantifies how concentrated a solution is in molecular terms. The unit (M, or mol/L) tells you how many moles of dissolved solute are present per liter of the entire solution — not per liter of solvent. This distinction matters: dissolving 1 mole of NaCl in 1 liter of water gives a slightly larger total volume than 1 liter, so the molarity is slightly less than 1 M.

For most everyday lab work, the difference is small and ignored. But for precise titrations and analytical chemistry, the solution is always prepared in a volumetric flask: dissolve in a small amount of solvent, then top up to the mark.

The molarity formula

Molarity formulas
M = n / V moles per liter
n = m / Mr mass to moles
M = m / (Mr × V) mass to molarity
M1V1 = M2V2 dilution

Working from raw lab inputs, the chain is: weigh the solid (m grams), divide by molar mass (Mr g/mol) to get moles, then divide by the final solution volume (V liters) to get molarity. The whole process can be done in one step: M = m / (Mr × V).

Preparing a molarity solution step by step

Say you want 250 mL of 0.500 M sodium chloride. Calculate the mass needed: n = 0.500 × 0.250 = 0.125 mol; m = 0.125 × 58.44 = 7.305 g. Procedure:

Weigh 7.305 g of NaCl in a clean weighing dish. Transfer it into a 250-mL volumetric flask using a funnel. Rinse the dish into the flask with deionized water so no salt is left behind. Add water to about 200 mL, then swirl to dissolve completely. Top up carefully to the 250-mL mark with deionized water, watching the meniscus from eye level. Stopper and invert several times to mix.

The volumetric flask, calibrated to one specific volume, is what makes the molarity accurate. Approximating the volume with a beaker or graduated cylinder will give a concentration off by 1–5%.

The molarity dilution formula

The dilution formula M1V1 = M2V2 expresses conservation of moles: adding more solvent does not create or destroy solute. The number of moles in the concentrated stock (M1 × V1) equals the number of moles in the diluted solution (M2 × V2).

Example: dilute 100 mL of 2.0 M HCl to 0.25 M. Solve for V2: V2 = (M1V1) / M2 = (2.0 × 100) / 0.25 = 800 mL. So you add 700 mL of water to the 100 mL of stock to reach a total volume of 800 mL.

Did you know

The human nose can detect some smells at molar concentrations as low as 10−12 M (picomolar). Truffles and certain musk compounds trigger olfactory receptors at vanishingly small concentrations — one of the most sensitive biological detection systems known. By contrast, the salty taste threshold is around 0.01 M NaCl.

Molarity versus molality

Molarity (M, mol/L) and molality (m, mol/kg) sound similar but measure different things. Molarity uses the total solution volume; molality uses the mass of solvent. The key practical difference: molarity changes with temperature because volume expands and contracts with heat, while molality stays constant.

PropertyMolarity (M)Molality (m)
Definitionmol solute / L solutionmol solute / kg solvent
Temperature-dependentYesNo
Ease of preparationEasy (volumetric flask)Harder (weigh solvent)
Used forRoutine lab workThermodynamics, colligative properties

Routine analytical chemistry, biology, and pharmacy use molarity. Physical chemistry and thermodynamics often switch to molality when computing freezing-point depression, boiling-point elevation, or vapor pressure changes.

Common molarity values in chemistry

  • 0.9% saline (IV fluid) = 0.154 M NaCl — isotonic with blood plasma
  • 0.1 M HCl — common laboratory titration standard
  • 1.0 M — a typical "reference" concentration in chemistry
  • Vinegar (5% acetic acid) ≈ 0.83 M
  • Concentrated HCl (37% w/w) ≈ 12 M — the strongest commercial form
  • Concentrated H2SO4 (98% w/w) ≈ 18 M
  • Concentrated NaOH (50% w/w) ≈ 19 M
  • Sea water (NaCl) ≈ 0.6 M total dissolved salts

Common molarity calculation mistakes

Volume unit slip

The molarity formula uses liters, not milliliters. A 500 mL solution is 0.500 L. Plugging in 500 instead of 0.5 gives an answer off by a factor of 1000. This is the single most common molarity mistake; always check units before dividing.

Other regular slip-ups: confusing volume of solvent with volume of solution (always use the final total volume), forgetting to convert mass to moles before dividing, mixing up which side of the dilution equation is the stock versus the diluted form, and ignoring the difference between molarity and molality in problems that specify mass-based concentration.

Tip

For dilutions where M2 « M1, the volume of water added is approximately V2. Diluting 5 mL of 1 M to 0.001 M means adding effectively 5 L of water; the 5 mL of stock is negligible in the final volume. For moderate dilutions, the explicit M1V1 = M2V2 calculation is needed.

Lab safety: acid into water

Mixing concentrated acid with water is exothermic — sometimes violently so. Pouring water into concentrated sulfuric acid causes the surface to flash to boiling immediately, splashing acid out of the container. The opposite order, adding acid slowly into a larger volume of water with stirring, lets the heat dissipate into the bulk and is safe.

The mnemonic is "A.A." (Add Acid to water, Always). It applies to all concentrated mineral acids: HCl, H2SO4, HNO3, H3PO4. The same logic applies to concentrated NaOH and KOH, although these are usually solids dissolved into water, which makes the order more obvious.

FAQ

Divide moles of solute by liters of solution. M = n / V. Example: 0.5 mol of NaCl in 0.5 L of solution gives M = 1 M.
Calculate the moles needed for your target molarity and volume. Convert moles to grams using molar mass. Weigh the solid, dissolve in a smaller amount of solvent, transfer to a volumetric flask, then top up with solvent to the mark and mix.
It expresses conservation of moles during dilution: the moles of solute (M × V) before equals the moles after. Use it to figure out how much concentrated stock to dilute to reach a target concentration.
Molarity (M) is moles per liter of solution; it changes with temperature because volume changes. Molality (m) is moles per kilogram of solvent; it does not change with temperature. Most lab work uses molarity; precise thermodynamic work uses molality.
Approximately 12 M for 37% w/w hydrochloric acid. Concentrated H2SO4 is about 18 M, and concentrated NaOH (50%) is about 19 M. Always check the bottle label.
First convert grams to moles using molar mass: n = m / Mr. Then divide by volume in liters: M = n / V. Example: 10 g of NaCl (Mr = 58.44) in 0.5 L gives 10/58.44 = 0.171 mol, so M = 0.342 M.
A 1 M (one molar) solution contains exactly 1 mole of solute dissolved in enough solvent to make 1 liter of total solution. The solute is dissolved to 1 L, not in 1 L of solvent.
Dissolving concentrated acid in water releases significant heat. Pouring water into acid causes rapid local boiling and can splash hot acid. Pouring acid slowly into a larger volume of water spreads the heat and is safe. Mnemonic: A.A. (Add Acid to water, Always).