/

Percent Composition Calculator | Find Composition by Mass of Any Compound

Chemistry Tool

Percent Composition Calculator

Find percent composition by mass from any chemical formula or experimental data. Step-by-step working, visual pie chart, and instant results — the complete percent comp calculator for chemistry.

Percent Composition Calculator
H₂O
NaCl
CO₂
H₂SO₄
C₆H₁₂O₆
Ca₃(PO₄)₂
CaCO₃
(NH₄)₂SO₄
Percent Composition Practice Problems

Test your understanding! Enter your answers and click "Check Answer" to see the full working.

1
Find the percent composition of water:
H₂O
2
Find the percent composition of table salt:
NaCl
3
Find the percent composition of carbon dioxide:
CO₂
4
What percentage of ammonia is nitrogen?
NH₃
5
Find the percent composition of glucose:
C₆H₁₂O₆

This percent composition calculator finds the percent by composition of every element in a chemical compound — instantly, with full step-by-step working. Whether you have a chemical formula like H₂O or experimental mass data, this percent comp tool calculates each element's mass contribution and converts it to a percentage. Enter any formula, choose a method, and get a complete visual breakdown in seconds.

Percent Composition Formula

% Composition of X = (Mass of X in 1 mol ÷ Molar Mass of Compound) × 100 From chemical formula
% Composition = (Mass of Element ÷ Total Sample Mass) × 100 From experimental mass data

Where: Mass of X in 1 mol = (number of atoms of X) × (atomic mass of X); Molar mass = sum of all element mass contributions; Total sample mass = sum of all measured element masses in grams.

The percent composition definition in chemistry: percent composition tells you what fraction by mass each element contributes to a compound. If a compound is 11.19% hydrogen by mass, every 100 g of that compound contains exactly 11.19 g of hydrogen. This is one of the most fundamental concepts in percent composition chemistry.

How to Find Percent Composition — Step by Step

Method 1: From Chemical Formula

  1. Write the chemical formula (e.g. H₂SO₄)
  2. Find the atomic mass of each element from the periodic table
  3. Calculate mass contribution = atoms × atomic mass for each element
  4. Sum all contributions → total molar mass
  5. Divide each element's mass contribution by molar mass × 100

Worked Example: H₂SO₄ (Sulfuric Acid)

  • H: 2 atoms × 1.008 g/mol = 2.016 g/mol → 2.016 ÷ 98.072 × 100 = 2.06%
  • S: 1 atom × 32.06 g/mol = 32.06 g/mol → 32.06 ÷ 98.072 × 100 = 32.69%
  • O: 4 atoms × 15.999 g/mol = 63.996 g/mol → 63.996 ÷ 98.072 × 100 = 65.25%
  • Total molar mass = 2.016 + 32.06 + 63.996 = 98.072 g/mol
  • Sum of percentages = 2.06 + 32.69 + 65.25 = 100.00% ✓

Method 2: From Experimental Mass Data

  1. Measure the mass of each element present in your sample
  2. Add all masses together → total sample mass
  3. Divide each element's mass by the total sample mass × 100

Worked Example: Sample contains 2.4 g C, 0.8 g H, 6.4 g O

  • Total mass = 2.4 + 0.8 + 6.4 = 9.6 g
  • C: 2.4 ÷ 9.6 × 100 = 25.00%
  • H: 0.8 ÷ 9.6 × 100 = 8.33%
  • O: 6.4 ÷ 9.6 × 100 = 66.67%

Percent Composition Examples — Reference Table

The table below gives the percent composition examples most commonly used in chemistry class and textbook problems.

Compound Formula Molar Mass Elements % Each Element
WaterH₂O18.015 g/molH, OH: 11.19%, O: 88.81%
Table saltNaCl58.44 g/molNa, ClNa: 39.34%, Cl: 60.66%
Carbon dioxideCO₂44.009 g/molC, OC: 27.29%, O: 72.71%
AmmoniaNH₃17.031 g/molN, HN: 82.24%, H: 17.76%
GlucoseC₆H₁₂O₆180.156 g/molC, H, OC: 40.00%, H: 6.71%, O: 53.29%
Sulfuric acidH₂SO₄98.072 g/molH, S, OH: 2.06%, S: 32.69%, O: 65.25%
Calcium carbonateCaCO₃100.086 g/molCa, C, OCa: 40.04%, C: 12.00%, O: 47.96%
EthanolC₂H₅OH46.068 g/molC, H, OC: 52.14%, H: 13.13%, O: 34.73%

Calculate the Percentage Composition of the Following Compounds

Full worked solutions for the most commonly searched percent composition problems in chemistry.

