Foundations of Chemistry

Empirical, Molecular and Structural Formulas Compared

See what each kind of chemical formula tells you, what it leaves out, and how to get from percent composition to a molecular formula.

Key takeaways

  • The empirical formula is the lowest whole-number ratio of elements, so very different compounds can share it.
  • The molecular formula is a whole-number multiple of the empirical formula, and you need the molar mass to find that multiple.
  • A structural formula shows connections between atoms, which is what separates isomers that share a molecular formula.
  • Ionic compounds and network solids have no separate molecules, so their formulas express a ratio called a formula unit.
  • Experiments usually reveal these levels in order: composition first, then molar mass, then structure.

An empirical formula gives the simplest whole-number ratio of the elements in a compound. A molecular formula gives the actual number of each atom in one molecule. A structural formula goes further and shows which atoms are joined to which.

Each one answers a different question, and each is useful at a different stage of working out what a substance is. Glucose, for example, has the empirical formula CH₂O, the molecular formula C₆H₁₂O₆, and several structural drawings that show how its 24 atoms are connected.

What an empirical formula says

The word empirical means "based on observation." An empirical formula is what you can calculate directly from measuring how much of each element a sample contains. It tells you the ratio of atoms, reduced to the smallest whole numbers.

Hydrogen peroxide molecules contain two hydrogen atoms and two oxygen atoms, so the molecular formula is H₂O₂. The ratio 2 : 2 reduces to 1 : 1, and the empirical formula is HO. No stable substance made of separate HO molecules sits in a bottle. HO is only the ratio.

Benzene (C₆H₆) and ethyne (C₂H₂, also called acetylene) both reduce to CH. One is a liquid at room temperature and the other is a gas. An empirical formula cannot tell them apart.

Some molecular formulas are already in lowest terms. Water (H₂O), methane (CH₄) and ammonia (NH₃) have empirical formulas identical to their molecular formulas, because their subscripts share no common factor larger than 1.

What a molecular formula adds

A molecular formula counts the atoms in one molecule. It is always the empirical formula multiplied by a whole number, often written n.

molecular formula = (empirical formula) × n
n = molar mass of compound ÷ molar mass of empirical formula

The table shows how one empirical formula, CH₂O, covers several substances.

Compound Molecular formula n Approximate molar mass (g/mol)
Methanal (formaldehyde) CH₂O 1 30.03
Ethanoic acid (acetic acid) C₂H₄O₂ 2 60.05
Lactic acid C₃H₆O₃ 3 90.08
Glucose C₆H₁₂O₆ 6 180.16

These substances have the same percentage of carbon, hydrogen and oxygen by mass. Their behavior differs sharply. Formaldehyde is a hazardous gas, ethanoic acid gives vinegar its sharpness, and glucose is a sugar your body uses for energy. If you need a refresher on reading the subscripts and parentheses, see how to read a chemical formula.

Worked example: from percentages to a formula

Say a lab report states that a compound is 40.0% carbon, 6.7% hydrogen and 53.3% oxygen by mass, with a molar mass of about 180 g/mol. Molar masses used here are C = 12.011, H = 1.008 and O = 15.999 g/mol.

  1. Assume a 100 g sample, so each percentage becomes a mass in grams.
  2. Divide each mass by the element's molar mass to get moles.
  3. Divide every result by the smallest number of moles.
  4. If needed, multiply all the ratios by a small integer to make them whole.
  5. Compare the empirical formula's molar mass with the measured molar mass.
C: 40.0 g ÷ 12.011 g/mol = 3.33 mol
H:  6.7 g ÷  1.008 g/mol = 6.65 mol
O: 53.3 g ÷ 15.999 g/mol = 3.33 mol

C : H : O = 1.00 : 2.00 : 1.00        (divide by 3.33)
empirical formula = CH₂O              (molar mass 30.03 g/mol)

n = 180 ÷ 30.03 = 5.99, so n = 6
molecular formula = C₆H₁₂O₆

Notice that the result for n is not exactly 6. Real measurements carry some uncertainty, so you round when the value sits very close to a whole number.

From lab data to a molecular formula
1 Mass percentages Measure how much of each element is present 2 Moles Divide each mass by its molar mass 3 Simplest ratio Divide by the smallest value to get the empirical formula 4 Multiplier n Compare measured molar mass with empirical mass 5 Molecular formula Multiply every subscript by n Mass percentages Measure how much of each element is present 1 Moles Divide each mass by its molar mass 2 Simplest ratio Divide by the smallest value to get the empirical formula 3 Multiplier n Compare measured molar mass with empirical mass 4 Molecular formula Multiply every subscript by n 5

A quick way to organize this work is a small table with one column per element and rows for mass, moles, ratio and whole-number ratio. Laying it out that way makes a misplaced molar mass easy to spot, and it lets a marker or lab partner follow each step. Keep the units written beside the numbers until the ratio step, where they cancel.

When the ratio is not a whole number

Dividing by the smallest value does not always give clean integers. Suppose an iron oxide is 69.9% iron and 30.1% oxygen by mass, using Fe = 55.845 g/mol.

Fe: 69.9 ÷ 55.845 = 1.252 mol
O:  30.1 ÷ 15.999 = 1.881 mol

Fe : O = 1.00 : 1.50        (divide by 1.252)
Fe : O = 2 : 3              (multiply by 2)
empirical formula = Fe₂O₃

