Skip to content
PeriodicDeck

Calculator

Percent Composition Calculator

The mass share of each element in a compound, and the empirical formula that a set of percentages implies.


Break a compound down by mass

Type a formula to see what share of its mass each element carries. A hydrate dot works: CuSO4·5H2O counts the water.

A middle dot, a full stop or an asterisk all read as a hydrate separator.

CuSO4·5H2O = 249.677 g/mol

  • CuCopper25.45%

    1 × 63.546 = 63.546 g/mol

  • SSulfur12.84%

    1 × 32.06 = 32.060 g/mol

  • OOxygen × 957.67%

    9 × 15.999 = 143.991 g/mol

  • HHydrogen × 104.04%

    10 × 1.008 = 10.080 g/mol

The shares add to 100.00% — any shortfall is rounding in the last displayed digit, not a missing element.

  • Sulfur has no single standard atomic weight — its isotopic composition varies between natural sources, so the conventional value 32.06 is used here for the interval [32.059, 32.076].
  • Oxygen has no single standard atomic weight — its isotopic composition varies between natural sources, so the conventional value 15.999 is used here for the interval [15.99903, 15.99977].
  • Hydrogen has no single standard atomic weight — its isotopic composition varies between natural sources, so the conventional value 1.008 is used here for the interval [1.00784, 1.00811].

Everything above is computed in your browser from the atomic weights shipped with this page. Nothing you type is transmitted or stored.

A worked example

Iron(III) oxide — rust. Each element’s share of the total mass is its contribution divided by the molar mass of 159.687 g/mol.

Iron (2 atoms)
111.690 g/mol · 69.94%
Oxygen (3 atoms)
47.997 g/mol · 30.06%

Two questions wearing one name

"Percent composition" describes a calculation that runs in either direction, and the two directions are used by completely different people for completely different reasons.

Run forwards, from a known formula to the mass share of each element, it answers questions about value and about purity. How much nitrogen is in a bag of fertiliser. How much lithium is in a tonne of concentrate. Whether a freshly synthesised compound analyses close enough to theory to be the compound you think it is.

Run backwards, from measured mass shares to a formula, it is the oldest method in analytical chemistry for identifying an unknown. Every organic compound characterised before spectroscopy was pinned down this way, and combustion analysis still runs in laboratories today as the independent check on a structure proposed by other means.

Both directions are arithmetic on the same numbers. The reverse one has a step people consistently get wrong, and it is worth going through slowly.

Nitrogen per bag: the forward calculation with money attached

Two of the most widely sold nitrogen fertilisers are urea, CO(NH₂)₂, and ammonium nitrate, NH₄NO₃. They are priced per tonne of product and used per kilogram of nitrogen, so the percentage is the whole basis of comparison.

Urea's molar mass is 60.056 g/mol, of which the two nitrogen atoms contribute 28.014.

28.014 ÷ 60.056 = 0.46646 → 46.65% nitrogen

Ammonium nitrate comes to 80.043 g/mol, with the same two nitrogens.

28.014 ÷ 80.043 = 0.34999 → 35.00% nitrogen

A 50 kg bag of urea therefore carries 23.3 kg of nitrogen and the same bag of ammonium nitrate carries 17.5 kg. Urea delivers a third more nitrogen per bag, which is why it dominates world trade — the agronomic arguments about volatilisation losses in the field then push back the other way, but the mass calculation is where the comparison starts.

Notice that both compounds contain exactly two nitrogen atoms. The percentages differ entirely because of what else is attached, which is the point of a mass-share calculation: it tells you what fraction of what you are carrying is the thing you actually want.

Working backwards from an analysis

Now the reverse. An analysis of a phosphorus oxide returns 43.64% phosphorus and 56.36% oxygen. Find the empirical formula.

Step one. Imagine exactly 100 g of the compound, so each percentage becomes a mass in grams, and turn each mass into an amount by dividing by that element's atomic weight.

P: 43.64 ÷ 30.9738 = 1.4090 mol
O: 56.36 ÷ 15.999  = 3.5226 mol

