Empirical Formula Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Choose up to four elements and enter their mass percentages or grams; you get the whole-number ratio of atoms.
Result
Element 1: subscript in the empirical formula
Element 1: mole ratio
- Element 2: mole ratio
- Element 3: mole ratio
- Element 4: mole ratio
- Multiplier used to reach whole numbers
- Element 2: subscript in the empirical formula
- Element 3: subscript in the empirical formula
- Element 4: subscript in the empirical formula
- Empirical formula mass (g/mol)
- Molecular formula = empirical formula ×
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Element 1: choose one of the 15 options in the list.
- Element 1: mass % (or grams): enter 0 or more.
- Element 2: choose one of the 15 options in the list.
- Element 2: mass % (or grams): enter 0 or more.
- Element 3: choose one of the 15 options in the list.
- Element 3: mass % (or grams): enter 0 or more.
- Element 4: choose one of the 15 options in the list.
- Element 4: mass % (or grams): enter 0 or more.
- Molar mass of the compound, if known (0 = skip), in g/mol: enter 0 or more.
- Read the result: Element 1: subscript in the empirical formula; the panel also shows Element 1: mole ratio, Element 2: mole ratio, Element 3: mole ratio, Element 4: mole ratio, Multiplier used to reach whole numbers, Element 2: subscript in the empirical formula, Element 3: subscript in the empirical formula, Element 4: subscript in the empirical formula, Empirical formula mass (g/mol) and Molecular formula = empirical formula × .
How this calculator works
Moles of each element = mass ÷ atomic weight (atomic weights from CIAAW abridged standard atomic weights 2024 (ciaaw.org/abridged-atomic-weights.htm, read 2026-10-27)). Each is divided by the smallest to get the mole ratio.
The ratios are multiplied by the smallest whole number from 1 to 6 that brings every ratio within 0.1 of an integer, then rounded: these are the subscripts. A multiplier of 0 means no whole-number ratio was found; check the data.
If you know the molar mass, molar mass ÷ empirical formula mass gives the factor that turns the empirical formula into the molecular formula.
Worked example
| Element 1 | C (12.011) |
|---|---|
| Element 1: mass % (or grams) | 40 |
| Element 2 | H (1.008) |
| Element 2: mass % (or grams) | 6.71 |
| Element 3 | O (15.999) |
| Element 3: mass % (or grams) | 53.29 |
| Element 4 | — none — |
| Element 4: mass % (or grams) | 0 |
| Molar mass of the compound, if known (0 = skip) | 180.156 g/mol |
| Element 1: subscript in the empirical formula | 1 |
|---|---|
| Element 2: subscript in the empirical formula | 2 |
| Element 3: subscript in the empirical formula | 1 |
| Multiplier used to reach whole numbers | 1 |
| Empirical formula mass (g/mol) | 30.026 |
| Molecular formula = empirical formula × | 6.00 |
Frequently asked questions
What is the empirical formula of glucose?
40.0% C, 6.71% H and 53.29% O give CH₂O; with a molar mass of 180.156 g/mol the molecular formula is 6 × CH₂O = C₆H₁₂O₆.
Can I enter grams instead of percent?
Yes: only the ratios matter, so grams from an analysis work the same way.