Empirical Formula Calculator
A ratio, not a molecule — glucose, acetic acid and formaldehyde all reduce to CH2O.
The formula
divide each percentage by its atomic weight, then reduce to the smallest whole-number ratio
Percentages to moles to a ratio
Take 100 g of the substance, so the percentages become grams directly. Divide each by its atomic weight to get moles, then divide everything by the smallest of those. What comes out is the ratio of atoms, and multiplying up to clear any halves or thirds gives the empirical formula.
The multiplier step is where it goes wrong
A ratio of 1 : 1.5 is really 2 : 3, and rounding it to 1 : 2 gives a formula that does not exist. This page tries multipliers up to twelve and reports failure rather than forcing a fit — if your data will not resolve to small integers, the honest conclusion is usually that a percentage is wrong.
Then the molar mass
The empirical formula is a ratio and nothing more. CH₂O is formaldehyde at 30 g/mol, acetic acid at 60 and glucose at 180 — the composition is identical in all three. Only a separately measured molar mass tells you which one you have.
Empirical is not molecular
Every method on these pages returns a ratio, because that is all a composition can determine. Glucose, formaldehyde and acetic acid all reduce to CH₂O, and no amount of elemental analysis will separate them. A molar mass from mass spectrometry or a freezing-point depression is what turns the ratio into a formula, and it has to come from a second, independent measurement.