Percent Composition Calculator
Calculate the percent composition by mass of each element in a chemical compound. Enter any chemical formula to get a detailed breakdown of mass percentages with step-by-step calculations.
What is a Percent Composition Calculator?
The percent composition calculator is a vital chemistry tool for determining the mass percentage of each element in a chemical compound. Percent composition (also known as mass percent or weight percent) tells you what fraction of a compound's total mass is contributed by each element. It is calculated by dividing the total mass contribution of each element by the molar mass of the compound, then multiplying by 100. This concept is fundamental in analytical chemistry, stoichiometry, and materials science. Knowing the percent composition of a compound helps chemists verify the purity of substances, determine empirical and molecular formulas from experimental data, and understand the elemental makeup of materials. For example, water (H₂O) is 11.19% hydrogen and 88.81% oxygen by mass. In nutritional science, percent composition is used to analyze the mineral content of foods and supplements. In environmental chemistry, it helps quantify the elemental content of pollutants and minerals. Pharmaceutical chemists use it to verify drug composition and ensure quality control. This free online percent composition calculator accepts any valid chemical formula and provides a complete element-by-element breakdown showing both the mass contribution and the percentage of each element in the compound.
Formula
Where n is the number of atoms of the element in the formula, M_element is the atomic mass of the element (in g/mol), and M_compound is the total molar mass of the compound (in g/mol). The result is expressed as a percentage.
How to Calculate
- 1
Enter the chemical formula of the compound (e.g., H₂O, NaCl, C₆H₁₂O₆).
- 2
The calculator determines the molar mass of the entire compound by summing all atomic mass contributions.
- 3
For each element, it calculates: (number of atoms × atomic mass) / total molar mass × 100.
- 4
Review the step-by-step breakdown showing each element's mass contribution and percentage.
- 5
Verify that all element percentages sum to approximately 100% (minor rounding differences may occur).
Worked Examples
Percent Composition of Water (H₂O)
Input: H2O
- Molar mass of H₂O: (2 × 1.008) + (1 × 15.999) = 2.016 + 15.999 = 18.015 g/mol
- Hydrogen: (2 × 1.008) / 18.015 × 100 = 2.016 / 18.015 × 100 = 11.19%
- Oxygen: (1 × 15.999) / 18.015 × 100 = 15.999 / 18.015 × 100 = 88.81%
- Total: 11.19% + 88.81% = 100.00%
Result: H: 11.19%, O: 88.81%
Percent Composition of Sodium Chloride (NaCl)
Input: NaCl
- Molar mass of NaCl: (1 × 22.990) + (1 × 35.45) = 22.990 + 35.45 = 58.44 g/mol
- Sodium: (1 × 22.990) / 58.44 × 100 = 22.990 / 58.44 × 100 = 39.34%
- Chlorine: (1 × 35.45) / 58.44 × 100 = 35.45 / 58.44 × 100 = 60.66%
- Total: 39.34% + 60.66% = 100.00%
Result: Na: 39.34%, Cl: 60.66%
Percent Composition of Glucose (C₆H₁₂O₆)
Input: C6H12O6
- Molar mass of C₆H₁₂O₆: (6 × 12.011) + (12 × 1.008) + (6 × 15.999) = 72.066 + 12.096 + 95.994 = 180.156 g/mol
- Carbon: (6 × 12.011) / 180.156 × 100 = 72.066 / 180.156 × 100 = 40.00%
- Hydrogen: (12 × 1.008) / 180.156 × 100 = 12.096 / 180.156 × 100 = 6.71%
- Oxygen: (6 × 15.999) / 180.156 × 100 = 95.994 / 180.156 × 100 = 53.29%
- Total: 40.00% + 6.71% + 53.29% = 100.00%
Result: C: 40.00%, H: 6.71%, O: 53.29%
Frequently Asked Questions
Related Calculators
Molar Mass Calculator
Calculate the molar mass of any chemical compound. Enter a chemical formula like H2O, NaCl, or Ca(OH)2 to get the molecular weight in g/mol with a step-by-step breakdown.
chemistryAtomic Mass Calculator
Look up the atomic mass of any element by its atomic number. Get the standard atomic weight in atomic mass units (amu) along with element details.
chemistryAverage Atomic Mass Calculator
Calculate the average atomic mass of an element from its isotope masses and natural abundances. Supports up to 4 isotopes.
chemistrypKa Calculator
Calculate pKa from Ka or Ka from pKa instantly. Convert between acid dissociation constant (Ka) and its negative logarithm (pKa) with step-by-step solutions. Free online chemistry tool.
chemistry