Empirical Formula Calculator
Enter each element's mass percent (or mass) to find the compound's simplest whole-number formula.
Calculator verified • Last updated: August 2026
Composition by Moles
Mole Ratio Work
| Element | Mass % | Moles | Ratio |
|---|
Finding an Empirical Formula Explained
The empirical formula is the simplest whole-number ratio of atoms in a compound, found by converting percent composition data into moles and then into a ratio.
Step 1 — moles of each element (assuming a 100 g sample, so percent = grams):
n: moles of that element, in moles (mol).
mass %: the element's percent composition by mass, treated as grams in a 100 g sample.
atomic mass: the element's standard atomic mass from the periodic table, in grams per mole (g/mol).
Step 2 — divide every mole value by the smallest one to get a ratio, then multiply all ratios by a small whole number if needed until they're all close to whole numbers.
Worked Example: Glucose
Using the calculator's default values — 40.0% carbon, 6.7% hydrogen, 53.3% oxygen — moles work out to about 3.33 mol C, 6.65 mol H, and 3.33 mol O. Dividing each by the smallest (3.33) gives a ratio of 1 : 2 : 1, so the empirical formula is CH₂O. This is glucose's real empirical formula — its molecular formula, C₆H₁₂O₆, is exactly six times this ratio.
Why Empirical Formulas Sometimes Need a Multiplier Step
Dividing by the smallest mole value doesn't always land on whole numbers right away — a compound might give a ratio like 1 : 1.33 : 1, where 1.33 is suspiciously close to 4/3. Multiplying every value in the ratio by 3 turns that into 3 : 4 : 3, all whole numbers. This calculator checks small multipliers (up to about 6) automatically whenever the initial ratio isn't close enough to whole numbers on its own.
A Brief History of Empirical Formula Determination
Joseph Proust's law of definite proportions (1799) provided the conceptual foundation — the idea that a compound always has the same mass ratio of elements no matter its source — which made it possible to reliably determine a formula from percent composition data. Justus von Liebig significantly refined combustion analysis techniques in the 1830s, making it practical to precisely measure percent composition for organic compounds, a method still taught (in updated form) in chemistry courses today.
Common Empirical Formula Mistakes
Rounding mole ratios too aggressively (turning 1.33 into 1 instead of recognizing it as 4/3) is the most common error, since it produces a wrong formula rather than the correct one after multiplying through. Forgetting to include every element actually present in the compound — sometimes oxygen is implied rather than stated in older textbook problems — is another frequent mistake, since a missing element makes the mole ratios come out wrong. Confusing empirical formula with molecular formula when reporting a final answer is a third common mix-up.
Empirical Formula Terms You Should Know
Empirical Formula — the simplest whole-number ratio of atoms in a compound.
Molecular Formula — the actual number of each atom in one real molecule, a whole-number multiple of the empirical formula.
Combustion Analysis — a lab method for determining percent composition by burning a sample.
Mole Ratio — the ratio of moles of each element, the direct precursor to the empirical formula.
This calculator assumes a 100 g sample when working from percentages, which is a standard simplifying convention since only the ratio matters, not the absolute sample size.
Frequently Asked Questions
What's the difference between an empirical formula and a molecular formula?
The empirical formula gives only the simplest whole-number ratio of atoms, while the molecular formula gives the actual number of atoms in one real molecule. Glucose's molecular formula is C6H12O6, but its empirical formula is CH2O — the same 1:2:1 ratio, just not multiplied out. Percent composition data alone can only ever reveal the empirical formula, since ratios lose information about the actual molecule size.
Why do I need the molecular (molar) mass to find the molecular formula?
Because percent composition is scale-invariant — it can't distinguish CH2O from C2H4O2 or C6H12O6, since they all have the same relative element ratios. The molecular formula's mass must be a whole-number multiple of the empirical formula's mass, so measuring (or being told) the actual molar mass lets you find that multiplier and scale up the empirical formula to the true molecular formula.
Why does this calculator sometimes multiply all the ratios by 2 or 3?
Because dividing by the smallest mole value doesn't always produce whole numbers on the first try — a ratio like 1 : 1.5 : 1 isn't a valid formula with fractional atoms, but multiplying every value by 2 turns it into 2 : 3 : 2, which is. This calculator automatically checks small multipliers (2, 3, 4...) whenever the initial ratios aren't close enough to whole numbers.