Skip to content
Convert. Calculate.

Percent Composition Calculator: What Is a Compound Made Of?

The mass share of every element.

Percent composition says what fraction of a compound's mass comes from each element, and it is the starting point for empirical formulas and purity checks.

Your details

Try an example

Result

Composition

C 40.00% · H 6.71% · O 53.28%

C6H12O6 · molar mass 180.156 g/mol

C by mass
40.00%
H by mass
6.71%
O by mass
53.28%
Share of the mass by element
  • C40 % (40%)
  • H6.714 % (7%)
  • O53.28 % (53%)
Image

Good to know: mass % = (atoms × atomic mass) ÷ molar mass × 100

How it was worked out · notes
  1. Molar mass = 180.156 g/mol
  2. Mass % of an element = (atoms × atomic mass) ÷ molar mass × 100
  3. Mass in the sample = mass % ÷ 100 × 50 g
  • Uses IUPAC standard atomic weights. The percentages add to 100%.

By element

Grams of each element in a 50 g sample.

ElementAtomsMass in formula (g/mol)Mass %In 50 g
C672.06640.002%20.001 g
H1212.0966.714%3.357 g
O695.99453.284%26.642 g

Please note: For study and planning. Check calculations independently before using results with chemicals, electricity, pressure or machinery, and follow safety data sheets, manufacturer instructions and local regulations.

The idea behind it

The idea behind the percent composition calculator

  • 01Mass share

    Atoms weigh different amounts

    Mass percent depends on atomic mass as well as the count of atoms. A few heavy atoms can make up most of a compound's mass.

  • 02Uses

    Fertilisers, ores and supplements

    Percent composition tells you how much metal an ore holds, how much nitrogen a fertiliser gives and how much of a supplement is the active element.

  • 03Link

    The first step to a formula

    Turning percentages into moles and ratios gives the empirical formula, which is how unknown compounds are identified.

Five familiar compounds, taken apart

Water is almost 89 per cent oxygen by mass even though there are two hydrogen atoms for every oxygen, because oxygen atoms are 16 times heavier. Each row shows the breakdown.

Five familiar compounds, taken apart
CompoundFormulaComposition by mass
WaterH2OH 11.19% · O 88.81%
Table saltNaClNa 39.34% · Cl 60.66%
ChalkCaCO3Ca 40.04% · C 12.00% · O 47.96%
RustFe2O3Fe 69.94% · O 30.06%
GlucoseC6H12O6C 40.00% · H 6.71% · O 53.28%

Calculated from standard atomic masses. A 100 g sample is used so grams equal percentages.

A formula and a sample size

  1. Enter the chemical formula, such as C6H12O6 or Ca(OH)2.
  2. Enter the mass of your sample in grams.
  3. Read the mass percent of each element.
  4. See the grams of each element in your sample in the table.

Glucose, C6H12O6

Glucose, C₆H₁₂O₆, has a molar mass of 180.156 g/mol, so it is 40.00% carbon, 6.71% hydrogen and 53.28% oxygen by mass. A 50 g sample holds 20.0 g of carbon.

How the figures are built

Formula

mass % = (atoms × atomic mass) ÷ molar mass × 100

Using atom counts instead of masses

  • Using the number of atoms instead of their mass.
  • Forgetting to multiply the atomic mass by the subscript.
  • Dropping brackets in formulas like Ca(OH)₂.
  • Rounding early so the percentages do not add to 100.

Composition questions

How do you find percent composition?

Divide the mass of each element in one mole of the compound by the molar mass of the compound and multiply by 100. The percentages add to 100%.

How do you calculate percent composition?

For each element, multiply its atomic mass by the number of atoms in the formula, divide by the molar mass of the whole compound and multiply by 100.

Do the percentages always add to 100?

Yes, apart from rounding. If they do not, check the formula or the atomic masses used.

Is percent composition the same as the empirical formula?

They are linked: percent composition can be turned into an empirical formula with the empirical formula calculator.

Related tools

How we calculate this

We use the standard published formula or definition for this calculation, and we show the working so you can check it.

Spotted a mistake? Tell us and we'll check it. How we check our calculators