AP · Chemistry · Moles, Mass and Composition

Percent Composition and Empirical Formulas

14 min readUpdated November 30, 2026FreeAP Chemistry, Atomic Structure and Properties

A pure compound always has the same percent by mass of each element, because its formula fixes the ratio of atoms; this is the law of definite proportions. To find an empirical formula, the simplest whole-number ratio of atoms, convert mass or combustion data to moles of each element and divide by the smallest. The molecular formula is a whole-number multiple of the empirical formula, set by the compound's molar mass.

Quick check

  1. How many moles of carbon atoms are in 24.02 g of carbon (12.01 g/mol)?Show answerHide answer

    24.02÷12.01=2.00024.02 \div 12.01 = 2.000 mol. Divide the mass by the molar mass.

  2. Glucose is C₆H₁₂O₆. What is the simplest whole-number ratio of C : H : O atoms in it?Show answerHide answer

    1 : 2 : 1. Divide every subscript by 6, giving CH₂O.

Know these already? Jump to the practice questions

What you'll be able to do

  • State the law of definite proportions and apply it to samples.
  • Calculate a compound's percent composition by mass.
  • Determine an empirical formula from masses, percents or combustion data.
  • Determine a molecular formula from an empirical formula and a molar mass.

Key terms

Law of definite proportions

A given pure compound always contains the same elements in the same proportions by mass, whatever its source or sample size.

In plain English
Pure water is 11.19 percent hydrogen by mass, wherever it comes from.
Don't write
"A compound always contains equal masses of each element."

Empirical formula

The simplest whole-number ratio of atoms of each element in a compound.

In plain English
The formula with the subscripts reduced as far as they go.
Don't write
"The empirical formula is the actual number of atoms in a molecule."

Molecular formula

The actual number of atoms of each element in one molecule; a whole-number multiple of the empirical formula.

In plain English
The full count, not the reduced ratio.
Don't write
"The two formulas always differ."

Why does a compound have a fixed composition?

The law of definite proportions follows from atoms having fixed masses:

  1. A pure compound has one formula, so its atoms are always in the same ratio.
  2. Each element's atoms have a fixed average mass, so the mass of each element per gram of compound is also fixed.
  3. So every pure sample of the compound, large or small, from any source, has the same percent of each element by mass.

So two samples with different percents cannot both be the same pure compound; the note on Composition of Mixtures uses this to judge purity.

Check yourself

Two pure samples of a compound have masses of 2.0 g and 50.0 g. Do they have the same percent of carbon by mass?
Show answerHide answer

Yes. Sample size does not matter: the formula fixes the atom ratio, so it fixes the mass percent.

How do you calculate percent composition?

The percent by mass of an element is its share of the molar mass (Learn this):

mass percent of element=(subscript)×(atomic mass)molar mass of compound×100\text{mass percent of element} = \frac{(\text{subscript}) \times (\text{atomic mass})}{\text{molar mass of compound}} \times 100

For water, H₂O (18.016 g/mol), hydrogen is 2(1.008)18.016×100=11.19\dfrac{2(1.008)}{18.016} \times 100 = 11.19 percent and oxygen the other 88.81 percent. The percents always add to 100.

Check yourself

What is the percent by mass of carbon in carbon dioxide, CO₂ (C 12.01, O 16.00)?
Show answerHide answer

12.0144.01×100=27.29\dfrac{12.01}{44.01} \times 100 = 27.29 percent.

How do you find an empirical formula from mass data?

Subscripts count atoms, so you must work in moles:

  1. Get the mass of each element. From percents, assume a 100 g sample, so 40.0 percent becomes 40.0 g.
  2. Divide each mass by the element's molar mass to get moles.
  3. Divide every mole value by the smallest one.
  4. If a ratio is not near a whole number, multiply all of them by one small integer.
Ratio ends in aboutMultiply by
.52
.33 or .673
.25 or .754

Key idea

Masses become moles before you compare anything: subscripts are mole ratios, not mass ratios.

Check yourself

After dividing by the smallest, the mole ratio of P : O is 1 : 2.49. What is the empirical formula?
Show answerHide answer

