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.
- 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%.
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 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 g, and the oxygen atom contributes 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.
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 in a chemical formula, the mass percent of X is:
where:
- = number of atoms of element X per formula unit (the subscript in the formula)
- = atomic (molar) mass of element X, in g/mol
- = molar mass of the entire compound, in g/mol (the sum of all terms)
- = mass percent of element X in the compound
For a compound with elements X, Y, Z, ... the percentages must satisfy:
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:
where:
- = mass of element X in the sample, in grams
- = mass percent of X, expressed as a decimal fraction (e.g., 0.1119, not 11.19)
- = total mass of the compound sample, in grams
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 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 (in g/mol), exactly as in any Molar Mass and Mole-Mass-Number Conversions calculation:
Step 4. The total mass of one mole of compound is, by definition, its molar mass , which is itself the sum of every element's mass contribution:
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:
This is the target formula.
Step 6 (consistency check). Summing over every element in the formula gives
because the numerator, by Step 4, is exactly . 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, This compound has atoms: N ×2, H ×8, S ×1, O ×4 (note the subscript 2 outside the parentheses multiplies everything inside ). Atomic masses (g/mol): N = 14.01, H = 1.008, S = 32.07, O = 16.00.
Step 1. Molar mass of the compound.
Step 2. Mass percent of nitrogen.
Step 3. Mass percent of hydrogen.
Step 4. Mass percent of sulfur.
Step 5. Mass percent of oxygen.
Step 6. Check the sum.
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, A geologist has 37.4 g of pure (hematite) and wants the mass of iron it contains. Atomic masses (g/mol): Fe = 55.85, O = 16.00.
Step 1. Molar mass of .
Step 2. Mass percent of iron.
Step 3. Mass percent of oxygen (check).
Step 4. Convert the sample mass using the percentage.
So 37.4 g of hematite contains 26.2 g of iron and, by difference, g of oxygen — consistent with g computed directly.
Limiting-case check. As the sample mass shrinks toward zero, 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.
Limiting cases & common traps
| Situation | What to watch for |
|---|---|
| Hydrates, e.g. | Water of hydration adds mass to the molar mass and must be included in every subscript count and in . |
| Parenthetical subscripts, e.g. | The outer subscript multiplies every atom inside the parentheses: 2 O and 2 H, not 1 each. |
| Very small percentages | Rounding 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 fraction | Percent 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
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 , 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.