1. Calculate the percentage composition of H₂O

Molar mass: (2 × 1.008) + (1 × 15.999) = 2.016 + 15.999 = 18.015 g/mol

  • %H = 2.016 ÷ 18.015 × 100 = 11.19%
  • %O = 15.999 ÷ 18.015 × 100 = 88.81%

2. Calculate the percentage composition of NaCl

Molar mass: (1 × 22.990) + (1 × 35.45) = 58.44 g/mol

  • %Na = 22.990 ÷ 58.44 × 100 = 39.34%
  • %Cl = 35.45 ÷ 58.44 × 100 = 60.66%

3. Calculate the percentage composition of CO₂

Molar mass: (1 × 12.011) + (2 × 15.999) = 12.011 + 31.998 = 44.009 g/mol

  • %C = 12.011 ÷ 44.009 × 100 = 27.29%
  • %O = 31.998 ÷ 44.009 × 100 = 72.71%

4. Calculate the percentage composition of NH₃

Molar mass: (1 × 14.007) + (3 × 1.008) = 14.007 + 3.024 = 17.031 g/mol

  • %N = 14.007 ÷ 17.031 × 100 = 82.24%
  • %H = 3.024 ÷ 17.031 × 100 = 17.76%

5. Calculate the percentage composition of H₂SO₄

Molar mass: (2 × 1.008) + (1 × 32.06) + (4 × 15.999) = 2.016 + 32.06 + 63.996 = 98.072 g/mol

  • %H = 2.016 ÷ 98.072 × 100 = 2.06%
  • %S = 32.06 ÷ 98.072 × 100 = 32.69%
  • %O = 63.996 ÷ 98.072 × 100 = 65.25%

6. Calculate the percentage composition of C₆H₁₂O₆ (glucose)

Molar mass: (6 × 12.011) + (12 × 1.008) + (6 × 15.999) = 72.066 + 12.096 + 95.994 = 180.156 g/mol

  • %C = 72.066 ÷ 180.156 × 100 = 40.00%
  • %H = 12.096 ÷ 180.156 × 100 = 6.71%
  • %O = 95.994 ÷ 180.156 × 100 = 53.29%

7. Calculate the percentage composition of CaCO₃

Molar mass: (1 × 40.078) + (1 × 12.011) + (3 × 15.999) = 40.078 + 12.011 + 47.997 = 100.086 g/mol

  • %Ca = 40.078 ÷ 100.086 × 100 = 40.04%
  • %C = 12.011 ÷ 100.086 × 100 = 12.00%
  • %O = 47.997 ÷ 100.086 × 100 = 47.96%

Percent Composition and Chemical Formulas

Percent composition is the essential first step in determining the empirical and molecular formula of any unknown compound. Here is the full workflow used in analytical chemistry:

  1. % Composition — measure or calculate the mass percentage of each element
  2. Empirical Formula — assume 100 g of compound, convert percentages to grams, divide by atomic mass → find mole ratio → simplest whole-number ratio
  3. Molecular Formula — divide actual molar mass by empirical formula mass → multiply empirical formula by that factor

Example: A compound is 40.00% C, 6.71% H, 53.29% O. These percentages lead directly to the empirical formula CH₂O. With a molar mass of 180 g/mol, the molecular formula is C₆H₁₂O₆ (glucose).

Worked Examples

How do you find percent composition by mass?

Divide the mass of each element by the total mass of the sample (or molar mass), then multiply by 100. For example, in 18.015 g of H₂O: 2.016 g is hydrogen → 2.016 ÷ 18.015 × 100 = 11.19% H.

How to calculate percentage composition of a compound step by step

Step 1: Write the formula. Step 2: Find atomic masses. Step 3: Multiply atoms × atomic mass per element. Step 4: Sum all = molar mass. Step 5: Divide each element's mass by molar mass × 100. For H₂SO₄: %O = (4 × 15.999) ÷ 98.072 × 100 = 65.25%.

How to find the percent composition of an element in a compound

Identify how many atoms of that element appear in the formula, multiply by its atomic mass, then divide by the compound's total molar mass × 100. Example: %N in NH₃ = (1 × 14.007) ÷ 17.031 × 100 = 82.24%.

How to do percentage composition from experimental data

Weigh each element separately. Add all masses to get total sample mass. Divide each element's mass by the total × 100. If your sample contains 4.0 g Ca and 6.0 g O (total 10.0 g): %Ca = 4.0 ÷ 10.0 × 100 = 40%.

What is the percent composition of carbon in CO₂?

