In this lesson
Take it with you
- Lesson slides (PDF)
- Practice worksheet (PDF)
- Answer key (PDF)
Essential Question
How much of a compound is each element?
A compound always has the same elements in the same proportions by mass. Percent composition tells you what fraction of a compound’s mass comes from each element. By the end of this lesson, you should be able to calculate percent composition from a chemical formula and from lab data.
Video not loading? Watch it on YouTube.
What Is Percent Composition?
- Percent by mass of each element
- All the percents add up to 100%

Water has twice as many hydrogen atoms as oxygen atoms, but hydrogen atoms are so light that only 11.21% of water’s mass is hydrogen. The other 88.79% is oxygen. The percents for any compound add up to 100%.
The Formula
- Use the mass of the element in 1 mole of the compound
- Divide by the molar mass of the whole compound

The percent of an element equals the mass of that element in one mole of the compound, divided by the molar mass of the whole compound, times 100%. For the top, multiply the element’s atomic mass by its subscript.
Step by Step
- Find the molar mass
- Find each element’s mass (subscript × atomic mass)
- Divide, then × 100%

For water: the molar mass is 18.02 g/mol. One mole contains 2.02 g of hydrogen and 16.00 g of oxygen. Hydrogen: 2.02 ÷ 18.02 × 100 = 11.21%. Oxygen: 16.00 ÷ 18.02 × 100 = 88.79%.
From Lab Data
- Sometimes you’re given masses, not a formula
- Divide the element’s mass by the sample’s mass

If a 20.00 g sample of a compound contains 4.80 g of oxygen, the percent oxygen is 4.80 g ÷ 20.00 g × 100% = 24.0%. With lab data, the sample’s mass goes on the bottom instead of the molar mass.
Any Sample Size
- Same compound → same percents
- Check: percents add to about 100%

Every molecule of a compound is the same, so a drop of water and a pool of water are both 11.21% hydrogen by mass. Always check that your percents add up to about 100%. A difference of 0.01% is just rounding.
Worked Examples
Try each problem on your own first, then open the solution to check your work.
Example 1: Two Elements
Find the percent composition of magnesium oxide, MgO.
Show the solution
- Molar mass: 24.31 + 16.00 = 40.31 g/mol
- Magnesium: 24.31 ÷ 40.31 × 100 = 60.31%
- Oxygen: 16.00 ÷ 40.31 × 100 = 39.69%
- Check: 60.31% + 39.69% = 100.00%
- Answer: 60.31% Mg and 39.69% O
Example 2: One Element
Ammonium nitrate, NH4NO3, is used as a fertilizer. What percent of its mass is nitrogen?
Show the solution
- Count atoms: N appears twice, so 2 N, 4 H, 3 O
- Molar mass: 2(14.01) + 4(1.01) + 3(16.00) = 28.02 + 4.04 + 48.00 = 80.06 g/mol
- Percent N: 28.02 ÷ 80.06 × 100 = 34.999%
- Answer: 35.00% N Don’t forget the nitrogen in NO3. If you got 17.50%, you only counted one N.
Example 3: Three Elements
Find the percent composition of ethanol, C2H6O.
Show the solution
- Element masses: C: 2(12.01) = 24.02, H: 6(1.01) = 6.06, O: 16.00
- Molar mass: 24.02 + 6.06 + 16.00 = 46.08 g/mol
- Carbon: 24.02 ÷ 46.08 × 100 = 52.13%
- Hydrogen: 6.06 ÷ 46.08 × 100 = 13.15%
- Oxygen: 16.00 ÷ 46.08 × 100 = 34.72%
- Check: 52.13 + 13.15 + 34.72 = 100.00
- Answer: 52.13% C, 13.15% H, 34.72% O
Example 4: From Lab Data
A 12.50 g sample of an unknown compound contains 3.75 g of oxygen. What percent of the compound is oxygen?
Show the solution
- Part and whole: part = 3.75 g O, whole = 12.50 g sample
- Set up: 3.75 g ÷ 12.50 g × 100%
- Calculate: 30.0
- Sig figs: 3.75 has 3 sig figs, so keep 3
- Answer: 30.0% O
Practice
Lesson Slides
Big Ideas
- Percent composition = % by mass of each element
- Part ÷ whole × 100%
- Count every atom of the element
- Percents add up to 100%
Back to the essential question: we divide the mass of each element by the mass of the whole compound and multiply by 100%. With a formula, use the element’s mass in one mole and the molar mass. With lab data, use the measured masses. Next, we’ll work backward from percents to find a compound’s formula. Next lesson: Empirical Formulas.
NGSS Alignment
This lesson builds toward these Next Generation Science Standards (NGSS) performance expectations:
- HS-PS1-7: Use mathematical representations to support the claim that atoms, and therefore mass, are conserved during a chemical reaction.
Disciplinary core ideas: PS1.A Structure and Properties of Matter; PS1.B Chemical Reactions