Percent Composition Calculator

Calculate the percent composition by mass of each element in a chemical compound.

Enter Compound

Calculate element masses for a specific sample size

Compound Analysis

C6H12O6
Molar Mass
180.156 g/mol
Total Atoms
24

Percent Composition

OOxygen
53.28%
6 atoms x 15.999 g/mol = 95.994 g/mol
CCarbon
40.00%
6 atoms x 12.011 g/mol = 72.066 g/mol
HHydrogen
6.71%
12 atoms x 1.008 g/mol = 12.096 g/mol

Mass in 100g Sample

Oxygen (O)53.2838 g
Carbon (C)40.0020 g
Hydrogen (H)6.7142 g
Total100.0000 g

Formula Summary

Molecular Formula
C6H12O6
Empirical Formula
OCH2

What Is Percent Composition?

Percent composition is the percentage by mass of each element in a chemical compound. It answers the question: what fraction of a compound's total mass comes from each constituent element? Percent composition is one of the most fundamental calculations in chemistry because it provides a direct link between a compound's molecular formula and its elemental makeup. It is used to verify the identity of synthesized compounds, determine empirical formulas from experimental data, and perform quality control in chemical manufacturing.

The percent composition of an element in a compound is calculated by dividing the total mass contributed by that element (its atomic mass times the number of atoms) by the molar mass of the compound, then multiplying by 100. For example, water (H₂O) has a molar mass of 18.015 g/mol. The two hydrogen atoms contribute 2 × 1.008 = 2.016 g/mol, giving a percent composition of 11.19% hydrogen and 88.81% oxygen by mass.

Percent composition is an intensive property — it does not depend on the sample size. Whether you have one mole or one gram of a compound, the percent composition by mass remains the same. This makes it a powerful tool for identifying unknown substances: if the experimentally determined percent composition matches that of a known compound, it provides strong evidence for the compound's identity. This calculator parses any valid chemical formula, calculates the molar mass, and provides a complete element-by-element breakdown of the percent composition.

The Percent Composition Formula

The percent composition of an element is calculated by dividing the mass contribution of that element by the total molar mass of the compound.

Percent Composition

% element = (n × atomic mass / molar mass) × 100

Where:

  • % element= Percent composition by mass of the element
  • n= Number of atoms of the element in the formula
  • atomic mass= Standard atomic weight of the element (g/mol)
  • molar mass= Total molar mass of the compound (g/mol)

How to Use This Calculator

This calculator provides a complete elemental analysis of any chemical compound:

  1. Enter the Molecular Formula: Type the formula using standard notation — uppercase first letter, lowercase second letter for elements, and subscripts for atom counts. Parentheses are supported for complex formulas like Ca(OH)₂ or Fe₂(SO₄)₃.
  2. Enter a Sample Mass (optional): If you want to know how many grams of each element are in a specific sample size, enter the mass in grams. The calculator will distribute this mass according to the percent composition.
  3. Or Select a Common Compound: Click any preset button (H₂O, C₆H₁₂O₆, NaCl, H₂SO₄, C₂H₅OH, CH₄) for quick analysis of frequently used compounds.
  4. View Results: The calculator displays the molar mass, total atom count, percent composition for each element with visual progress bars, the empirical formula, and mass breakdown for the specified sample size.

The results are presented in a clear, organized format that is suitable for lab reports, homework assignments, and reference purposes.

Understanding the Results

The calculator provides several types of information about the compound's elemental composition:

Molar Mass: The total molar mass of the compound in g/mol. This is the sum of all atomic mass contributions. For example, glucose (C₆H₁₂O₆) has a molar mass of 180.156 g/mol.

Element Breakdown: Each element is listed with its atomic mass, atom count, total mass contribution, and percentage. Elements are sorted by percentage in descending order, with the heaviest contributors at the top. Visual progress bars show the relative contribution of each element.

Empirical Formula: The calculator determines the empirical formula (simplest whole-number ratio of atoms) by dividing all atom counts by their greatest common divisor. For glucose (C₆H₁₂O₆), the empirical formula is CH₂O. Comparing the molecular formula to the empirical formula reveals the ratio of formula units to empirical units.

Sample Mass Breakdown: If a sample mass is provided, the calculator shows how many grams of each element are present in that sample. This is useful for stoichiometric calculations and for verifying experimental results against theoretical predictions.

Real-World Applications

Percent composition calculations have wide-ranging applications in chemistry and related fields:

Empirical Formula Determination: In analytical chemistry, the classic method for determining an unknown compound's formula begins with measuring the percent composition experimentally (e.g., by combustion analysis or gravimetric analysis). The percent composition is then used to calculate the empirical formula. If the molar mass is also known (from mass spectrometry), the molecular formula can be determined.

Quality Control in Manufacturing: Chemical manufacturers routinely verify the percent composition of their products to ensure they meet specifications. For example, a batch of sulfuric acid should have a specific percent composition that matches the formula H₂SO₄. Deviations indicate contamination, incomplete reaction, or dilution errors.

