Bbiochemtools

Percent Composition Calculator

Enter any chemical formula to get the mass percent of every element, the molar mass, and how much each element contributes. Parentheses and polyatomic groups are handled. Every step shown.

Molar mass
ElementAtomsAtomic massMassMass %

How percent composition works

Percent composition by mass tells you what fraction of a compound's weight comes from each element. The recipe is simple: find the molar mass by adding up every atom's atomic mass, then for each element divide its total mass by that molar mass and multiply by 100. Because heavier atoms take a bigger share, oxygen dominates water (88.8%) even though there are twice as many hydrogen atoms. A useful built-in check is that all the percentages must add to 100, so if they do not, an atom count or symbol is wrong. This is the exact reverse of finding an empirical formula, which starts from these percentages and works back to the formula.

Related tools: Empirical formula calculator · Molar mass & molarity · Limiting reagent · all biochem tools.

Worked example: glucose (C6H12O6)

Molar mass: C: 6 × 12.011 = 72.066 H: 12 × 1.008 = 12.096 O: 6 × 15.999 = 95.994 total = 180.156 g/mol Percent composition: %C = 72.066 / 180.156 × 100 = 40.00 % %H = 12.096 / 180.156 × 100 = 6.71 % %O = 95.994 / 180.156 × 100 = 53.28 % sum = 100.00 % ✓

Carbon and oxygen dominate glucose by mass even though hydrogen has the most atoms, because each C and O atom is about 12 and 16 times heavier than a hydrogen atom.

FAQ

What is percent composition by mass?
Each element's share of the compound's total mass, as a percentage: (element mass ÷ molar mass) × 100.

How do I get the mass percent of one element?
Multiply its atomic mass by its atom count, divide by the molar mass, times 100. E.g. C in glucose = 6×12.011 / 180.16 = 40.00%.

Why add up to 100?
Every atom belongs to one element, so the parts must equal the whole. A sum off by more than rounding means a mistake in the formula.

How does it relate to empirical formula?
It is the reverse: percent composition goes formula → percentages; empirical formula goes percentages → formula.

Does it handle parentheses?
Yes — Ca(NO3)2 and (NH4)2SO4 expand correctly. Use proper capitalization (Co is cobalt, CO is carbon + oxygen).