Percent composition calculator

Find each element’s share of a compound’s mass.

Try a catalog name like caffeine, or enter a formula with case-sensitive element symbols. Use a middle dot for hydrates and a caret for charges. For example, CuSO4·5H2O or SO42−.

How it works

Multiply each element’s atom count by its atomic weight, divide by the total formula mass and multiply by 100. Percentages display to two decimals, so rounding can make the displayed sum differ slightly from 100%.

Worked example

In water (H2O), hydrogen contributes 2.016 of 18.015 g/mol. That is 2.016 ÷ 18.015 × 100 = 11.19% hydrogen. Oxygen accounts for 88.81%.