Percent Composition Calculator
Enter a chemical formula to find the mass percent contributed by each element, with a full breakdown table.
🧮 What is Percent Composition?
Percent composition (also called percent composition by mass) tells you what fraction of a compound's total mass comes from each element in its formula. It is calculated by dividing the mass contributed by an element (its atomic mass multiplied by how many atoms of it appear in the formula) by the compound's total molecular weight, then multiplying by 100. For water (H2O), hydrogen contributes 11.19% of the mass and oxygen contributes the remaining 88.81%.
Chemists use percent composition constantly. Fertilizer manufacturers report the nitrogen, phosphorus, and potassium content of their product as a percent composition (the N-P-K rating on every bag of fertilizer). Mining engineers use it to calculate the ore grade of a metal-bearing rock. Pharmaceutical labs use it to verify the purity of an active ingredient against its known formula. Students use it as the essential first step toward determining an empirical formula from combustion analysis data.
A common point of confusion is assuming the element with the heaviest atomic mass always dominates the percent composition. That is not always true, atom count matters just as much. In glucose (C6H12O6), oxygen has a higher atomic mass than carbon, but because carbon and oxygen both appear 6 times while hydrogen appears 12 times, oxygen ends up at 53.28%, carbon at 40.00%, and hydrogen, despite being the lightest element, still contributes a meaningful 6.71% because there are twice as many hydrogen atoms as carbon or oxygen atoms.
This calculator parses your formula, computes the molecular weight the same way the Molecular Weight Calculator does, and then breaks that total down element by element so you can see exactly where the mass comes from, with every row's percentage guaranteed to sum to 100%.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 — Water (H2O)
Find the percent composition of water
Example 2 — Glucose (C6H12O6)
Find the percent composition of glucose
Example 3 — Calcium Carbonate (CaCO3)
Find the percent composition of limestone, CaCO3
❓ Frequently Asked Questions
🔗 Related Calculators
What is percent composition in chemistry?
Percent composition is the percentage by mass that each element contributes to the total mass of a compound. It is calculated as (mass of element in the formula divided by the total molecular weight) multiplied by 100. For water, hydrogen contributes 11.19% and oxygen contributes 88.81% of the total mass.
What is the percent composition formula?
% Element = (n x A / M) x 100, where n is the number of atoms of that element in the formula, A is the element's atomic mass, and M is the total molecular weight of the compound. Every element's percentage in a formula sums to 100%.
How do you find percent composition from a chemical formula?
First calculate the molecular weight by summing every element's atomic mass times its atom count. Then, for each element, divide its total mass contribution by the molecular weight and multiply by 100. This calculator performs both steps automatically and shows the full breakdown table.
Why does percent composition matter?
Percent composition is used to verify the purity of a compound, to convert between experimental mass data and an empirical formula, to calculate how much of a target element is present in a fertilizer or ore sample, and to check stoichiometric calculations before running a reaction.
What is the difference between percent composition and empirical formula?
Percent composition describes the mass percentage of each element in a known formula, working forward from formula to percentages. Finding an empirical formula works backward: starting from percent composition (often from lab combustion analysis), you convert each percentage to moles and find the simplest whole-number ratio of atoms. Use the Empirical Formula Calculator for that reverse direction.
Do percent composition values always add up to 100%?
Yes. Since percent composition divides each element's mass contribution by the same total molecular weight, the percentages for every element in the formula always sum to exactly 100%, aside from small rounding differences in the last decimal place.
Does percent composition depend on the amount of sample?
No. Percent composition is an intensive property of the compound itself, based only on its chemical formula. A 1 gram sample and a 1 kilogram sample of the same pure compound have identical percent composition by mass.
How is percent composition used to find an empirical formula from lab data?
Convert each element's percent composition to grams (assuming a 100 gram sample, so percent equals grams directly), divide each by its atomic mass to get moles, then divide all mole values by the smallest one to get the simplest whole-number atom ratio. This reverse process is exactly what the Empirical Formula Calculator automates.
What elements does this calculator support?
This calculator supports the most common elements used in general and organic chemistry, including H, He, Li, Be, B, C, N, O, F, Ne, Na, Mg, Al, Si, P, S, Cl, Ar, K, Ca, Fe, Cu, Zn, Br, Ag, I, Au, and Hg. Entering an unrecognised symbol shows an error message.
Can I use this calculator for hydrates like CuSO4 times 5H2O?
Expand the hydrate manually before entering it. CuSO4 times 5H2O becomes CuSO4 plus 5 water molecules, which is CuS1O9H10 once combined. Enter that expanded formula to get the correct percent composition for the hydrated compound.
Why is percent composition important in fertilizer and industrial chemistry?
Fertilizer labels report the percent composition of nitrogen, phosphorus, and potassium (the N-P-K rating) by mass, since that determines the nutrient value per kilogram of product. The same calculation is used to verify ore grade in mining and to check the purity of pharmaceutical active ingredients.