Percent Composition Calculator
Find the mass percentage of a component.
Result
How it is calculated
The tool divides the mass of one component by the total mass and multiplies by 100: percent = part / total × 100. Both masses must be in the same unit (grams, kilograms or atomic mass units) and the unit cancels out, so the answer is a pure percentage shown to two decimals. For a compound, the part is the combined mass of all atoms of that element in one formula unit, for example 2 × 1.008 for the hydrogen in H₂O, and the total is the molar mass of the whole formula. The total must be above zero. The tool does not check that the part is smaller than the total, so a part larger than the total returns a figure above 100%, and a negative part returns a negative percentage.
Worked example
What share of water's mass is oxygen? One mole of H₂O has a molar mass of 18.015 g, and the oxygen in it contributes 15.999 g. Divide: 15.999 / 18.015 = 0.8881. Multiply by 100 to get 88.81%. The hydrogen is the rest: 2.016 / 18.015 gives 11.19%, and the two percentages add up to 100%. So about 89% of the mass of any water sample is oxygen, even though there are twice as many hydrogen atoms.
Common mistakes
- Using the atom count instead of the mass. In H₂O there are two hydrogens and one oxygen, but percent composition uses their masses, and hydrogen is only 11.19% by mass.
- Forgetting to multiply the atomic mass by the subscript. For hydrogen in water the part is 2 × 1.008 = 2.016, not 1.008; using 1.008 gives 5.60% rather than 11.19%.
- Entering the part and total in different units, such as milligrams against grams. The tool cannot tell, so a part of 500 mg against a total of 2 g must be entered as 0.5 and 2.
- Swapping part and total. A result above 100% is a signal that the two numbers are in the wrong fields, since the tool does not warn you.
- Using a rounded or wrong molar mass for the total. If the total is not the sum of the parts, the percentages of the components will not add up to 100%.
About this calculator
Percent composition (mass percent) is simply (part / total) × 100 — the mass of one component divided by the total mass of the mixture or compound. In chemistry, it's most often used to describe the percentage by mass of each element within a compound, calculated from the elements' molar masses relative to the compound's total molar mass, though the same math applies just as well to mixture purity or ingredient proportions.
Chemistry students use percent composition to verify empirical formulas from experimental mass data, analytical chemists use it to report purity of a sample or product, food scientists use it to calculate nutrition-label percentages, and pharmacists use it when formulating mixtures to hit a target concentration by mass.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
Percent composition also works backwards, which is how lab results become formulas. Treat each percentage as grams in a 100 g sample and divide by the element's atomic mass. For 88.81 and 11.19 percent oxygen and hydrogen, that is 88.81 ÷ 15.999 = 5.551 and 11.19 ÷ 1.008 = 11.10 moles, a 1 to 2 ratio, so H₂O. What kind of sample are you working from, a textbook compound or your own lab data?