Percent Composition from Chemical Formulas

Every compound has a fixed mass fingerprint. Percent composition tells you what fraction of a compound's total mass comes from each element. It is calculated directly from its chemical formula and Molar Mass and Mole-Mass-Number Conversions. Because the formula fixes the ratio of atoms, it also fixes the ratio of masses. So percent composition is a single, unchanging property of a pure compound. It does not depend on how much of it you have. This idea connects the microscopic world of atoms to the macroscopic world of the laboratory balance. A chemist who weighs out 5.00 g of a compound can immediately say how many grams of each element are present. This works without ever separating them. The chemist simply multiplies by percentages computed from the formula. The same logic runs in reverse. Measuring percent composition experimentally (often by combustion analysis) lets chemists deduce an unknown formula. This technique grows directly out of the ideas here. Percent composition rests entirely on two things you already know. First, how to read a chemical formula for atom counts. Second, how to convert those counts into mass using The Mole Concept and Avogadro's Number. Nothing new needs to be measured. It is pure arithmetic on quantities already in hand.

Key takeaways
  • Percent composition of element X in a compound is the mass of X per formula unit divided by the molar mass of the compound, times 100%.
  • Use the compound's formula to get the atom count of each element, then convert atoms → moles → grams using atomic masses.
  • Percentages of all elements in a compound must sum to 100% (allowing for rounding).
  • Percent composition is intensive — it does not depend on sample size; 1 g and 1000 g of the same pure compound have identical percentages.
  • Percent composition converts directly into an actual mass of an element when you know the total sample mass.
  • Key idea: the mass fraction of an element in a compound is fixed by the formula, so %X = (atoms of X × atomic mass of X) / (molar mass of compound) × 100%.
The core insight

Percent composition is a ratio of masses built into every formula unit: it turns a chemical formula into a recipe you can weigh out on a balance.

The physical picture

A chemical formula like H2O\text{H}_2\text{O} is a ratio statement about atoms — two hydrogen atoms for every one oxygen atom. But atoms of different elements have different masses, so a ratio of atoms is not the same as a ratio of mass. Percent composition is the translation step: it converts the atom ratio frozen into the formula into a mass ratio that a balance would actually report. Think of one mole of water as a bag containing 2 moles of H atoms (each weighing about 1.008 g/mol) and 1 mole of O atoms (weighing about 16.00 g/mol). The total mass of the bag is the molar mass, about 18.02 g/mol. Of that total, the hydrogen atoms contribute 2×1.008=2.0162 \times 1.008 = 2.016 g, and the oxygen atom contributes 16.0016.00 g. Dividing each contribution by the total mass gives the percent by mass — a property that is true for any amount of water you have, one molecule or one ocean. This is why percent composition is called an intensive property: it does not scale with sample size. Doubling the sample doubles the mass of hydrogen and the mass of oxygen by the same factor, so their ratio — and hence their percentages — stays fixed.

Figure
Mass contributions of H and O within one mole of H₂O, totaling 18.02 g
1 mol H₂O = 18.02 g total 2.016 g H (11.19%) 16.00 g O (88.81%) bar height ∝ mass

The bar's blue segment (hydrogen) is small compared to the orange segment (oxygen) — not because there are fewer hydrogen atoms, but because each hydrogen atom is so light. Percent composition captures exactly this: it weighs atoms, not just counts them.

The core relations

For an element X appearing as a subscript nXn_X in a chemical formula, the mass percent of X is:

%X=nX×MXMcompound×100%\%X = \frac{n_X \times M_X}{M_{\text{compound}}} \times 100\%

where:

  • nXn_X = number of atoms of element X per formula unit (the subscript in the formula)
  • MXM_X = atomic (molar) mass of element X, in g/mol
  • McompoundM_{\text{compound}} = molar mass of the entire compound, in g/mol (the sum of all niMin_i M_i terms)
  • %X\%X = mass percent of element X in the compound

For a compound with elements X, Y, Z, ... the percentages must satisfy:

%X+%Y+%Z+⋯=100%\%X + \%Y + \%Z + \cdots = 100\%

where:

  • each term is computed from the formula above
  • this sum is a built-in consistency check: it must hold (up to rounding) for a correctly formulated compound

Once percent composition is known, it converts a total sample mass into the mass of one element inside it:

mX=%X×msamplem_X = \%X \times m_{\text{sample}}

where:

  • mXm_X = mass of element X in the sample, in grams
  • %X\%X = mass percent of X, expressed as a decimal fraction (e.g., 0.1119, not 11.19)
  • msamplem_{\text{sample}} = total mass of the compound sample, in grams
Derivation AFrom formula subscripts to mass percent

Goal. Starting only from a chemical formula and a periodic table of atomic masses, derive the mass percent formula for element X and confirm the percentages sum to 100%.

Step 1. Take one mole of the compound as the reference amount. This is a convenient, arbitrary choice — because percent composition is intensive, any amount would give the identical answer, but one mole makes the atomic-mass-to-molar-mass conversion direct.

