The molar mass formula is simple: add up the atomic masses of every atom in the chemical formula, in grams per mole. For water, H₂O, that means 2 × 1.008 (hydrogen) plus 16.00 (oxygen), which gives 18.016 g/mol. The formula is M = Σ(n × A), where n is the number of atoms of each element and A is that element's atomic mass from the periodic table. That is the whole method in one line: count atoms, multiply by atomic mass, add the results.

What You'll Need

  • A periodic table showing atomic masses (also called atomic weights) for each element in the compound.
  • The chemical formula, written correctly, including every subscript and any parentheses.
  • A calculator, or a spreadsheet if you are doing several compounds.
  • Paper to write down each element's count and contribution, so errors are easy to spot.

No lab equipment is involved. Molar mass is a calculation, not a measurement. You can do it for any compound you can write a formula for, from table salt to a drug molecule.

Step-by-Step

  1. Write the formula exactly as given. Copy subscripts carefully. H₂SO₄ is not the same as HSO₄. If the compound name is given instead of a formula, convert it first: sodium chloride becomes NaCl, calcium nitrate becomes Ca(NO₃)₂.
  2. List every element that appears. Go left to right and tick off each distinct symbol. In glucose, C₆H₁₂O₆, you have carbon, hydrogen and oxygen.
  3. Count the atoms of each element. Multiply a subscript by anything that follows the group when parentheses are present. In Ca(NO₃)₂, the subscript 2 applies to the whole nitrate group, so you get 2 nitrogen and 6 oxygen atoms, plus 1 calcium. In Al₂(SO₄)₃, you get 2 aluminium, 3 sulphur and 12 oxygen.
  4. Look up the atomic mass for each element. Use the value printed under the symbol on a current periodic table. Standard atomic weights are interval values; a single figure such as 1.008 for hydrogen, 12.011 for carbon or 35.45 for chlorine is normal for school and most practical work. Use the same table consistently for every element.
  5. Multiply the count by the atomic mass for each element. Write each product down separately. For H₂O: 2 × 1.008 = 2.016 and 1 × 16.00 = 16.00.
  6. Add the products together. 2.016 + 16.00 = 18.016, so the molar mass of water is about 18.02 g/mol.
  7. Attach the correct unit. Molar mass is expressed in grams per mole, g/mol. If you are working in kilograms, divide by 1000. Never leave the answer as a bare number.
  8. Check your work. Re-count the atoms in each element, then compare the answer with a rough estimate: heavier atoms dominate, so sodium chloride (58.44 g/mol) should come out far above water (18.02 g/mol). If a result looks wildly off, re-check for a missed subscript or a parenthesis rule.

A worked example with a hydrated salt: copper(II) sulphate pentahydrate, CuSO₄·5H₂O. Copper is 63.55, sulphur 32.07 and oxygen 16.00, giving CuSO₄ = 159.62. The five water molecules add 5 × 18.02 = 90.10. Total: 249.72 g/mol. The dot in the formula means the water is part of the compound, so it must be included.

Common Mistakes

  • Ignoring parentheses. The most frequent error. Mg(OH)₂ has 2 oxygen and 2 hydrogen, not 1 of each.
  • Adding atomic numbers instead of atomic masses. The small whole number above a symbol is the atomic number, not the mass. Using it gives nonsense answers.
  • Forgetting implied ones. A symbol with no subscript means exactly one atom, and a group with no subscript means the group appears once.
  • Dropping the water of crystallisation. Formulas containing a dot and H₂O are hydrated; those water molecules count towards the molar mass.
  • Mixing up molar mass and molecular mass. The numbers are the same, but molecular mass is measured in atomic mass units (amu or Da) and applies to single molecules. Molar mass is per mole and uses g/mol. Ionic compounds such as NaCl have no molecules at all, so their molar mass is technically formula mass, though the arithmetic is identical.
  • Rounding too early. Keep two decimal places through the calculation and round only the final answer, otherwise small errors accumulate in large molecules.

Tips

  • Build a habit of writing each element in a column with its count, atomic mass and product. It makes the addition easy to audit and is faster than redoing the whole sum.
  • For large molecules such as glucose or caffeine, a spreadsheet with counts in one column and atomic masses in another removes arithmetic slips and makes it easy to reuse the same sheet for other compounds.
  • Keep a short reference list of the elements you use most, along with their standard atomic weights, so you are not paging through a table each time.
  • Remember that molar mass is the bridge between grams and moles: moles = mass in grams ÷ molar mass. That single relationship is why the calculation matters in practice.
  • Report answers to a sensible number of significant figures. Most periodic tables limit precision to about four figures, so a result quoted to six decimal places overstates the accuracy.

Troubleshooting

If your answer disagrees with a reference value, work backwards. Divide your total by the number of atoms to see which element's contribution is out of scale, then compare the count with the formula symbol by symbol. A difference close to one oxygen (16) usually means a missed O; a difference close to two hydrogens (2) usually means a missed H or a mishandled group.

If the formula itself is unclear, check whether the name implies more than one ion. Iron(III) oxide is Fe₂O₃, not FeO; the Roman numeral fixes the charge and therefore the subscripts. If you are unsure of a spelling, verify the element symbol rather than guessing, because similar symbols (Co for cobalt versus CO for carbon monoxide) change the result completely.

If a printed answer uses slightly different decimal places, do not worry. Different periodic tables carry different precision, so small differences of a few hundredths are expected. Only a difference at the level of a whole atom signals a real error. And if you need the answer in a different unit, convert at the end rather than during the sum.

Frequently Asked Questions

Is molar mass the same as molecular weight?

In everyday use, yes. Molecular weight is a unitless relative value, while molar mass carries the unit g/mol. The number is effectively the same.

How do I calculate molar mass for a compound with parentheses?

Multiply everything inside the parentheses by the subscript after it. In Fe₂(SO₄)₃ you get 2 iron, 3 sulphur and 12 oxygen.

Does the dot in a formula affect molar mass?

Yes. A dot indicates a hydrate, and the water molecules after it count as part of the compound, so include them.

Why do my values differ slightly from a textbook?

Atomic masses are published to different precision. Rounding at the start rather than the end also shifts the final digit.

Can I calculate molar mass for a mixture?

Not as one formula. Molar mass applies to a defined compound; for a mixture you calculate each component separately or use the average molar mass based on composition.

How many decimal places should I keep?

Match the precision of the atomic masses you used, usually two decimal places for routine work, and round only the final total.