Skip to content
Physics 10 min read

How to Calculate Molar Mass Step by Step

Observation recorded
Molar mass of copper sulfate pentahydrate, CuSO4·5H2O, on a lab board: 249.68 g/mol with the mass share of copper, sulfur, oxygen and hydrogen, and 12.5 g of blue crystals on a balance equal to 0.05006 mol

A bottle of copper sulfate on a school shelf says CuSO4·5H2O on the label, and the worksheet asks you to make up a solution containing 0.050 mol. Use the molar mass of plain CuSO4, 159.60 g/mol, and you weigh 7.98 g. Use the right one, 249.68 g/mol, and you weigh 12.48 g. The first answer is 36% short, and the only difference is five water molecules that most students forget are there.

Molar mass is the bridge between the grams on a balance and the number of particles chemistry actually cares about. This post shows the method by hand, step by step, with four worked examples, then the traps that cost marks. Every number here also comes out of the molar mass calculator, which shows the same working for any formula you type.

Quick answerWrite down how many atoms of each element the formula contains, multiply each count by the element's atomic weight from the periodic table, and add the products. The total is the molar mass in g/mol. Water: 2 × 1.0080 + 1 × 15.999 = 18.015 g/mol. A number after a bracket multiplies everything inside it.

What is molar mass?

One mole is 6.02214076 × 1023 particles, a number fixed exactly by the SI since 2019. The molar mass MM of a substance is the mass of one mole of it, in grams per mole. Because of the way the mole was originally defined, the molar mass in g/mol is numerically the same as the relative mass of one formula unit on the atomic scale, where carbon-12 is exactly 12.

That is why the atomic weights printed on a periodic table can be used directly. Oxygen's standard atomic weight is 15.999, so a mole of oxygen atoms has a mass of 15.999 g. A molecule's molar mass is just the sum over its atoms:

M=∑ini Ar,i  g mol−1M = \sum_i n_i \, A_{\mathrm{r},i} \ \ \mathrm{g\,mol^{-1}}

Here nin_i is the number of atoms of element ii in the formula and Ar,iA_{\mathrm{r},i} is its standard atomic weight.

How to calculate molar mass in four steps

The method never changes, however long the formula is:

  1. Read the formula into element counts. A capital letter starts a symbol, a small letter can finish it, and the number after it is the count. No number means one.
  2. Expand brackets and dots. A number after a closing bracket multiplies everything inside. A leading number after a hydrate dot multiplies that whole part.
  3. Multiply each count by its atomic weight. Use one table consistently. This post uses the IUPAC abridged standard atomic weights.
  4. Add the products and round once, at the end.

The atomic weights used below are H 1.0080, C 12.011, N 14.007, O 15.999, Na 22.990, S 32.06, Cl 35.45, Ca 40.078 and Cu 63.546, all from the IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW) abridged table.

Worked example 1: water, H2O

Two hydrogens and one oxygen

M(H2O)=2×1.0080+1×15.999=2.0160+15.999=18.015 g mol−1\begin{aligned} M(\mathrm{H_2O}) &= 2 \times 1.0080 + 1 \times 15.999 \\ &= 2.0160 + 15.999 \\ &= 18.015\ \mathrm{g\,mol^{-1}} \end{aligned}

Hydrogen contributes 2.016 of the 18.015, which is 11.19% of the mass. Oxygen is the other 88.81%, even though it is only one atom in three.

Molar mass of water, H2O: 18.015 g/mol, with oxygen 88.8% and hydrogen 11.2% of the mass, two hydrogen atoms and one oxygen atom, and 10 g of water on a balance equal to 0.5551 mol
Figure 1. Water is 18.015 g/mol. The bar shows each element's share of the mass: oxygen 88.8%, hydrogen 11.2%. The 10 g of water on the balance is 0.5551 mol. Open this in the calculator.

Worked example 2: brackets in calcium hydroxide, Ca(OH)2

The 2 after the bracket doubles both the oxygen and the hydrogen. Writing out the counts first stops you from doubling only the hydrogen, which is the most common slip with this formula.

Counts: Ca 1, O 2, H 2

M(Ca(OH)2)=40.078+2×15.999+2×1.0080=40.078+31.998+2.016=74.092 g mol−1\begin{aligned} M(\mathrm{Ca(OH)_2}) &= 40.078 + 2 \times 15.999 + 2 \times 1.0080 \\ &= 40.078 + 31.998 + 2.016 \\ &= 74.092\ \mathrm{g\,mol^{-1}} \end{aligned}

