Empirical Formula Calculator
Find the simplest whole number formula of a compound from the mass or mass percent of each element.
These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.
How it works
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
The formula
moles = mass / atomic mass; divide by the smallest, then scale to whole numbers
Frequently asked questions
Can I use percentages?
Yes. Percentages work the same as grams out of 100 g.
What if ratios are not whole?
The tool tries multipliers up to 8, for example 1.5 becomes 3 when doubled.
Is what I enter sent anywhere?
No. The calculation is done in your browser, so your numbers are not sent to a server or saved.
Related tools
Molecular Formula Calculator
Find the molecular formula from an empirical formula and the measured molar mass of the compound.
Molar Mass Calculator
Type a chemical formula such as C6H12O6 or Ca(OH)2 and get its molar mass with the mass percent of each element.
Mole Calculator
Convert between grams, moles and number of particles for any substance using its molar mass and Avogadro's number.