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.

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.
- Convert to moles: divide each mass by the atomic weight.
- Divide by the smallest number of moles.
- 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.
| Element | Mass (g) | Moles | Ratio |
|---|---|---|---|
| C | 40.00 | 3.330 | 1.00 |
| H | 6.71 | 6.657 | 2.00 |
| O | 53.29 | 3.331 | 1.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 in | Multiply by |
|---|---|
| .5 | 2 |
| .33 or .67 | 3 |
| .25 or .75 | 4 |
| .2 | 5 |
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
- Enter each element with its percentage or mass, one per line.
- Enter the molar mass if known.
- Or enter sample, CO₂ and H₂O masses for combustion analysis.
- 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.


