Study and Productivity

Finding Empirical and Molecular Formulas from Analysis Data

How to calculate an empirical formula from percent composition or combustion analysis, handle non-integer ratios, and find the molecular formula.

Saizul Amin
Saizul Amin30 Oct 2026 · 3 min read
Finding Empirical and Molecular Formulas from Analysis Data

Finding Empirical and Molecular Formulas from Analysis Data

When chemists make a new compound, one of the first questions is: what is its formula? Elemental analysis gives the percentages of each element, and from these comes the empirical formula; the molar mass then gives the molecular formula. This guide explains the procedure, and you can apply it with the empirical formula calculator.

Empirical versus molecular formula

  • The empirical formula is the simplest whole-number ratio of atoms: CH₂O.
  • The molecular formula gives the actual numbers of atoms in a molecule: C₆H₁₂O₆ for glucose.

Different compounds can share an empirical formula. Formaldehyde (CH₂O), acetic acid (C₂H₄O₂) and glucose (C₆H₁₂O₆) all have the empirical formula CH₂O.

Step by step

Take 100 g of the compound, so percentages become grams.

  1. Convert to moles: divide each mass by the atomic weight.
  2. Divide by the smallest number of moles.
  3. Make whole numbers: if ratios are close to integers, round; if not, multiply all by a small integer.

Example: glucose

A compound contains 40.00 % C, 6.71 % H and 53.29 % O.

ElementMass (g)MolesRatio
C40.003.3301.00
H6.716.6572.00
O53.293.3311.00

Empirical formula: CH₂O, with a formula mass of 30.03 g/mol.

Molecular formula

If the molar mass is 180.16 g/mol, divide by 30.03: the multiplier is 6. The molecular formula is C₆H₁₂O₆.

Non-integer ratios

Ratios such as 1.5, 1.33, 1.67 or 1.25 are not rounding errors; they mean multiplying all ratios by 2, 3 or 4:

Ratio ends inMultiply by
.52
.33 or .673
.25 or .754
.25

For example, iron oxide with 69.94 % Fe and 30.06 % O gives a ratio of 1 : 1.5, so the formula is Fe₂O₃.

Combustion analysis

Organic compounds are often analysed by burning a weighed sample in excess oxygen and collecting the CO₂ and H₂O formed.

  • Carbon mass = CO₂ mass × 12.011 / 44.009.
  • Hydrogen mass = H₂O mass × 2.016 / 18.015.
  • Oxygen mass = sample mass − carbon − hydrogen.

Then proceed as above. Nitrogen, sulfur and halogens are measured separately.

Typical errors

  • Rounding too early: keep at least three significant figures until the end.
  • Rounding 1.5 to 2 instead of doubling.
  • Forgetting that hydrogen percentages are small, so small errors change the ratio more.

Using the calculator

  1. Enter each element with its percentage or mass, one per line.
  2. Enter the molar mass if known.
  3. Or enter sample, CO₂ and H₂O masses for combustion analysis.
  4. Read the mole table, the empirical formula, the multiplier and the molecular formula.

Worked combustion example

Burning 0.500 g of a compound gives 0.733 g of CO₂ and 0.300 g of H₂O. Carbon is 0.733 × 12.011 / 44.009 = 0.200 g, hydrogen 0.300 × 2.016 / 18.015 = 0.0336 g and oxygen by difference 0.266 g. Moles: C 0.01666, H 0.0333, O 0.01664. Ratio 1 : 2 : 1, empirical formula CH₂O again.

Where molar masses come from

Mass spectrometry gives the molar mass directly from the molecular ion. Older methods used freezing-point depression or vapour density.

Hydrates

The same method finds the water of crystallisation in hydrates. Heat a weighed sample of blue copper sulfate until it turns white, weigh again, and treat the anhydrous salt and the lost water as two components. The mole ratio of water to CuSO₄ comes out close to 5, giving CuSO₄·5H₂O.

Checking your answer

Compute the percentages of your final formula and compare with the data; they should agree within the measurement error, usually a few tenths of a percent.

Limits

The method assumes accurate, complete analysis. A formula does not identify a compound uniquely, because isomers share formulas.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages