When chemists make or isolate a new compound, they do not see its formula; they measure it. An analysis gives the mass of each element in a sample, and from those masses comes the simplest whole-number ratio of atoms, the empirical formula. One more measurement, the molar mass, turns it into the molecular formula.
Every problem in this lesson follows the path in Figure 1: masses to moles, moles to the smallest whole-number ratio, and, when the molar mass is known, the whole-number multiple.
startMassesgrams of each element (from % or combustion)
grams to moles
Molesof each element
then whole numbers
answerEmpirical formulasimplest whole-number ratio
k from the molar mass
answerMolecular formulaactual atoms per molecule
Subscripts are mole ratios, never mass ratios.Multiply by 2, 3 or 4 when a ratio is not close to whole.
Figure 1. The formula roadmap: masses to moles, moles to the simplest ratio, then the whole-number multiple k.
Learning Objectives
After this lesson, you should be able to:
Derive an empirical formula from mass-percent or combustion-analysis data.
Find the molecular formula from the empirical formula and the molar mass.
Key Ideas
1. Empirical and Molecular Formulas
The molecular formula gives the actual number of each kind of atom in one molecule. The empirical formula gives only the simplest whole-number ratio. Glucose, , has the empirical formula : every subscript divided by 6 (Figure 2).
Figure 2. Dividing every subscript by the same whole number k gives the empirical formula, for example . Water is already in its simplest ratio (k = 1).
Key idea: different compounds can share one empirical formula. Glucose and acetic acid are both CH2O; only the molar mass tells them apart.
2. Subscripts Are Mole Ratios
A formula counts atoms, so its subscripts are ratios of moles, not of grams. To use mass-percent data, assume a 100 g sample so each percent becomes a mass in g, convert each mass to moles with the atomic weight, and divide every amount by the smallest one.
Formaldehyde is 40.00% C, 6.714% H and 53.28% O by mass. In 100 g:
Dividing by the smallest amount, 3.330 mol, gives 1.000 : 2.000 : 1.000, so the empirical formula is . The masses alone look nothing like this ratio (Figure 3).
Figure 3. The masses hide the formula; the moles show it: .
If a ratio is not within about 0.05 of a whole number, do not round it. Multiply every ratio by the smallest whole number that clears it: 2 for a ratio ending near .5, 3 for .33 or .67, 4 for .25 or .75.
Key idea: grams to moles first, then divide by the smallest amount. Round only ratios that are already within about 0.05 of a whole number.
3. Combustion Analysis
A compound of carbon and hydrogen, possibly with oxygen, can be burned in excess oxygen. Every C atom ends up in and every H atom in , and the two products are trapped and weighed (Figure 4).
: one C in each
: two H in each
: oxygen by difference, since the O in the products also comes from the oxygen gas
Figure 4. Combustion analysis: weigh the trapped products, then , and .
Key idea: C comes from the CO2, H from the H2O (times 2), and O from whatever mass is left.
4. From Empirical to Molecular Formula
The molar mass of a compound is a whole-number multiple of its empirical formula mass. Divide to find , then multiply every subscript by it (Figure 5):
For (30.03 g/mol), acetic acid has and , so it is ; glucose has and .
Figure 5. Both compounds sit on a multiple of the CH₂O mass: .
Worked Example 1: Empirical Formula from Mass Percents
Problem: A red-brown iron oxide contains 69.94% iron and 30.06% oxygen by mass. Find its empirical formula. Use Fe = 55.845 and O = 15.999 g/mol.
Step 1. Assume a 100 g sample, so each percent becomes a mass in g.
Step 2. Convert each mass to moles.
Step 3. Divide each amount by the smallest (1.252 mol).
Step 4. Multiply every ratio by 2 to make them whole numbers. 1.501 is close to 1.5, too far from a whole number to round.
Step 5. Write the whole numbers as subscripts. 2 Fe for every 3 O: .
Final Answer: Fe2O3
Massesin a 100 g sample
Step 2grams to moles
MolesFe : O
Step 3by 1.252 mol
Ratio1.501 is near 1.5: do not round
Step 4clear the half
Formula2.000 : 3.002
Figure 6. Worked Example 1 on the roadmap (Figure 1), including the multiply-by-2 step.
This is iron(III) oxide, the compound whose percent composition you calculated in the previous lesson: the method simply runs that calculation backwards (Figure 6).
Your turn: empirical formula from mass percents
Same five steps as Worked Example 1. Type the formula with plain numbers, for example Fe2O3.
Loading the practice problem…
Worked Example 2: Combustion Analysis
Problem: A 0.2500 g sample of a liquid that contains only carbon, hydrogen and oxygen is burned completely. It produces 0.4777 g of and 0.2934 g of . Find the empirical formula. Use = 44.01 g/mol, = 18.02 g/mol, C = 12.011, H = 1.008 and O = 15.999 g/mol.
Step 1. Find the moles of C and H from the products.
Step 2. Find the mass of O by difference, then its moles.
Step 3. Divide each amount by the smallest (0.005430 mol).
Step 4. Round and write the formula. All three ratios are within 0.01 of a whole number: 2 : 6 : 1.
Final Answer: C2H6O
Productsfrom a 0.2500 g sample
Step 1C from CO₂, 2 H per H₂O
Moles of C and H
Step 2mass of O by difference:
Moles of O
Step 3C : H : O
Formula
Figure 7. Worked Example 2 on the roadmap (Figure 1): moles from the products, oxygen by difference, then the ratio.
C2H6O is the formula of ethanol. The three element masses add back up to the 0.2500 g sample (Figure 7).
Your turn: combustion analysis
Same method as Worked Example 2. If the compound has no oxygen, skip the difference step.
Loading the practice problem…
Worked Example 3: Molecular Formula from the Molar Mass
Problem: Vitamin C (ascorbic acid) has the empirical formula and a molar mass of 176.1 g/mol. What is its molecular formula?
Step 1. Find the empirical formula mass.
Step 2. Divide the molar mass by the empirical formula mass.
Step 3. Multiply every subscript by 2.
Final Answer: C6H8O6
Empirical formula massStep 1
Step 2molar mass over empirical formula mass
Multiplea whole number
Step 3every subscript
Molecular formula
Figure 8. Worked Example 3 finishes the roadmap (Figure 1): find k, then multiply the subscripts.
Exam tip: k must come out very close to a whole number. If it does not, recheck the empirical formula mass before going on.
Your turn: molecular formula
Same three steps as Worked Example 3: empirical formula mass, divide, multiply the subscripts.
Loading the practice problem…
Common Mistakes
Common mistake: Using mass ratios as subscripts. For formaldehyde, dividing the percents by the smallest percent gives about 6 : 1 : 8 (5.958 and 7.936 for C and O), not 1 : 2 : 1. Convert every mass to moles first.
Common mistake: Rounding a ratio too early. In Worked Example 1, rounding 1.501 to 2 gives FeO2. A ratio near 1.5 means multiply everything by 2.
Common mistake: Not reducing the formula. Fe4O6 has the right ratio but is not the simplest one. An empirical formula has no common factor in its subscripts.
Common mistake: Forgetting the 2 H in each water. In Worked Example 2, using for H gives a ratio of 2.998 and the wrong formula C2H3O.
Common mistake: Leaving out the oxygen. If the compound contains oxygen, the C and H masses do not add up to the sample mass. Ignoring the rest in Worked Example 2 gives C : H = 1 : 3.001, the formula CH3.
Common mistake: Stopping at the empirical formula. When a molar mass is given, the question asks for the molecular formula. For vitamin C, C3H4O3 is only the empirical formula.
Key Takeaway
Subscripts count atoms, so they come from mole ratios: turn masses (from percents or from combustion products) into moles, divide by the smallest amount, and clear any fractions with a small whole number. The molar mass then fixes how many empirical units make up one molecule.
Practice: randomized problems
Each problem below uses fresh numbers every time: work it out, check your answer, then open the worked solution to compare your steps.
Loading the practice problem…
Your results
This summary collects every practice problem you try on this page and suggests what to review next.
Loading your results…
Figures: original diagrams by Dr. Ray’s Learning Center, licensed CC BY 4.0. Atomic weights: IUPAC 2021 abridged standard atomic weights. The practice problems are generated and checked by an audited engine; see the lesson audit log.