Molar Mass Calculation: Step-by-Step Worked Examples for Compounds, Hydrates, and Unknown Formulas
By ChemistryIQ Team · April 17, 2026
Direct Answer: Molar Mass in Three Steps
Molar mass is the mass in grams of one mole of a substance (6.022 × 10²³ particles). To calculate it: (1) identify every atom in the chemical formula, (2) look up each atom's atomic mass on the periodic table, (3) multiply by the number of times each atom appears and sum all contributions. The result has units of grams per mole (g/mol).
For water (H₂O): 2(1.008) + 1(16.00) = 18.016 g/mol. For sodium chloride (NaCl): 22.99 + 35.45 = 58.44 g/mol. For glucose (C₆H₁₂O₆): 6(12.01) + 12(1.008) + 6(16.00) = 180.16 g/mol.
The three places students trip up are: (1) hydrates, where water molecules in the crystal structure have to be counted as part of the total mass (CuSO₄·5H₂O has five waters adding 90.08 g/mol on top of the CuSO₄ base mass); (2) polyatomic ions with subscripts outside parentheses, where the whole group gets multiplied (Ca(NO₃)₂ has two nitrate groups, contributing 2 × [14.01 + 3(16.00)]); (3) unknowns, where percent composition has to be converted into mole ratios before the formula can be determined.
Step-by-Step Method for Any Formula
The systematic approach works for any formula, no matter how complex:
Step 1 — Write out every atom. For H₂SO₄: H appears twice, S once, O four times. Write: H = 2, S = 1, O = 4.
Step 2 — Look up atomic masses. Use four-digit precision for exam work: H = 1.008 C = 12.01 N = 14.01 O = 16.00 S = 32.07 Na = 22.99 Cl = 35.45 K = 39.10 Ca = 40.08 Fe = 55.85 (Most problems use values rounded to 2 decimal places — this is standard for undergraduate general chemistry.)
Step 3 — Multiply and sum: H: 2 × 1.008 = 2.016 S: 1 × 32.07 = 32.07 O: 4 × 16.00 = 64.00 Total = 2.016 + 32.07 + 64.00 = 98.086 g/mol (often rounded to 98.09 g/mol)
This works for every molecular or empirical formula. Complications only appear when parentheses, hydrates, or unknowns are involved.
Handling Parentheses in Polyatomic Formulas
Parentheses act as grouping symbols. Any subscript outside the parentheses multiplies EVERY atom inside.
Example 1 — Calcium nitrate, Ca(NO₃)₂: - Ca: 1 × 40.08 = 40.08 - N: 2 × 14.01 = 28.02 (the 2 outside the parenthesis multiplies the N inside) - O: 2 × 3 × 16.00 = 96.00 (the 2 outside multiplies all 3 oxygens inside) - Total = 40.08 + 28.02 + 96.00 = 164.10 g/mol
Example 2 — Aluminum sulfate, Al₂(SO₄)₃: - Al: 2 × 26.98 = 53.96 - S: 3 × 32.07 = 96.21 - O: 3 × 4 × 16.00 = 192.00 (the 3 outside multiplies all 4 oxygens) - Total = 53.96 + 96.21 + 192.00 = 342.17 g/mol
Example 3 — Ammonium phosphate, (NH₄)₃PO₄: - N: 3 × 14.01 = 42.03 - H: 3 × 4 × 1.008 = 12.096 (three ammonium groups, each with four hydrogens) - P: 1 × 30.97 = 30.97 - O: 4 × 16.00 = 64.00 - Total = 42.03 + 12.096 + 30.97 + 64.00 = 149.10 g/mol
The trap: students forget to distribute the outer subscript through every element inside the parentheses. Walk through each element individually — don't shortcut.
Hydrates: Water of Crystallization Counts
Hydrates are ionic compounds that include water molecules within their crystal structure. The water molecules are part of the formula unit and contribute to the molar mass.
The notation uses a centered dot (·) or a period to separate the base formula from the water: CuSO₄·5H₂O means one copper sulfate formula unit with five water molecules bound in the crystal.
Example 1 — Copper(II) sulfate pentahydrate, CuSO₄·5H₂O: - Cu: 1 × 63.55 = 63.55 - S: 1 × 32.07 = 32.07 - O (from sulfate): 4 × 16.00 = 64.00 - H (from water): 5 × 2 × 1.008 = 10.08 - O (from water): 5 × 16.00 = 80.00 - Total = 63.55 + 32.07 + 64.00 + 10.08 + 80.00 = 249.70 g/mol
Alternative (cleaner) approach: calculate CuSO₄ first, then add 5 × (molar mass of H₂O): - CuSO₄ = 63.55 + 32.07 + 64.00 = 159.62 - 5 H₂O = 5 × 18.016 = 90.08 - Total = 159.62 + 90.08 = 249.70 g/mol
Example 2 — Iron(II) sulfate heptahydrate, FeSO₄·7H₂O: - FeSO₄ = 55.85 + 32.07 + 64.00 = 151.92 - 7 H₂O = 7 × 18.016 = 126.11 - Total = 151.92 + 126.11 = 278.03 g/mol
When a problem asks for 'the mass of water released when a hydrate is heated,' you use the water portion only. When it asks for total hydrate mass, include everything.
Percent Composition from Molar Mass
Percent composition tells you what fraction of a compound's mass comes from each element. For element X in formula M_compound:
% X = (mass of X in formula ÷ total molar mass) × 100%
Example — sodium chloride (NaCl), molar mass 58.44 g/mol: - % Na = (22.99 ÷ 58.44) × 100% = 39.34% - % Cl = (35.45 ÷ 58.44) × 100% = 60.66% - Check: 39.34 + 60.66 = 100.00 ✓
Example — glucose (C₆H₁₂O₆), molar mass 180.16 g/mol: - % C = (6 × 12.01 ÷ 180.16) × 100% = 40.00% - % H = (12 × 1.008 ÷ 180.16) × 100% = 6.71% - % O = (6 × 16.00 ÷ 180.16) × 100% = 53.29% - Check: 40.00 + 6.71 + 53.29 = 100.00 ✓
This conversion works both directions. Given percent composition, you can work backward to find the empirical formula. The method: assume 100 g of sample, convert each element's percent to grams, convert grams to moles, divide by the smallest mole count to get whole-number ratios.
Worked Example: Unknown Compound from Percent Composition
A compound is 40.0% carbon, 6.71% hydrogen, and 53.3% oxygen by mass. Its molar mass is 180 g/mol. Find the molecular formula.
Step 1 — Assume 100 g of the sample. The percents become grams: - 40.0 g C, 6.71 g H, 53.3 g O
Step 2 — Convert grams to moles using the atomic mass of each element: - C: 40.0 ÷ 12.01 = 3.33 mol - H: 6.71 ÷ 1.008 = 6.66 mol - O: 53.3 ÷ 16.00 = 3.33 mol
Step 3 — Find the smallest mole count and divide everything by it: - C: 3.33 ÷ 3.33 = 1.00 - H: 6.66 ÷ 3.33 = 2.00 - O: 3.33 ÷ 3.33 = 1.00
Step 4 — Write the empirical formula from the ratios: CH₂O. Empirical molar mass = 12.01 + 2(1.008) + 16.00 = 30.03 g/mol.
Step 5 — Find the molecular formula by comparing given molar mass to empirical molar mass: - Ratio = 180 ÷ 30.03 = 6 - Multiply each subscript in the empirical formula by 6: C₆H₁₂O₆
The unknown is glucose (or one of its isomers — the formula doesn't distinguish between structural isomers like fructose and glucose).
The same method works for any compound given percent composition plus molar mass. The only subtle step is making sure all mole ratios in Step 3 come out to whole numbers or clean fractions. If they don't, multiply all numbers by a small integer (2, 3, 4) until they do.
Common Mistakes and How to Avoid Them
Mistake 1 — Forgetting to multiply the outer subscript through parentheses. Student writes Al₂(SO₄)₃ and calculates S as only 1 × 32.07 instead of 3 × 32.07. Fix: always distribute the outer subscript to every element inside before adding anything.
Mistake 2 — Ignoring the water in a hydrate. Student asked for molar mass of FeSO₄·7H₂O gives 151.92 instead of 278.03. Fix: hydrates always include the water — always add 7 × 18.016 (or whatever the hydration number is).
Mistake 3 — Using atomic number instead of atomic mass. Student looks at the periodic table and uses 11 for sodium instead of 22.99. Fix: atomic MASS is the larger number, usually with decimals (22.99 for Na). Atomic NUMBER is the whole number above the symbol (11 for Na).
Mistake 4 — Rounding too early. Student rounds 12.01 to 12 and 1.008 to 1 for glucose, gets 180 instead of 180.16. This is usually acceptable but for ACS exams or precise problems, carry 2 decimal places through the calculation and round only at the end.
Mistake 5 — Mixing up empirical and molecular formulas. CH₂O is the empirical formula for multiple compounds including formaldehyde, acetic acid, and glucose. The molecular formula requires the given molar mass to pin down which multiple of the empirical formula is correct.
Mistake 6 — Using the wrong number of significant figures. Atomic masses are given to 4 significant figures typically. A molar mass calculation should have 4 or 5 sig figs in the answer — not 2 or 10. For example, water's molar mass is 18.02 g/mol (4 sig figs), not 18.0158 (overstating precision) or 18 (understating).
Common Conversions That Use Molar Mass
Molar mass is rarely the final answer — it's usually a bridge to something else. The four most common conversions:
Conversion 1 — Grams to moles: moles = mass (g) ÷ molar mass (g/mol) Example: How many moles in 250 g of NaCl? moles = 250 ÷ 58.44 = 4.28 mol
Conversion 2 — Moles to grams: mass (g) = moles × molar mass (g/mol) Example: What is the mass of 0.500 mol of H₂SO₄? mass = 0.500 × 98.09 = 49.05 g
Conversion 3 — Molarity to mass (for a known volume): mass = Molarity × Volume × molar mass Example: How many grams of NaCl are in 250 mL of 0.100 M NaCl? mass = 0.100 × 0.250 × 58.44 = 1.46 g
Conversion 4 — Particles to mass (or vice versa): uses Avogadro's number as a bridge. Example: What is the mass of 3.01 × 10²³ molecules of water? moles = 3.01 × 10²³ ÷ 6.022 × 10²³ = 0.500 mol mass = 0.500 × 18.02 = 9.01 g
All of these require molar mass as the first or second step. Master the calculation and most stoichiometry problems become mechanical.
FAQs
Common questions about molar mass calculation
They are the same number with different units. Molar mass is given in grams per mole (g/mol) — the mass of one mole of substance. Molecular weight (or formula weight) is given in atomic mass units (amu or u) — the weighted average mass of one molecule. Numerically they are identical, which is why they are often used interchangeably. For H₂O, both are 18.02 (18.02 g/mol or 18.02 amu). Stick with molar mass in g/mol for stoichiometry problems because the units multiply cleanly with moles and masses.
Molar mass calculation is the same for both — sum the atomic masses of every atom in the formula. The formula just represents different things: for molecular compounds (like H₂O or CO₂), the formula represents one actual molecule. For ionic compounds (like NaCl or CaCO₃), the formula represents one formula unit (the smallest ratio of ions). But the math is identical. NaCl has a molar mass of 58.44 g/mol whether you think of it as 'one formula unit' or 'one mole of formula units.'
Atomic mass on the periodic table is a weighted average of all naturally occurring isotopes of the element, weighted by natural abundance. Chlorine, for example, is about 75.8% Cl-35 (mass 34.97) and 24.2% Cl-37 (mass 36.97), giving a weighted average of 35.45 amu. This is why you use 35.45 for chlorine in molar mass calculations — it accounts for the natural isotope distribution you'd actually encounter.
No. Every chemistry exam provides a periodic table. You need to know how to USE the atomic masses, which means understanding that atomic mass is the larger decimal number below the element symbol (not the atomic number above). You should know approximate values for common elements (H = 1, C = 12, N = 14, O = 16, Na = 23, Cl = 35.5, S = 32) so you can sanity-check your calculations, but precise values always come from the periodic table.
An empirical formula is the simplest whole-number ratio of atoms in a compound. The molecular formula is the actual number of atoms in one molecule. Glucose has molecular formula C₆H₁₂O₆ and empirical formula CH₂O. You can find the empirical formula from percent composition alone, but to find the molecular formula you also need the molar mass. The ratio (given molar mass ÷ empirical molar mass) tells you how many empirical formula units make up one molecule. This ratio should always be a whole number; if it is not, re-check your empirical formula for rounding errors.
Yes. Snap a photo of any chemical formula or stoichiometry problem and ChemistryIQ identifies each element, applies the correct subscripts (including parentheses and hydrates), looks up atomic masses, and walks through the calculation step by step. It also handles the downstream conversions — grams to moles, moles to particles, molarity to mass — and shows the cancellation of units so the logic is clear, not just the final answer.