Percent composition by mass, step by step

Percent composition by mass tells you what percentage of a compound's mass comes from each element. For each element: percent = (atoms × atomic mass) ÷ molar mass × 100. The percentages always add up to 100%.

Water, H₂O, has a molar mass of 18.015 g/mol. The two hydrogens contribute 2.016 g/mol, so water is 2.016 ÷ 18.015 × 100 = 11.19% hydrogen and 88.81% oxygen by mass.

The steps

Why it doesn't depend on the sample size

A 5-gram sample of water and a 5-kilogram sample are both 11.19% hydrogen by mass, because every molecule has the same make-up. That's why percent composition is used to identify compounds, and why a mass-percent result from a lab can be compared with the theoretical value for the formula.

Working backwards, from percent composition to the formula, gives you the empirical formula: assume a 100 g sample, change each element's grams to moles, and divide by the smallest number of moles.

Mass percent is not atom percent

In water, two out of three atoms are hydrogen, but hydrogen is only 11.19% of the mass, because a hydrogen atom is so light. Percent composition by mass always uses the atomic masses, never just the atom counts.

Worked example: water and glucose

  1. H2O: molar mass 18.015 g/mol. H: 2 × 1.008 = 2.016 g/mol → 11.19%. O: 15.999 g/mol → 88.81%.
  2. C6H12O6 (glucose): molar mass 180.156 g/mol.
  3. C: 6 × 12.011 = 72.066 g/mol → 40.00%.
  4. H: 12 × 1.008 = 12.096 g/mol → 6.71%.
  5. O: 6 × 15.999 = 95.994 g/mol → 53.28%. Total: 40.00 + 6.71 + 53.28 = 99.99%, which is 100% within rounding.

Common mistakes

Check yourself

Three questions from the Molar Mass Learning Lab, Stage 4. Work each one out, then open the answer.

  1. In CaCO₃, what is the mass contribution of oxygen? (Atomic mass of O = 15.999 g/mol)

    Show the answer

    Answer: 47.997 g/mol g/mol

    1. Atoms of O: 3 (subscript 3)
    2. Contribution = 3 × 15.999 g/mol = 47.997 g/mol

    Mass contribution = number of atoms × atomic mass. Count the atoms carefully first.

  2. In (NH₄)₃PO₄, what is the mass contribution of nitrogen? (Atomic mass of N = 14.007 g/mol)

    Show the answer

    Answer: 42.021 g/mol g/mol

    1. Atoms of N: 1 × 3 = 3 (1 per NH₄ × 3 NH₄ groups)
    2. Contribution = 3 × 14.007 g/mol = 42.021 g/mol

    Mass contribution = number of atoms × atomic mass. Count the atoms carefully first.

  3. Why do we multiply an element's atomic mass by its number of atoms?

    1. To convert grams into moles
    2. Each atom of that element adds its own mass to the total
    3. Because the subscript is the atomic number
    4. To find how many protons the element has
    Show the answer

    Answer: B. Each atom of that element adds its own mass to the total

    1. If a formula has 2 H atoms, they add 1.008 + 1.008 = 2 × 1.008 = 2.016 g/mol. Multiplying is a quick way to add the same mass many times.

    Think about 2 hydrogen atoms: how much mass do they add together?

Try it in the lab

Questions students ask

Do the percentages always add to 100%?

Yes, apart from rounding. If they're far off, a contribution or the molar mass is wrong.

Is percent composition the same as mass percent of a solution?

No. Percent composition is about elements in one compound; mass percent of a solution compares solute to solution.

Can I use percent composition to find a formula?

Yes, it gives the empirical formula. You need the molar mass as well to find the molecular formula.

Related calculators

More guides on this topic

Teaching molar mass? Poll your class on it

A live poll shows you in seconds who has the idea and who doesn't. Every student answers the same question on their phone, the big screen shows the spread of answers without any names, and you see where the class is before you explain.

Ready-made questions: the three checks in each stage of the Molar Mass Learning Lab work well as poll questions. They're built around the slips students make most with molar mass: ignoring a subscript, not multiplying through brackets and using the atomic number instead of the atomic mass. Stage 2: Counting atoms is a good place to start.

How Classroom Polls work →

Students join at pollwithali.com with the code on the screen; no account needed. Presenter accounts are by invitation during the pilot.