Atomic Mass Percent Calculator
Find the mass percent of each element in a compound from its formula and the standard atomic weights.
Percent composition by mass
The page reads a formula, adds the standard atomic weights of its atoms to get the molar mass, and prints each element's share of that mass as a percentage. H2SO4 comes out at 98.07 g/mol, with hydrogen at 2.06 percent, sulfur at 32.69 and oxygen at 65.25. Each line also shows the contribution that produced the percentage, so the sum can be checked by eye.
The weights are IUPAC standard atomic weights quoted to three or four significant figures, which is why the percentages add to 100 only to the precision shown. A formula with an unknown symbol or an unmatched bracket is refused with the symbol named rather than given a made-up mass.
The table is written into the page, not fetched. The same formula gives the same percentages on every reload, and nothing about the compound is sent anywhere.
The page reads a formula, adds the standard atomic weights of its atoms to get the molar mass in g/mol, and prints each element's share of that mass as a percentage. H2SO4 comes out at 98.07 g/mol, with hydrogen at 2.06 percent, sulfur at 32.69 and oxygen at 65.25.
The weights are the IUPAC standard atomic weights quoted to three or four significant figures, which is why the percentages add to 100 only to the precision shown and why a fifth decimal place would be invented rather than measured. The table is written into the page; no compound database is consulted.
How to use it
Type the formula and press Run. The same notation the atom counter uses is accepted — nested round or square brackets, and hydrates written with a dot such as CuSO4.5H2O — and each result line shows the mass that element contributes before it is turned into a percentage.
- Enter the formula as written, with brackets kept: Ca(OH)2, not CaO2H2.
- Write hydrates with a dot: CuSO4.5H2O.
- Check the molar mass line first; the percentages divide by it.
The arithmetic, and where it stops
The molar mass is the sum of atomic weight times subscript over every atom in the formula. A percentage is one element's total contribution divided by that molar mass, times 100: in H2SO4, hydrogen contributes 2 × 1.008 = 2.016 of 98.07 g/mol, which is 2.06 percent. Because every line shows its own contribution, the percentages can be added back to 100 by eye, and any gap is the rounding of the quoted weights rather than an arithmetic error.
A formula with an unknown symbol or an unmatched bracket is refused with the symbol or bracket named, rather than being given a made-up mass; a formula that parses to no atoms at all is refused as empty.
What to Expect
Best for
- Reporting a percent composition from a formula when the compound is already known.
What this tool keeps
- The weights are compiled into the page, so the arithmetic runs offline and nothing about the formula is sent anywhere. The same figures give the same result after a reload.
Sample input
H2SO4
Sample output
molar mass = 98.07 g/mol H 2.06 %, S 32.69 %, O 65.25 %
Frequently asked questions
How do I use the Atomic Mass Percent Calculator?
Type the formula and press Run. The same notation the atom counter uses is accepted — nested round or square brackets, and hydrates written with a dot such as CuSO4.5H2O — and each result line shows the mass that element contributes before it is turned into a percentage.
Does anything leave my browser?
No. The weights are compiled into the page, so the arithmetic runs offline and nothing about the formula is sent anywhere. Reloading the page discards every value you entered.
Which inputs does it refuse?
A formula with an unknown symbol or an unmatched bracket is refused with the symbol or bracket named, rather than being given a made-up mass; a formula that parses to no atoms at all is refused as empty.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.