How to Calculate Molar Mass — Formula, Steps & Worked Examples (2026)

How to calculate molar mass using the formula with step-by-step worked examples, molecular formula, and chemistry calculation guide (2026).

Every stoichiometry calculation in chemistry starts with the same input: molar mass. It is the number you need to convert grams to moles, prepare a solution of specific concentration, determine an empirical formula, or balance a chemical equation in mass terms.

Yet this is also where most calculation errors originate — not in the division or multiplication, but in reading the chemical formula incorrectly, missing a subscript, or mishandling parentheses.
Use the calculator below to build up any compound element by element, then read on for the complete method.

⚡ Instant Molar Mass Calculator

For hydrates, add H₂O as an element row (18.015 g/mol) with the count equal to the number of water molecules.

This guide covers the complete method: what molar mass is, how to calculate it for elements, simple compounds, complex compounds with nested parentheses, and hydrates — plus how to use it in the calculations that actually appear in coursework and exams.

Quick Answer:
Molar Mass = Sum of (Atomic Mass × Number of Atoms) for every element in the formula
Example: H₂O = (2 × 1.008) + (1 × 15.999) = 18.015 g/mol

What Is Molar Mass?

Molar mass is the mass of exactly one mole of a substance, expressed in grams per mole (g/mol). It is calculated directly from the periodic table by adding the atomic masses of every atom in the compound's chemical formula.

Molar Mass (M) = Σ (Atomic Mass of Element × Number of Atoms of that Element)

The numerical value of molar mass in g/mol is always equal to the molecular mass in atomic mass units (amu) — only the units differ. This equivalence comes from the way the mole and the atomic mass unit were both defined relative to carbon-12, which is also the foundation of why Avogadro's Number takes the value it does. The full explanation of that connection is in our guide on what Avogadro's Number means and where it comes from.

Molar Mass vs Molecular Weight vs Formula Weight

These three terms are often used interchangeably in textbooks, but they are technically distinct:

TermMeaningUnitsUsed For
Molar MassMass of one mole of substanceg/molAll practical calculations
Molecular WeightRelative molecular mass (ratio to 1/12 of carbon-12 mass)DimensionlessTheoretical / comparative context
Formula WeightMass of one formula unit of an ionic compoundg/molIonic compounds that don't form discrete molecules

For all practical chemistry — stoichiometry, solution preparation, gas law problems — molar mass in g/mol is the term and unit you use. The distinction matters primarily in rigorous physical chemistry and metrology, not in standard coursework.

The Four-Step Method — Works for Every Compound

These four steps apply to every compound, regardless of complexity.

Step 1 — Write Out the Chemical Formula Clearly

If the formula has brackets, expand them first. If it is a hydrate, note the number of water molecules separately.

Step 2 — List Every Element and Count Its Atoms

Go through the formula systematically from left to right. Subscripts outside brackets multiply everything inside — this is where most errors happen.

Step 3 — Find the Atomic Mass of Each Element

Use the periodic table and keep at least three decimal places for accuracy. Standard atomic masses used throughout this guide:

ElementSymbolAtomic Mass (g/mol)
HydrogenH1.008
CarbonC12.011
NitrogenN14.007
OxygenO15.999
SodiumNa22.990
MagnesiumMg24.305
PhosphorusP30.974
SulfurS32.065
ChlorineCl35.453
PotassiumK39.098
CalciumCa40.078
IronFe55.845
CopperCu63.546
ZincZn65.38

Step 4 — Multiply and Add

Multiply each element's atomic mass by its atom count, then add all results together. The total is the molar mass in g/mol.

Type 1 — Simple Elements

For single elements, the molar mass is simply the atomic mass from the periodic table, expressed in g/mol.

Example 1 — Iron (Fe)

Iron's atomic mass = 55.845 amu.
Molar mass of Fe = 55.845 g/mol

Example 2 — Diatomic Elements (The Common Trap)

Several elements exist naturally as diatomic molecules: H₂, N₂, O₂, F₂, Cl₂, Br₂, I₂.

When a problem refers to "oxygen gas" or "chlorine gas," it means O₂ and Cl₂ — not single atoms. The molar mass must reflect the diatomic formula.

Molar mass of O₂:
O: 2 × 15.999 = 31.998 g/mol

Molar mass of Cl₂:
Cl: 2 × 35.453 = 70.906 g/mol

Using 16 g/mol for oxygen gas instead of 32 g/mol halves your answer entirely. Always check whether the problem specifies an element in atomic or molecular form.

Type 2 — Simple Compounds (No Brackets)

For compounds without brackets, go element by element through the formula.

Example 3 — Water (H₂O)

ElementAtomsAtomic MassContribution
H21.0082.016
O115.99915.999
Total18.015 g/mol

Example 4 — Sulfuric Acid (H₂SO₄)

ElementAtomsAtomic MassContribution
H21.0082.016
S132.06532.065
O415.99963.996
Total98.077 g/mol