P₂O₅. 2.49 is about 2.5, so multiply both by 2: 2 : 5.

How do you use combustion data?

In combustion analysis, a compound of carbon, hydrogen and perhaps oxygen burns in excess oxygen gas:

  1. All its carbon ends up in CO₂, so mass of C=mass of CO2×12.0144.01\text{mass of C} = \text{mass of CO}_2 \times \dfrac{12.01}{44.01}.
  2. All its hydrogen ends up in H₂O, so mass of H=mass of H2O×2(1.008)18.016\text{mass of H} = \text{mass of H}_2\text{O} \times \dfrac{2(1.008)}{18.016}.
  3. Some oxygen in the products came from the O₂ supply, so find the compound's oxygen by difference: mass of sample minus the masses of C and H.

Then carry on as for any empirical formula.

Check yourself

A hydrocarbon burns to give 0.0200 mol of CO₂. How many moles of carbon were in the sample?
Show answerHide answer

0.0200 mol. Each CO₂ molecule holds one carbon atom, and all the carbon ends up in CO₂.

How do you get the molecular formula?

The molecular formula is the empirical formula multiplied by a whole number nn:

n=molar mass of compoundempirical formula massn = \frac{\text{molar mass of compound}}{\text{empirical formula mass}}

Multiply every subscript by nn. For CH₂O (30.03 g/mol) and a molar mass of 180.16 g/mol, n=6n = 6, giving C₆H₁₂O₆. If n=1n = 1, the formulas match.

Check yourself

A compound has empirical formula CH and molar mass 78.11 g/mol (CH = 13.02 g/mol). What is its molecular formula?
Show answerHide answer

78.11÷13.02=6.078.11 \div 13.02 = 6.0, so C₆H₆.

Worked example 1: An iron oxide

Question: In a class investigation, 2.233 g of iron reacted completely with oxygen to form 3.193 g of an iron oxide. Determine the empirical formula of the oxide. Use Fe 55.85 and O 16.00 g/mol.

What tells you the method

Masses in, formula out, so find each element's mass, then moles.

  1. Step 1: Find the mass of oxygen.

    3.193−2.233=0.9603.193 - 2.233 = 0.960 g of O.

    Why

    The oxide's extra mass is the oxygen that combined with the iron.

  2. Step 2: Convert to moles.

    Fe: 2.233÷55.85=0.039982.233 \div 55.85 = 0.03998 mol; O: 0.960÷16.00=0.06000.960 \div 16.00 = 0.0600 mol.

    Why

    Subscripts are mole ratios.

  3. Step 3: Divide by the smallest.

    Fe: 1; O: 0.0600÷0.03998=1.500.0600 \div 0.03998 = 1.50.

    Why

    This gives the ratio with the smallest element set to 1.

  4. Step 4: Clear the half.

    Multiply by 2: Fe : O = 2 : 3.

    Why

    A ratio ending in .5 becomes whole when doubled.

Check it

Fe₂O₃ is 2(55.85)159.70×100=69.94\dfrac{2(55.85)}{159.70} \times 100 = 69.94 percent iron, and the data give 2.2333.193×100=69.93\dfrac{2.233}{3.193} \times 100 = 69.93 percent.

Answer

Fe₂O₃

Worked example 2: Combustion to molecular formula

Question: A 0.2500 g sample of a compound containing only C, H and O burns completely in excess oxygen, giving 0.3664 g of CO₂ and 0.1500 g of H₂O. Its molar mass is 60.05 g/mol. Use C 12.01, H 1.008 and O 16.00 g/mol.

(a) Determine the empirical formula.

(b) Determine the molecular formula.

What tells you the method