Most textbooks give 74.09 g/mol. If you had doubled only the H, you would get 58.09, an error of 16 g/mol that no rounding can hide.

Brackets can nest. In potassium ferrocyanide, K4[Fe(CN)6], the 6 applies to both C and N, giving K 4, Fe 1, C 6, N 6 and a molar mass of 368.35 g/mol. Work from the inside out and write the counts down before you multiply.

Worked example 3: glucose, C6H12O6

Counts: C 6, H 12, O 6

M(C6H12O6)=6×12.011+12×1.0080+6×15.999=72.066+12.096+95.994=180.156≈180.16 g mol−1\begin{aligned} M(\mathrm{C_6H_{12}O_6}) &= 6 \times 12.011 + 12 \times 1.0080 + 6 \times 15.999 \\ &= 72.066 + 12.096 + 95.994 \\ &= 180.156 \approx 180.16\ \mathrm{g\,mol^{-1}} \end{aligned}

Glucose is 40.0% carbon, 6.7% hydrogen and 53.3% oxygen by mass. Hydrogen has the most atoms, 12 of 24, and the smallest share.

Molar mass of glucose, C6H12O6: 180.16 g/mol, with carbon 40.0%, hydrogen 6.7% and oxygen 53.3% of the mass, and 5 g on a balance equal to 0.02775 mol
Figure 2. Glucose, C6H12O6, is 180.16 g/mol. Each atom on the board is sized by its atomic weight, and the 5 g sample is 0.02775 mol. Open this in the calculator.

Worked example 4: a hydrate, CuSO4·5H2O

The raised dot is not multiplication in the usual sense. It says that each formula unit of the crystal carries five water molecules, called water of crystallisation. They are inside the crystal you weigh, so they belong in the molar mass.

CuSO4 plus five waters

M(CuSO4)=63.546+32.06+4×15.999=159.602M(5H2O)=5×18.015=90.075M(CuSO4⋅5H2O)=159.602+90.075=249.677≈249.68 g mol−1\begin{aligned} M(\mathrm{CuSO_4}) &= 63.546 + 32.06 + 4 \times 15.999 = 159.602 \\ M(\mathrm{5H_2O}) &= 5 \times 18.015 = 90.075 \\ M(\mathrm{CuSO_4{\cdot}5H_2O}) &= 159.602 + 90.075 = 249.677 \approx 249.68\ \mathrm{g\,mol^{-1}} \end{aligned}

The water is 36.1% of the crystal's mass. That is also how much mass the blue crystals lose when you heat them to the white anhydrous powder, which makes a good practical check.

Molar mass of copper sulfate pentahydrate, CuSO4·5H2O, on a lab board: 249.68 g/mol, mass share copper 25.5%, sulfur 12.8%, oxygen 57.7%, hydrogen 4.0%, and 12.5 g of blue crystals on a balance equal to 0.05006 mol
Figure 3. Copper sulfate pentahydrate is 249.68 g/mol: copper 25.5%, sulfur 12.8%, oxygen 57.7% and hydrogen 4.0% by mass. 12.5 g of the crystals is 0.05006 mol. Open this in the calculator.

How do you convert grams to moles?

Once you have the molar mass, the conversion is one division:

n=mMn = \frac{m}{M}

How many moles in 25 g of calcium carbonate?

M(CaCO3)=40.078+12.011+3×15.999=100.086 g mol−1n=25 g100.086 g mol−1=0.2498 molN=0.2498×6.022×1023=1.50×1023\begin{aligned} M(\mathrm{CaCO_3}) &= 40.078 + 12.011 + 3 \times 15.999 = 100.086\ \mathrm{g\,mol^{-1}} \\ n &= \frac{25\ \mathrm{g}}{100.086\ \mathrm{g\,mol^{-1}}} = 0.2498\ \mathrm{mol} \\ N &= 0.2498 \times 6.022 \times 10^{23} = 1.50 \times 10^{23} \end{aligned}

To go the other way, multiply: 0.5 mol of CaCO3 is 0.5 × 100.086 = 50.04 g. Calcium carbonate is a favourite in exams because 100 g is almost exactly one mole.

Molar mass calculator for calcium carbonate, CaCO3: 100.086 g/mol, the element table with calcium 40.04%, carbon 12.00% and oxygen 47.96%, the working 1 × 40.078 + 1 × 12.011 + 3 × 15.999, and 25 g equal to 0.2498 mol
Figure 4. The calculator's panel for CaCO3: 100.086 g/mol, the mass percent of each element, and the working for 25 g, which is 0.2498 mol or 1.50 × 1023 formula units. Open this in the calculator.