Do not round 1.50 down to 1 or up to 2. Ratios ending near .5 call for multiplying by 2, those near .33 or .67 by 3, and those near .25 or .75 by 4. A value such as 2.97 is close enough to 3 to round. Keeping at least three significant figures during the arithmetic makes these cases much easier to recognize. The method is covered further in finding an empirical formula from experimental data.

Structural formulas show the wiring

A structural formula shows the arrangement of bonds. This matters because atoms can often be connected in more than one way. Compounds with the same molecular formula but different arrangements are called isomers.

Ethanol and methoxymethane (dimethyl ether) are both C₂H₆O. In ethanol the chain runs carbon, carbon, oxygen, and the oxygen carries a hydrogen. In dimethyl ether the oxygen sits between the two carbons. Ethanol boils at about 78 °C, while dimethyl ether boils at about −24 °C and is a gas at room temperature. The difference comes largely from ethanol's O–H group, which lets its molecules hydrogen bond to one another.

Chemists draw structure at several levels of detail:

Style Ethanol written that way What it shows
Condensed CH₃CH₂OH Groups of atoms in order along the chain
Displayed Every atom and every bond line drawn All connections explicitly
Skeletal A zigzag line ending in OH Carbon frame, with most hydrogens implied
Three-dimensional Solid and dashed wedges Which bonds point toward or away from you

Skeletal drawings are the standard shorthand in organic chemistry, and reading skeletal structures takes only a little practice. Even a full flat drawing can leave out shape. Mirror-image molecules, for instance, need wedges or special labels to be told apart.

Three formulas, three levels of detail
Empirical Simplest ratio of elements Glucose: CH₂O Found from composition data Molecular Actual atom count per molecule Glucose: C₆H₁₂O₆ Needs molar mass as well Structural Which atoms bond to which Separates isomers Needs evidence about bonding Empirical Simplest ratio of elements Glucose: CH₂O Found from composition data Molecular Actual atom count per molecule Glucose: C₆H₁₂O₆ Needs molar mass as well Structural Which atoms bond to which Separates isomers Needs evidence about bonding

Substances without separate molecules

Table salt is written NaCl, but a salt crystal contains no individual NaCl molecules. It is an extended lattice of Na⁺ and Cl⁻ ions in equal numbers. The formula states the ratio, and that smallest ratio is called a formula unit.

For this reason ionic formulas are normally written as empirical formulas. Calcium chloride is CaCl₂, and you would not write Ca₂Cl₄. The same applies to network solids such as quartz, written SiO₂, where covalent bonds continue throughout the crystal.

Some ions are themselves multi-atom units, which creates apparent exceptions. Sodium peroxide is written Na₂O₂ because the peroxide ion, O₂²⁻, is a real bonded pair of oxygen atoms. Reducing the formula to NaO would hide that.

How chemists find each level

The three formulas match three kinds of evidence. Elemental analysis, often by burning an organic sample and weighing or measuring the carbon dioxide and water formed, gives the composition and therefore the empirical formula. The calculation is explained in determining a molecular formula from combustion analysis.

Molar mass comes from a separate measurement. Mass spectrometry is the usual modern method, and a very precise mass can narrow the molecular formula directly. For gases, older approaches used gas density and the ideal gas law.

Structure requires clues about connections. Infrared spectra point to particular bond types, nuclear magnetic resonance reveals the environments of hydrogen and carbon atoms, and X-ray crystallography can map atom positions in a good crystal. Chemists usually combine several of these before they commit to a drawing. You can see the reasoning in solving an unknown structure from IR, NMR and mass data.

Working backward from a formula

You can run the calculation in reverse to check an answer. Take the glucose result, C₆H₁₂O₆, with a molar mass of 180.16 g/mol, and find the percentage of each element by mass.

C: 6 × 12.011 = 72.07 g     72.07 ÷ 180.16 × 100 = 40.0%
H: 12 × 1.008 = 12.10 g     12.10 ÷ 180.16 × 100 =  6.7%
O: 6 × 15.999 = 95.99 g     95.99 ÷ 180.16 × 100 = 53.3%
total                       100.0%

The percentages match the starting data, which is good evidence that no arithmetic slipped. Running the same sum for CH₂O gives identical percentages, because both formulas describe the same ratio. That is the clearest demonstration of why composition data alone cannot choose between them.

Hydrated salts add one more wrinkle. Blue copper sulfate crystals are written CuSO₄·5H₂O. The dot shows that five water molecules accompany each CuSO₄ unit in the crystal in a fixed proportion. The five is part of the formula and counts toward the molar mass, but the formula is written this way instead of as CuH₁₀O₉S so that the water stays visible. Gentle heating in a supervised lab drives the water off and leaves a pale, nearly white solid.

Common mistakes to avoid

Treating the empirical formula as the real molecule is the most frequent slip. Unless you know the molar mass, you cannot say whether CH₂O refers to formaldehyde, glucose or something else.

A second mistake is multiplying only one subscript by n. If n = 3 and the empirical formula is CH₂O, every subscript is tripled to give C₃H₆O₃.

A third is rounding too early. Rounding 1.25 mol to 1.3 mol partway through can push a ratio far enough to suggest the wrong formula.

Finally, a molecular formula alone does not name a compound. When an exam or a label gives only C₄H₁₀, it could be butane or 2-methylpropane (isobutane). The number of structural isomers grows quickly as molecules get larger, which is why chemists lean so heavily on structural drawings.

Written for 4Chemistry with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 32 articles in Foundations of Chemistry →

Latest news on this topic