Pharmaceutical Formulation: Drug products must contain precise amounts of active ingredients and excipients. Percent composition calculations ensure that each tablet or capsule contains the correct dose. Regulatory agencies like the FDA require percent composition analysis as part of the drug approval process.

Geochemistry and Mineralogy: The identification of minerals relies heavily on percent composition. Two minerals may have similar crystal structures but different elemental compositions, giving them different properties. For example, the difference between dolomite (CaMg(CO₃)₂) and calcite (CaCO₃) is reflected in their different magnesium and calcium percentages.

Worked Examples

Water (H₂O)

Problem:

Calculate the percent composition of water.

Solution Steps:

  1. 1Atomic masses: H = 1.008, O = 15.999
  2. 2Molar mass: 2(1.008) + 15.999 = 18.015 g/mol
  3. 3Hydrogen: (2 × 1.008 / 18.015) × 100 = 11.19%
  4. 4Oxygen: (15.999 / 18.015) × 100 = 88.81%

Result:

H₂O: 11.19% H, 88.81% O by mass

Glucose (C₆H₁₂O₆)

Problem:

Calculate the percent composition and empirical formula of glucose.

Solution Steps:

  1. 1Molar mass: 6(12.011) + 12(1.008) + 6(15.999) = 180.156 g/mol
  2. 2Carbon: (72.066 / 180.156) × 100 = 40.00%
  3. 3Hydrogen: (12.096 / 180.156) × 100 = 6.71%
  4. 4Oxygen: (95.994 / 180.156) × 100 = 53.28%
  5. 5Empirical formula: divide all by 6 → CH₂O

Result:

C₆H₁₂O₆: 40.00% C, 6.71% H, 53.28% O. Empirical formula: CH₂O

Sulfuric Acid (H₂SO₄)

Problem:

Calculate the percent composition and mass of each element in a 250 g sample of sulfuric acid.

Solution Steps:

  1. 1Molar mass: 2(1.008) + 32.065 + 4(15.999) = 98.076 g/mol
  2. 2Hydrogen: (2.016 / 98.076) × 100 = 2.06% → 250 × 0.0206 = 5.14 g
  3. 3Sulfur: (32.065 / 98.076) × 100 = 32.69% → 250 × 0.3269 = 81.72 g
  4. 4Oxygen: (63.996 / 98.076) × 100 = 65.25% → 250 × 0.6525 = 163.13 g

Result:

H₂SO₄: 2.06% H, 32.69% S, 65.25% O. In 250 g: 5.14 g H, 81.72 g S, 163.13 g O

Tips & Best Practices

  • Percent composition is an intensive property — it does not depend on sample size.
  • To find empirical formula from percent composition, convert percentages to moles and find the simplest ratio.
  • The sum of all percent composition values must equal 100% — use this as a sanity check.
  • For compounds with parentheses like Ca(OH)₂, multiply all atoms inside by the subscript outside.
  • Comparing molecular formula to empirical formula reveals the ratio: molecular/empirical = integer multiplier.
  • Percent composition analysis is the first step in identifying unknown compounds from experimental data.

Frequently Asked Questions

Percent composition and mass percent are synonymous — they both express the fraction of a compound's total mass contributed by a particular element, expressed as a percentage. The term 'percent composition' is more commonly used when describing the elemental breakdown of a compound, while 'mass percent' is often used in the context of solutions (e.g., mass percent of a solute in a solution).
To determine the empirical formula from percent composition: (1) Assume a 100 g sample, so the percentages become grams. (2) Convert grams to moles by dividing by each element's atomic mass. (3) Divide all mole values by the smallest mole value to get the simplest ratio. (4) Multiply by a small integer if necessary to get whole numbers. The result is the empirical formula.
No, two compounds with different molecular formulas will generally have different percent compositions. However, compounds with the same empirical formula will have the same percent composition. For example, glucose (C₆H₁₂O₆) and formaldehyde (CH₂O) both have the empirical formula CH₂O and thus identical percent compositions (40.00% C, 6.71% H, 53.28% O), despite being very different compounds.
Percent composition is an intensive property that is characteristic of a specific compound. If you determine the percent composition of an unknown substance experimentally (e.g., through combustion analysis) and it matches the theoretical percent composition of a known compound, this provides strong evidence for the compound's identity. It is often the first step in identifying an unknown substance.
Percent composition calculations based on standard atomic weights from IUPAC are extremely accurate — typically precise to 4-6 significant figures. The uncertainty comes from the atomic weights themselves, which are weighted averages of naturally occurring isotopes. For most practical purposes, the calculated percent composition is more accurate than what can be measured experimentally.

Sources & References

Last updated: 2026-06-06

💡

Help us improve!

How would you rate the Percent Composition Calculator?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: Chemistry: The Central Science

by Brown, LeMay, Bursten

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.