Empirical formula calculator with the ratio table
An empirical formula is the simplest whole-number ratio of atoms in a compound. To find it, change each element's mass (or percentage) into moles by dividing by its atomic mass, divide every result by the smallest, and scale to whole numbers. A compound that is 40% carbon, 6.7% hydrogen and 53.3% oxygen has the empirical formula CH₂O. This empirical formula calculator shows that table in full and gives the molecular formula too when you add the relative molecular mass.
It opens on that compound. Open the full empirical formula calculator over this page to try your own.
Empirical Formula Calculator
Find empirical and molecular formulae from masses or percentages
How to use the empirical formula calculator
- Choose Percentages or Masses.
- For each element, pick it from the periodic table and type its percentage or mass in grams. Add or remove rows as needed.
- Optionally type the Relative molecular mass, Mr to get the molecular formula.
- Read the empirical formula, its mass and the molecular formula, with the ratio table: moles, divided by the smallest, and the whole-number ratio.
- Ratios such as 1.5 or 1.33 are scaled up automatically. To practise, press Random problem in the Practice section.
How to calculate the empirical formula
- Write down the mass of each element. If you have percentages, imagine 100 g, so 40% becomes 40 g.
- Divide each mass by the element's relative atomic mass to get moles.
- Divide every mole number by the smallest one.
- If any result isn't close to a whole number, multiply them all by the same number to make them whole: × 2 for .5, × 3 for .33 or .67, × 4 for .25 or .75.
- Write the whole numbers as subscripts.
For the molecular formula, divide Mr by the empirical formula's mass and multiply every subscript by the answer.
Worked examples you can check in the calculator
Example 1: from percentages, with the molecular formula
| C | H | O | |
|---|---|---|---|
| Mass in 100 g | 40 | 6.7 | 53.3 |
| ÷ atomic mass | 40 ÷ 12.011 = 3.330 | 6.7 ÷ 1.008 = 6.647 | 53.3 ÷ 15.999 = 3.332 |
| ÷ smallest (3.330) | 1 | 2.00 | 1.00 |
| Whole numbers | 1 | 2 | 1 |
The empirical formula is CH₂O, with mass 30.03. If Mr = 180, then 180 ÷ 30.03 = 6, so the molecular formula is C₆H₁₂O₆ (glucose). These are the calculator's opening values.
Example 2: from masses, with a ratio of 1.5
11.2 g of iron combines with 4.8 g of oxygen. Moles: Fe = 11.2 ÷ 55.845 = 0.2006 and O = 4.8 ÷ 15.999 = 0.3000. Dividing by the smallest gives 1 : 1.5. Multiply both by 2: 2 : 3, so the formula is Fe₂O₃. Rounding 1.5 to 2 would give the wrong answer, FeO₂.
Example 3: a hydrocarbon
A hydrocarbon is 85.7% carbon and 14.3% hydrogen. Moles in 100 g: C = 7.135 and H = 14.19, a ratio of 1 : 1.99, so the empirical formula is CH₂ (mass 14.03). If Mr = 56, then 56 ÷ 14.03 = 4 and the molecular formula is C₄H₈.
Example 4: an oxide of phosphorus
An oxide is 43.6% phosphorus and 56.4% oxygen. Moles: P = 1.408 and O = 3.525, a ratio of 1 : 2.5. Doubling gives P₂O₅, with mass 141.94. With Mr = 284 the molecular formula is P₄O₁₀.
Try one
Common mistakes
- Using masses as the ratio. Convert to moles first; atoms have different masses.
- Rounding 1.5 or 1.33 to the nearest whole number. Multiply everything up instead.
- Dividing by atomic number instead of atomic mass. Use the relative atomic mass.
- Rounding too early. Keep three or four significant figures until the final ratio.
- Forgetting oxygen given by difference. If only some percentages are given, the rest may be another element, often oxygen.
Common questions
What is the difference between empirical and molecular formula?
How do you find the empirical formula from percentages?
How do you find the molecular formula?
What do I do with a ratio like 1.33?
Can the empirical formula be the same as the molecular formula?
Revision cards
Read the front, say your answer, then flip to check.
Where to go next
- Solve it
Empirical Formula Calculator
Find empirical and molecular formulae from masses or percentages
Open the tool - Test it
High School Chemistry
A new exam-style paper every day, with instant marking and a mark scheme
Start today's paper - Test it
Honors Chemistry
A new exam-style paper every day, with instant marking and a mark scheme
Start today's paper