GoCalculatorPro
📊

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.

Enter a valid chemical formula with element symbols and subscripts

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

% Element=n×MelementMcompound×100\% \text{ Element} = \frac{n \times M_{\text{element}}}{M_{\text{compound}}} \times 100

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. 1

    Enter the chemical formula of the compound (e.g., H₂O, NaCl, C₆H₁₂O₆).

  2. 2

    The calculator determines the molar mass of the entire compound by summing all atomic mass contributions.

  3. 3

    For each element, it calculates: (number of atoms × atomic mass) / total molar mass × 100.

  4. 4

    Review the step-by-step breakdown showing each element's mass contribution and percentage.

  5. 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

  1. Molar mass of H₂O: (2 × 1.008) + (1 × 15.999) = 2.016 + 15.999 = 18.015 g/mol
  2. Hydrogen: (2 × 1.008) / 18.015 × 100 = 2.016 / 18.015 × 100 = 11.19%
  3. Oxygen: (1 × 15.999) / 18.015 × 100 = 15.999 / 18.015 × 100 = 88.81%
  4. Total: 11.19% + 88.81% = 100.00%

Result: H: 11.19%, O: 88.81%

Percent Composition of Sodium Chloride (NaCl)

Input: NaCl

  1. Molar mass of NaCl: (1 × 22.990) + (1 × 35.45) = 22.990 + 35.45 = 58.44 g/mol
  2. Sodium: (1 × 22.990) / 58.44 × 100 = 22.990 / 58.44 × 100 = 39.34%
  3. Chlorine: (1 × 35.45) / 58.44 × 100 = 35.45 / 58.44 × 100 = 60.66%
  4. Total: 39.34% + 60.66% = 100.00%

Result: Na: 39.34%, Cl: 60.66%

Percent Composition of Glucose (C₆H₁₂O₆)

Input: C6H12O6

  1. 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
  2. Carbon: (6 × 12.011) / 180.156 × 100 = 72.066 / 180.156 × 100 = 40.00%
  3. Hydrogen: (12 × 1.008) / 180.156 × 100 = 12.096 / 180.156 × 100 = 6.71%
  4. Oxygen: (6 × 15.999) / 180.156 × 100 = 95.994 / 180.156 × 100 = 53.29%
  5. Total: 40.00% + 6.71% + 53.29% = 100.00%

Result: C: 40.00%, H: 6.71%, O: 53.29%

Frequently Asked Questions

Percent composition (or mass percent) is the percentage of each element's mass relative to the total mass of the compound. It is calculated by dividing the total mass of each element in one mole of the compound by the molar mass of the compound, then multiplying by 100. The sum of all element percentages should equal 100%.
If you know the percent composition of a compound, you can determine its empirical formula by: (1) assuming a 100 g sample so that percentages become grams, (2) converting grams of each element to moles using atomic masses, (3) dividing all mole values by the smallest number to get the simplest whole-number ratio, and (4) writing the empirical formula using these ratios.
Small deviations from exactly 100% are due to rounding of atomic masses and intermediate calculation results. Standard atomic masses from IUPAC are averaged values that account for natural isotope abundances, so the values used are approximations. The deviation is typically less than 0.1% and is scientifically insignificant.
Percent composition describes the mass fraction of each element within a single compound. Percent yield, on the other hand, compares the actual amount of product obtained from a chemical reaction to the theoretical maximum predicted by stoichiometry. They are different concepts: percent composition is a property of a substance, while percent yield is a measure of reaction efficiency.
Yes, percent composition can be calculated for any compound, including ionic compounds. For example, NaCl is 39.34% sodium and 60.66% chlorine by mass. Even though ionic compounds do not form discrete molecules, the formula unit is used in the same way as a molecular formula to calculate the mass contributions of each element.