Written and maintained by CASRAI Editorial Board
Published · Last updated
On this page
Short answer: molarity is moles of solute per liter of final solution, M = n ÷ V. To prepare a solution, convert the target molarity and volume to moles, convert moles to grams with the molar mass, and bring the dissolved solute up to the final volume. To dilute a stock, use C₁V₁ = C₂V₂; for a concentrated acid or base whose label gives density and percent by mass, first calculate its molarity.
Almost every wet-lab protocol assumes the reader can go from “make 500 mL of 0.1 M NaOH” or “dilute this stock to a 1:100 working concentration” to an actual bench action without stopping to think. Molarity and solution-preparation math is one of the most frequently used, and most frequently mis-done, calculations in a research lab — a misplaced decimal or a mixed-up dilution direction produces a reagent that is 10x too strong or too weak, and the resulting experiment is often unusable without anyone noticing until results don’t reproduce.
This guide covers the core calculations a lab worker needs: molarity itself, converting between mass and moles, preparing a solution of a target molarity from a solid or a concentrated stock, serial and simple dilutions, and the most common places these calculations go wrong.
What molarity is
A molar solution is a solution whose concentration is stated in molarity: moles of solute per liter of solution, M = n ÷ V, with V in liters. A 1 M solution holds 1 mole of solute in 1 L of final solution, which is not the same as adding 1 L of water to the solute (Science Notes). The molarity formula, M = moles ÷ liters, is also written M = (mass ÷ molar mass) ÷ volume.
Molarity (symbol M) is a concentration unit: the number of moles of solute dissolved per liter of total solution. For the definition and solubility limits of water-based solutions, see what an aqueous solution is.
M = moles of solute ÷ liters of solution
Two details matter and are the source of most beginner errors:
- It’s moles of solute, not grams. Different compounds have different molar masses, so the same mass of two different chemicals produces two different molarities. You always have to convert mass to moles first.
- It’s per liter of final solution, not per liter of solvent added. If a protocol says “dissolve 5.85 g NaCl and bring to a final volume of 1 L,” the water you add is however much is needed to reach the 1 L mark in a volumetric flask — not exactly 1 L of water added on top of the salt. Adding solute changes the total volume, so “bring to volume” (often abbreviated QS, from the Latin quantum sufficit, “as much as suffices”) is the standard, correct instruction.
Converting between grams and moles
Moles link a compound’s mass to a count of molecules via its molar mass (grams per mole, g/mol), which is the sum of the atomic weights of every atom in its formula. The conversion runs both directions:
moles = mass (g) ÷ molar mass (g/mol)
mass (g) = moles × molar mass (g/mol)
Worked example: How many grams of sodium chloride (NaCl, molar mass 58.44 g/mol) are needed to make 500 mL of a 0.1 M solution?
- Convert volume to liters: 500 mL = 0.5 L.
- Solve for moles needed: moles = M × L = 0.1 mol/L × 0.5 L = 0.05 mol.
- Convert moles to mass: mass = moles × molar mass = 0.05 mol × 58.44 g/mol = 2.922 g.
So: weigh 2.922 g NaCl, dissolve it in less than 500 mL of water (dissolving in the full final volume up front can make it hard to hit the mark exactly, since solids displace some volume), then bring the volume up to exactly 500 mL in a volumetric flask. For full recipes that use these calculations, see the buffer and solution preparation lab guide.
Molar mass itself is calculated by adding the atomic weights (from the periodic table) of each element in the formula, multiplied by how many atoms of that element are present. For compounds with waters of hydration (e.g. CaCl₂·2H₂O), the water’s mass must be included in the molar mass used for the calculation — using the anhydrous molar mass for a hydrated salt is a common source of a low-concentration error, since the hydrate weighs more per mole than the anhydrous form for the same amount of active compound.
Diluting a concentrated stock: the C₁V₁ = C₂V₂ formula
Labs routinely keep concentrated stock solutions and dilute them down to a working concentration as needed, rather than weighing out solid reagent every time. The relationship that governs any simple dilution is:
C₁V₁ = C₂V₂
where C₁ and V₁ are the concentration and volume of the stock you’re starting from, and C₂ and V₂ are the concentration and volume of the diluted solution you want to end up with. This works because the total amount of solute (moles, or moles-equivalent) doesn’t change during a simple dilution — only the volume it’s dissolved in changes, so concentration and volume are inversely related.
Worked example: You have a 10 M NaOH stock and need 250 mL of 0.5 M working solution. How much stock do you need?
- C₁ = 10 M, C₂ = 0.5 M, V₂ = 250 mL. Solve for V₁.
- V₁ = (C₂ × V₂) ÷ C₁ = (0.5 M × 250 mL) ÷ 10 M = 12.5 mL.
- Measure out 12.5 mL of the 10 M stock, then add water (or the appropriate diluent, which is not always water — see below) to bring the total volume to 250 mL.
A frequent mistake here is adding the diluent volume rather than the final volume — i.e., adding 250 mL of water to the 12.5 mL of stock, producing 262.5 mL total and a slightly-wrong final concentration, instead of bringing the total volume up to 250 mL. For small dilutions the error is minor; for large-fold dilutions (small V₁ relative to V₂) it’s usually negligible in practice, but the correct, protocol-safe habit is always to define and hit the final total volume, not the added-volume.
Molarity of a concentrated stock from density and percent by mass
Commercial concentrated acids and bases are usually labelled with a density (often given as specific gravity) and a percent by mass, not a molarity. The molarity follows from three steps: the mass of one liter of reagent, the fraction of that mass that is the solute, and the molar mass.
M = density (g/mL) × 1000 mL/L × (% w/w ÷ 100) ÷ molar mass (g/mol)
Worked example, concentrated hydrochloric acid. The OpenStax Chemistry 2e appendix lists concentrated HCl with a specific gravity of 1.18 and 36% HCl by mass.
- Mass of 1 L of reagent: 1.18 g/mL × 1000 mL = 1180 g.
- Mass of HCl in that liter: 1180 g × 0.36 = 424.8 g.
- Molar mass of HCl: 1.0080 + 35.45 = 36.46 g/mol.
- Moles per liter: 424.8 ÷ 36.46 = 11.65 mol/L, so the reagent is about 11.7 M (OpenStax tabulates 11.6 M for the same row).
The same arithmetic, applied to the other reagents in that appendix table, gives the figures in the data table below this guide. It sets the calculated molarity next to the tabulated one and gives the volume of concentrated reagent needed for 1 L of a 1 M solution.
Diluting a concentrated acid: worked example
Once the stock molarity is known, C₁V₁ = C₂V₂ applies as usual. To make 1 L of 1 M HCl from the 36% stock above (11.65 M):
- V₁ = (C₂ × V₂) ÷ C₁ = (1 M × 1000 mL) ÷ 11.65 M = 85.8 mL.
- Measure about 85.8 mL of concentrated reagent, transfer it into water in a volumetric flask, then bring the total to exactly 1000 mL.
For 250 mL of 0.5 M HCl from the same stock: (0.5 × 250) ÷ 11.65 = 10.7 mL. For sulfuric acid at 96% and density 1.84, the stock is about 18 M, so 1 L of 1 M needs about 55.5 mL. Always follow the safety data sheet (SDS) for the reagent, work in the engineering controls it specifies, and see the chemical hygiene plan entry for the program that governs handling; the order of mixing, protective equipment and spill response are set by your SDS and your institution, not by this arithmetic.
Check the label, not a table
Percent by mass and density differ by supplier and grade. Concentrated hydrochloric acid is sold at about 36% to 37%, sulfuric acid at about 96% to 98%, and nitric acid at about 68% to 71%, and a few percent in mass fraction shifts the molarity by a few percent. The appendix values are generic reference figures. When a bottle states its own density and assay on the label or certificate of analysis, use those numbers in the formula above and record the lot number in your notebook with the result.
Why molar mass has uncertainty
Molar masses are sums of standard atomic weights, and those weights are published with stated uncertainty. The Commission on Isotopic Abundances and Atomic Weights (CIAAW) abridged table for 2024 lists, among others, H 1.0080(2), C 12.011(2), N 14.007(1), O 15.999(1), Na 22.990(1), P 30.974(1), S 32.06(2) and Cl 35.45(1). Chlorine is a good example of why the digits after the decimal point are limited: its atomic weight varies with the isotopic composition of the source, with a published interval of [35.446, 35.457], and CIAAW flags that commercial material may have a modified isotopic composition. For bench preparation, molar masses to four significant figures are ample; the balance and the volumetric glassware limit accuracy long before the atomic weights do.
| Element | Abridged atomic weight (CIAAW 2024) | Used for |
|---|---|---|
| H | 1.0080(2) | HCl, HNO₃, H₃PO₄, H₂SO₄, NaOH, NH₃ |
| C | 12.011(2) | Acetic acid |
| N | 14.007(1) | Nitric acid, ammonia |
| O | 15.999(1) | Oxygen-containing acids and NaOH |
| Na | 22.990(1) | NaOH, NaCl |
| P | 30.974(1) | Phosphoric acid |
| S | 32.06(2) | Sulfuric acid |
| Cl | 35.45(1) | HCl, HClO₄, NaCl |
Serial dilutions
A serial dilution is a sequence of dilutions, each one made from the previous step rather than from the original stock, used to reach a very low concentration accurately (a single huge dilution from a concentrated stock is hard to pipette precisely) or to generate a dilution series for a standard curve or titer determination.
The dilution factor at each step multiplies across the series. A common example is a tenfold (1:10) serial dilution: transfer 1 part of solution into 9 parts diluent at each step, so after n steps the total dilution from the original is 10n. After 3 steps of a 1:10 serial dilution, the sample is diluted 1,000-fold (10³) from the starting concentration, not 30-fold — dilution factors along a series multiply, they don’t add. This is the single most common conceptual error in serial dilution work, and worth checking explicitly against the protocol’s expected final concentration before proceeding to the next step, since an error at any step compounds through every subsequent step.
To calculate the concentration remaining after a serial dilution, apply C₁V₁ = C₂V₂ at each step, or, for a uniform dilution factor f repeated n times, use: final concentration = starting concentration ÷ fn.
Percent (w/v and v/v) solutions and converting to molarity
Not every protocol specifies concentration in molarity. Percent solutions are common, especially for reagents whose exact molecular identity or purity varies, or where convention favors a mass/volume ratio:
- % w/v (weight/volume): grams of solute per 100 mL of final solution. A “10% w/v” solution contains 10 g of solute per 100 mL.
- % v/v (volume/volume): mL of a liquid solute per 100 mL of final solution — common for solutions made from another liquid, like dilute ethanol or acetic acid.
To convert a % w/v solution to molarity: multiply the % w/v by 10 to get grams per liter, then divide by the molar mass. For example, a 10% w/v NaCl solution contains 100 g/L; divided by NaCl’s molar mass of 58.44 g/mol, that’s approximately 1.71 M.
Molarity equation: all the forms you will use
| Goal | Equation |
|---|---|
| Molarity from moles | M = n ÷ V (L) |
| Molarity from mass | M = mass (g) ÷ (molar mass (g/mol) × V (L)) |
| Moles from molarity | n = M × V (L) |
| Volume needed | V (L) = n ÷ M |
| Dilution | M1V1 = M2V2 |
| % w/v to molarity | M = (% w/v × 10) ÷ molar mass |
Worked example from a measured mass: 10.0 g of NaCl (58.44 g/mol) is dissolved and made up to 250.0 mL. Moles = 10.0 ÷ 58.44 = 0.1711 mol; volume = 0.2500 L; molarity = 0.1711 ÷ 0.2500 = 0.684 M (same method as this Science Notes example). If you need to work out the molar mass first, see how to calculate molar mass.
Can you leave the volume in mL when calculating molarity?
Molarity is defined per liter, so the safe route is to convert mL to L before dividing. You can skip the conversion only if the amount of solute is in millimoles, because 1 mol/L is exactly 1 mmol/mL. For example, 5 mmol dissolved in 50 mL gives 5 ÷ 50 = 0.1 mmol/mL = 0.1 M. Mixing moles with mL (or mmol with L) gives an answer off by a factor of 1,000. In a dilution, M1V1 = M2V2, the volumes may stay in mL because the same unit appears on both sides and cancels.
Molarity versus molar mass, molality and temperature
Molar mass is a property of the compound (grams per mole, for example 58.44 g/mol for NaCl); molarity is a property of a particular solution (moles per liter). Molar mass is the bridge used to turn a weighed mass into moles before you can state a molarity. Molarity cannot be negative, because neither moles of solute nor volume can be negative.
Molarity depends on temperature: it falls as temperature rises because the solution volume expands (Science Notes). Where temperature independence matters, use molality, covered in the molal formula guide. For buffers, where the target is a pH as well as a concentration, see buffer solutions.
Fórmula de molaridad (resumen en español)
La molaridad (M) es el número de moles de soluto por litro de disolución: M = n ÷ V, con V en litros. Para obtener los moles a partir de una masa, n = masa (g) ÷ masa molar (g/mol). Ejemplo: 2,922 g de NaCl (58,44 g/mol) en 500 mL de disolución dan 0,05 mol ÷ 0,5 L = 0,1 M.
Buffers and pH-relevant solutions: a note on scope
The molarity and dilution math above applies equally to buffer preparation, but buffers add an additional variable — pH, which depends on the ratio of a buffer’s acid and conjugate-base (or base and conjugate-acid) forms, governed by the Henderson-Hasselbalch relationship, and is normally adjusted at the bench with a calibrated pH meter rather than calculated to a precise endpoint on paper. Exact buffer component ratios, pKa values, and pH-adjustment technique are outside this guide’s scope; treat any specific target pH or buffer recipe as protocol-specific and confirm it against the source protocol or a lab reference rather than deriving it from the general formulas here.
Common sources of error
- Unit mismatches. Mixing mL and L, or mg and g, mid-calculation without converting is the single most common source of 1,000x errors. Carry units through every step of the calculation explicitly, and check that the final number is a sane order of magnitude before proceeding.
- Using the wrong molar mass. Anhydrous vs. hydrated forms of the same salt, or free-base vs. salt forms of a compound (e.g. a drug supplied as a hydrochloride salt), have meaningfully different molar masses. Confirm which form is on the reagent bottle’s label before calculating.
- Confusing dilution factor with dilution ratio. A “1:10 dilution” (1 part sample, 9 parts diluent, total 10 parts) is a 10-fold dilution — not a 1-in-1 or 1-in-10-total-minus-one error. State whichever convention a protocol uses explicitly rather than assuming.
- Adding solute to the full target volume of solvent instead of bringing the combined mixture up to the target final volume, which slightly overshoots the intended final volume and produces an under-concentrated solution.
- Not accounting for a compound’s purity or salt form as stated on the certificate of analysis, when the protocol assumes 100% pure, free-base compound.
Frequently asked questions
How do you calculate the molarity of concentrated hydrochloric acid?
Multiply the density (g/mL) by 1000 mL/L and by the mass fraction, then divide by the molar mass: 1.18 × 1000 × 0.36 ÷ 36.46 = 11.65 M for a reagent at 36% w/w. Use the density and percentage printed on your own bottle.
How much concentrated acid do I need to make 1 L of 1 M solution?
Volume of stock = 1000 mL ÷ stock molarity. For 36% HCl (11.65 M) that is about 85.8 mL, brought to a final volume of 1 L. The data table below gives the same figure for each reagent in the OpenStax appendix.
Is the molarity on a stock bottle the same as the % on the label?
No. The percentage is mass of solute per 100 g of reagent (% w/w); molarity is moles per liter of solution. They are linked through the density and the molar mass, as in the formula above.
Why does my calculated molarity differ slightly from the tabulated value?
Tabulated values are rounded from rounded inputs. HCl at 1.18 g/mL and 36% calculates to 11.65 M, while the appendix lists 11.6 M. Atomic-weight choice and rounding of the density and percentage account for differences of this size.
Do I add acid to water or water to acid?
Follow the safety data sheet and your institution’s chemical hygiene plan for the specific reagent; this guide covers the arithmetic, not the handling procedure.
What’s the difference between molarity and molality?
Molarity (M) is moles of solute per liter of solution; molality (m) is moles of solute per kilogram of solvent. Molarity is volume-based and changes slightly with temperature (because volume expands or contracts); molality is mass-based and temperature-independent. Most bench biology and chemistry protocols use molarity because reagents are prepared and measured by volume.
How do I calculate a dilution when I only know the starting and ending percentages, not molarity?
The same C₁V₁ = C₂V₂ relationship works with any consistent concentration unit — percent, molarity, mg/mL, and so on — as long as C₁ and C₂ are expressed in the same unit on both sides of the equation.
Why does my solution’s final volume come out slightly different from what I calculated?
Solids and concentrated liquids take up their own volume when added to a solvent, so the total volume isn’t simply solvent volume plus solute volume. This is exactly why standard practice is to dissolve in less than the target volume, then bring the combined solution up to the exact target volume in a volumetric flask or graduated cylinder, rather than adding a fixed, pre-calculated volume of solvent.
Do I need a calibrated pipette or balance for these calculations to matter?
Yes — the calculation only produces an accurate solution if the mass and volume measurements executing it are themselves accurate. An uncalibrated analytical balance or pipette can introduce an error larger than a rounding mistake in the math itself; see the related guides on pipette and balance calibration below.
Related CASRAI reading
- Electronic Lab Notebooks for Chemistry — how chemistry-aware ELNs capture reaction stoichiometry and reagent data that solution-prep calculations feed into.
- Chemical Hygiene Plan — the broader safety-program context that governs how chemicals used in solution prep are handled and stored.
Sources
- OpenStax, Chemistry 2e, Appendix F, Composition of Commercial Acids and Bases: https://openstax.org/books/chemistry/pages/f-composition-of-commercial-acids-and-bases
- CIAAW, Abridged Standard Atomic Weights: https://ciaaw.org/abridged-atomic-weights.htm
- CIAAW, Standard Atomic Weights: https://ciaaw.org/atomic-weights.htm
- Science Notes, Molarity or Molar Concentration: https://sciencenotes.org/molarity-or-molar-concentration-definition-formula-examples/
Data: Concentrated laboratory acids and bases: molar mass, density, percent by mass and molarity, with the stock volume needed for 1 L of 1 M solution
Compiled by combining the commercial-reagent density and percent-by-mass values in the OpenStax Chemistry 2e appendix with abridged standard atomic weights from CIAAW (2024). Molar mass is summed from the atomic weights, molarity is calculated as density x 1000 x mass fraction / molar mass and compared with the OpenStax tabulated molarity, and the last column is 1000 / calculated molarity (mL of concentrated reagent per litre of 1 M solution, before bringing to volume). Supplier grades vary, so always use the figures on your own bottle label or certificate of analysis.
Period covered: 2024.
| Reagent | Formula | Molar mass (g/mol) | Density (specific gravity) (g/mL) | Percent by mass (% w/w) | Calculated molarity (mol/L) | Tabulated molarity (OpenStax) (mol/L) | Stock needed per 1 L of 1 M (mL) |
|---|---|---|---|---|---|---|---|
| Acetic acid, glacial | CH3COOH | 60.05 | 1.05 | 99.5 | 17.4 | 17.4 | 57.5 |
| Aqueous ammonia | NH3 | 17.03 | 0.9 | 28 | 14.8 | 14.8 | 67.6 |
| Hydrochloric acid | HCl | 36.46 | 1.18 | 36 | 11.7 | 11.6 | 85.8 |
| Nitric acid | HNO3 | 63.01 | 1.42 | 71 | 16 | 16 | 62.5 |
| Perchloric acid | HClO4 | 100.45 | 1.67 | 70 | 11.6 | 11.65 | 85.9 |
| Phosphoric acid | H3PO4 | 97.99 | 1.7 | 85 | 14.7 | 14.7 | 67.8 |
| Sodium hydroxide | NaOH | 40 | 1.53 | 50 | 19.1 | 19.1 | 52.3 |
| Sulfuric acid | H2SO4 | 98.07 | 1.84 | 96 | 18 | 18 | 55.5 |
Sources
- Composition of Commercial Acids and Bases, OpenStax Chemistry 2e, Appendix F (accessed 2026-11-19)
- Abridged Standard Atomic Weights 2024, CIAAW (accessed 2026-11-19)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