Molar masses of common compounds

CompoundFormulaMolar mass (g/mol)Largest share by mass
WaterH2O18.015O 88.8%
Carbon dioxideCO244.009O 72.7%
MethaneCH416.043C 74.9%
AmmoniaNH317.031N 82.2%
EthanolC2H5OH46.069C 52.1%
Sodium chlorideNaCl58.44Cl 60.7%
Sodium hydroxideNaOH39.997Na 57.5%
Sulfuric acidH2SO498.07O 65.3%
Calcium carbonateCaCO3100.086O 48.0%
GlucoseC6H12O6180.16O 53.3%
SucroseC12H22O11342.30O 51.4%

The number of decimals follows the uncertainty of the atomic weights involved. Anything containing chlorine or sulfur gets two decimals, because IUPAC quotes those elements to two decimals: their isotope mix varies a little between natural samples.

Common mistakes that cost marks

Doubling only the last atom in a bracket. In Mg(NO3)2 the 2 doubles the whole nitrate, so there are 2 nitrogens and 6 oxygens, not 1 and 6 or 2 and 3. The molar mass is 148.31 g/mol.

Dropping the water from a hydrate. The worked example above shows the size of that error: 36% for copper sulfate pentahydrate, and even more for Epsom salt, MgSO4·7H2O, where water is 51.2% of the mass.

Getting the capital letters wrong. CO is carbon monoxide at 28.010 g/mol. Co is cobalt at 58.933 g/mol. NO is nitric oxide; No is nobelium. A calculator that silently accepts "co" is guessing. The molar mass calculator refuses it and tells you which formula you probably meant.

Rounding atomic weights before multiplying. Using H = 1 and O = 16 gives water 18 g/mol, which is fine for a quick estimate. Using H = 1 in sucrose, with 22 hydrogens, shifts the answer by 0.18 g/mol. Keep the table's digits and round once at the end.

Thinking the atom with the most atoms has the most mass. It is the most common misconception about percent composition. Mass share is count times atomic weight, so heavy atoms dominate: hydrogen is two thirds of the atoms in water and one ninth of the mass. If you want a feel for how little mass a large number of particles can carry, the post on how much energy is in one gram puts a single gram in perspective, and heating water in a kettle shows moles and joules meeting in the kitchen.

Which atomic weights should you use?

IUPAC publishes standard atomic weights through CIAAW and revises them every two years as measurements improve. The abridged table rounds them to five significant figures where natural variation allows, and that is what modern periodic tables print. The 2024 table changed gadolinium, lutetium and zirconium from the 2021 values; none of the common elements in a school course moved.

Elements with no stable isotope, such as technetium and plutonium, have no standard atomic weight. Periodic tables print the mass number of the most stable isotope in square brackets instead, for example [97] for technetium. The calculator does the same and flags the result.

Try a formula from your own homework in the molar mass calculator with copper sulfate pentahydrate loaded, then change it to MgSO4*7H2O and watch the water's share of the bar grow.

Sources

Frequently asked questions

What is the formula for molar mass?

Molar mass is the sum of each element’s atom count times its standard atomic weight: M equals the sum of n times Ar, in grams per mole. For water that is 2 × 1.0080 + 15.999 = 18.015 g/mol.

How do brackets change a molar mass calculation?

A number after a closing bracket multiplies every atom inside the bracket. In Ca(OH)2 there are 2 oxygens and 2 hydrogens, so the molar mass is 40.078 + 2 × 15.999 + 2 × 1.0080 = 74.092 g/mol.

Do you include the water in a hydrate’s molar mass?

Yes. The water molecules are part of the crystal you weigh. CuSO4·5H2O is 159.60 + 5 × 18.015 = 249.68 g/mol. Leaving the water out makes you weigh 36% too little copper sulfate.

How many decimal places should a molar mass have?

Use the atomic weights to the precision your course or periodic table gives, and round only the final answer. Two decimals is the common school convention. The IUPAC abridged values support three decimals for water (18.015) but only two for salt (58.44), because chlorine’s atomic weight is known to two decimals.

Is molar mass the same as molecular weight?

They are the same number with different units. Relative molecular mass, often called molecular weight, has no unit. Molar mass is that number in grams per mole, so water’s molecular weight is 18.015 and its molar mass is 18.015 g/mol.

Related observations
No related observations recorded.
Transmit