← All articles
chemistryhow to calculate empirical formulaempirical formulamole ratiosAugust 17, 20269 min read

How to Calculate Empirical Formula Step by Step

By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.

Calculating empirical formula becomes manageable when you follow one sequence: convert each element to moles, divide by the smallest mole amount, and turn the resulting ratio into whole numbers. The empirical formula shows the simplest whole-number ratio of atoms in a compound.

From masses to moles to a ratio

Suppose a compound contains 12 grams of carbon and 32 grams of oxygen. First convert each mass to moles using amount in moles equals mass divided by molar mass. Carbon has a molar mass of about 12 grams per mole, so 12 grams is about 1 mole. Oxygen atoms have a molar mass of about 16 grams per mole, so 32 grams is about 2 moles.

Now compare the mole amounts. The ratio is 1 mole of carbon to 2 moles of oxygen. Because these are already simple whole numbers, the empirical formula is CO2. The small 2 belongs to oxygen because the simplest atomic ratio is one carbon atom for every two oxygen atoms.

This is the basic method for calculating empirical formula. Masses cannot be compared directly because different elements have different atomic masses. Converting to moles puts the elements on a particle-counting basis.

Percent composition uses the same method

If a question gives percentages instead of masses, imagine a 100 gram sample. A compound that is 40 percent carbon and 60 percent oxygen can be treated as 40 grams of carbon and 60 grams of oxygen. Convert each imagined mass to moles, then continue with the same ratio steps.

Using a 100 gram sample works because percentage literally means parts per hundred. You are not claiming the real sample weighs 100 grams. You are choosing a convenient amount that turns percentages into easy mass values without changing the element ratio.

When calculating empirical formula, write units on every conversion. Grams should disappear when you divide by grams per mole, leaving moles. This small habit makes it easier to notice if you have accidentally used atomic numbers, percentages, or raw masses in the final ratio.

Fix ratios that are close to simple fractions

After dividing all mole amounts by the smallest, you may get values such as 1, 1.5, and 1. A formula cannot use a 1.5 subscript, so multiply every ratio by the same small whole number. Multiplying by 2 turns the ratio into 2, 3, and 2. Values near 1.33 or 1.67 often suggest multiplying by 3, while values near 1.25 or 1.75 can suggest multiplying by 4.

Do not round too aggressively. A ratio of 1.98 is probably intended to be 2 after allowing for measurement and rounding, but 1.50 is not close enough to 1 or 2. It signals a simple fraction that needs scaling. Keep a few decimal places during the mole calculations before deciding.

One final check helps with calculating empirical formula: the subscripts should share no common factor larger than 1. If you end with C2H4, the ratio can still be simplified to CH2, so C2H4 would not be the empirical formula. A molecular formula may be a multiple of the empirical formula, but the empirical formula itself must be the simplest ratio.

Getting the data from combustion, then the molecular formula

Real empirical formula problems often begin with combustion analysis. A sample containing carbon, hydrogen and oxygen is burned completely, and the carbon dioxide and water produced are collected and weighed. Suppose 0.300 grams of a compound gives 0.440 grams of carbon dioxide and 0.180 grams of water. Carbon makes up 12 out of 44 parts of carbon dioxide's mass, so the sample held 0.120 grams of carbon. Hydrogen makes up 2 out of 18 parts of water, giving 0.020 grams. Oxygen is found by difference: 0.300 minus 0.140 leaves 0.160 grams.

Converting to moles gives 0.010 for carbon, 0.020 for hydrogen and 0.010 for oxygen, so the empirical formula is CH2O. That alone does not reveal the actual molecule, because formaldehyde, acetic acid and glucose all share this ratio. A second measurement is needed, usually the molar mass, which chemists often find with a mass spectrometer. If the molar mass is 180 grams per mole, divide it by the empirical formula mass of 30 to get 6. Multiplying every subscript by 6 gives the molecular formula C6H12O6, which is glucose.

Finding a formula from your own experiment

A classic school experiment lets you find an empirical formula from your own data. You weigh a crucible and lid, add a coil of magnesium ribbon and weigh again, then heat it strongly, lifting the lid briefly from time to time to let air in. When the magnesium has stopped glowing and the mass no longer changes, you reweigh. Suppose 0.24 grams of magnesium produced 0.40 grams of white oxide, so the oxygen gained is 0.16 grams. That is 0.010 moles of magnesium and 0.010 moles of oxygen, a 1 to 1 ratio, so the formula is MgO.

Real results rarely come out so neatly, and the errors are instructive. If white smoke escapes when you lift the lid, some magnesium oxide is lost, so the final mass is too low and the calculation suggests less oxygen than there really is. Unreacted ribbon has the same effect. Hot magnesium can also react with nitrogen in the air to form a little magnesium nitride, which adds less mass than the oxide would, again making the oxygen look too low. Working out which way each error pushes the ratio is good practice for judging whether an odd result points to a new compound or a flawed experiment.

Finding the water in a hydrated salt

Some compounds trap water inside their crystals, and the same mole-ratio method tells you how much. Blue copper sulfate crystals contain a fixed number of water molecules for each CuSO4 unit, written CuSO4.xH2O. To find x, weigh a sample, heat it gently in a crucible until it turns white and its mass stops changing, then weigh again. Suppose 2.50 grams of blue crystals leave 1.60 grams of white anhydrous copper sulfate, so 0.90 grams of water was lost. Copper sulfate has a molar mass of about 159.6 grams per mole, giving about 0.0100 moles. Water, at 18 grams per mole, gives 0.050 moles.

Dividing both amounts by 0.0100 gives a ratio of 1 to 5, so the formula is CuSO4.5H2O, copper sulfate pentahydrate. Heating to constant mass matters, because stopping early leaves some water behind and makes x too small. Heating far too strongly causes the opposite error. At high temperatures copper sulfate itself begins to decompose, giving off sulfur oxides and leaving black copper oxide, so the extra mass loss is wrongly counted as water and x comes out too large. The colour change also works in reverse. Adding a drop of water to white anhydrous copper sulfate turns it blue again, a standard laboratory test for water.

The takeaway

Calculating empirical formula is a ratio problem built on moles. Convert every element to moles, divide all values by the smallest amount, adjust simple fractional ratios to whole numbers, and simplify if needed. Slow, tidy working is usually more reliable than trying to guess the subscripts from percentages or masses.

Practise this

Questions from Moles and Calculations

Reading about something is not the same as being able to recall it. These are real questions from the Moles and Calculations unit in our Chemistry track, answers and explanations included. The unit has 120 in total across 20 steps.

  • Multiple choiceLevel 2

    1. What is the relative formula mass (Mr) of calcium carbonate, CaCO3? (Ar: Ca = 40, C = 12, O = 16)

    • 100correct
    • 68
    • 84
    • 116

    40 + 12 + (3 x 16) = 40 + 12 + 48 = 100.

  • Fill the blankLevel 2

    2. Atom economy measures the proportion of reactant atoms that end up in the ____ product.

    • desiredcorrect
    • waste
    • gaseous
    • solid

    A high atom economy means most reactant atoms become the useful (desired) product rather than waste.

  • Choose all that applyLevel 3

    3. Which statements about a reactant that is in excess are correct? (Select all that apply.)

    • Some of it remains unreacted at the endcorrect
    • It is not completely used upcorrect
    • It controls the maximum amount of product
    • There is more of it than is needed to react with the limiting reagentcorrect

    An excess reactant is more than enough, so some remains unreacted at the end; it is the limiting reagent, not the excess one, that controls the amount of product.