Chemistry

Percent Composition Calculator

Break a compound down into each element's share of its total mass — built on the same formula parser and atomic weights as the molar mass calculator.


Percent Composition Calculator

Advertisement

This breaks a compound down into each element’s percentage share of the total mass — the same information a lab’s elemental analysis report gives.

How it works

Mass percent

element’s mass % = (element’s total mass in the formula ÷ molar mass of the compound) × 100

Uses the identical formula parser and IUPAC atomic weights the molar mass calculator already established, so the two can never disagree on what a formula parses to.

Why the percentages always sum to 100%

Every atom in the formula is accounted for in exactly one element’s share — nothing is left out and nothing is double-counted, so the percentages sum to exactly 100% by construction. That’s a useful built-in check: if a computed set of percentages doesn’t sum close to 100, something upstream — most likely the formula itself — is wrong.

How to use this calculator

  1. Type the compound’s formula, using correct capitalisation.
  2. Read each element’s percentage of the total mass, heaviest contributor first.

Frequently asked questions

Why is oxygen such a large percentage of water’s mass despite there being only one oxygen atom?

Because oxygen’s atomic weight (16.00) is so much larger than hydrogen’s (1.01) that one oxygen atom outweighs two hydrogen atoms combined — mass percent depends on atomic weight as much as atom count, not on count alone.

How is this used in a real lab setting?

Elemental analysis measures the actual mass percentages present in a sample; comparing that measurement against the percentages this calculator predicts for a proposed formula is one way chemists check whether an unknown compound matches a hypothesised structure.

Does this tell me the empirical formula from percentages?

No — this goes the other direction, from a known formula to percentages. Working backward from measured percentages to an empirical formula is a related but separate calculation this page doesn’t perform.

Why might the percentages not sum to exactly 100.00%?

Rounding in the displayed decimal places, not an error in the underlying calculation — the true, unrounded percentages always sum to exactly 100%.

Can I use this for a hydrate?

Only if you expand the hydrate’s water into its own atom counts within the formula you enter, since the dot notation for hydrates (like ·5H2O) isn’t parsed directly.

Be the first to rate this

Written by

P. Nakamura

Chemistry writer

P. Nakamura writes the chemistry calculators, covering solution concentration, stoichiometry, gas laws and colligative properties. Each page separates the definitional part of a formula from the reference constants it depends on, and leaves those constants adjustable where a different solvent or condition would change them. Worked chemistry is only as good as the assumptions stated alongside it.

Reviewed by

D. Petrov

Calculator reviewer — chemistry and environmental science

D. Petrov reviews the chemistry and environmental-science calculators, verifying that reference constants match their stated values and that they remain adjustable wherever a different substance or condition would change them. Review also checks that definitional relationships are not presented as though they required a citation, and that non-definitional values always carry one.

How we write and review

Related calculators