Molecular vs Empirical Formula: How to Find Both
The difference in molecular vs empirical formula is simple: the molecular formula gives the actual number of each type of atom in one molecule, while the empirical formula gives only the simplest whole-number ratio of those atoms. Glucose is C6H12O6, but its empirical formula is CH2O, because 6 : 12 : 6 cancels down to 1 : 2 : 1.

What is molecular formula?
A molecular formula lists every atom in one molecule of a substance. Ethene is C2H4: each molecule really contains two carbon atoms and four hydrogen atoms. If you built it from a kit, those are the pieces you would need.
So the answer to "what is molecular formula" is: the formula showing the actual number of atoms of each element in one molecule.
What is an empirical formula?
An empirical formula is the simplest whole-number ratio of atoms in a compound. "Empirical" means "found by experiment", and that is where the name comes from: when chemists burn or decompose an unknown compound, the masses they measure give them the ratio of elements, not the size of the molecule.
To get the empirical formula from a molecular formula, divide all the subscripts by their highest common factor:
| Substance | Molecular formula | Divide by | Empirical formula |
|---|---|---|---|
| Glucose | C6H12O6 | 6 | CH2O |
| Ethene | C2H4 | 2 | CH2 |
| Benzene | C6H6 | 6 | CH |
| Hydrogen peroxide | H2O2 | 2 | HO |
| Butane | C4H10 | 2 | C2H5 |
| Water | H2O | 1 | H2O |
| Carbon dioxide | CO2 | 1 | CO2 |
Notice the last two. When the subscripts share no common factor, the two formulas are the same.
Molecular vs empirical formula: the key differences
| Molecular formula | Empirical formula | |
|---|---|---|
| Shows | Actual number of atoms in one molecule | Simplest whole-number ratio |
| Found from | Empirical formula + molar mass | Masses or percentages of each element |
| Unique to one substance? | Usually | No: ethene (C2H4) and cyclohexane (C6H12) are both CH2 |
| Used for ionic compounds? | No (they are not molecules) | Yes: NaCl and MgCl2 are empirical formulas |
The last row trips up a lot of students. Sodium chloride is a giant ionic lattice, not a collection of separate molecules, so it has no molecular formula. NaCl just tells you the ions are in a 1 : 1 ratio.
How to find the empirical formula
Here is how to find the empirical formula from experimental data, in four steps.
- Write down the mass of each element. If you are given percentages, assume you have 100 g, so 40% becomes 40 g.
- Divide each mass by that element's relative atomic mass to get the number of moles of atoms.
- Divide every answer by the smallest one. This turns the mole numbers into a ratio.
- Round to whole numbers, or multiply up if you get a value like 1.5 or 1.33.
Worked example: empirical formula from percentage composition
A compound contains 40.0% carbon, 6.7% hydrogen and 53.3% oxygen by mass. Find its empirical formula from percentage composition.
| C | H | O | |
|---|---|---|---|
| Mass in 100 g | 40.0 g | 6.7 g | 53.3 g |
| ÷ Ar | 40.0 ÷ 12.0 = 3.33 | 6.7 ÷ 1.0 = 6.7 | 53.3 ÷ 16.0 = 3.33 |
| ÷ smallest (3.33) | 1.00 | 2.01 | 1.00 |
| Whole-number ratio | 1 | 2 | 1 |
The empirical formula is CH2O.
What if the ratio is not a whole number?
Do not round 1.5 to 2. A value close to x.5 means multiply everything by 2; close to x.33 or x.67 means multiply by 3; close to x.25 means multiply by 4.
Example: 2.8 g of iron reacts with oxygen to give 4.0 g of iron oxide, so 1.2 g of oxygen was gained.
- Fe: 2.8 ÷ 56 = 0.050 mol
- O: 1.2 ÷ 16 = 0.075 mol
- Divide by 0.050: Fe = 1, O = 1.5
- Multiply by 2: Fe = 2, O = 3
The empirical formula is Fe2O3, iron(III) oxide.
How to find the molecular formula from the empirical formula
You need one more piece of information: the relative formula mass (molar mass) of the whole molecule, usually found with a mass spectrometer.
- Work out the mass of one empirical formula unit.
- Divide the molar mass of the compound by it. The answer, n, should be a whole number.
- Multiply every subscript in the empirical formula by n.
Worked example
The compound from the first example (CH2O) has a molar mass of 180 g/mol.
- Mass of CH2O = 12 + (2 × 1) + 16 = 30
- n = 180 ÷ 30 = 6
- Molecular formula = C(1×6)H(2×6)O(1×6) = C6H12O6, which is glucose.
If the molar mass had been 60 g/mol, n would be 2 and the molecule would be C2H4O2 (ethanoic acid). Same empirical formula, different substance. That is exactly why the empirical formula alone is never enough to name a compound. Our molar mass calculator will check the mass of any formula for you.
Common mistakes
- Dividing percentages by the atomic number instead of the relative atomic mass. Use Ar (C = 12, O = 16), not Z.
- Rounding too early. Keep two or three decimal places until the last step, or 1.5 can turn into 2 by mistake.
- Rounding 1.5 or 1.33 to the nearest whole number. Multiply up instead.
- Simplifying a molecular formula and calling it the answer. If a question asks for the molecular formula, C6H12O6 must stay C6H12O6.
- Giving an ionic compound a molecular formula. Ionic formulas such as CaCl2 are always empirical.
Frequently asked questions
Can the molecular and empirical formula be the same?
Yes. When the numbers of atoms in a molecule share no common factor, the formula cannot be simplified, so the molecular and empirical formulas are identical. Water (H2O), carbon dioxide (CO2), methane (CH4) and ammonia (NH3) are all examples. The molecular formula is always a whole-number multiple of the empirical formula, and in these cases that multiple is simply 1.
Why is it called an empirical formula?
"Empirical" means based on observation or experiment. Chemists find the empirical formula by measuring the masses of elements that combine in a real reaction, for example by burning a compound and weighing the carbon dioxide and water produced. Those measurements give the ratio of atoms, but not the size of the molecule, so the first formula you can work out from them is the empirical one.
What is the empirical formula of glucose?
The empirical formula of glucose is CH2O. Glucose has the molecular formula C6H12O6, and all three subscripts can be divided by 6, giving a ratio of 1 carbon : 2 hydrogen : 1 oxygen. Several other compounds share this empirical formula, including methanal (CH2O), ethanoic acid (C2H4O2) and fructose (C6H12O6), which is why the molar mass is needed to tell them apart.
Do you need the molar mass to find the molecular formula?
Yes. The empirical formula only gives the ratio of atoms, so you need the molar mass of the compound to know how many empirical units are in one molecule. Divide the molar mass by the empirical formula mass to get a whole number n, then multiply each subscript by n. Without the molar mass, CH2O could be methanal, ethanoic acid or glucose.
Try it yourself
Open the chemistry formulas tool and find the moles equation (moles = mass ÷ molar mass). Use it on the iron oxide example above to check each step. Then go to the Molecule Builder, build ethene (C2H4) and count the atoms: you will see the molecular formula in full, even though its empirical formula is just CH2.
See it for yourself, in 3D and free.
Try it in the Chemistry Formulas