Formula and Molar Mass in Reactions

Every chemical calculation starts with one question: how much does a molecule weigh? Molar mass is the bridge between two things. It connects the mass you can measure on a balance to a number of particles. That number is described by the mole. This article shows how to build molar mass from a chemical formula, atom by atom. It also shows why that single number is the key. It unlocks every reaction calculation you will ever do. Once you can compute molar mass reliably, you can convert grams to moles and back. This is the first move in any stoichiometry problem. This is deliberately narrow. It covers only the arithmetic of formulas and masses. It does not yet cover the mole ratios from balanced equations. That connection uses coefficients as mole ratios. It is built on exactly the skill developed here.

Key takeaways
  • Molar mass (M) is the mass of one mole of a substance, in grams per mole (g/mol).
  • To find M, add up the atomic masses of every atom in the formula, counting subscripts carefully.
  • Atomic masses come from the periodic table and already represent an average over natural isotopes.
  • Molar mass converts between mass (grams, measurable) and moles (a chemist's counting unit).
  • Parentheses and hydrates in a formula must be expanded before you sum atomic masses.
  • Key idea: molar mass is the formula's atom count translated into grams per mole — it is the constant that turns a balance reading into a number of particles.
The core insight

Molar mass converts mass in grams to an amount in moles using

n=mMn = \frac{m}{M}

where nn is moles, mm is mass in grams, and MM is molar mass in g/mol, built directly by summing atomic masses according to the chemical formula.

The physical picture

A chemical formula is a recipe for one particle — one molecule, one formula unit, one ion pair. Water, H₂O, tells you that each molecule contains two hydrogen atoms and one oxygen atom. But a single molecule is far too light to weigh on any real balance; a single water molecule has a mass of about 3.0×10−233.0 \times 10^{-23} g, a number with no practical use in a laboratory. The mole solves this by defining a fixed, enormous count of particles, 6.022×10236.022 \times 10^{23}, called Avogadro's Number. If you have exactly one mole of water molecules, the total mass of that collection is called the molar mass of water. Molar mass is therefore not a property of a single molecule; it is the mass of Avogadro's number of them, expressed conveniently in grams. Because atomic masses on the periodic table are already given in units of grams per mole (technically atomic mass units per atom, which is numerically identical to grams per mole when scaled by Avogadro's number), building molar mass from a formula is pure addition. Each atomic mass you read off the periodic table already carries the "per mole of atoms" built into it — hydrogen's atomic mass of 1.008 means one mole of H atoms has a mass of 1.008 g. The picture to hold in mind is a two-lane bridge. Grams live on one bank, moles live on the other, and molar mass is the toll rate for crossing — but the toll rate itself is fixed entirely by what atoms make up the formula, and in what numbers.

Figure
Molar mass as a bridge between grams and moles, using CO₂ as the crossing example
CO₂: mass ⇌ moles via M = 44.01 g/mol Mass bank 88.02 g CO₂ (measured on balance) Mole bank 2.000 mol CO₂ (particle count / N_A) divide by M multiply by M C: 12.01 + O: 2 × 16.00 = 44.01 g/mol (one C atom and two O atoms per CO₂ formula unit)

The core relations

The molar mass of a compound is the sum of the atomic masses of all atoms in its formula:

Mcompound=∑ini⋅AiM_{\text{compound}} = \sum_i n_i \cdot A_i

where:

  • McompoundM_{\text{compound}} is the molar mass of the compound in g/mol,
  • nin_i is the number of atoms of element ii in one formula unit (the subscript),
  • AiA_i is the atomic mass of element ii from the periodic table, in g/mol.

The mass–mole conversion that molar mass enables is:

n=mMand equivalentlym=n⋅Mn = \frac{m}{M} \qquad \text{and equivalently} \qquad m = n \cdot M

where:

  • nn is the amount of substance in moles,
  • mm is the mass of the sample in grams,
  • MM is the molar mass in g/mol.

For a hydrate, water molecules attached in the crystal must be added separately:

Mhydrate=Manhydrous+w⋅MH2OM_{\text{hydrate}} = M_{\text{anhydrous}} + w \cdot M_{\text{H}_2\text{O}}

where:

  • MhydrateM_{\text{hydrate}} is the molar mass of the hydrated salt,
  • ManhydrousM_{\text{anhydrous}} is the molar mass of the salt without water,
  • ww is the number of water molecules per formula unit (e.g., 5 in CuSO₄·5H₂O),
  • MH2OM_{\text{H}_2\text{O}} is the molar mass of water, 18.02 g/mol.
Derivation ABuilding molar mass from a formula with parentheses and a hydrate

Goal. Compute the molar mass of calcium nitrate tetrahydrate, Ca(NO₃)₂·4H₂O, showing exactly how subscripts, parentheses, and the hydrate dot are each handled.

Step 1. Expand the formula into a flat atom count. The parenthetical group (NO3)2(\text{NO}_3)_2 means the entire nitrate ion is doubled, so it contributes 2 N atoms and 6 O atoms, not 1 N and 3 O.

Ca(NO3)2=Ca1N2O6\text{Ca(NO}_3)_2 = \text{Ca}_1\text{N}_2\text{O}_6

Adding the hydrate water, 4H2O=H8O44\text{H}_2\text{O} = \text{H}_8\text{O}_4, the fully expanded formula is

Ca1N2O10H8\text{Ca}_1\text{N}_2\text{O}_{10}\text{H}_8

since the two oxygen contributions (6+4=106+4=10) must be combined into one running total.

Step 2. List atomic masses from the periodic table.

ACa=40.08,AN=14.01,AO=16.00,AH=1.008(all in g/mol)A_{\text{Ca}} = 40.08,\quad A_{\text{N}} = 14.01,\quad A_{\text{O}} = 16.00,\quad A_{\text{H}} = 1.008 \quad (\text{all in g/mol})

Step 3. Multiply each atomic mass by its atom count.

1×40.08=40.081 \times 40.08 = 40.08
2×14.01=28.022 \times 14.01 = 28.02
10×16.00=160.010 \times 16.00 = 160.0
8×1.008=8.0648 \times 1.008 = 8.064

Step 4. Sum all contributions.

M=40.08+28.02+160.0+8.064=236.16 g/molM = 40.08 + 28.02 + 160.0 + 8.064 = 236.16 \ \text{g/mol}

Step 5. Check by the alternative route (anhydrous salt plus separate water term). The anhydrous salt Ca(NO₃)₂ has molar mass

40.08+28.02+96.00=164.10 g/mol40.08 + 28.02 + 96.00 = 164.10 \ \text{g/mol}

Adding four waters,

164.10+4(18.02)=164.10+72.08=236.18 g/mol164.10 + 4(18.02) = 164.10 + 72.08 = 236.18 \ \text{g/mol}

This agrees with Step 4 to within normal rounding (236.16 vs 236.18, differing only because intermediate atomic masses were rounded slightly differently along the two routes) — both routes must converge because they are summing the identical set of atoms, just grouped differently.

Worked examples

Example 1 — Molar mass of an organic acid and converting a mass to moles. Acetic acid, the acid in vinegar, has the formula C₂H₄O₂. A student weighs out 7.50 g of pure acetic acid. How many moles is that? Step 1: build the molar mass from the formula.

2×AC=2×12.01=24.022 \times A_{\text C} = 2 \times 12.01 = 24.02
4×AH=4×1.008=4.0324 \times A_{\text H} = 4 \times 1.008 = 4.032
2×AO=2×16.00=32.002 \times A_{\text O} = 2 \times 16.00 = 32.00
M=24.02+4.032+32.00=60.05 g/molM = 24.02 + 4.032 + 32.00 = 60.05 \ \text{g/mol}

Step 2: convert mass to moles using n=m/Mn = m/M.

n=7.50 g60.05 g/mol=0.1249 moln = \frac{7.50\ \text{g}}{60.05\ \text{g/mol}} = 0.1249 \ \text{mol}

So 7.50 g of acetic acid is 0.1249 mol, about an eighth of a mole — a reasonable-sized tabletop sample, since acetic acid's molar mass sits near 60 g/mol, similar in scale to table salt. Limiting-case check. If the sample size were exactly one molar mass, 60.05 g, the answer would need to come out to exactly 1.000 mol; substituting m=60.05m = 60.05 g gives n=60.05/60.05=1.000n = 60.05/60.05 = 1.000 mol, confirming the formula behaves correctly at its own defining point.

Example 2 — Molar mass of an ionic hydrate and going from moles back to mass. A chemist needs 0.0850 mol of copper(II) sulfate pentahydrate, CuSO₄·5H₂O, for a solution. What mass should be weighed out? Step 1: expand the formula. CuSO₄ contributes 1 Cu, 1 S, 4 O; the hydrate contributes 5 more H₂O, i.e., 10 H and 5 O. Total oxygen is 4+5=94 + 5 = 9. Step 2: sum atomic masses.

ACu=63.55,AS=32.07,AO=16.00,AH=1.008A_{\text{Cu}} = 63.55,\quad A_{\text{S}} = 32.07,\quad A_{\text{O}} = 16.00,\quad A_{\text{H}} = 1.008
1×63.55=63.551 \times 63.55 = 63.55
1×32.07=32.071 \times 32.07 = 32.07
9×16.00=144.09 \times 16.00 = 144.0
10×1.008=10.0810 \times 1.008 = 10.08
M=63.55+32.07+144.0+10.08=249.70 g/molM = 63.55 + 32.07 + 144.0 + 10.08 = 249.70 \ \text{g/mol}

Step 3: convert moles to mass using m=n⋅Mm = n \cdot M.

m=0.0850 mol×249.70 g/mol=21.22 gm = 0.0850\ \text{mol} \times 249.70\ \text{g/mol} = 21.22 \ \text{g}

The chemist should weigh out 21.2 g of the pentahydrate. Notice the water of hydration is not optional weight to ignore — using the anhydrous molar mass of CuSO₄ alone (159.6 g/mol) would give m=0.0850×159.6=13.57m = 0.0850 \times 159.6 = 13.57 g, a 36% underweight that would silently ruin the concentration of the intended solution.

Limiting cases & common traps

SituationWhat to watch forConsequence if ignored
Parentheses with subscripts, e.g. (NH4)2SO4(\text{NH}_4)_2\text{SO}_4Multiply everything inside by the outside subscript before addingUndercounts N and H by half
Hydrates, e.g. MgSO4⋅7H2O\text{MgSO}_4\cdot 7\text{H}_2\text{O}Water's mass must be added on top of the anhydrous saltMolar mass too low, moles overestimated
Diatomic elements, e.g. O₂, Cl₂, N₂ as free elementsUse 2 atoms per molecule, not 1Molar mass off by a factor of 2
Isotope-specific problemsOrdinary atomic masses are natural-abundance averages, not one isotope's massWrong M for isotope-enriched samples
n=1n=1 mole exactlyn=m/Mn = m/M must give m=Mm = MA quick sanity check for any formula

The chemist behind it

The idea that atoms combine in fixed, whole-number ratios — the basis for reading a chemical formula as an exact atom count — traces to John Dalton's atomic theory in the early 1800s. But turning atomic ratios into atomic masses on a consistent scale required decades of careful experimental work by chemists comparing combining weights of elements in known compounds. Jöns Jacob Berzelius produced the first extensive, reasonably accurate table of atomic weights in the 1810s–1820s, using painstaking analysis of oxide and salt compositions. The modern practice of expressing atomic mass in grams per mole, tied precisely to Avogadro's number, followed once the mole itself was standardized in the 20th century, linking the chemist's atomic-mass table directly to a laboratory balance.

Origins · 1 minJöns Jacob Berzelius and how this was discovered
JJ
Jöns Jacob Berzelius
1779–1848 · Swedish chemist who compiled the first systematic table of atomic weights, introduced modern chemical notation with letter symbols and subscripts, and whose insistence on precise gravimetric analysis made formula-based mass calculations trustworthy for the first time

Ask the tutor: How do I use a compound's molar mass to find the mass of a different substance produced in the same reaction?

Why do atomic masses on the periodic table have decimals instead of whole numbers?

Atomic masses are weighted averages over all naturally occurring isotopes of an element, weighted by how abundant each isotope is on Earth. Chlorine, for instance, is mostly isotope-35 and isotope-37 mixed together, so its table value of 35.45 reflects that blend rather than any single atom's actual mass.

Does molar mass depend on the physical state of the substance, like solid versus gas?

No. Molar mass is fixed by the chemical formula alone — the identity and count of atoms in one formula unit — and does not change whether the substance is a solid, liquid, or gas. What changes with state is volume and density, not molar mass.

How is molar mass different from molecular mass or formula mass?

The terms describe the same sum of atomic masses but with slightly different conventions: molecular mass usually refers to true molecules (like H₂O or C₆H₁₂O₆), while formula mass is the more general term used for ionic compounds that do not exist as discrete molecules (like NaCl). Molar mass simply attaches units of g/mol to either quantity so it can be used with the mole.

What is the fastest way to check a molar mass calculation for arithmetic mistakes?

Round each atomic mass to the nearest whole number, redo the sum quickly, and confirm your precise answer lands close to that rounded estimate. For Ca(NO₃)₂·4H₂O, rounding gives roughly 40+2(14)+10(16)+8(1)=23640+2(14)+10(16)+8(1) = 236, matching the precise 236.16 g/mol found above.

Why does the hydrate's water need a separate term instead of being folded into the oxygen count directly?

It can be folded in — expanding Ca(NO₃)₂·4H₂O into Ca₁N₂O₁₀H₈ and adding atom-by-atom gives the identical total shown in the derivation. The separate hydrate term is simply a bookkeeping convenience so the anhydrous salt's mass and the water's mass can be tracked and rechecked independently, which is useful when only part of the water is lost on heating.