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. Enter a formula and an optional sample mass, and the calculator returns each element's percentage. The table breaks down five familiar compounds.
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%
- C40 % (40%)
- H6.714 % (7%)
- O53.28 % (53%)
Good to know: mass % = (atoms × atomic mass) ÷ molar mass × 100
How it was worked out · notes
- Molar mass = 180.156 g/mol
- Mass % of an element = (atoms × atomic mass) ÷ molar mass × 100
- 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.
| Element | Atoms | Mass in formula (g/mol) | Mass % | In 50 g |
|---|---|---|---|---|
| C | 6 | 72.066 | 40.002% | 20.001 g |
| H | 12 | 12.096 | 6.714% | 3.357 g |
| O | 6 | 95.994 | 53.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.
| Compound | Formula | Composition by mass |
|---|---|---|
| Water | H2O | H 11.19% · O 88.81% |
| Table salt | NaCl | Na 39.34% · Cl 60.66% |
| Chalk | CaCO3 | Ca 40.04% · C 12.00% · O 47.96% |
| Rust | Fe2O3 | Fe 69.94% · O 30.06% |
| Glucose | C6H12O6 | C 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
- Enter the chemical formula, such as C6H12O6 or Ca(OH)2.
- Enter the mass of your sample in grams.
- Read the mass percent of each element.
- 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
- Molar Mass CalculatorFind the molar mass of any compound from its formula and see the mass of each element.
- Moles CalculatorConvert between grams and moles, with particle count from Avogadro's constant.
- Molarity CalculatorCalculate molarity, moles of solute or solution volume.
- Dilution Calculator (C1V1 = C2V2)Work out how much stock solution and solvent you need to reach a target concentration.
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