Example 5 — Sodium Oxide (Na₂O)

ElementAtomsAtomic MassContribution
Na222.99045.980
O115.99915.999
Total61.979 g/mol

Na₂O is one of the most frequently tested compounds in mole calculations. Once you have its molar mass, the next step is almost always a grams-moles conversion — worked through fully in our article on converting grams to moles.

Type 3 — Compounds With Brackets (Parentheses)

This is where most students make errors. When a formula has brackets with a subscript outside — like Ca(OH)₂ — that subscript multiplies every atom inside the bracket.

Rule: Subscript outside bracket × every atom inside bracket.

Example 6 — Calcium Hydroxide Ca(OH)₂

The subscript 2 means there are 2 OH groups. Expand first:
Ca(OH)₂ = Ca + 2O + 2H

ElementAtomsAtomic MassContribution
Ca140.07840.078
O215.99931.998
H21.0082.016
Total74.092 g/mol

Common mistake: Multiplying only H by 2 and forgetting O. Both atoms inside the bracket get multiplied.

Example 7 — Calcium Phosphate Ca₃(PO₄)₂

Expand the bracket: (PO₄)₂ = 2P + 8O

Ca₃(PO₄)₂ = 3Ca + 2P + 8O

ElementAtomsAtomic MassContribution
Ca340.078120.234
P230.97461.948
O815.999127.992
Total310.174 g/mol

Example 8 — Aluminium Sulfate Al₂(SO₄)₃

Expand: (SO₄)₃ = 3S + 12O

ElementAtomsAtomic MassContribution
Al226.98253.964
S332.06596.195
O1215.999191.988
Total342.147 g/mol

Type 4 — Hydrates

Hydrates are ionic compounds that have water molecules incorporated into their crystal structure. The dot (·) in the formula means "combined with" — not multiplication.

M(hydrate) = M(anhydrous compound) + n × 18.015

Where n = number of water molecules per formula unit.

Example 9 — Copper Sulfate Pentahydrate CuSO₄·5H₂O

Step 1 — Anhydrous CuSO₄:

ElementAtomsAtomic MassContribution
Cu163.54663.546
S132.06532.065
O415.99963.996
CuSO₄ Total159.607 g/mol

Step 2 — Add water molecules:
5 × 18.015 = 90.075 g/mol

Step 3 — Final answer:
159.607 + 90.075 = 249.682 g/mol

Using the anhydrous molar mass (159.6) instead of the hydrate (249.7) means you are adding far less copper sulfate than intended — a critical error in lab work.

Example 10 — Washing Soda Na₂CO₃·10H₂O

Na₂CO₃: (2 × 22.990) + 12.011 + (3 × 15.999) = 105.988 g/mol

10 × H₂O: 10 × 18.015 = 180.150 g/mol

Total: 105.988 + 180.150 = 286.138 g/mol

Organic Compounds — Handling Large Molecules

Organic compounds follow the same four-step method. For large formulas, work through each element type systematically to avoid missing atoms.

Example 11 — Glucose C₆H₁₂O₆

ElementAtomsAtomic MassContribution
C612.01172.066
H121.00812.096
O615.99995.994
Total180.156 g/mol

Example 12 — Aspirin C₉H₈O₄

ElementAtomsAtomic MassContribution
C912.011108.099
H81.0088.064
O415.99963.996
Total180.159 g/mol

Notice that glucose and aspirin have almost identical molar masses despite being completely different compounds — a reminder that molar mass alone cannot identify a substance.

Molar Mass and Percent Composition

Once you have the molar mass, percent composition of each element follows directly:

% of element = (Atoms × Atomic Mass) ÷ Molar Mass × 100

Example — Percent Composition of H₂SO₄

Molar mass = 98.077 g/mol

  • % H = (2 × 1.008) ÷ 98.077 × 100 = 2.06%
  • % S = 32.065 ÷ 98.077 × 100 = 32.69%
  • % O = (4 × 15.999) ÷ 98.077 × 100 = 65.25%
  • Check: 2.06 + 32.69 + 65.25 = 100% 

How Molar Mass Connects to the Rest of Chemistry

Grams to moles and back: Every conversion between grams and moles passes through molar mass. The formula Moles = Grams ÷ Molar Mass is the single most used equation in quantitative chemistry. To put your molar mass calculations directly to work, the Moles to Grams Solver handles any compound instantly — useful for checking homework before submission.

Stoichiometry: Balanced equations give mole ratios. Converting those ratios to gram quantities requires an accurate molar mass for every substance in the equation.

Molarity: Preparing a 1 mol/L NaOH solution means dissolving exactly 39.997 grams in enough water to make 1 litre. The gram quantity comes directly from molar mass.

Empirical and molecular formulas: Finding a molecular formula from empirical data means dividing the known molecular mass by the empirical formula mass — itself a molar mass calculation.

