Percentage Composition Calculator

Percentage composition is the share of a compound's mass contributed by each element: the count of that element times its atomic mass, divided by the molar mass, times a hundred. The arithmetic is one line. Parsing the formula is the part that takes work, so this page does it — nested brackets, hyd...

% of an element = count × atomic mass ÷ molar mass × 100

Type a formula and it is parsed — brackets, hydrate dots and two-letter symbols included. Or work backwards from percentages to an empirical formula, which is the harder direction and the one exams tend to ask about.

THE COMPOUND

MOLAR MASS

180.156 g/mol

3 elements: C×6, H×12, O×6. The percentages below sum to exactly 100, which is a property of the definition rather than a check that happened to pass.

ElementCountAtomic massContributes%
C612.01172.06640.00%
H121.00812.0966.71%
O615.99995.99453.28%

These percentages cannot tell you what the compound is. Glucose and fructose are both C₆H₁₂O₆ and share every figure above to the last decimal place. So do ethanol and dimethyl ether, and butane and isobutane. Composition fixes how many of each atom are present and says nothing whatever about how they are joined — which is why an analysis yields an empirical formula and a structure needs spectroscopy.

THE BREAKDOWN

ONE HUNDRED GRAMS OF THIS COMPOUNDeach block is that element's share of the massC 40.00% H 6.71% O 53.28%the blocks sum to exactly 100 — that is a property of the definition, not a coincidence

Read the bar as a hundred grams of the compound. Each block is the mass that element contributes, and because every block is a share of the same molar mass they necessarily add to the whole. Hydrogen is the usual surprise — twelve hydrogens in glucose weigh less than one oxygen.

MASS EACH ELEMENT CONTRIBUTES, OF 180.156 G/MOLC × 612.011 g/mol72.066H × 121.008 g/mol12.096O × 615.999 g/mol95.994

IUPAC standard atomic weights · live calculation

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Type a chemical formula. Case matters — CO is carbon monoxide and Co is cobalt — and brackets may be nested. Hydrates take a dot, as in CuSO4·5H2O.

  2. 2

    Read the breakdown. Each element contributes its count times its atomic mass, and each percentage is that contribution as a share of the molar mass.

  3. 3

    Add a sample mass if you want the percentages in grams rather than as proportions. It changes nothing about the composition, only the units it is reported in.

  4. 4

    Switch to the reverse mode to go from percentages to an empirical formula, and supply a molar mass there if you want the molecular formula as well.

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE PERCENTAGE CALCULATORS

Was this calculator helpful?

Last updated: August 2, 2026 · IUPAC standard atomic weights · Parser verified against 18 published molar masses · Composition cannot distinguish isomers.