How to Calculate Molar Mass

Add up atomic weights times subscripts to get molar mass in g/mol. Handles parentheses like Ca(OH)₂ and hydrates like CuSO₄·5H₂O, with worked examples.

How to Calculate Molar Mass

You cannot look up the molar mass of any substance in a single table, so you must learn how to calculate molar mass yourself from the elements in the formula and their atomic weights from the periodic table. Calculate molar mass for any chemical formula step by step using the 2021 IUPAC CIAAW standard atomic weights and the SI definition of the mole.

Molar mass (M) is the mass in grams of one mole of a substance. One mole always contains exactly 6.02214076 × 10²³ particles (Avogadro's constant, BIPM SI Brochure 9th ed.). The conversion from grams to moles is simple division: moles = mass (g) / molar mass (g/mol). The most common mistake is treating the molar mass as a fixed number for every substance.

What Molar Mass Actually Is

Molar mass is the bridge between the microscopic world of atoms and molecules and the macroscopic world of grams and kilograms that you measure in a lab. For any substance, the molar mass in g mol⁻¹ is numerically equal to the substance's molecular weight in atomic mass units (amu). One amu equals exactly 1 g/mol; the number is the same, only the unit changes.

The mole is a counting unit, exactly like a dozen, but for atoms and molecules. One mole of carbon dioxide (CO₂) contains 6.02214076 × 10²³ CO₂ molecules. The mass of that sample is the molar mass: 44.01 g for CO₂. The formula linking them is n = m / M, where n is moles, m is mass in grams, and M is molar mass in g mol⁻¹. This relationship is the foundation of stoichiometry (OpenStax Chemistry 2e, sections 3.1 and 4.3).

Step-by-Step With a Simple Molecule

To calculate molar mass, you need the chemical formula and the standard atomic weights from the periodic table. Use the 2021 IUPAC CIAAW table (ciaaw.org) for the most accurate values. Follow these steps for any compound.

Example: Water (H₂O)

Write the formula: H₂O. Count the atoms: 2 hydrogen atoms and 1 oxygen atom. Look up the atomic weights: H = 1.008 g/mol, O = 15.999 g/mol (IUPAC CIAAW). Multiply each by its subscript: 2 × 1.008 = 2.016 g/mol for hydrogen; 1 × 15.999 = 15.999 g/mol for oxygen. Add them: 2.016 + 15.999 = 18.015 g/mol. The molar mass of water is 18.015 g mol⁻¹. This is the value used in precise lab work; many textbooks round to 18.0 g/mol, but that introduces an error of 0.015 g/mol.

Formulas With Parentheses

When a formula contains parentheses, treat the subscript outside the parentheses as a multiplier for every atom inside. This is common for ionic compounds like calcium hydroxide.

Example: Calcium Hydroxide, Ca(OH)₂

Write the formula: Ca(OH)₂. The subscript 2 outside the parentheses means you have 1 calcium atom, 2 oxygen atoms, and 2 hydrogen atoms. Atomic weights: Ca = 40.078 g/mol, O = 15.999 g/mol, H = 1.008 g/mol. Calculate: Ca: 1 × 40.078 = 40.078 g/mol; O: 2 × 15.999 = 31.998 g/mol; H: 2 × 1.008 = 2.016 g/mol. Add: 40.078 + 31.998 + 2.016 = 74.092 g/mol. The molar mass of calcium hydroxide is 74.092 g mol⁻¹.

The same principle applies to any polyatomic ion in parentheses, such as sulfate (SO₄) or phosphate (PO₄). Multiply the entire group by the subscript outside the parentheses.

Hydrates

A hydrate is a compound that includes water molecules within its crystal structure. The water is part of the formula and must be included in the molar mass calculation. The dot (·) in the formula indicates water of hydration.

Example: Copper(II) Sulfate Pentahydrate, CuSO₄·5H₂O

Write the formula: CuSO₄·5H₂O. This means 1 copper atom, 1 sulfur atom, 4 oxygen atoms from the sulfate, and 5 water molecules. Each water molecule has 2 hydrogen and 1 oxygen, so the totals are: Cu: 1 × 63.546 = 63.546 g/mol; S: 1 × 32.06 = 32.06 g/mol; O from sulfate: 4 × 15.999 = 63.996 g/mol; from water: 5 × (2 × 1.008 + 15.999) = 5 × 18.015 = 90.075 g/mol. Add all: 63.546 + 32.06 + 63.996 + 90.075 = 249.677 g/mol. The molar mass of copper(II) sulfate pentahydrate is 249.677 g mol⁻¹. Forgetting the water of hydration is a common failure mode that introduces an error of about 90 g/mol.

Avoiding Failure Modes

The most frequent mistake is using the atomic mass of an element instead of the molecular mass of a diatomic molecule. For example, oxygen gas (O₂) has a molar mass of 31.998 g/mol, not 15.999 g/mol. A second common error is using the wrong formula: the molar mass formula is M = m / n, not m = n × M. Third, unit mismatch: always use mass in grams, not kilograms, in the conversion. Fourth, significant figure error: report your answer to the same number of significant figures as the least precise atomic weight you used. Fifth, hydrate error: include water of hydration as shown above.

Molar Mass vs Molecular Weight vs Formula Mass

These three terms are often used interchangeably but have distinct meanings. Molar mass is the mass of one mole of a substance in grams per mole (g/mol). Molecular weight is the sum of the atomic weights of atoms in a single molecule, expressed in atomic mass units (amu). Formula mass is the same sum but for a formula unit, used for ionic compounds like NaCl. Numerically, they are identical: water has a molar mass of 18.015 g/mol, a molecular weight of 18.015 amu, and a formula mass of 18.015 amu.

The confusion pair here is molar mass vs. molecular weight. The distinguishing feature is units: molar mass has units of g/mol, molecular weight is dimensionless in amu. In practice, you can use the same number for both. For stoichiometry calculations, always use molar mass in g/mol.

How Many Decimal Places of Atomic Weight to Use

The IUPAC CIAAW standard atomic weights are given to varying precision, typically one or two decimal places for most elements, and up to six for elements like chlorine (35.45). For high-school problems, use the values from your periodic table as given. For first-year college work, use the IUPAC values from ciaaw.org and report your final molar mass to the same number of decimal places as the least precise atomic weight in the formula. For example, if you use H = 1.008 and O = 15.999, your answer should have three decimal places. For precise lab work requiring the correct number of significant figures, use the standard uncertainty values published by IUPAC and round your final answer accordingly. The gap between using 18.0 g/mol and 18.015 g/mol for water is 0.015 g/mol, which is relevant in accurate solution preparation but often ignored in high school.

Who This Subject Suits

Calculating molar mass from a formula suits anyone who needs to convert between grams and moles: high-school chemistry students completing stoichiometry homework, first-year college students checking lab reports, lab technicians preparing solutions of a specific molarity from a solid reagent, and tutors demonstrating the conversion process. It does not suit someone looking for a theoretical derivation of the mole concept from first principles or a history of Avogadro's number. For that, go to OpenStax Chemistry or a general chemistry textbook. The single thing that most often goes wrong is forgetting to multiply the atomic weight by the subscript for each element, especially when parentheses are present.

Common Questions

Why is the molar mass of an element not a whole number?

Because it is a weighted average of all the element's naturally occurring isotopes. For example, chlorine has two stable isotopes, 35Cl and 37Cl, giving an average atomic weight of 35.45 g/mol, not a whole number.

How do I know how many significant figures to use in my answer?

Use the same number of decimal places as the least precise atomic weight in the formula. If you use H = 1.008 and O = 15.999, your answer should have three decimal places. For high precision, consult the IUPAC standard uncertainty values.

What is the exact value of Avogadro's constant and why does it matter?

The exact value is 6.02214076 × 10²³ mol⁻¹, as defined in the 2019 SI revision. It matters for high-precision work because the older 6.022 × 10²³ introduces a 0.0023% error, which is negligible for most problems but not for research.

How do I convert grams to moles for a hydrated compound?

Calculate the molar mass including the water of hydration, then divide the mass in grams by that molar mass. For CuSO₄·5H₂O, use 249.677 g/mol, not the anhydrous value.