Masses of CO₂ and H₂O from burning, so use combustion analysis; then the molar mass.

  1. Step 1: Find the carbon and hydrogen.

    C: 0.3664×12.0144.01=0.099990.3664 \times \dfrac{12.01}{44.01} = 0.09999 g, which is 0.008325 mol. H: 0.1500×2.01618.016=0.016790.1500 \times \dfrac{2.016}{18.016} = 0.01679 g, which is 0.01665 mol.

    Why

    All the carbon goes to CO₂ and all the hydrogen to H₂O.

  2. Step 2: Find the oxygen by difference.

    0.2500−0.09999−0.01679=0.13320.2500 - 0.09999 - 0.01679 = 0.1332 g, which is 0.008327 mol.

    Why

    Some product oxygen came from the O₂ supply.

  3. Step 3: Divide by the smallest.

    C : H : O = 1 : 2.00 : 1.00, so the empirical formula is CH₂O.

    Why

    The ratios are already whole numbers.

  4. Step 4: Find nn.

    CH₂O is 30.03 g/mol, so n=60.05÷30.03=2.00n = 60.05 \div 30.03 = 2.00, giving C₂H₄O₂.

    Why

    The molecular formula is nn times the empirical formula.

Check it

C₂H₄O₂ has molar mass 2(12.01)+4(1.008)+2(16.00)=60.052(12.01) + 4(1.008) + 2(16.00) = 60.05 g/mol, matching the data.

Answer

(a) CH₂O; (b) C₂H₄O₂

Your turn

Question: A compound is 40.00 percent C, 6.71 percent H and 53.29 percent O by mass. Determine its empirical formula. Use C 12.01, H 1.008 and O 16.00 g/mol.

  1. Step 1: Assume 100 g and convert to moles.

    C: 40.00÷12.01=3.33140.00 \div 12.01 = 3.331 mol; H: 6.71÷1.008=6.6576.71 \div 1.008 = 6.657 mol.

  2. Step 2: Your go: find the moles of O, divide by the smallest and write the formula.

Show the full solutionHide the solution

Step 2. O: 53.29÷16.00=3.33153.29 \div 16.00 = 3.331 mol. Dividing by 3.331 gives C : H : O = 1 : 2.00 : 1.00.

Answer: CH₂O

Traps

Trap

Mass percents give the atom ratio directly.

It seems right because a bigger percent looks like more atoms. But atoms differ in mass, so convert each mass to moles before comparing.

Methane is 74.87 percent C and 25.13 percent H by mass. Is its C : H atom ratio about 3 : 1?

No. In moles, 74.87÷12.01=6.23474.87 \div 12.01 = 6.234 and 25.13÷1.008=24.9325.13 \div 1.008 = 24.93, a ratio of 1 : 4, so CH₄.

Trap

A ratio such as 1 : 1.5 can be rounded to 1 : 2.

It seems right because subscripts must be whole numbers. But 1.5 is far from 2; multiply every value by 2 to get 2 : 3. Round only values within about 0.1 of a whole number.

Ratios come out as C 1.00 : H 1.33. What is the empirical formula?

C₃H₄. Multiply both by 3: 3.00 : 3.99, which is 3 : 4.

Trap

The oxygen in the CO₂ and H₂O all came from the compound.

It seems right because the products are weighed. But some of that oxygen came from the O₂ the sample burned in, so the compound's oxygen is found by difference.

In combustion analysis, how do you find the mass of oxygen in the original sample?

Subtract the masses of carbon and hydrogen (found from the CO₂ and H₂O) from the mass of the sample.

What's examined

On the AP® Chemistry exam (Unit 1: Atomic Structure and Properties), composition questions can appear in both sections. Expect to calculate a percent by mass, determine empirical and molecular formulas from mass, percent or combustion data, and justify a claim about identity with the law of definite proportions.

Practice questions

  1. Recall Which statement is the law of definite proportions?
  • A) Masses of one element that combine with a fixed mass of another, in different compounds, are in small whole-number ratios.
  • B) Mass is neither created nor destroyed in a chemical reaction.
  • C) A pure compound always contains the same elements in the same proportions by mass.
  • D) An element's mass percent equals its share of the atoms in the formula.
Show answer

Answer: C. The fixed formula fixes the mass percent of every element.

