On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Chemistry · Quantity & Proportion · Grade 9-12

Percent Composition

Percent composition is the percentage by mass of each element in a compound.

% element=(atomic mass of element)×(number of those atoms)molar mass of compound×100

Quick Answer

Percent composition is the percentage by mass of each element in a compound. You use it when you know a formula and want to know how much of the compound's mass comes from one element: the iron in a supplement, the nitrogen in a fertilizer, the metal in an ore. Multiply the element's atomic mass by the number of its atoms, divide by the compound's molar mass, and multiply by 100. The percentages of all the elements in the compound add to 100%.

Why This Matters

Fertilizers, ores and supplements are valued for how much of one element they deliver, not for how much compound is in the bag. Percent composition turns a formula into that number: 1 kg of urea, CO(NH2)2, carries about 467 g of nitrogen. It also runs backward, since measured percentages are the first clue to an unknown compound's formula. Without it, a share of the atoms gets mistaken for a share of the mass.

Intuitive Explanation

Water has three atoms per molecule and two of them are hydrogen, so you might guess hydrogen is two-thirds of water. By mass it is about 11%. The reason is mass per atom: an oxygen atom has a mass of 16.00 amu and a hydrogen atom only 1.008 amu. One molecule has a mass of 2(1.008)+16.00=18.02 amu, of which hydrogen supplies 2.016, so hydrogen is 2.016÷18.02=11.2% of the mass and oxygen is the other 88.8%.

That is the whole method: find each element's total contribution (atomic mass times number of atoms), then divide by the molar mass. Because you are splitting one total into shares, the shares always add to 100%, which gives you a built-in check. The answer also does not depend on sample size: a drop of water and a lake are both 11.2% hydrogen by mass, because every molecule has the same makeup.

Counting atoms is a different question. In glucose, C6H12O6, hydrogen makes up half of all the atoms (12 of 24) but only 6.7% of the mass. If a problem asks what fraction of the atoms are one kind, use the subscripts directly; if it says "by mass", weigh each element with its atomic mass first.

Think of it like this. Percent composition is like asking how much of a fruit basket's weight is melon. Two apples and one melon is mostly apple by count but mostly melon by weight, just as water is mostly hydrogen by atom count and mostly oxygen by mass. A basket's contents can vary; a compound's mass shares never do.

Core idea. Every compound has a fixed mass recipe: each element's share is its atomic mass times its atom count, divided by the molar mass. The shares add to 100% and are the same for any sample size.


When to Use

Use it when a known formula comes with a question about percent by mass, or about the mass of one element in a given mass of compound: how much iron is in a 325 mg tablet of iron(II) sulfate, or which fertilizer delivers more nitrogen per kilogram. If the problem gives percentages and asks for the formula, run the method backward with Empirical Formula. If it asks only for grams per mole, that is Molar Mass.

Tip. Ask: Does the question start from a known formula and ask what share of the compound's mass one element provides?

How to Recognize It

Percent composition runs from a formula to percentages, so check which direction the problem wants you to travel.

  1. Is the formula of the compound given?

    Yes means each element's share can be worked out directly. If you are given percentages and asked for a formula, that is the Empirical Formula, the same calculation run backwards.

  2. Does the answer compare part of one compound with the whole of that compound?

    Yes fits percent composition. A percentage that compares a collected product with a predicted amount is Percent Yield.

  3. Have you multiplied each element's atomic mass by the number of its atoms in the formula?

    Every atom of the element counts, so the hydrogen in H₂O is 2×1.008. Using one atom's mass gives a share that is too small.

  4. Does the question want the grams of an element in a real sample, such as iron in 50 g of ore?

    Then multiply the percentage by the sample's mass, a Grams (Mass) step. The percentage itself is the same for any size of pure sample.

Percent Composition vs Empirical Formula vs Percent Yield vs Molar Mass

Percent composition shares its arithmetic with molar mass, its data with empirical formulas and its percent sign with percent yield. Ask whether you are splitting one formula's mass, rebuilding a formula, or judging an experiment.

Percent Composition

Meaning
Percent composition gives the percentage of a compound's mass that comes from each element.
Key test
Formula in, percentages out; all the elements add to 100%.
Formula
%X=nXMXMcompound×100%
Example
Urea, CO(NH₂)₂, is 46.7% nitrogen by mass.

Empirical Formula

