Chemists often need to know how much of a compound’s mass is a given element, for purity checks, fertiliser labels and stoichiometry. The percent composition calculator takes up to four elements and their number of atoms, and gives the molar mass, the mass percent of each element, the mass of element 1 in a sample and a check that the percentages sum to 100 %.
How the calculation works
- Pick up to four elements of the compound from the lists and enter the number of atoms of each in the formula. The calculator uses their atomic masses.
- Leave an element on None with 0 atoms if the compound has fewer than four elements.
- Optionally enter the mass of a sample to get the mass of element 1 it contains.
- The molar mass is the sum of atoms × atomic mass, and the mass percent of each element is (atoms × atomic mass) ÷ molar mass × 100.
Example
For glucose, C₆H₁₂O₆, choose C with 6 atoms, H with 12 and O with 6. The molar mass is 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol. Carbon is 72.066 ÷ 180.156 = 40.00 %, hydrogen is 6.71 % and oxygen is 53.28 %. A 25 g sample of glucose contains 10.0 g of carbon. For water, H₂O, hydrogen is 11.19 % and oxygen 88.81 %.
Why it matters
Percent composition is the link between a chemical formula and a mass you can weigh. It is used to compare fertilisers by nitrogen content, to check the purity of a sample, and to find the formula of an unknown compound from analysis data.
Good to know
The atomic masses are standard values rounded to three decimals, so results match textbook answers but may differ in the last digit from tables that use other rounding. The calculator does not parse formulas, so enter the number of atoms of each element yourself and include all the atoms of hydrates.
Related tools
The mass percent calculator works with solutions, the mole fraction calculator describes mixtures, and the molarity calculator turns mass into concentration.