24 min read
How to Calculate Molar Mass
A reliable, repeatable method for any chemical formula — from simple diatomic gases to parentheses, polyatomic ions, and hydrates — with fully worked examples using real compounds.
Introduction
Calculating molar mass is one of the first genuinely mechanical skills in chemistry — meaning that once you learn the procedure correctly, you can apply it to any formula, no matter how unfamiliar the compound looks. This is good news: unlike some chemistry topics that require intuition or memorized exceptions, molar mass calculation is closer to arithmetic with a lookup table. Learn the procedure once, apply it consistently, and you will rarely be stumped by a new formula again.
That said, "mechanical" does not mean "trivial." Formulas with parentheses, polyatomic ions, and hydrate water trip up a huge fraction of students, not because the math is hard, but because the formula-reading step is easy to rush. This guide breaks the process into a reliable sequence of steps, then applies that sequence to a range of real compounds — from water and salt to sulfuric acid, aluminum sulfate, and copper sulfate pentahydrate — so that by the end, formula-reading errors become far less likely.
The simple version, for beginners
Think of a chemical formula as a shopping list written in a shorthand code. Water, H₂O, means "2 hydrogens and 1 oxygen." To find its total mass, you look up how much one hydrogen weighs, how much one oxygen weighs, and then add them up according to the quantities in the list: two hydrogens plus one oxygen.
That's genuinely the whole idea. Every "hard" molar mass problem is really just a longer, trickier shopping list — more items, some items grouped together in parentheses, maybe some extra water molecules tacked onto the end of the formula. The four-step method below is simply a careful way of reading that shopping list so nothing gets missed.
Step 1 — Parse the formula completely
Before touching a periodic table, write out every element in the formula and how many atoms of each are present. Subscripts multiply the element (or group) written immediately before them. Parentheses multiply everything inside by the subscript that follows the closing parenthesis.
For example, calcium hydroxide, Ca(OH)₂, means: 1 calcium, then the group (OH) appears twice, contributing 2 oxygens and 2 hydrogens. The full atom count is 1 Ca, 2 O, 2 H. A more complex case, aluminum sulfate, Al₂(SO₄)₃, means 2 aluminum atoms, and the sulfate group (SO₄) appears 3 times, contributing 3 sulfur atoms and 3 × 4 = 12 oxygen atoms. The full count is 2 Al, 3 S, 12 O — a detail many students miss by reading "SO₄" and forgetting to multiply by the outer subscript of 3.
Hydrates add another layer: copper sulfate pentahydrate is written CuSO₄·5H₂O, where the dot and the "5" mean five entire water molecules are attached per formula unit. That adds 5 oxygens and 10 hydrogens on top of the anhydrous CuSO₄ (1 Cu, 1 S, 4 O). The full atom count for the hydrate is 1 Cu, 1 S, 9 O, 10 H.
Step 2 — Look up atomic masses consistently
Once every atom is counted, look up each element's atomic mass from a periodic table. Common classroom values, generally good to four significant figures: H = 1.008, C = 12.011, N = 14.007, O = 15.999 (often rounded to 16.00), Na = 22.99, Mg = 24.31, Al = 26.98, S = 32.06, Cl = 35.45, K = 39.10, Ca = 40.08, Cu = 63.55, Ag = 107.87.
The word "consistently" matters here. If you use O = 16.00 for one element and then switch to a more precise value like O = 15.999 midway through the same calculation, you introduce tiny inconsistencies that can shift your final answer in the second decimal place. Pick one periodic table (your textbook's, or your instructor's posted reference) and stick with its values for an entire assignment or exam.
Step 3 — Multiply each atomic mass by its count, then sum
For each element, multiply its atomic mass by the number of atoms present, giving that element's "contribution" to the total molar mass. Then add every contribution together.
Worked example — sulfuric acid, H₂SO₄ (2 H, 1 S, 4 O): hydrogen contributes 2 × 1.008 = 2.016; sulfur contributes 1 × 32.06 = 32.06; oxygen contributes 4 × 15.999 = 63.996. Sum: 2.016 + 32.06 + 63.996 = 98.072 g/mol, usually reported as 98.07 or 98.08 g/mol depending on rounding.
Worked example — aluminum sulfate, Al₂(SO₄)₃ (2 Al, 3 S, 12 O): aluminum contributes 2 × 26.98 = 53.96; sulfur contributes 3 × 32.06 = 96.18; oxygen contributes 12 × 15.999 = 191.988. Sum: 53.96 + 96.18 + 191.988 = 342.13 g/mol (commonly listed as 342.15 g/mol with slightly different rounding of atomic masses).
Step 4 — Report the final answer with correct units and rounding
Always finish with the unit g/mol attached — a bare number like "98.07" is not a complete chemistry answer. Round to the precision your course expects, typically two decimal places for classroom work, though industrial and research contexts sometimes carry more digits.
Before finalizing, do a quick sanity check: did you expand every set of parentheses? Did you include hydrate water if the formula had a dot notation? Is your final molar mass roughly in a sensible range compared to similar compounds you already trust (for instance, if your answer for a small organic molecule comes out to 5,000 g/mol, something clearly went wrong in the atom count)?
Worked example: a hydrate, copper sulfate pentahydrate (CuSO₄·5H₂O)
Copper sulfate pentahydrate is a favorite lab compound because its vivid blue crystals visibly lose water and turn white/gray when heated — a dramatic, visual demonstration of hydrate water leaving a solid. Its atom count, from Step 1, is 1 Cu, 1 S, 9 O, 10 H.
Using Cu ≈ 63.55, S ≈ 32.06, O ≈ 16.00, H ≈ 1.008: copper contributes 63.55; sulfur contributes 32.06; oxygen contributes 9 × 16.00 = 144.00; hydrogen contributes 10 × 1.008 = 10.08. Total: 63.55 + 32.06 + 144.00 + 10.08 = 249.69 g/mol. Compare this to anhydrous CuSO₄ alone (63.55 + 32.06 + 4×16.00 = 159.61 g/mol) — the five water molecules add roughly 90 g/mol, a substantial fraction of the hydrate's total mass, which is exactly why forgetting the "·5H₂O" produces such a large error.
Worked example: a polyatomic-ion-heavy formula, calcium hydroxide (Ca(OH)₂)
Calcium hydroxide, common in construction lime and water treatment, has atom count 1 Ca, 2 O, 2 H, as established in Step 1. Using Ca ≈ 40.08, O ≈ 16.00, H ≈ 1.008: calcium contributes 40.08; oxygen contributes 2 × 16.00 = 32.00; hydrogen contributes 2 × 1.008 = 2.016. Total: 40.08 + 32.00 + 2.016 = 74.10 g/mol (commonly cited as 74.09 g/mol).
A very common student mistake here is reading "(OH)₂" and multiplying only the hydrogen by 2, forgetting that the oxygen inside the same parentheses also gets multiplied by 2. Reading the parentheses as a single indivisible group — "OH, taken twice" — helps avoid this error.
Lab example: verifying molar mass with experimental data
In some lab exercises, you are asked to determine an unknown compound's molar mass experimentally — for instance, by measuring the freezing point depression of a solution, or the volume of gas produced in a reaction — and then compare it against the molar mass calculated from a proposed formula. If your calculated molar mass (from Steps 1 through 4) does not match the experimental value within a reasonable margin, that mismatch is valuable diagnostic information: either the compound's formula is different than assumed, it exists as a hydrate you didn't account for, or there was measurement error in the experiment itself.
This back-and-forth between theoretical (formula-based) and experimental (measurement-based) molar mass is a recurring theme in analytical chemistry, and it starts with being completely confident in the theoretical calculation so you know where to look when the numbers disagree.
Industrial example: molar mass calculations at scale
Chemical manufacturers computing raw material requirements rely on exactly the same four steps, just applied to enormous quantities. A fertilizer plant producing ammonium sulfate, (NH₄)₂SO₄, needs the correct molar mass to calculate how many tonnes of ammonia and sulfuric acid feed into the process to hit a production target. Parsing (NH₄)₂SO₄ correctly — 2 nitrogen, 8 hydrogen, 1 sulfur, 4 oxygen — matters just as much at industrial scale as it does on a homework problem; the only difference is that an error here costs real money and real feedstock, not just exam points.
Student notes and memory tricks
A reliable trick for parentheses: rewrite the formula by hand, expanding every parenthetical group before doing any arithmetic. Turn Al₂(SO₄)₃ into "Al, Al, S, O, O, O, O, S, O, O, O, O, S, O, O, O, O" mentally or on paper if needed — tedious, but nearly impossible to get wrong once fully expanded.
For hydrates, remember the phrase "the dot means plus": CuSO₄·5H₂O is CuSO₄ plus five whole water molecules, not "5 extra hydrogens and oxygens scattered randomly." Treating the hydrate water as its own complete little formula (5 × H₂O = 5 × 18.02 = 90.08 g/mol) that you simply add to the anhydrous molar mass keeps the bookkeeping clean.
Common mistakes to avoid
Mistake one: forgetting that a subscript outside a closing parenthesis applies to every atom inside, not just the last one. Mistake two: rounding atomic masses to whole numbers too early, which compounds into a noticeably wrong final answer for larger formulas. Mistake three: dropping hydrate water entirely, treating CuSO₄·5H₂O as if it were plain CuSO₄. Mistake four: misreading a formula's diatomic subscript — Cl₂ gas is 70.90 g/mol (2 × 35.45), not 35.45 g/mol, which is only the mass of one chlorine atom.
A fifth, subtler mistake is applying the wrong atomic mass for an element with a commonly confused symbol — mixing up Mn (manganese) and Mg (magnesium), or Na (sodium) and N (nitrogen), for example. Always double check element symbols against the periodic table rather than relying on memory alone, especially under exam time pressure.
Practice questions with worked solutions
Question 1: Calculate the molar mass of ammonium chloride, NH₄Cl. Solution: atoms are 1 N, 4 H, 1 Cl. (14.007) + (4 × 1.008) + (35.45) = 14.007 + 4.032 + 35.45 = 53.49 g/mol.
Question 2: Calculate the molar mass of calcium phosphate, Ca₃(PO₄)₂. Solution: atoms are 3 Ca, 2 P, 8 O. (3 × 40.08) + (2 × 30.97) + (8 × 16.00) = 120.24 + 61.94 + 128.00 = 310.18 g/mol.
Question 3: Calculate the molar mass of sodium carbonate decahydrate, Na₂CO₃·10H₂O. Solution: anhydrous Na₂CO₃ is (2 × 22.99) + 12.011 + (3 × 16.00) = 45.98 + 12.011 + 48.00 = 105.99 g/mol; adding 10 H₂O = 10 × 18.02 = 180.2 g/mol gives a total of 105.99 + 180.2 = 286.19 g/mol.
FAQ
What if my formula has no parentheses or hydrate water at all — do I still need all four steps? Yes, though Step 1 becomes trivial. Even a simple formula like CO₂ benefits from explicitly writing "1 C, 2 O" before doing arithmetic, because that habit prevents careless errors from creeping in on more complex formulas later.
Can I use a calculator or online tool instead of doing this by hand? For checking your work, yes — but you should be able to do this by hand reliably, because exams rarely allow outside tools, and understanding the mechanics deeply helps you catch your own mistakes.
Do significant figures really matter this much? For most classroom purposes, keeping three to four significant figures through intermediate steps and rounding the final answer to two decimal places is a safe, widely accepted convention. Always check your specific course's expectations.
Summary
Molar mass calculation follows four repeatable steps: parse the formula completely (including parentheses and hydrate water), look up atomic masses from a consistent periodic table, multiply each atomic mass by its atom count and sum the contributions, then report the final value with correct rounding and units (g/mol). The method never changes, no matter how complex the formula — only the number of terms you are adding grows.
Practice this method deliberately on formulas of increasing complexity: start with diatomic elements, move to simple binary compounds, then polyatomic-ion-containing compounds, and finally hydrates. Once the procedure becomes automatic, molar mass stops being a source of errors and becomes simply the reliable first step of every stoichiometry, solution, or yield problem you encounter.
References and further reading
Standard atomic weight values used throughout this guide follow the conventions published by IUPAC's Commission on Isotopic Abundances and Atomic Weights. Most introductory chemistry textbooks present a nearly identical four-step method under headings like "molar mass," "formula mass," or "gram-formula mass" — cross-referencing your specific textbook's worked examples alongside this guide is an effective way to reinforce the procedure with additional practice problems.
Related compounds
Related guides
- What Is Molar Mass?
- Stoichiometry Basics
- Common Molar Mass Mistakes
- The Mole Concept
- Percent Composition by Mass
- Empirical and Molecular Formulas
Also try the molar mass calculator and periodic table.
Standards: how we calculate · editorial policy

