Empirical Formula Calculator

Last updated: June 2026

Use this empirical formula calculator to find the simplest whole-number ratio of atoms in a compound from masses or percentage composition. The molecular formula calculator then uses the empirical formula and relative molecular mass to find the actual molecular formula.

Key takeaway: The empirical formula gives the simplest whole-number ratio of atoms. The molecular formula gives the actual number of atoms in one molecule. In many exam questions, you find the empirical formula first and then use Mr to scale it up.
How to use these calculators
  1. Choose whether the data are masses or percentage composition.
  2. Enter each element symbol and its mass or percentage. Leave an entire unused row blank.
  3. Select Calculate to convert each value into moles and find the simplest whole-number ratio.
  4. Use the empirical formula in the second calculator and enter the relative molecular mass, Mr.
  5. The empirical formula mass can be entered manually or left blank for the calculator to determine automatically.

What is an empirical formula?

An empirical formula gives the simplest whole-number ratio of atoms of each element in a compound. It does not always show the actual number of atoms in one molecule.

Ethane has molecular formula C2H6. The simplest carbon-to-hydrogen ratio is 1:3, so its empirical formula is CH3.

Glucose has molecular formula C6H12O6. Dividing every subscript by 6 gives CH2O.

How to find empirical formula

Begin by converting the mass of each element into moles using:

amount in moles = mass ÷ Ar

Divide every mole value by the smallest mole value. If the resulting ratio contains values such as 1.5, 1.33 or 1.25, multiply every ratio by the same small whole number until a whole-number ratio is obtained.

Using percentage composition

When percentage composition is given, assume that there are 100 g of the compound. The percentage values can then be treated directly as masses in grams.

For example, 40.0% carbon, 6.7% hydrogen and 53.3% oxygen can be treated as 40.0 g of carbon, 6.7 g of hydrogen and 53.3 g of oxygen.

Empirical formula worked examples

Example 1: Percentage composition

A compound contains 40.0% carbon, 6.7% hydrogen and 53.3% oxygen.

C: 40.0 ÷ 12.0 = 3.33 mol
H: 6.7 ÷ 1.0 = 6.7 mol
O: 53.3 ÷ 16.0 = 3.33 mol

Dividing by the smallest amount gives C:H:O = 1:2:1, so the empirical formula is CH2O.

Example 2: Mass data

A compound contains 2.4 g of carbon and 0.6 g of hydrogen.

C: 2.4 ÷ 12.0 = 0.200 mol
H: 0.6 ÷ 1.0 = 0.600 mol

Dividing by 0.200 gives C:H = 1:3, so the empirical formula is CH3.

Molecular Formula Calculator

The molecular formula gives the actual number of atoms of each element in one molecule. To find it, divide the relative molecular mass by the empirical formula mass:

multiplier = Mr ÷ empirical formula mass

The multiplier should be a positive whole number. Multiply every subscript in the empirical formula by this value.

How to find molecular formula from empirical formula

For CH2O, the empirical formula mass is:

12.0 + 2(1.0) + 16.0 = 30.0

If Mr = 180:

multiplier = 180 ÷ 30.0 = 6

Multiplying every subscript by 6 gives C6H12O6.

Common exam traps

Trap 1: Do not divide masses or percentages directly to obtain the formula. Convert every value into moles first.
Trap 2: Do not round mole values too early. Keep enough significant figures until the final whole-number ratio is found.
Trap 3: A ratio such as 1:1.5 is not the final ratio. Multiply every value by 2 to obtain 2:3.
Trap 4: The empirical formula is not always the molecular formula. Mr is required to determine the multiplier.
Trap 5: Multiply every subscript in the empirical formula by the molecular formula multiplier.

Frequently Asked Questions

What does an empirical formula calculator calculate?

It calculates the simplest whole-number ratio of atoms in a compound from masses or percentage composition.

What does a molecular formula calculator calculate?

It uses the empirical formula and relative molecular mass to find the actual molecular formula.

Can percentages be used instead of masses?

Yes. Assume a 100 g sample so that each percentage becomes a mass in grams.

Why must mass be converted into moles?

Chemical formulae compare numbers of atoms rather than masses. Moles allow the numbers of atoms of different elements to be compared.

Why might the multiplier not be a whole number?

This usually means that the empirical formula, empirical formula mass or relative molecular mass has been entered incorrectly or rounded too much.

Scroll to Top