ScienceChemistry

Empirical Formula
calculator.

Turn percent composition or element masses into the simplest whole-number formula.

How it's worked out

An empirical formula gives the smallest whole-number ratio of atoms in a compound. Lab analysis reports mass, so the job is to turn masses into moles and then into that ratio. OpenStax lays out the same four steps used here.

  • Treat percents as grams. Assume a 100 g sample, so 40.0% carbon becomes 40.0 g. The sample size cancels out, so any mass would give the same ratio.
  • Divide each mass by its atomic weight. This gives moles, using the IUPAC standard atomic weights.
  • Divide every mole amount by the smallest one. The smallest becomes 1 and the rest become ratios.
  • Clear any fractions. If a ratio sits near 1.5, 1.33 or 1.25, multiply all of them by 2, 3 or 4 so every one is whole.
moles\displaystyle \text{moles}=massatomic weight\displaystyle {}= \frac{\text{mass}}{\text{atomic weight}}

The tool tries multipliers from 1 to 8 and takes the first that brings every ratio within 0.12 of a whole number. It then reports how close each one came, and works out the mass percents of the formula it found so you can compare them with your data.

Molecular formula. If you know the molar mass, divide it by the empirical formula mass. The result, nn, is how many empirical units are in one molecule, and every subscript is multiplied by it.

n\displaystyle n=molar massempirical formula mass\displaystyle {}= \frac{\text{molar mass}}{\text{empirical formula mass}}

Combustion data. Burning a compound of carbon, hydrogen and oxygen turns its carbon into CO₂ and its hydrogen into water. Carbon is 27.29% of the mass of CO₂, and hydrogen is 11.19% of the mass of water. Oxygen is what remains of the sample, found by difference.

Worked examples

Sam finds the formula of vitamin C

Sam's sample is 40.92% carbon, 4.58% hydrogen and 54.50% oxygen. In 100 g that is 3.407 mol C, 4.544 mol H, 3.406 mol O. Dividing by the smallest gives 1 : 1.33 : 1.

Hydrogen at 1.33 is one and a third, which is the fraction below. Multiplying all three by 3 gives C₃H₄O₃, with a formula mass of 88.062 g/mol.

43×3\displaystyle \frac{4}{3} \times 3=4\displaystyle {}= 4

The molar mass, 176.12 g/mol, is 2 times that, so n=2n = 2 and the molecule is C₆H₈O₆. Every ratio landed within 0.0015 of a whole number.

Open this example in the tool

Ana checks a sample of red iron oxide

Ana's analysis gives 69.94% iron and 30.06% oxygen. The mole ratio is 1 to 1.5. Rounding 1.5 down to 1 would give FeO, a different compound. Doubling both gives Fe₂O₃, which is iron(III) oxide.

Open this example in the tool

Leo works back from a combustion run

Leo burns 0.255 g of a liquid made of C, H and O, and collects 0.561 g of CO₂ and 0.306 g of water. That holds 0.1531 g of carbon and 0.03424 g of hydrogen. The other 0.06765 g of the sample is oxygen.

Those masses give the ratio 3.01 : 8.03 : 1, so the formula is C₃H₈O. Its mass percents are within 0.094 points of Leo's, and the formula fits isopropyl alcohol.

Open this example in the tool

Reading your result

A small miss is normal. Measured percents carry error, so a ratio of 3.01 still means 3. A miss of 0.1 or more on one element, with no multiplier that clears it, points to a data problem, such as a missing element.

The fraction tells you the multiplier. A ratio ending near .5 needs 2, near .33 or .67 needs 3, near .25 or .75 needs 4, and near .2, .4, .6 or .8 needs 5. The table shows each ratio as a stacked fraction so you can see which one forced the step.

Many compounds share a formula. Glucose gives CH₂O with n=6n = 6, and formaldehyde and acetic acid reduce to the same ratio. The OpenStax nicotine example, 74.02% C, 8.710% H and 17.27% N, gives C₅H₇N, and its molar mass of 162.23 g/mol gives C₁₀H₁₄N₂. Only a molar mass or a structure tells such compounds apart.

Formula order. A formula with carbon is written in Hill order: carbon, then hydrogen, then the rest by symbol. Others keep the order you typed, so NaCl stays NaCl.

Common mistakes

  • Rounding 1.5 or 1.33 to the nearest whole number. That gives the wrong compound. Multiply every ratio by the same number instead.
  • Leaving out oxygen. Many reports list only C, H and N, and oxygen is the rest. If your percents add to well under 100, enter the gap as oxygen when the compound contains it.
  • Rounding too early. Keep at least four figures in the moles and ratios. In the combustion example, cutting 0.01275 mol of carbon to 0.01 turns a ratio of 3 into 2.37.
  • Using the molecular formula for n. Divide the molar mass by the empirical formula mass, not by the mass of one atom or of the molecule.

Questions people ask

Read the decimal as a fraction. 1.33 is one and a third, so multiplying by 3 clears it; 1.5 is one and a half, so 2 clears it. Use the same multiplier for every element, even the ones that were already whole.

Sources