Percent composition calculator
Find each element’s share of a compound’s mass.
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%.