Empirical Formula Calculator

Created by: Daniel Hayes
Last updated:
Turn percent composition or elemental mass data into the simplest whole-number atom ratio for a compound.
Empirical Formula Calculator
ChemistryConvert elemental composition data into the simplest whole-number atom ratio for a compound.
Empirical Formula Workflow
Convert each amount to moles, divide by the smallest mole value, then convert any simple fractions into whole numbers.
If you use percent composition, the calculator treats the numbers as grams in a 100 g sample.
What is an Empirical Formula Calculator?
An empirical formula calculator turns composition data into the simplest whole-number atom ratio for a compound. It is useful when a chemistry problem gives percent composition or elemental masses and asks for the compound's simplest formula.
The key step is always converting each element into moles. Only then can the elements be compared fairly, because moles reflect relative atom counts rather than raw mass.
This page pairs naturally with our Percent Composition Calculator and Molecular Weight Calculator when you need both directions of formula-composition work.
How the Empirical Formula Calculator Works
The calculator converts each element's amount to moles, divides every mole value by the smallest mole amount, and then scales any simple fractional ratios into whole numbers.
Formula Block
moles of element = mass or percent basis / atomic weight
normalized ratio = element moles / smallest mole value
empirical formula = smallest whole-number ratio of those normalized values
If the ratios come out near values such as 1.5 or 1.333, the calculator applies a small multiplier so the final subscripts become whole numbers.
Frequently Asked Questions
What is an empirical formula?
An empirical formula shows the simplest whole-number ratio of atoms in a compound. It does not necessarily show the actual molecular size, only the most reduced atom ratio.
Can I start from percent composition?
Yes. Percent values are treated as grams in a 100 g sample, which makes it possible to convert each element directly into moles and compare their ratios.
Why do empirical-formula problems use moles?
Masses and percentages are not directly comparable across different elements because each element has a different atomic weight. Converting to moles puts everything on an atom-count basis.
What if the ratios are not whole numbers right away?
That is common. The calculator checks for simple multipliers such as 2, 3, 4, or 6 to convert fractional mole ratios into the smallest usable whole-number set.
How is empirical formula different from molecular formula?
The empirical formula is the simplest ratio, while the molecular formula gives the actual number of each atom in a molecule. For example, CH2O is the empirical formula for glucose, whose molecular formula is C6H12O6.