Skip to main content
🧪 Composition

Percent Composition Calculator

Find the mass percent of an element in a compound from its atom count and atomic mass over the molar mass — or generically from element mass over sample mass.

Element mass %
Formula or mass route
Adds to 100%
Element mass from %
100% Free
🧪 Open Full Chemical Calculator 📖 Read the Guide

Percent composition — Quick answer

An element's percent is the mass it contributes divided by the compound's molar mass, times 100. All elements add to 100%.

% = (atoms × atomic mass / molar mass) × 100
element mass = (% / 100) × sample mass

Worked example (water, H₂O, M = 18.015): O = (1×16.00/18.015)×100 = 88.8%, H = (2×1.008/18.015)×100 = 11.2%.

Percent composition examples

CompoundElementMass %
H₂OO88.8%
CO₂C27.3%
NaClNa39.3%

Used for: formula analysis, purity, fertilisers, ore grades, empirical formulas.

🧪 Percent Composition Calculator

Formula route: atoms × atomic mass ÷ molar mass. Or generic route: element mass ÷ sample mass.

Percent composition
Element mass contribution
Compound mass
Element in 100 g

⚠️ Use the same atomic masses your course uses (periodic table values). The percentages of all elements in a compound should sum to ~100% — a quick check on your numbers.

Percent composition tells you what fraction of a compound's mass is each element. It is read straight from the formula: take how much mass an element contributes — its atom count times its atomic mass — divide by the compound's molar mass, and multiply by 100. Because it depends only on the formula, it is a fixed fingerprint of the substance: every sample of water is 88.8% oxygen by mass, anywhere, always. It underpins purity checks, fertiliser labels (the N-P-K numbers), ore grades and the path from data to an empirical formula.

Reviewed: June 19, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: the definition of mass percent composition.

The percent-composition equations

Element percent (from formula)
% = (atoms × atomic mass / molar mass) × 100
Element percent (from masses)
% = (element mass / sample mass) × 100
Mass of an element
element mass = (% / 100) × sample mass

The mass an element contributes is its atom count multiplied by its atomic mass — two oxygens in CO₂ contribute 2 × 16.00 = 32.00. Divide by the compound's molar mass and multiply by 100 for the percentage. Add up every element's percent and you should get 100% (within rounding), because the parts must account for the whole molar mass. Multiply a percent by a sample mass and you recover how many grams of that element a real sample holds.

Worked example — water and carbon dioxide

Scenario: Find the percent composition of oxygen in water (H₂O, molar mass 18.015) and carbon in carbon dioxide (CO₂, molar mass 44.01).

Oxygen in water
% O = (1 × 16.00 / 18.015) × 100 = 88.8% (and H = 11.2%)
Carbon in CO₂
% C = (1 × 12.01 / 44.01) × 100 = 27.3% (and O = 72.7%)

Water is 88.8% oxygen and 11.2% hydrogen, adding to 100%. Carbon dioxide is 27.3% carbon and 72.7% oxygen — note the same element, oxygen, is a very different percentage in the two compounds because the molar masses and atom counts differ. To find the oxygen in 250 g of water, just take 0.888 × 250 = 222 g.

Frequently Asked Questions

How do you calculate percent composition?

% = (atoms × atomic mass ÷ molar mass) × 100. O in H₂O = (16/18.015)×100 = 88.8%.

What is percent composition by mass?

The mass fraction of each element in a compound, out of 100. 100 g of water = 88.8 g O + 11.2 g H.

Mass of an element from percent?

element mass = (% ÷ 100) × sample mass. 70% iron in 50 g ore = 35 g iron.

Do percentages add to 100?

Yes — all elements together make up the whole molar mass. If not, recheck atoms, atomic masses or molar mass.

Composition vs empirical formula?

Composition = mass fractions; empirical formula = simplest atom ratio. Convert % → moles → ratio to get the formula.

Ready to perform complete calculations?

Use the full AI Calculator suite for formula analysis and chemistry with a professional PDF report.

🧪 Open Full Calculator — Free

No registration required · 350+ engineering calculators · PDF report export