For pre-calculated values across 60+ compounds organised by category — acids, bases, salts, gases, organic, hydrates — the molar mass reference table saves time during revision and lab work.

Common Mistakes — And How to Avoid Them

Mistake 1 — Ignoring Subscripts Outside Brackets

In Ca(OH)₂, the 2 multiplies both O and H. Many students only multiply H. Always expand brackets completely before calculating.

Mistake 2 — Using Atomic Molar Mass for Diatomic Gases

Oxygen gas is O₂ = 31.998 g/mol, not O = 15.999 g/mol. The same applies to H₂, N₂, F₂, Cl₂, Br₂, and I₂.

Mistake 3 — Using Anhydrous Molar Mass for a Hydrate

CuSO₄·5H₂O = 249.7 g/mol, not 159.6 g/mol. Always check whether your compound has dot notation in its name or on the reagent bottle label.

Mistake 4 — Rounding Atomic Masses Too Early

Rounding hydrogen to 1 instead of 1.008 creates errors that compound in large organic molecules. Round only the final answer.

Mistake 5 — Confusing Molar Mass Units

Molar mass is in g/mol. Molecular mass is in amu. They are numerically equal but using amu in a moles calculation breaks unit cancellation. Always use g/mol.

Mistake 6 — Forgetting Isotopes in Specialised Problems

Standard molar mass uses natural isotope abundance averages — correct for most chemistry. In NMR spectroscopy or nuclear chemistry, specific isotopes like ¹³C or deuterium (²H) have different masses and must be calculated separately.

Quick Practice Problems

Q1. Calculate the molar mass of KNO₃.

Q2. Calculate the molar mass of Al₂O₃.

Q3. Calculate the molar mass of Mg(OH)₂.

Q4. Calculate the molar mass of Fe₂(SO₄)₃.

Q5. Calculate the molar mass of FeSO₄·7H₂O.

Q6. How many moles are in 49.05 grams of H₂SO₄?

Answers

  1. K: 39.098 + N: 14.007 + O: 3 × 15.999 = 101.102 g/mol
  2. Al: 2 × 26.982 + O: 3 × 15.999 = 101.961 g/mol
  3. Mg: 24.305 + O: 2 × 15.999 + H: 2 × 1.008 = 58.319 g/mol
  4. Fe: 2 × 55.845 + S: 3 × 32.065 + O: 12 × 15.999 = 399.873 g/mol
  5. FeSO₄: 151.906 g/mol + 7 × 18.015 = 278.011 g/mol
  6. Moles = 49.05 ÷ 98.077 = 0.5 mol

Summary — Molar Mass by Compound Type

Compound TypeExampleKey StepMolar Mass
Simple elementFeAtomic mass directly55.845 g/mol
Diatomic elementO₂2 × atomic mass31.998 g/mol
Simple compoundH₂SO₄Add all atoms98.077 g/mol
Compound with bracketsCa(OH)₂Expand brackets first74.092 g/mol
Complex bracket compoundCa₃(PO₄)₂Expand all brackets310.174 g/mol
HydrateCuSO₄·5H₂OAnhydrous + n × 18.015249.682 g/mol
Organic moleculeGlucose C₆H₁₂O₆Count all atoms carefully180.156 g/mol

Frequently Asked Questions

What is the formula for calculating molar mass?

Molar Mass = Σ (Atomic Mass × Number of Atoms). For each element in the formula, multiply its periodic table atomic mass by how many times it appears, then add all results.

How do I handle brackets in molar mass calculations?

The subscript outside the bracket multiplies every atom inside it. For Ca(OH)₂ — the 2 multiplies both O and H, giving 2 oxygens and 2 hydrogens. Expand brackets fully before counting atoms.

What is the molar mass of water?

H₂O: (2 × 1.008) + 15.999 = 18.015 g/mol. Approximated as 18 g/mol for quick calculations.

How do I calculate molar mass of a hydrate?

Add the molar mass of the anhydrous compound to n × 18.015, where n is the number of water molecules. For CuSO₄·5H₂O: 159.607 + (5 × 18.015) = 249.682 g/mol.

Can two different compounds have the same molar mass?

Yes — glucose and fructose are both C₆H₁₂O₆ at 180.156 g/mol. They are structural isomers. Molar mass alone cannot identify a compound.

How many significant figures should molar mass have?

Use three decimal places for atomic masses during calculation, rounding only the final answer. For NEET and JEE, three significant figures is standard.

What is the molar mass of Na₂O?

(2 × 22.990) + 15.999 = 61.979 g/mol. This value feeds directly into the Na₂O mole calculation covered in our article on 3.7 moles of Na₂O.

Is formula mass the same as molar mass?

For practical purposes, yes. For ionic compounds like NaCl, "formula mass" is technically more accurate since ionic compounds form lattice structures rather than discrete molecules. The calculation method is identical either way.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top