Meaning
An empirical formula is the simplest atom ratio, rebuilt from percentages or masses.
Key test
Percentages in, a formula out.
Example
An iron oxide that is 72.4% iron works out as Fe₃O₄.

Percent Yield

Meaning
Percent yield compares the product actually collected with the most the reaction could make.
Key test
Compares two amounts of product from an experiment, not parts of a formula.
Formula
actualtheoretical×100%
Example
Collecting 4.5 g when 5.0 g was possible is a 90% yield.

Molar Mass

Meaning
Molar mass is the total mass of one mole of the compound, the denominator of every percentage.
Key test
One total in g/mol, not a share of anything.
Example
Urea's molar mass is 60.06 g/mol.

Formula & Notation

% element=(atomic mass of element)×(number of those atoms)molar mass of compound×100
For a compound with formula AxBy, the percent composition of element A is: %A=x⋅MAx⋅MA+y⋅MB×100%, where MA and MB are the atomic masses of elements A and B.

How to read it: % denotes percent by mass. M is molar mass in g/mol. Subscripts (x, y) in the formula indicate the number of atoms of each element.

Worked Examples

Example 1 — Percent by mass in calcium carbonate

Easy

Calcium carbonate, CaCO3, is the main compound in chalk and many antacid tablets. Find the percent by mass of each element.
Show the steps and the answer
  1. Total each element's mass in one formula unit: Ca 1×40.08=40.08; C 1×12.01=12.01; O 3×16.00=48.00.

    The subscript 3 means three oxygen atoms, so oxygen's contribution is tripled.

  2. Add for the molar mass: 40.08+12.01+48.00=100.09 g/mol.

    The denominator is the mass of the whole compound, not of any single element.

  3. Divide each part by the total: Ca 40.08÷100.09=40.04%; C 12.01÷100.09=12.00%; O 48.00÷100.09=47.96%.

    Each fraction is that element's share of the mass, written as a percent.

  4. Check: 40.04+12.00+47.96=100.00%.

    Shares of one total must add to 100%; a sum far from 100 usually means a subscript was missed.

Answer: Ca 40.04%, C 12.00%, O 47.96% by mass

Takeaway: Multiply by the subscript before dividing by the molar mass, and use the 100% total as a check.

Example 2 — Contrast: share of atoms or share of mass?

Standard

Ammonia is NH3. (a) What percent of its atoms are hydrogen? (b) What percent of its mass is hydrogen?
Show the steps and the answer
  1. (a) Count atoms: 3 H out of 4 atoms, so 3÷4=75%.

    "Percent of atoms" is a counting question, so the subscripts alone answer it; no atomic masses are needed.

  2. (b) Find hydrogen's mass: 3×1.008=3.024, and the molar mass: 14.01+3.024=17.03 g/mol.

    "Percent of mass" is the percent composition question, so each atom must be weighed.

  3. Divide: 3.024÷17.03=17.8% hydrogen by mass.

    One nitrogen atom outweighs three hydrogens about 4.6 to 1, so hydrogen's mass share is far below its atom share.

Answer: (a) 75% of the atoms are hydrogen; (b) hydrogen is 17.8% of the mass.

Takeaway: Read the wording: "of the atoms" uses subscripts only, "by mass" needs atomic masses.

Example 3 — Find the mistake: a missed second nitrogen

Application

Ammonium nitrate, NH4NO3, is sold as a fertilizer. Maya calculates its nitrogen content and writes: "%N=14.0180.05×100=17.5%." Find the mistake and correct it.
Show the steps and the answer
  1. Count the nitrogen atoms: one in NH4+ and one in NO3−, so 2 in total.

    Maya used the mass of only one nitrogen atom; the formula has nitrogen in two places.

  2. Recompute the numerator: 2×14.01=28.02.

    The numerator is the total mass of every nitrogen atom in the formula.

  3. Divide by the molar mass: 28.02+4(1.008)+3(16.00)=80.05 g/mol, so %N=28.02÷80.05=35.0%.

    Her molar mass of 80.05 was already right, so only the numerator changes.

  4. Check: H is 4.032÷80.05=5.04% and O is 48.00÷80.05=59.96%; 35.00+5.04+59.96=100.00%.

    With Maya's 17.5% the three shares would add to only 82.5%, which exposes the missing nitrogen.

Answer: Ammonium nitrate is 35.0% nitrogen by mass.

Takeaway: Count every atom of the element, wherever it appears in the formula, before dividing.

