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
Percent Composition
Mass in 100g Sample
Formula Summary
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
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:
- 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₄)₃.
- 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.
- 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.
- 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:
- 1Atomic masses: H = 1.008, O = 15.999
- 2Molar mass: 2(1.008) + 15.999 = 18.015 g/mol
- 3Hydrogen: (2 × 1.008 / 18.015) × 100 = 11.19%
- 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:
- 1Molar mass: 6(12.011) + 12(1.008) + 6(15.999) = 180.156 g/mol
- 2Carbon: (72.066 / 180.156) × 100 = 40.00%
- 3Hydrogen: (12.096 / 180.156) × 100 = 6.71%
- 4Oxygen: (95.994 / 180.156) × 100 = 53.28%
- 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:
- 1Molar mass: 2(1.008) + 32.065 + 4(15.999) = 98.076 g/mol
- 2Hydrogen: (2.016 / 98.076) × 100 = 2.06% → 250 × 0.0206 = 5.14 g
- 3Sulfur: (32.065 / 98.076) × 100 = 32.69% → 250 × 0.3269 = 81.72 g
- 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
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.
Formula Source: Chemistry: The Central Science
by Brown, LeMay, Bursten