Molar mass of CO₂ = 12.011 + (2 × 15.999) = 44.009 g/mol. Mass of C = 12.011 g/mol. %C = 12.011 ÷ 44.009 × 100 = 27.29%.

How to find percent composition of NaCl

Molar mass = 22.990 + 35.45 = 58.44 g/mol. %Na = 22.990 ÷ 58.44 × 100 = 39.34%. %Cl = 35.45 ÷ 58.44 × 100 = 60.66%.

How to calculate percent comp of H₂O

Molar mass = 2.016 + 15.999 = 18.015 g/mol. %H = 2.016 ÷ 18.015 × 100 = 11.19%. %O = 15.999 ÷ 18.015 × 100 = 88.81%.

How to find percent composition when given grams

When given grams of each element in a sample, add all masses to find the total. Then divide each element's mass by the total × 100. This is the mass percentage composition method — no periodic table needed.

Frequently Asked Questions

What is percent composition in chemistry?
Percent composition in chemistry is the percentage by mass that each element contributes to a compound. It tells you how much of every 100 grams of a compound is made up by each element. For example, water (H₂O) is 11.19% hydrogen and 88.81% oxygen by mass.
What is the percent composition formula?
The percent composition formula is: % Composition of Element X = (Mass of X in 1 mol of compound ÷ Molar mass of compound) × 100. From experimental data: % Composition = (Mass of element ÷ Total sample mass) × 100.
How do you calculate percent composition by mass?
Weigh each element in your sample separately. Add all masses together to get the total sample mass. Then for each element: divide its mass by the total mass and multiply by 100. Example: 12 g C in a 50 g sample → %C = 12 ÷ 50 × 100 = 24%.
How do you find the percent composition of an element?
From a formula: multiply that element's atom count by its atomic mass, then divide by the compound's molar mass × 100. For %S in H₂SO₄: (1 × 32.06) ÷ 98.072 × 100 = 32.69%.
What does percent composition tell you about a compound?
Percent composition tells you the fraction by mass of each element in a compound. This information is used to identify unknown compounds in a lab, verify purity, and determine empirical and molecular formulas.
How is percent composition related to empirical formula?
Percent composition is the starting point for determining empirical formulas. You assume 100 g of compound (so percentages become grams), divide each by atomic mass to get moles, then find the simplest mole ratio. That ratio gives the empirical formula.
Why do the percentages in percent composition add up to 100%?
Because each element's mass percentage is calculated relative to the total mass of the compound. Since all elements together make up 100% of the compound's mass, their individual percentages must sum to 100% (within rounding error).
How do you find percent composition from experimental mass data?
Measure the mass of each element in your sample. Sum all masses to get the total. Divide each element's mass by the total × 100. If the percentages don't add to exactly 100%, there may be experimental measurement error.
What is the difference between percent composition and percent yield?
Percent composition tells you the fraction of each element in a compound by mass. Percent yield measures how much product you actually obtained in a reaction versus the theoretical maximum. They are entirely different concepts — one describes composition, the other describes reaction efficiency.
How do you calculate percent composition without a periodic table?
You can use experimental mass data — weigh each element directly and apply % = (element mass ÷ total mass) × 100. Our calculator also has atomic masses built in, so you never need a periodic table when using this percent composition calculator.

Related Chemistry Calculators

Quick Reference
Formula
% = (element mass ÷ molar mass) × 100
Step 1
Count atoms of each element in formula
Step 2
Multiply atoms × atomic mass
Step 3
Sum all → total molar mass
Step 4
Divide each by molar mass × 100
Check
All % should sum to ~100%
Atomic Masses
ElementSymbolMass
HydrogenH1.008
CarbonC12.011
NitrogenN14.007
OxygenO15.999
SodiumNa22.990
MagnesiumMg24.305
PhosphorusP30.974
SulfurS32.06
ChlorineCl35.45
CalciumCa40.078
IronFe55.845
CopperCu63.546
ZincZn65.38
BromineBr79.904
IodineI126.904
Common Compounds
FormulaMolar Mass
H₂O18.015 g/mol
NaCl58.44 g/mol
CO₂44.009 g/mol
NH₃17.031 g/mol
H₂SO₄98.072 g/mol
C₆H₁₂O₆180.156 g/mol
CaCO₃100.086 g/mol
Ca₃(PO₄)₂310.18 g/mol

Share This Tool

Share the Percent Composition Calculator with your class!

```

Free chemistry, physics, biology & math calculators with step-by-step solutions. Trusted by 100,000+ students. Solve any science problem instantly!

Newsletter

Subscribe to our Newsletter to be updated. We promise not to spam.

Copyright © 2026 SciSolveLab. All Rights Reserved

Scroll to Top