Why the others are wrong:

  • A is the law of multiple proportions, which compares different compounds.
  • B is the law of conservation of mass.
  • D confuses atom share with mass share; atoms have different masses.
  1. Apply Calculate the percent by mass of nitrogen in ammonium nitrate, NH₄NO₃. Use N 14.01, H 1.008 and O 16.00 g/mol. Give your answer to 3 significant figures.
Show answer

Answer: 35.0%35.0\% nitrogen.

Marking points:

  • Counts 2 N atoms (one in NH₄⁺, one in NO₃⁻).
  • Molar mass: 2(14.01)+4(1.008)+3(16.00)=80.052(14.01) + 4(1.008) + 3(16.00) = 80.05 g/mol.
  • 28.0280.05×100=35.0\dfrac{28.02}{80.05} \times 100 = 35.0 percent.
  1. Apply Which pair of compounds has the same empirical formula?
  • A) C₂H₂ and C₆H₆
  • B) C₂H₄ and C₂H₆
  • C) CO and CO₂
  • D) H₂O and H₂O₂
Show answer

Answer: A. Both reduce to CH.

Why the others are wrong:

  • B has the same number of carbon atoms, but CH₂ and CH₃ differ.
  • C contains the same elements in different ratios, 1 : 1 and 1 : 2.
  • D also has the same elements in different ratios, H₂O and HO.
  1. Apply A compound is 52.14 percent C, 13.13 percent H and 34.73 percent O by mass. Determine its empirical formula. Use C 12.01, H 1.008 and O 16.00 g/mol.
Show answer

Answer: C₂H₆O

Marking points:

  • Moles in 100 g: C 4.341, H 13.03, O 2.171.
  • Divide by 2.171: C 2.00, H 6.00, O 1.00.
  1. Exam-style A hydrocarbon (carbon and hydrogen only) burns completely in excess oxygen to give 3.080 g of CO₂ and 1.575 g of H₂O. Its molar mass is 58.12 g/mol. Use C 12.01, H 1.008 and O 16.00 g/mol.

(a) Determine the empirical formula.

(b) Determine the molecular formula.

Show answer

Answer: (a) C₂H₅; (b) C₄H₁₀

Marking points:

  • C: 3.080÷44.01=0.069983.080 \div 44.01 = 0.06998 mol.
  • H: 2×(1.575÷18.016)=0.17482 \times (1.575 \div 18.016) = 0.1748 mol.
  • Ratio H : C = 2.50, so multiply by 2: C₂H₅ (29.06 g/mol).
  • n=58.12÷29.06=2n = 58.12 \div 29.06 = 2, so C₄H₁₀.
  1. Exam-style In a class investigation, two samples of a white solid from different suppliers were analyzed.
SampleMass of sample (g)Mass of calcium (g)
15.002.00
212.55.00

Which conclusion do the data support?

  • A) Sample 2 is a different compound because it has more calcium.
  • B) The samples differ because their masses differ.
  • C) The data prove both samples are calcium carbonate.
  • D) Both are 40.0 percent calcium by mass, consistent with one pure compound.
Show answer

Answer: D. 2.00÷5.00=5.00÷12.5=0.4002.00 \div 5.00 = 5.00 \div 12.5 = 0.400, so both are 40.0 percent calcium, as the law of definite proportions requires for one compound.

Why the others are wrong:

  • A compares masses of calcium, not mass percents.
  • B confuses sample size with composition.
  • C overclaims: one matching percent is consistent with a compound but does not prove which one.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • A fixed formula means fixed mass percents, whatever the sample's size or source.
  • Mass percent of an element is its atoms' mass in the formula divided by the molar mass, times 100.
  • For an empirical formula, change masses to moles, divide by the smallest, then clear fractions such as .5 or .33.
  • In combustion analysis, carbon comes from the CO₂, hydrogen from the H₂O, and oxygen by difference.
  • Molecular formula = empirical formula times (molar mass ÷ empirical formula mass).

Keep learning

Prerequisites: Moles and Molar Mass

Explore AP Chemistry tutoring →

View the full Chemistry syllabus →

More in this unit

Atomic Structure and Properties

All Moles, Mass and Composition notes

Part of Novark's AP Chemistry notes