Calculate empirical formula

Infer the simplest whole-number chemical formula from elemental mass percentages.

freeworks offlinenothing uploaded
ToolEmpirical Formula Calculator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Each percentage is divided by atomic weight to obtain relative moles, values are divided by the smallest, and near-integer ratios become subscripts. An optional molar mass scales the empirical formula.

  • Percentages should total about 100%.
  • Atomic weights come from the stored element table.

Worked example

Water from its composition
11.19% hydrogen and 88.81% oxygen by mass
Input
											H 11.19,O 88.81
										
Output
												Empirical formula: H2O
Empirical mass: 18.02
Molecular formula: H2O
Molecular mass: 18.02
Multiplier: 1
											

When to use this

Combustion analysis infers simplest formula, lab reports convert mass percentages, and molecular-mass exercises scale empirical formulas.

Edge cases

  • Percentages far from 100% are rejected rather than silently renormalized.
  • Ratios such as 1:1.5 need an integer multiplier before rounding.
  • A non-integer molecular-mass multiple is not evidence for a valid molecular formula.