Percent Composition Calculator

Type any chemical formula to get its molar mass and the percent composition by mass of each element.

Percent composition calculator

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

How percent composition works

  1. Find the molar mass: add up (number of atoms × atomic mass) for each element.
  2. For each element, divide its mass by the molar mass and multiply by 100.

Glucose, C₆H₁₂O₆ (180.156 g/mol): carbon 72.066 ÷ 180.156 = 40.00%, hydrogen 6.71%, oxygen 53.28%.

Atomic masses are standard atomic weights from IUPAC, rounded.

Guide: percent composition formula and examples.

Frequently asked questions

Do the percentages always add up to 100?

Yes, apart from small rounding differences.