Step 2. The formula's subscript nXn_X tells you how many moles of element X are present per mole of compound. This follows directly from the definition of a chemical formula as a fixed atom ratio, the same logic used in Mole Concept and Avogadro's Number to move between atom counts and mole counts.

Step 3. Convert moles of X into grams of X using its atomic mass MXM_X (in g/mol), exactly as in any Molar Mass and Mole-Mass-Number Conversions calculation:

mX=nX×MXm_X = n_X \times M_X

Step 4. The total mass of one mole of compound is, by definition, its molar mass McompoundM_{\text{compound}}, which is itself the sum of every element's mass contribution:

Mcompound=∑iniMiM_{\text{compound}} = \sum_i n_i M_i

Step 5. The mass fraction of X is the mass of X divided by the total mass, and converting a fraction to a percentage multiplies by 100:

%X=mXMcompound×100%=nXMXMcompound×100%\%X = \frac{m_X}{M_{\text{compound}}} \times 100\% = \frac{n_X M_X}{M_{\text{compound}}} \times 100\%

This is the target formula.

Step 6 (consistency check). Summing %X\%X over every element in the formula gives

∑X%X=∑XnXMXMcompound×100%=McompoundMcompound×100%=100%\sum_X \%X = \frac{\sum_X n_X M_X}{M_{\text{compound}}} \times 100\% = \frac{M_{\text{compound}}}{M_{\text{compound}}} \times 100\% = 100\%

because the numerator, by Step 4, is exactly McompoundM_{\text{compound}}. This confirms the percentages of all elements in any correctly written formula must total 100%, providing a built-in arithmetic check on any calculation.

Worked examples

Example 1 — Percent composition of ammonium sulfate, (NH4)2SO4(\text{NH}_4)_2\text{SO}_4 This compound has atoms: N ×2, H ×8, S ×1, O ×4 (note the subscript 2 outside the parentheses multiplies everything inside NH4\text{NH}_4). Atomic masses (g/mol): N = 14.01, H = 1.008, S = 32.07, O = 16.00.

Step 1. Molar mass of the compound.

M=2(14.01)+8(1.008)+1(32.07)+4(16.00)M = 2(14.01) + 8(1.008) + 1(32.07) + 4(16.00)
M=28.02+8.064+32.07+64.00=132.15 g/molM = 28.02 + 8.064 + 32.07 + 64.00 = 132.15\ \text{g/mol}

Step 2. Mass percent of nitrogen.

%N=2×14.01132.15×100%=28.02132.15×100%=21.20%\%N = \frac{2 \times 14.01}{132.15} \times 100\% = \frac{28.02}{132.15} \times 100\% = 21.20\%

Step 3. Mass percent of hydrogen.

%H=8×1.008132.15×100%=8.064132.15×100%=6.101%\%H = \frac{8 \times 1.008}{132.15} \times 100\% = \frac{8.064}{132.15} \times 100\% = 6.101\%

Step 4. Mass percent of sulfur.

%S=1×32.07132.15×100%=24.27%\%S = \frac{1 \times 32.07}{132.15} \times 100\% = 24.27\%

Step 5. Mass percent of oxygen.

%O=4×16.00132.15×100%=64.00132.15×100%=48.43%\%O = \frac{4 \times 16.00}{132.15} \times 100\% = \frac{64.00}{132.15} \times 100\% = 48.43\%

Step 6. Check the sum.

21.20%+6.101%+24.27%+48.43%=100.00%21.20\% + 6.101\% + 24.27\% + 48.43\% = 100.00\%

The percentages close to 100.00%, confirming the arithmetic (small rounding in the last digit is normal).

Limiting-case sanity check. If the compound were pure nitrogen-free (hypothetically dropping all N and H, an unphysical edit used only as a check), the remaining S and O percentages would have to rescale to sum to 100% on their own — a reminder that percentages are always relative to the whole formula, not to arbitrary subsets of it. ---

Example 2 — Mass of iron in a sample of iron(III) oxide, Fe2O3\text{Fe}_2\text{O}_3 A geologist has 37.4 g of pure Fe2O3\text{Fe}_2\text{O}_3 (hematite) and wants the mass of iron it contains. Atomic masses (g/mol): Fe = 55.85, O = 16.00.

Step 1. Molar mass of Fe2O3\text{Fe}_2\text{O}_3.

M=2(55.85)+3(16.00)=111.70+48.00=159.70 g/molM = 2(55.85) + 3(16.00) = 111.70 + 48.00 = 159.70\ \text{g/mol}

Step 2. Mass percent of iron.

%Fe=2×55.85159.70×100%=111.70159.70×100%=69.94%\%Fe = \frac{2 \times 55.85}{159.70} \times 100\% = \frac{111.70}{159.70} \times 100\% = 69.94\%

Step 3. Mass percent of oxygen (check).

%O=3×16.00159.70×100%=48.00159.70×100%=30.06%\%O = \frac{3 \times 16.00}{159.70} \times 100\% = \frac{48.00}{159.70} \times 100\% = 30.06\%
69.94%+30.06%=100.00%✓69.94\% + 30.06\% = 100.00\% \quad \checkmark

