What is percent composition?
Percent composition (also called mass percent) tells you what fraction of a compound’s total mass comes from each element. For a compound with elements A, B, C, ... the percent composition lists %A, %B, %C, and so on, adding up to 100% (within rounding).
Why it matters. Percent composition helps check formulas, compare compounds, determine empirical formulas from experimental analysis, quantify water of crystallization in hydrates, and assess sample purity.
How to calculate by hand (step‑by‑step)
- Write the formula and identify the number of each type of atom.
- Look up atomic masses (e.g., H = 1.008, C = 12.011, O = 15.999, Cu = 63.546; values vary slightly by source).
- Compute the molar mass by summing each element’s contribution.
- Divide each element’s contribution by the total molar mass.
- Multiply by 100 to convert to percent; round to an appropriate number of significant figures.
Worked examples
1) Water, H2O
Molar mass = 2(1.008) + 15.999 = 18.015 g·mol−1
Element | Mass (g·mol−1) | Percent |
H | 2 × 1.008 = 2.016 | 2.016 ÷ 18.015 × 100 = 11.19% |
O | 15.999 | 15.999 ÷ 18.015 × 100 = 88.81% |
2) Glucose, C6H12O6
Molar mass = 6(12.011) + 12(1.008) + 6(15.999) = 180.156 g·mol−1
Element | Mass (g·mol−1) | Percent |
C | 6 × 12.011 = 72.066 | 72.066 ÷ 180.156 × 100 = 40.00% |
H | 12 × 1.008 = 12.096 | 12.096 ÷ 180.156 × 100 = 6.71% |
O | 6 × 15.999 = 95.994 | 95.994 ÷ 180.156 × 100 = 53.28% |
3) Copper(II) sulfate pentahydrate, CuSO4•5H2O
Molar mass (hydrate) = (63.546 + 32.065 + 4×15.999) + 5×(2×1.008 + 15.999) = 249.682 g·mol−1
Component | Mass (g·mol−1) | Percent |
Water of crystallization (5H2O) | 5 × 18.015 = 90.075 | 90.075 ÷ 249.682 × 100 = 36.08% |
Cu | 63.546 | 63.546 ÷ 249.682 × 100 = 25.45% |
S | 32.065 | 32.065 ÷ 249.682 × 100 = 12.84% |
H (from waters) | 5 × 2 × 1.008 = 10.08 | 10.08 ÷ 249.682 × 100 = 4.04% |
O (total) | 4×15.999 + 5×15.999 = 144.0 | 144.0 ÷ 249.682 × 100 = 57.67% |
Notice that “percent water” is commonly reported for hydrates. Element‑by‑element values also work if you need the full breakdown.
Using a Percent Composition Calculator
- Enter the chemical formula (e.g.,
Fe2O3
, (NH4)2SO4
, or with hydrates CuSO4·5H2O
using a middle dot or a period).
- Choose the atomic mass set (e.g., to 3–4 decimal places as required).
- Select desired precision (number of decimal places in the result).
- Run the calculation to get the percent by mass for each element and (optionally) a check that the total is ~100%.
Tip: Calculators differ in how they parse hydrates (•
vs .
) and nested parentheses. If you see an error, try an alternate delimiter or explicit multiplication (e.g., 5H2O
).
Behind the scenes (algorithm outline)
- Tokenize the formula (elements, numbers, parentheses, hydrate dot).
- Use a stack to handle parentheses and multipliers.
- Aggregate counts for each element.
- Multiply counts by atomic masses and divide by the total molar mass to get percentages.
From percent composition to empirical formula
Given the mass percent of each element, you can back‑calculate the empirical formula (the simplest whole‑number ratio of atoms):
- Assume a 100 g sample → numbers become grams (e.g., 40.00% C → 40.00 g C).
- Convert grams to moles for each element by dividing by atomic mass.
- Divide each mole amount by the smallest mole value to get a ratio.
- If necessary, multiply to clear small fractional values (e.g., 1.5 → ×2).
Example: 52.14% C, 13.13% H, 34.73% O → moles ≈ C 4.341, H 13.026, O 2.171 → ratios ≈ 2.00 : 6.00 : 1.00 → C2H6O.
Applications in chemistry
- Checking formulas: Validate proposed formulas against analytical data.
- Stoichiometry: Translate mass percent into reactant/product masses.
- Purity analysis: Deviations from expected percent composition can indicate impurities.
- Hydrates: Determine waters of crystallization from heating (loss on drying) experiments.
- Materials characterization: Combine with spectroscopy/elemental analysis for compound identification.
Common pitfalls and rounding
- Rounding early: Keep extra significant figures during the calculation; round at the end.
- Atomic masses: Using different sources (e.g., O = 15.999 vs 16.00) can shift results by ~0.01–0.05%.
- Hydrate notation: Don’t forget to include the full mass of all waters (e.g., 7×18.015 for MgSO4•7H2O).
- Mixtures vs compounds: “Percent composition” here assumes a single pure compound. For mixtures, report mass percent of each component in the mixture.
Practice problems
- Calcium carbonate, CaCO3: Calculate %Ca, %C, %O. Answer: ~40.04% Ca, 12.00% C, 47.96% O.
- Magnesium sulfate heptahydrate, MgSO4•7H2O: What percent is water of crystallization? Answer: ~51.16%.
- Empirical formula: A compound is 40.00% C, 6.71% H, and 53.29% O by mass. Determine the empirical formula. Answer: CH2O.
Results may vary slightly with the atomic masses you use and your rounding policy.
Frequently asked questions
What’s the difference between percent composition and percent yield?
Percent composition describes how a compound’s mass is distributed among its elements. Percent yield compares actual vs theoretical product amount in a reaction.
Do percent compositions always add to exactly 100%?
They should theoretically. In practice, rounding at 2–3 decimals can give totals like 99.99% or 100.01%—that’s normal.
Which atomic masses should I use?
Use the values specified by your instructor or lab (often IUPAC standard atomic weights). Be consistent within a problem set.
Can I compute percent composition for ions or salts?
Yes. Treat ions the same way: multiply each element’s atomic mass by its subscript, sum, and divide by the total molar mass of the formula unit.
How do hydrates affect the calculation?
Include all waters (n×18.015) in the total molar mass. You may report “% water of crystallization” as a single value in addition to element‑by‑element percentages.
Can I get empirical formula directly from percent composition?
Yes—assume 100 g, convert to moles, divide by the smallest, and scale to whole numbers. See the guide above.