Skip to content
FiftyCalc Free calculators for all 50 states

Percent Composition Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter the number of atoms of each element in the formula; elements left at 0 show 0%.

Result

Sample figures

C (mass %)—

Molar mass (g/mol) —

  • H (mass %)—
  • N (mass %)—
  • O (mass %)—
  • S (mass %)—
  • P (mass %)—
  • Cl (mass %)—
  • Na (mass %)—
  • K (mass %)—
  • Ca (mass %)—
  • Mg (mass %)—
  • Fe (mass %)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Percent Composition Calculator

C atoms (atomic weight 12.011): enter 0 or more. Prefilled example: 6.

H atoms (atomic weight 1.008): enter 0 or more. Prefilled example: 12.

N atoms (atomic weight 14.007): enter 0 or more. Prefilled example: 0.

O atoms (atomic weight 15.999): enter 0 or more. Prefilled example: 6.

S atoms (atomic weight 32.06): enter 0 or more. Prefilled example: 0.

P atoms (atomic weight 30.974): enter 0 or more. Prefilled example: 0.

Cl atoms (atomic weight 35.45): enter 0 or more. Prefilled example: 0.

Na atoms (atomic weight 22.99): enter 0 or more. Prefilled example: 0.

K atoms (atomic weight 39.098): enter 0 or more. Prefilled example: 0.

Ca atoms (atomic weight 40.078): enter 0 or more. Prefilled example: 0.

Mg atoms (atomic weight 24.305): enter 0 or more. Prefilled example: 0.

Fe atoms (atomic weight 55.845): enter 0 or more. Prefilled example: 0.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. C atoms (atomic weight 12.011): enter 0 or more.
  2. H atoms (atomic weight 1.008): enter 0 or more.
  3. N atoms (atomic weight 14.007): enter 0 or more.
  4. O atoms (atomic weight 15.999): enter 0 or more.
  5. S atoms (atomic weight 32.06): enter 0 or more.
  6. P atoms (atomic weight 30.974): enter 0 or more.
  7. Cl atoms (atomic weight 35.45): enter 0 or more.
  8. Na atoms (atomic weight 22.99): enter 0 or more.
  9. K atoms (atomic weight 39.098): enter 0 or more.
  10. Ca atoms (atomic weight 40.078): enter 0 or more.
  11. Mg atoms (atomic weight 24.305): enter 0 or more.
  12. Fe atoms (atomic weight 55.845): enter 0 or more.
  13. Read the result: C (mass %); the panel also shows Molar mass (g/mol), H (mass %), N (mass %), O (mass %), S (mass %), P (mass %), Cl (mass %), Na (mass %), K (mass %), Ca (mass %), Mg (mass %) and Fe (mass %).

How this calculator works

Mass percent of an element = (number of atoms × atomic weight) ÷ molar mass × 100. Atomic weights: CIAAW abridged standard atomic weights 2024 (ciaaw.org/abridged-atomic-weights.htm, read 2026-10-27).

The percentages add up to 100%. For the reverse problem, from percentages to a formula, use the empirical formula calculator.

The formula

  1. M=nC×12.011+nH×1.008+nN×14.007+nO×15.999+nS×32.06+nP×30.974+nCl×35.45+nNa×22.99+nK×39.098+nCa×40.078+nMg×24.305+nFe×55.845
  2. PC=nC×12.011M×100
Symbols used in the formula
SymbolMeaningUnit
nCC atoms (atomic weight 12.011)
nHH atoms (atomic weight 1.008)
nNN atoms (atomic weight 14.007)
nOO atoms (atomic weight 15.999)
nSS atoms (atomic weight 32.06)
nPP atoms (atomic weight 30.974)
nClCl atoms (atomic weight 35.45)
nNaNa atoms (atomic weight 22.99)
nKK atoms (atomic weight 39.098)
nCaCa atoms (atomic weight 40.078)
nMgMg atoms (atomic weight 24.305)
nFeFe atoms (atomic weight 55.845)
MMolar massg/mol
PCC (mass %)%

Worked example

C atoms (atomic weight 12.011)6
H atoms (atomic weight 1.008)12
N atoms (atomic weight 14.007)0
O atoms (atomic weight 15.999)6
S atoms (atomic weight 32.06)0
P atoms (atomic weight 30.974)0
Cl atoms (atomic weight 35.45)0
Na atoms (atomic weight 22.99)0
K atoms (atomic weight 39.098)0
Ca atoms (atomic weight 40.078)0
Mg atoms (atomic weight 24.305)0
Fe atoms (atomic weight 55.845)0
Molar mass (g/mol)180.156
H (mass %)6.71%
O (mass %)53.28%
  1. M=6×12.011+12×1.008+0×14.007+6×15.999+0×32.06+0×30.974+0×35.45+0×22.99+0×39.098+0×40.078+0×24.305+0×55.845=180.156
  2. PC=6×12.011180.156×100=40.002

C (mass %) 40%

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is the percent composition of water?

H 11.19% and O 88.81% (2.016 and 15.999 out of 18.015 g/mol).

What is the percent of carbon in glucose?

72.066 ÷ 180.156 = 40%.

Related calculators