Step two. Scale both figures against the smaller one, which turns two amounts into a ratio.

P: 1.4090 ÷ 1.4090 = 1.000
O: 3.5226 ÷ 1.4090 = 2.500

Step three — the one people skip. A ratio of 1 : 2.5 is not a rounding error waiting to be tidied up. Multiply through by the smallest whole number that clears the fraction, which here is two:

2 : 5  →  P₂O₅

Rounding 2.500 up to 3 instead would have given PO₃, and the working would have looked perfectly neat all the way to the wrong answer.

Phosphorus pentoxide also carries a nice illustration of why mass shares matter commercially. Fertiliser is graded on an N-P-K label whose second and third figures are quoted as P₂O₅ and K₂O by long-standing convention — even though neither oxide is present in the bag. Converting those numbers into actual phosphorus and potassium content is a percent composition calculation, and skipping it overstates both by a wide margin.

The half-integer is the classic case, but it is not the only one. A ratio ending in .33 or .67 needs multiplying by three, and .25 or .75 by four. Anything that lands within about 0.02 of a whole number is a rounding artefact and should be rounded; anything further out is telling you something.

When the percentages do not add to 100

Combustion analysis, the standard method for organic compounds, burns a weighed sample and weighs the carbon dioxide and water produced. That gives carbon and hydrogen directly, and nitrogen from a separate measurement, but it cannot measure oxygen — the oxygen in the products came mostly from the air.

Oxygen is therefore almost always determined by difference: whatever percentage is left after everything else is accounted for. This has two consequences worth knowing. Oxygen's figure carries the accumulated error of every other element, so it is the least reliable number in the report. And if a set of percentages sums to something under 100 with no oxygen listed, the missing fraction is usually oxygen rather than a mistake.

The traditional acceptance criterion in synthetic chemistry is that a measured elemental analysis should agree with the calculated composition to within 0.4 percentage points on each element. That tolerance is tight enough to catch a residual solvent of crystallisation and loose enough to survive ordinary instrument variation, which is exactly why it survived as a publication standard for decades.

Mass share is not atom share

The single most common misreading of a percent composition is treating it as a count.

Water is two-thirds hydrogen by atom and 11.19% hydrogen by mass. Both statements are correct and they describe different things. Because hydrogen is so light, a compound can be numerically dominated by hydrogen atoms and still be almost entirely something else by weight — which is precisely why hydrogen storage is quoted in weight per cent and why the number always looks disappointing.

Read any unqualified percentage in a chemical context as a mass fraction. The atom-count and mole versions of the quantity exist, and both carry a label where they are meant. A set of atom counts handed to you is not a composition at all: it is a formula, and the composition is what you compute from it.

What a composition cannot tell you

Two limits are worth stating plainly, because they set the boundary of what this calculation can be asked to do.

It cannot distinguish a formula from a multiple of itself. Formaldehyde, acetic acid and glucose all analyse as 40.0% carbon, 6.7% hydrogen and 53.3% oxygen, because their formulas are CH₂O, C₂H₄O₂ and C₆H₁₂O₆. An empirical formula is a ratio and nothing more; converting it into a molecular formula needs the molar mass from an independent measurement — a mass spectrum, a gas density, a freezing-point depression — and then the molecular formula is the empirical one multiplied by the ratio of the two masses.

It also cannot distinguish isomers, which have identical compositions by definition. Ethanol and dimethyl ether are both C₂H₆O and no elemental analysis will ever separate them.

From percentages to a structure

A composition is the first rung of a ladder rather than an answer in itself. The sequence runs: measured mass shares, then the empirical formula, then the molecular formula once a molar mass is available, then the structure once spectroscopy or crystallography has had a look.

Working in the other direction, a calculated composition is a check. Weigh what you made, analyse it, and compare. A result that is low on carbon and high on everything else usually means trapped solvent; a result that is uniformly off by a constant factor usually means the sample was not dry. The numbers do not just say whether the compound is right — they tend to say what went wrong.