About Percent Composition Calculator
Percent composition answers a practical question: what fraction of a compound's mass comes from each element? It is how you check an empirical formula, plan a gravimetric experiment, or explain why one oxide of iron is richer in iron than another.
The calculator parses the formula with the same engine as the molar mass tool, including nested brackets and hydrate dots, then divides every element's contribution by the total molar mass. Add an optional sample mass and the same percentages become grams of each element in that sample.
What this tool does
Mass percent for every element
Each element is listed with its atom count, atomic mass, molar mass contribution and the percentage of the compound's mass it accounts for.
Optional sample mass
Enter a sample mass in grams and the table gains a column showing the mass of each element in that sample.
Nested groups and hydrates
Formulas such as Ca3(PO4)2 and CuSO4·5H2O parse correctly, so grouped and hydrated compounds get the right composition.
Step-by-step working
The calculation shows the molar mass arithmetic and each percentage division, so every value can be checked by hand.
Clear formula errors
Unknown symbols, unbalanced brackets and zero subscripts are reported with the same specific messages as the molar mass calculator.
Local and private
The formula and sample mass are processed in the page; nothing is uploaded, stored or logged.
How to use Percent Composition Calculator
- 01
Enter the formula
Type the chemical formula with normal digits for subscripts, for example H2SO4 or Al2(SO4)3.
- 02
Add a sample mass if needed
Optionally enter a mass in grams to convert the percentages into the mass of each element in that sample.
- 03
Read the composition table
Check the molar mass, then the contribution and mass percentage for each element.
- 04
Use the working panel
Follow the arithmetic for each percentage and, when a sample mass is set, for each element's mass in the sample.
- 05
Reset for another compound
Press Reset to clear the formula and sample mass and start again.
How this tool works
- Works with
- FORMULA → MASS %
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- Uses conventional standard atomic weights, so displayed percentages may not total exactly 100 after rounding.
- Calculates composition from a formula only; finding an empirical or molecular formula from measured percentages is not included.
- Isotope-specific and mixture compositions are not modelled, because those need measured isotope data.
Privacy and file handling
Formulas and sample masses are processed in your browser tab. Nothing you enter is uploaded, stored or logged, and the calculator makes no network request.
Read the full privacy policy