Molar Mass Learning Lab
Learn how to calculate molar mass, understand every step, and test your knowledge.
A stage is mastered when you finish all 3 of its checks and get at least 2 questions right on the first try (extra practice and Challenge Mode count too).
Learning objectives
By the end of this module you should be able to:
How to calculate molar mass from a chemical formula
Use this molar mass calculator to find the molar mass of any compound in g/mol and see exactly how it is built: every element, how many atoms of it the formula contains, its atomic mass, and its contribution to the total. It reads parentheses, as in Ca(OH)2 and Fe2(SO4)3, and hydrates such as CuSO4·5H2O. If a formula is mistyped, it explains what is wrong and suggests a fix, such as “Did you mean H2O?”.
The learning lab above teaches the method in six stages, from reading a formula to complex formulas, with checks, Challenge Mode, a final assessment and percent composition. It's free, works on a phone, and needs no sign-in.
The method in four steps
- Read the formula and count the atoms of each element. A subscript multiplies the atom before it; a subscript after brackets multiplies everything inside them.
- Look up each element's atomic mass on the periodic table.
- Multiply each atomic mass by its number of atoms.
- Add the contributions. The unit is grams per mole (g/mol).
Worked example: CaCO3 (calcium carbonate)
- Atoms in one formula unit: 1 Ca, 1 C, 3 O.
- Ca: 1 × 40.078 = 40.078 g/mol
- C: 1 × 12.011 = 12.011 g/mol
- O: 3 × 15.999 = 47.997 g/mol
- Molar mass = 40.078 + 12.011 + 47.997 = 100.086 g/mol
- Sense check: oxygen is nearly half the total, which makes sense because three of the five atoms are oxygen.
Common mistakes
- Ignoring subscripts: each atomic mass must be multiplied by the number of atoms, not used once.
- Treating a missing subscript as zero: no subscript means 1 atom, not 0.
- Not multiplying through parentheses: in Ca(OH)2, the 2 applies to both O and H.
- Using atomic number instead of atomic mass: the atomic number counts protons; it isn't a mass.
- Forgetting the water in a hydrate: the water after the dot is part of the compound, so its mass counts.
- Using incorrect units: molar mass is a mass per mole, so its units are g/mol.
Questions students ask
What is molar mass?
The mass of one mole of a substance, in grams per mole (g/mol). It is the sum of the atomic masses of all the atoms in the formula: water, H2O, is 2 × 1.008 + 15.999 = 18.015 g/mol. It's the number that turns grams into moles and back, so almost every calculation in a chemistry course starts with it.
How do parentheses work in a formula?
The subscript after a bracket multiplies everything inside it. Ca(OH)2 has 1 calcium, 2 oxygen and 2 hydrogen atoms, so its molar mass is 40.078 + 2 × (15.999 + 1.008) = 74.092 g/mol. A number in front of the whole formula, a coefficient, counts formula units instead and isn't part of the molar mass.
How do I find the molar mass of a hydrate?
Include the water after the dot. For CuSO4·5H2O, add five times the molar mass of water (5 × 18.015) to the molar mass of CuSO4 (159.60), which gives 249.68 g/mol. The dot means “combined with”, so the water molecules are part of every formula unit of the crystal.
Is molar mass the same as molecular weight?
They have the same number. Molecular weight (or formula mass) is in atomic mass units for one molecule; molar mass is in g/mol for one mole. Water's molecular mass is 18.015 u and its molar mass is 18.015 g/mol, because the mole was defined to make the two match.
Why do sources give slightly different molar masses?
They round atomic masses to different decimal places. This lab uses standard IUPAC atomic weights, abridged as on most general chemistry periodic tables. The differences are tiny, usually in the second or third decimal place, but use your course's table so your answers match its key.
Guides on this topic
Everything on molar mass in one place: the topic page →
Play the game
Related calculators
Teaching molar mass? Poll your class on it
A live poll shows you in seconds who has the idea and who doesn't. Every student answers the same question on their phone, the big screen shows the spread of answers without any names, and you see where the class is before you explain.
Ready-made questions: the three checks in each stage of this lab work well as poll questions. They're built around the slips students make most with molar mass: ignoring a subscript, not multiplying through brackets and using the atomic number instead of the atomic mass. Stage 2: Counting atoms is a good place to start.
Students join at pollwithali.com with the code on the screen; no account needed. Presenter accounts are by invitation during the pilot.
The lessons in this lab, stage by stage
The text of every Learning Mode stage, to read or revise from. Open a stage to read it; open the lab above to practice it with checks, hints and feedback.
Stage 1: Understanding chemical formulas
What a formula tells you
A chemical formula lists the elements in a substance and how many atoms of each are in one formula unit (one molecule, or one repeating unit of an ionic compound).
- Element symbols are one or two letters: the first is a capital, the second (if any) lowercase. Co is cobalt; CO is carbon and oxygen.
- Subscripts are small numbers after a symbol. They count atoms: in H2O, the 2 means 2 hydrogen atoms.
- No subscript means 1. In NaCl there is 1 Na and 1 Cl. It's never 0.
- Brackets group atoms. A subscript after the closing bracket multiplies everything inside: Ca(OH)2 has 2 O and 2 H.
Try it: read a formula
Brackets (a group)
- H = Hydrogen: 2 atoms (subscript 2)
- O = Oxygen: 1 atom (no subscript, so 1)
Point at or tab to a line to highlight that element in the formula.
Coefficients are different from subscripts
A coefficient is a full-size number in front of a formula, as in a balanced equation. It counts whole formula units.
2 water molecules → 4 H atoms and 2 O atoms in total
1 molecule of hydrogen peroxide: 2 H and 2 O. A different substance!
Molar mass is always for one formula unit, so coefficients don't change it. The molar mass of H2O is 18.015 g/mol whether the equation says H2O or 2H2O.
Stage 2: Counting atoms
How to count atoms
- Find every element symbol.
- Read its subscript. No subscript means 1.
- If it's inside brackets, multiply by the subscript after the closing bracket.
- If an element appears more than once (like H in C2H5OH), add up every place it appears.
Formula breakdown
Type subscripts as plain numbers (H2O). Use ( ) for groups and a dot or * for hydrates (CuSO4*5H2O).
| Element | Number of atoms | How we counted |
|---|---|---|
| Calcium (Ca) | 1 | no subscript, so 1 |
| Oxygen (O) | 2 | 1 × 2 = 2. 1 per OH × 2 OH groups |
| Hydrogen (H) | 2 | 1 × 2 = 2. 1 per OH × 2 OH groups |
| Total atoms | 5 | 1 + 2 + 2 |
Point at or tab to a row to highlight where that element's count comes from.
Stage 3: Understanding atomic mass
Where atomic masses come from
Each box on the periodic table has two numbers. The atomic number (a whole number) counts protons. The atomic mass (a decimal) is the average mass of the element's atoms.
- 8: atomic number. Don't use this in molar mass.
- 15.999: atomic mass. This is the one you use.
The atomic mass is a decimal because most elements are a mix of isotopes, and it's their weighted average.
The same number works on two scales: one O atom averages 15.999 amu, and one mole of O atoms has a mass of 15.999 g. That's why molar mass is in grams per mole (g/mol).
This lab uses IUPAC standard atomic weights as printed on most General Chemistry periodic tables. Your textbook may round slightly differently (for example O = 16.00); answers within a small rounding difference are accepted.
Interactive periodic table
Select an element (or use the arrow keys) to see its details.
↔ Swipe sideways to see the whole table.
8 (the number of protons)
Standard atomic weight
One oxygen atom has an average mass of 15.999 amu. One mole of oxygen atoms has a mass of 15.999 g. That's why we write it as 15.999 g/mol in molar-mass calculations.
Stage 4: Mass contributions
Mass contribution = number of atoms × atomic mass
Every atom adds its own mass. If a formula has 2 hydrogen atoms, hydrogen adds 1.008 + 1.008 = 2 × 1.008 = 2.016 g/mol. Multiplying is just a fast way of adding the same mass many times.
We do this for one element at a time, then add them up in the next stage.
Your turn: one element at a time
Work out each contribution before you see the answer.
Element 1 of 2 in H2O
Hydrogen (H)
Number of atoms: 2 (subscript 2)
Atomic mass: 1.008 g/mol
Mass contribution = number of atoms × atomic mass
Stage 5: Total molar mass
Molar mass = the sum of all the contributions
Once you know each element's contribution, add them. The total is the molar mass, in g/mol.
Rounding: keep every digit while you add, then round once at the end to the fewest decimal places among the numbers you added.
See it step by step
Open each element to see how its contribution was found.
Hydrogen (H): 2.016 g/mol
Atoms: 2 (subscript 2)
Atomic mass: 1.008 g/mol
2 × 1.008 g/mol = 2.016 g/mol
Oxygen (O): 15.999 g/mol
Atoms: 1 (no subscript, so 1)
Atomic mass: 15.999 g/mol
1 × 15.999 g/mol = 15.999 g/mol
2.016 + 15.999 = 18.015 g/mol
Molar mass of H2O = 18.015 g/mol
This means 1 mole of H2O has a mass of 18.015 g.
Stage 6: Complex formulas and hydrates
Handling bigger formulas
- Multiple elements: same method, just more rows. Make a table so you don't miss one.
- Polyatomic groups in brackets: multiply each subscript inside by the one outside. In (NH4)2SO4, N = 1 × 2 = 2 and H = 4 × 2 = 8.
- An element in more than one place: add its atoms together. In (NH4)2SO4, all the O atoms are in SO₄, but in CuSO4·5H2O oxygen appears in both parts: 4 + 5 = 9.
- Hydrates: the number after the dot is how many water molecules there are per formula unit. Add their mass too: CuSO4·5H2O = CuSO₄ + 5 × H₂O.
Guided practice
Reveal one step at a time. Try to predict each step before you show it.
Guided example: Al2(SO4)3
- Start with the formula
Why: Everything in the calculation comes from what the formula tells us.
Al2(SO4)3 is the chemical formula. Its molar mass is the mass of one mole of Al2(SO4)3, in grams per mole (g/mol).
Step 1 of 8