How to Calculate Molecular Formula from Empirical Formula: A Complete Guide
Knowing how to calculate molecular formula from empirical formula is essential once you move past basic percent-composition problems in general chemistry. The empirical formula only tells you the simplest whole-number ratio of atoms in a compound, while the molecular formula tells you the actual number of each atom in one real molecule, and the two can differ by a whole-number multiple. This guide covers the exact formula for converting between them, walks through four fully worked examples using real compounds — glucose, ascorbic acid (vitamin C), benzene, and caffeine — and finishes with practice problems you can check your work against. Every example includes the full arithmetic and a verification check so you can confirm each answer before moving on.
Contents
- 01What Is the Difference Between an Empirical and a Molecular Formula?
- 02How Do You Calculate Molecular Formula from Empirical Formula?
- 03Worked Example 1: Finding the Molecular Formula of Glucose
- 04How Do You Find the Empirical Formula from Percent Composition First?
- 05Worked Example 2: Vitamin C (Ascorbic Acid)
- 06Can You Find the Empirical Formula from Combustion Analysis Data?
- 07Worked Example 3: Identifying Benzene from Combustion Data
- 08What Common Mistakes Should You Avoid?
- 09Practice Problems: Test Your Understanding
- 10Why Does This Skill Matter Beyond the Chemistry Classroom?
What Is the Difference Between an Empirical and a Molecular Formula?
An empirical formula shows the simplest whole-number ratio of atoms of each element in a compound — nothing more. A molecular formula shows the actual number of atoms of each element in one molecule of that compound, which can be the same as the empirical formula or a whole-number multiple of it. For example, the empirical formula CH2O describes a 1:2:1 ratio of carbon, hydrogen, and oxygen. That same ratio is true for formaldehyde (CH2O, molar mass 30.03 g/mol), acetic acid (C2H4O2, molar mass 60.05 g/mol), and glucose (C6H12O6, molar mass 180.16 g/mol) — three completely different compounds, with completely different physical and chemical properties, that all share the empirical formula CH2O. The only way to tell them apart is to know the compound's actual molar mass, which is why molecular formula problems almost always give you a measured or experimental molar mass alongside the percent composition or empirical formula. This isn't unique to CH2O either — every alkene in the CnH2n homologous series (ethylene C2H4, propylene C3H6, butylene C4H8) shares the reduced empirical formula CH2, and the only thing that separates them on paper is molar mass.
Key idea: the empirical formula is a ratio, not a molecule. Any compound whose atoms occur in that ratio shares the same empirical formula, no matter how large the actual molecule is.
How Do You Calculate Molecular Formula from Empirical Formula?
The conversion relies on one relationship: the molecular formula is always a whole-number multiple of the empirical formula, and that multiple — called n — is found by dividing the compound's molar mass by the empirical formula mass. Once you know n, you multiply every subscript in the empirical formula by n to get the molecular formula. This works because the empirical formula mass is, by definition, the mass of one 'unit' of the ratio, and the molecular formula's molar mass must equal n times that unit mass — so dividing the two recovers n directly. You can also think of it as unit cancellation: (molecular molar mass, g/mol) ÷ (empirical formula mass, g/mol per unit) = number of units, which is exactly what n represents. This relationship holds for every compound, whether it's a small molecule like water or a large one like glucose, because it follows directly from how empirical and molecular formulas are defined relative to each other.
1. Step 1
Find the empirical formula mass by adding the atomic masses of every atom in the empirical formula.
2. Step 2
Divide the compound's given (experimental) molar mass by the empirical formula mass: n = molar mass ÷ empirical formula mass.
3. Step 3
Round n to the nearest whole number — it should land within about 0.1 of an integer if the data is accurate.
4. Step 4
Multiply every subscript in the empirical formula by n to write the molecular formula.
5. Step 5
Check your answer by computing the molar mass of the molecular formula directly and confirming it matches the given molar mass.
Formula: n = molar mass of compound ÷ empirical formula mass. Molecular formula = (empirical formula) × n.
Worked Example 1: Finding the Molecular Formula of Glucose
Suppose you're told a compound has the empirical formula CH2O and a molar mass of 180.16 g/mol, and asked to find its molecular formula. Start with Step 1: the empirical formula mass of CH2O is 12.01 (C) + 2 x 1.008 (H) + 16.00 (O) = 12.01 + 2.016 + 16.00 = 30.03 g/mol. Step 2: divide the given molar mass by this value — n = 180.16 ÷ 30.03 = 6.0. Step 3: n is already a clean whole number, so no rounding judgment call is needed. Step 4: multiply every subscript in CH2O by 6 to get C6H12O6 — the molecular formula of glucose. Step 5: check the answer by computing the molar mass of C6H12O6 directly: 6 x 12.01 + 12 x 1.008 + 6 x 16.00 = 72.06 + 12.10 + 96.00 = 180.16 g/mol, which matches the given molar mass exactly, confirming the molecular formula is correct.
1. Empirical formula mass of CH2O
12.01 + 2(1.008) + 16.00 = 30.03 g/mol
2. Step 2
n = 180.16 ÷ 30.03 = 6.0
3. Molecular formula
(CH2O) × 6 = C6H12O6
4. Check
6(12.01) + 12(1.008) + 6(16.00) = 180.16 g/mol — matches glucose's known molar mass
Glucose is a textbook-standard example because every number resolves to a clean integer, which makes it the easiest first problem to practice the method on.
How Do You Find the Empirical Formula from Percent Composition First?
Many molecular formula problems don't give you the empirical formula directly — they give you percent composition by mass instead, so you have to derive the empirical formula before you can find n. The standard trick is to assume a 100 g sample, which turns each percentage directly into a mass in grams (40.92% becomes 40.92 g, for instance). Convert each element's mass to moles by dividing by its atomic mass, then divide every mole value by the smallest one in the set — this normalizes the ratio so the smallest element becomes 1.00. If the resulting ratio isn't close to whole numbers — for example, something near 1.33, 1.5, or 1.25 — multiply every value by the smallest integer that clears the fraction (3 for a value near 1.33, 2 for a value near 1.5, 4 for a value near 1.25) before writing the empirical formula. Skipping this last check is the single most common source of wrong answers in percent-composition problems, because a ratio like 1.33 looks close enough to 1 to round carelessly, but rounding it early throws away real information about the compound's structure.
1. Step 1
Assume a 100 g sample so each percent becomes grams.
2. Convert grams of each element to moles
mass ÷ atomic mass.
3. Step 3
Divide every mole value by the smallest mole value in the set.
4. Step 4
If a ratio isn't a whole number, multiply all ratios by the smallest integer that clears the decimal (×3 for .33, ×2 for .5, ×4 for .25).
Common trap: a ratio of 1.33 is not "close enough" to round to 1 — it's 4/3, and rounding it early gives the wrong empirical formula.
Worked Example 2: Vitamin C (Ascorbic Acid)
A compound is 40.92% carbon, 4.58% hydrogen, and 54.50% oxygen by mass, with a molar mass of 176.12 g/mol. Assuming a 100 g sample gives 40.92 g C, 4.58 g H, and 54.50 g O. Converting to moles: 40.92 ÷ 12.01 = 3.407 mol C, 4.58 ÷ 1.008 = 4.544 mol H, and 54.50 ÷ 16.00 = 3.406 mol O. Dividing every value by the smallest (3.406) gives a ratio of C: 1.00, H: 1.33, O: 1.00. Since 1.33 ≈ 4/3, multiply all three ratios by 3 to clear the fraction: C: 3, H: 4, O: 3 — the empirical formula is C3H4O3. Its empirical formula mass is 3(12.01) + 4(1.008) + 3(16.00) = 36.03 + 4.03 + 48.00 = 88.06 g/mol. Now apply the molecular formula method: n = 176.12 ÷ 88.06 = 2.0, so the molecular formula is (C3H4O3) × 2 = C6H8O6 — the actual molecular formula of ascorbic acid (vitamin C), which you can verify against any published chemistry reference.
1. Moles per 100 g
C = 3.407, H = 4.544, O = 3.406
2. Divide by smallest (3.406)
C = 1.00, H = 1.33, O = 1.00
3. Multiply by 3 to clear 1.33
empirical formula C3H4O3
4. Step 4
Empirical formula mass = 88.06 g/mol; n = 176.12 ÷ 88.06 = 2.0
5. Molecular formula
C6H8O6 — matches known formula for vitamin C
This problem is a good stress test for the method because the empirical formula itself takes an extra multiplication step before you can even calculate n.
Can You Find the Empirical Formula from Combustion Analysis Data?
Yes — combustion analysis is the classic experimental method for finding the empirical formula of a compound containing only carbon and hydrogen (or carbon, hydrogen, and oxygen). A known mass of the compound is burned completely in excess oxygen, and the resulting carbon dioxide and water are collected and weighed separately. Every carbon atom in the original compound ends up in a CO2 molecule, and every hydrogen atom ends up in an H2O molecule, so the moles of CO2 give you the moles of carbon directly, and the moles of H2O — multiplied by 2 — give you the moles of hydrogen. If the compound contains oxygen, its mass is found by subtracting the combined mass of carbon and hydrogen from the original sample mass, since oxygen from the air also contributes to the CO2 and H2O produced and can't be tracked directly.
1. Step 1
Convert grams of CO2 produced to moles of CO2, which equals moles of carbon in the original sample.
2. Step 2
Convert grams of H2O produced to moles of H2O, then multiply by 2 to get moles of hydrogen.
3. Step 3
Convert moles of C and H back to grams using their atomic masses.
4. Step 4
If the compound may contain oxygen, subtract (mass of C + mass of H) from the original sample mass to find the mass of oxygen.
5. Step 5
Convert all element masses to moles and find the empirical formula using the same ratio method as percent composition.
Combustion analysis is how 19th-century chemists first determined the composition of organic compounds, long before modern instruments — the arithmetic is identical to a percent-composition problem, just with an extra conversion step at the start.
Worked Example 3: Identifying Benzene from Combustion Data
A 1.000 g sample of a hydrocarbon (containing only carbon and hydrogen) is burned completely, producing 3.381 g of CO2 and 0.692 g of H2O. A separate measurement finds the compound's molar mass to be 78.11 g/mol. First, find moles of carbon: 3.381 g CO2 ÷ 44.01 g/mol = 0.07682 mol CO2, which equals 0.07682 mol C, or 0.07682 x 12.01 = 0.9226 g of carbon. Next, find moles of hydrogen: 0.692 g H2O ÷ 18.02 g/mol = 0.03840 mol H2O, so moles of H = 2 x 0.03840 = 0.07680 mol H, or 0.07680 x 1.008 = 0.0774 g of hydrogen. Adding the two masses gives 0.9226 + 0.0774 = 1.0000 g, which matches the original sample mass exactly — confirming the compound contains only carbon and hydrogen, with no oxygen. The mole ratio of C to H is 0.07682 : 0.07680, which is 1.00 : 1.00, so the empirical formula is CH, with an empirical formula mass of 12.01 + 1.008 = 13.02 g/mol. Finally, n = 78.11 ÷ 13.02 = 6.0, so the molecular formula is (CH) × 6 = C6H6 — benzene.
1. Step 1
Moles C = moles CO2 = 3.381 ÷ 44.01 = 0.07682 mol → mass C = 0.9226 g
2. Step 2
Moles H = 2 × (0.692 ÷ 18.02) = 0.07680 mol → mass H = 0.0774 g
3. Mass check
0.9226 + 0.0774 = 1.0000 g = original sample mass, so no oxygen is present
4. Mole ratio C
H = 1.00:1.00 → empirical formula CH (mass 13.02 g/mol)
5. Step 5
n = 78.11 ÷ 13.02 = 6.0 → molecular formula C6H6 (benzene)
The mass-balance check — comparing (mass of C + mass of H) to the original sample mass — is what tells you whether a hydrocarbon combustion problem also contains oxygen, without measuring oxygen directly.
What Common Mistakes Should You Avoid?
The most frequent error is dividing the values the wrong way around — n is always molar mass divided by empirical formula mass, never the reverse, since the molecular formula is always the same size or larger than the empirical formula. A second common mistake is rounding a ratio like 1.33 or 1.5 straight to 1 during the percent-composition step instead of recognizing it as a fraction that needs the whole set multiplied up; this produces an empirical formula with the wrong atom count before the molecular formula step even begins. A third mistake is using rounded atomic masses inconsistently — mixing 12 for carbon in one line with 12.01 in another can shift n by enough to make it land on 1.9 instead of 2.0, leading students to second-guess a correct answer. A fourth mistake, specific to combustion analysis problems, is forgetting to double the moles of H2O when converting to moles of hydrogen, since each water molecule contains two hydrogen atoms but only one oxygen atom that isn't tracked the same way. Finally, watch for a molar mass that isn't a clean multiple of the empirical formula mass; a healthy n should land within roughly 0.1 of a whole number, and anything further off usually means an arithmetic or rounding error earlier in the problem, not a sign that you should round more aggressively.
If n comes out to something like 1.9 or 2.1, don't force-round it silently — recheck the empirical formula mass and the atomic masses used before accepting the answer.
Practice Problems: Test Your Understanding
Try these four problems using the same step-by-step method, then check your work against the answers below. Work through each one on paper before reading the answer, since the goal is to practice the arithmetic yourself, not just recognize the method.
1. Problem 1
A compound has empirical formula C2H4O and a molar mass of 88.11 g/mol. Find the molecular formula. Answer: empirical mass = 2(12.01) + 4(1.008) + 16.00 = 44.05 g/mol; n = 88.11 ÷ 44.05 = 2.0; molecular formula = C4H8O2.
2. Problem 2
A compound is 85.63% carbon and 14.37% hydrogen by mass, with a molar mass of 84.16 g/mol. Find the molecular formula. Answer: moles per 100 g are C = 7.13, H = 14.26; dividing by 7.13 gives C:1, H:2, so the empirical formula is CH2 (mass 14.03 g/mol); n = 84.16 ÷ 14.03 = 6.0; molecular formula = C6H12.
3. Problem 3
Caffeine has the empirical formula C4H5N2O and a molar mass of 194.19 g/mol. Find the molecular formula. Answer: empirical mass = 4(12.01) + 5(1.008) + 2(14.01) + 16.00 = 97.10 g/mol; n = 194.19 ÷ 97.10 = 2.0; molecular formula = C8H10N4O2.
4. Problem 4
Combustion of a 2.000 g hydrocarbon sample produces 5.855 g of CO2 and 3.596 g of H2O; the molar mass is measured as 30.07 g/mol. Find the molecular formula. Answer: moles C = 5.855 ÷ 44.01 = 0.1330 mol → mass C = 1.598 g; moles H = 2 × (3.596 ÷ 18.02) = 0.3991 mol → mass H = 0.4023 g; total 2.000 g matches the sample mass, confirming a pure hydrocarbon; mole ratio C:H = 0.1330:0.3991 = 1:3, so empirical formula is CH3, mass = 12.01 + 3(1.008) = 15.03 g/mol; n = 30.07 ÷ 15.03 = 2.0; molecular formula = C2H6 (ethane).
All four answers correspond to real compounds — ethyl acetate, cyclohexane, caffeine, and ethane — so you can double-check them against published molar masses if you want extra confirmation.
Why Does This Skill Matter Beyond the Chemistry Classroom?
Converting between empirical and molecular formulas isn't just a textbook exercise — it's how chemists historically identified unknown compounds before modern spectroscopy, and combustion analysis in particular is still taught as the foundational method for determining the composition of newly synthesized organic molecules. The same n = molar mass ÷ empirical mass logic also shows up in polymer chemistry, where the empirical formula of a repeating unit is scaled up to describe an entire polymer chain, and in pharmaceutical chemistry, where confirming a drug's molecular formula against its measured molar mass is a routine quality check. If you're working through a stoichiometry or percent-composition unit and want to check your arithmetic on a specific problem, Solvify's Smart Scan solver can read a handwritten or photographed problem and walk through each step — including empirical-to-molecular formula conversions and combustion analysis — so you can verify your work before a quiz or exam. Pairing that kind of step-by-step check with the manual method above is a reliable way to catch small arithmetic slips before they compound into a wrong final answer.
The method never changes: find the empirical formula mass, divide the molar mass by it, round to a whole number, and scale up the empirical formula by that number.
Related Articles
How to Balance Equations in Chemistry Step by Step
Build on the same atomic-arithmetic skills used in empirical-to-molecular formula problems to balance full chemical equations by inspection.
pH Calculator: How to Find pH from H+, OH-, Ka, Kb, and Buffers
Practice more quantitative chemistry problem-solving with worked pH, Ka, and buffer calculations that use the same careful unit tracking.
Lewis Dot Structure Generator: How to Draw Electron Dot Diagrams
Once you know a molecule's molecular formula, use its atom count to draw an accurate Lewis dot structure and predict its bonding.
Related Math Solvers
Smart Scan Solver
Snap a photo of any percent-composition or empirical-to-molecular formula problem and get an instant step-by-step solution.
Step-by-Step Solutions
See the full n = molar mass ÷ empirical mass calculation broken into individual steps, not just the final formula.
Multi-Subject Support
Get help across chemistry, algebra, and stoichiometry topics in one place as your coursework moves between them.
Related Subjects
Chemistry Homework Help
Work through stoichiometry, percent composition, and formula problems with guided, step-by-step explanations.
Statistics Homework Help
Apply the same careful, step-by-step arithmetic habits from formula calculations to statistics problem sets.
Biology Homework Help
Connect molecular formulas like C6H12O6 (glucose) to the biology topics that depend on them, from metabolism to cellular respiration.