Step 4. Convert the sample mass using the percentage.

mFe=0.6994×37.4 g=26.2 gm_{Fe} = 0.6994 \times 37.4\ \text{g} = 26.2\ \text{g}

So 37.4 g of hematite contains 26.2 g of iron and, by difference, 37.4−26.2=11.237.4 - 26.2 = 11.2 g of oxygen — consistent with 0.3006×37.4=11.20.3006 \times 37.4 = 11.2 g computed directly.

Limiting-case check. As the sample mass shrinks toward zero, mFe→0m_{Fe} \to 0 proportionally, while the percentage 69.94% stays exactly fixed — illustrating that percent composition is a property of the substance, unaffected by how much of it is weighed out.

Figure
Bar comparison: mass percent of Fe vs O in Fe₂O₃, and their split of a 37.4 g sample
Fe₂O₃: percent composition vs. actual sample split % composition Fe 69.94% O 30.06% 37.4 g sample Fe 26.2 g O 11.2 g Same proportion, different total — percent composition is intensive.

Limiting cases & common traps

SituationWhat to watch for
Hydrates, e.g. CuSO4⋅5H2O\text{CuSO}_4 \cdot 5\text{H}_2\text{O}Water of hydration adds mass to the molar mass and must be included in every subscript count and in McompoundM_{\text{compound}}.
Parenthetical subscripts, e.g. Ca(OH)2\text{Ca(OH)}_2The outer subscript multiplies every atom inside the parentheses: 2 O and 2 H, not 1 each.
Very small percentagesRounding error compounds; carry at least 4 significant figures through molar mass before converting to percent.
Sum not equal to 100%Usually signals a missed atom, wrong atomic mass, or arithmetic slip — recompute molar mass from scratch.
Confusing % with mole fractionPercent composition is a mass ratio; it is not the same number as the mole ratio (atom subscripts) unless, coincidentally, atomic masses are equal.

The chemist behind it

Percent composition as a calculation is inseparable from the historical struggle to determine accurate atomic masses and correct chemical formulas — a project that occupied chemistry for the better part of a century. Before atomic masses were trustworthy, chemists could measure the mass percent of elements in a compound experimentally (by decomposing or synthesizing it and weighing the products) but could not always convert that percentage into a definite formula, because they did not yet agree on relative atomic weights. Jöns Jacob Berzelius, working in Stockholm in the early 1800s, carried out extraordinarily careful percent-composition-style analyses on hundreds of compounds, using them to build one of the first reliable tables of atomic masses. His method was essentially the reverse of the calculation used here: measure the mass percent of each element by careful gravimetric analysis, then work backward — combined with Dalton's law of multiple proportions — to infer small whole-number atom ratios. Berzelius's tables, refined over decades, became the backbone that let later chemists move confidently in the forward direction: formula → molar mass → percent composition, the direction used throughout this article.

Origins · 1 minJöns Jacob Berzelius and how this was discovered
JJ
Jöns Jacob Berzelius
1779–1848 · Stockholm, early Swedish chemical analysis

Berzelius pioneered systematic gravimetric analysis of inorganic compounds, compiling atomic mass tables accurate enough that modern percent-composition calculations still rest on values he helped establish, refined over two centuries by increasingly precise mass spectrometry.

Ask the tutor: How would you use measured percent composition data to determine the empirical formula of an unknown compound?

Does percent composition depend on how much of the compound I have?

No. Percent composition is an intensive property — it is fixed by the formula and the atomic masses of the elements involved, not by the total mass of the sample. One gram and one kilogram of the same pure compound give identical percentages; only the actual masses of each element (in grams) scale with sample size.

How is percent composition different from the subscripts in the formula?

The subscripts give a mole ratio (atom count), while percent composition gives a mass ratio. These differ because elements have different atomic masses. In H2O\text{H}_2\text{O}, the mole ratio of H to O is 2:1, but because oxygen atoms are so much heavier, the mass ratio is far from 2:1 — hydrogen is only about 11% of the mass despite being two-thirds of the atoms.

Can percent composition be used to find an unknown chemical formula?

Yes, and this is one of its most important practical uses. If mass percentages are measured experimentally (for example, via combustion analysis of an organic compound), they can be converted into a mole ratio by dividing each percent by the element's atomic mass, then normalizing to the smallest whole-number ratio. That reverse process determines an empirical formula, though it requires additional tools beyond percent composition alone to determine a true molecular formula.

Why do textbook percentages sometimes not sum to exactly 100.00%?

Rounding at intermediate steps — atomic masses, molar mass, or individual percentages — accumulates small errors. A sum like 99.98% or 100.02% for a correctly worked problem is normal and acceptable; a sum off by a full percentage point or more usually signals a genuine arithmetic or formula error.

Does percent composition apply to mixtures, not just pure compounds?

Not directly. Percent composition as derived here assumes a single, pure chemical formula with a definite molar mass. A mixture (like an ore, an alloy, or an impure sample) has no single formula, so you must first know the mass of the pure compound within the mixture before applying percent composition to find elemental masses within that portion.