Where You'll See It

  • Fertilizer label

    A bag of ammonium nitrate fertilizer (NH4NO3) is sold on its nitrogen content. Percent composition tells the farmer that nitrogen is about 35% of the mass, so they know how much actual nitrogen they are buying per kilogram.

  • Cereal box iron claim

    A cereal says it has 'iron.' Percent composition is how a chemist figures out what fraction of a compound like iron(II) sulfate (FeSO4) is actually iron versus sulfur and oxygen.

  • Comparing sugars by mass

    Glucose (C6H12O6) is about 40% carbon by mass. Percent composition lets you compare what fraction of two different molecules is carbon, hydrogen, or oxygen, instead of just counting atoms.

Common Mistakes

  1. The slip: Using the atomic mass of just one atom of the element even when the formula has a subscript (e.g., using 1.008 g for H in H2O).

    Why it's tempting: The periodic table lists the mass of one atom, so it feels natural to plug that number straight in without looking at how many atoms the formula contains.

    Instead: Multiply the atomic mass by the subscript first: H in H2O contributes 2×1.008=2.016 g, then divide by the compound's molar mass.

  2. The slip: Dividing by the element's atomic mass instead of the compound's molar mass.

    Why it's tempting: Both numbers are masses pulled from the same calculation, so students grab whichever is handy for the denominator.

    Instead: The denominator is always the molar mass of the WHOLE compound; the numerator is the mass contributed by the one element. Check: the percents of all elements must add to ~100%.

  3. The slip: Using an element's atomic number instead of its atomic mass, such as 8 for oxygen instead of 16.00.

    Why it's tempting: Both numbers sit in the same periodic-table box, and the atomic number is the tidy whole number that is easiest to spot.

    Instead: Use the atomic mass, which measures how heavy the atoms are. In H2O oxygen is 16.00÷18.02=88.8% by mass; atomic numbers would give 8÷10=80%, which is wrong.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. What percent of the mass of water, H2O, is oxygen? Use H = 1.01 and O = 16.00 g/mol.

    Hint: Oxygen's mass in one mole divided by the molar mass of water.

  2. What is the percent by mass of carbon in carbon dioxide, CO2? Use C = 12.01 and O = 16.00 g/mol.

    Hint: Find the molar mass of CO2 first.

  3. The fertilizer ammonium nitrate is NH4NO3. What percent of its mass is nitrogen? Use N = 14.01, H = 1.01, O = 16.00 g/mol.

    Hint: Count every nitrogen atom in the formula, including the one in NO3.

  4. How many grams of iron are in 50.0 g of rust, Fe2O3? Use Fe = 55.85 and O = 16.00 g/mol.

    Hint: Find the percent of iron, then take that percent of 50.0 g.

  5. A lab report says: "The compound is 30.4% N and 69.6% O by mass. Find its formula." Is this a percent-composition problem or an empirical-formula problem?

    Hint: Notice which way the problem runs: formula to percents, or percents to formula.

  6. A student finds the percent of hydrogen in water as "1.0118.02×100%=5.6%." Find and fix the error.

    Hint: How many hydrogen atoms are in one water molecule?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why does a fertiliser bag show three numbers?

Those N-P-K numbers are percent compositions by mass, with a twist. The first is percent nitrogen, but by long tradition the second and third are given as if the phosphorus were P2O5\text{P}_2\text{O}_5 and the potassium were K2O\text{K}_2\text{O}, compounds that are not actually in the bag. A 10-10-10 fertiliser therefore contains well under 10% of the elements phosphorus and potassium themselves.

Does percent composition change with the size of the sample?

Not for a pure compound, because every molecule or formula unit holds the same atoms. A grain of table salt and a tonne of it are both 39.3% sodium by mass. This fixed share is the law of definite proportions, one of the earliest pieces of evidence for atoms. A mixture is different: the percentage of sugar in a cup of tea depends on how much you stirred in.

Why do my percentages add up to 99.9% or 100.1%?

Rounding. Each percentage is rounded on its own, so the small errors can add up to a tenth of a percent either way, and that is not a mistake. A total that is off by several percent is different: it usually means an element was left out or a subscript was not multiplied, so recheck the formula before going on.

Learning Path

← Before

Molar Mass
Percent Composition

You are here

You need Molar Mass first, since every percentage is an element's share of it. Percent composition adds the idea of splitting that total by element, so you can compare compounds and find how much of one element a sample contains. Next, Empirical Formula reverses the process, turning measured percentages into the simplest formula of an unknown compound.

See Also