Skip to content

Percent Composition Calculator

Type a formula to see what share of its mass each element makes up…

Type a formula to see what share of its mass each element makes up, how that compares with its share of the atoms, and how many grams of each a sample holds.

Read as CO(NH2)2

Element

How much of each element a sample of this size holds.

ExampleNitrogen in CO(NH₂)₂

46.65%

2 × 14.007 = 28.014 g of every 60.056 g/mol is nitrogen: 466 g in a 1000 g sample.

Type your own formula.

Share of the mass
Share of the atoms
  • C20.00% of mass, 12.5% of atoms
  • O26.64% of mass, 12.5% of atoms
  • N46.65% of mass, 25.0% of atoms
  • H6.71% of mass, 50.0% of atoms
Carbon
20.00% · 200 g
Oxygen
26.64% · 266 g
Hydrogen
6.71% · 67.1 g
How this works: 4 sources,

How this works

Method

Percent composition is each element’s share of a compound’s mass. Take the mass of that element in one mole (its atomic weight times its number of atoms), divide by the molar mass and multiply by 100. In urea, CO(NH2)2, the two nitrogen atoms weigh 2 × 14.007 = 28.014 g of the 60.056 g in a mole, so urea is 46.6% nitrogen. Full method

How it’s tested

2 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: molar mass with each element’s share of the mass and atoms, grams to moles and back, percent composition, empirical formula, limiting reagent, theoretical and percent yield.

Every change on What’s new

How we make toolsReport a mistake

How to calculate percent composition

Percent composition is each element’s share of a compound’s mass. Take the mass of that element in one mole (its atomic weight times its number of atoms), divide by the molar mass and multiply by 100. In urea, CO(NH2)2, the two nitrogen atoms weigh 2 × 14.007 = 28.014 g of the 60.056 g in a mole, so urea is 46.6% nitrogen.

A share of the atoms is not a share of the mass. Water has two hydrogen atoms for every oxygen, so hydrogen is two thirds of its atoms, but hydrogen is so light that it is only 11.2% of the mass. The two bars on the tool show both shares side by side, which is where that difference jumps out.

With a sample mass, the same shares tell you how much of each element you have: a 1 kg bag of urea holds 466 g of nitrogen. That is how fertiliser labels are compared: the nitrogen figure on the bag is the nitrogen percent of what is inside.

mass % of element = (atoms × atomic weight) ÷ molar mass × 100

Nitrogen in common fertilisers

The mass percent of nitrogen in pure nitrogen fertiliser compounds, from their formulas.

The mass percent of nitrogen in pure nitrogen fertiliser compounds, from their formulas.
FertiliserFormulaMolar mass (g/mol)Nitrogen (% by mass)
Anhydrous ammoniaNH₃17.03182.2
UreaCO(NH₂)₂60.05646.6
Ammonium nitrateNH₄NO₃80.04335.0
Ammonium chlorideNH₄Cl53.48926.2
Ammonium sulfate(NH₄)₂SO₄132.13421.2
Diammonium phosphate(NH₄)₂HPO₄132.05621.2
Monoammonium phosphateNH₄H₂PO₄115.02512.2
Calcium nitrateCa(NO₃)₂164.08617.1
Potassium nitrateKNO₃101.10213.9
Sodium nitrateNaNO₃84.99416.5
Show all 11 rows
Calcium cyanamideCaCN₂80.10335.0

Common questions

Do the percentages always add up to 100?

Yes, exactly, when they come from a formula. Measured percentages from a lab analysis usually add up to a little more or less because of experimental error, and the gap is often the oxygen, which is found by difference.

How is percent composition different from mass percent of a solution?

Percent composition is about the elements inside one compound. Mass percent of a solution is about how much of one compound is dissolved in a mixture, such as 5 g of salt in 100 g of salt water.

Can I get the formula back from the percentages?

You can get the simplest ratio, the empirical formula, and with the molar mass the molecular formula too. That is the reverse calculation, on the empirical formula page.