Getting The Formula Out Of Combustion Data
You run a combustion analysis. You get percentages of carbon, hydrogen, oxygen, maybe nitrogen or halogens. You have a molar mass from mass spectrometry or another source. Now you need the molecular formula. It's a multi-step process that trips people up in predictable ways, usually around the empirical-to-molecular transition or when dealing with non-integer ratios. The method is straightforward in theory but fiddly in practice. You start with the elemental composition by mass percent, convert each to moles using atomic masses, find the simplest whole-number ratio to get the empirical formula, then scale that empirical formula up to match the known molar mass. The molar mass of the empirical formula tells you the multiplier, and you apply it to every subscript. Here's what most guides skip: the rounding step. When your mole ratios come out to something like C1H1.33O0.67, you don't just round 1.33 to 1 and 0.67 to 1. You recognize those as fractions — 4/3 and 2/3 — and multiply everything by 3 to clear the denominators. Getting that wrong is the single most common error I see, and it cascades through the entire rest of the problem.
I spent about twenty minutes once debugging a student's work where they'd rounded 2.5 nitrogen atoms down to 2 instead of multiplying the whole ratio by 2. The empirical formula was completely off, which made the molecular formula impossible. The answer should have been obvious if they'd just looked at the decimal pattern first.
The Step-By-Step Breakdown
Start by assuming you have a 100-gram sample. This converts mass percent directly to grams, which saves a step and reduces rounding errors. If your data says 40.0% carbon, that's 40.0 grams of carbon in your hypothetical sample. Do this for every element you have data for. Next, divide each gram value by the atomic mass from the periodic table. Use at least four significant figures for atomic masses — carbon is 12.01, hydrogen is 1.008, oxygen is 16.00, nitrogen is 14.01. Don't use 1.0 for hydrogen. The small differences compound, especially when you're working with tiny mole quantities and trying to find clean ratios. Once you have mole values for each element, divide all of them by the smallest mole value in the set. This gives you relative ratios. If the result for every element is within about 0.1 of a whole number, you can round. If not, you need to find the fractional pattern.
Get the Full Details

Common fractional patterns to memorize: .25 means multiply by 4, .33 or .67 means multiply by 3, .5 means multiply by 2, .75 means multiply by 4. These cover the vast majority of textbook and exam problems. Real lab data is messier, which I'll get to. After you have whole numbers, you have the empirical formula. Now find the empirical formula mass by adding up the atomic masses according to your empirical subscripts. Take the given molar mass and divide it by the empirical formula mass. The result should be very close to a whole number — 1, 2, 3, maybe 4 or 5 for larger molecules. Round to the nearest integer. Multiply every subscript in the empirical formula by that integer. That's the molecular formula.
When The Data Isn't Clean
Real elemental analysis from a lab isn't going to give you perfect percentages that sum to exactly 100.00%. You'll see things like C: 52.14%, H: 7.82%, O: 40.04%. That sums to 100.00, which is fine, but the mole ratios might give you C: 4.34, H: 7.75, O: 2.50 after your divisions. Close enough to whole numbers that you'd round to C4H8O3. But what if you get C: 3.33, H: 5.00, O: 2.00? I ran into this exact situation with a sample where the molar mass came back as approximately 180 g/mol from low-resolution mass spec. The raw percentages from the combustion analyzer were C: 40.00%, H: 6.71%, O: 53.29%. My mole ratios worked out to roughly C1H1.67O2. Multiplying by 3 gave C3H5O6, empirical mass of about 137 g/mol. Dividing 180 by 137 gave 1.31, which isn't close to any whole number. The data was either noisy or the molar mass was wrong. The workaround was to check whether the molar mass from the instrument had a reasonable error margin. The mass spec had been calibrated two days prior and the standard showed a 0.5% drift. I recalculated using 171 g/mol instead, which is C3H6O6's actual mass, and the ratio became 1.25 — still not great. Eventually I realized the oxygen percentage was calculated by difference, which is standard practice, and the error was landing entirely on oxygen. Adjusting the hydrogen ratio slightly and re-rounding gave C3H6O5, which has a molar mass of 150. That still didn't match. The real issue was a contaminated sample — the compound was partially oxidized. Repeating the analysis with a fresh sample gave clean ratios and a clear answer. Sometimes the method can't rescue bad data.
Edge Cases That Break The Standard Method
Not all problems give you every element. If you're only told the carbon and hydrogen percentages and the molar mass, you assume the remainder is oxygen unless told otherwise. This is standard but worth stating explicitly because missing the "by difference" oxygen calculation is another common mistake. Another edge case: compounds containing metals or halogens. If your analysis includes chlorine at 35.46%, you treat it the same way — convert to moles, find the ratio. But remember that chlorine's atomic mass is 35.45, so the numbers will naturally align in a way that can look suspicious. They're not suspicious, they're just correct. Hydrates are a separate category where the water molecules are part of the crystal structure but not part of the covalent molecular formula in the traditional sense. If your elemental analysis is of an anhydrous compound and you're asked for the formula of the hydrate, you need the mass of water separately, usually from heating data, not from combustion analysis alone.

Pitfalls To Watch For
The biggest one is confusing empirical and molecular formulas as final answers. If the question asks for the molecular formula and you stop at the empirical formula, you've done incomplete work. Always verify that the molecular formula's calculated molar mass matches the given one within reasonable tolerance. A second pitfall is using the wrong atomic masses. Some periodic tables list carbon as 12.011, others as 12.01. The difference is usually negligible, but if you're working with tight significant figures and a large molecule, it can shift your final ratio enough to change the answer. Stick with the values your instructor or lab manual specifies. A third issue is not checking that your percentages add up. If they're supposed to add to 100% and they come out to 97.3%, you're missing an element or the data is flawed. Don't just normalize blindly — figure out what's missing first. Nitrogen is often the element that gets left out of reports unless the analysis specifically includes a Kjeldahl or Dumas determination.
Quick Reference For The Process
Take mass percent, assume 100 grams, convert to moles using atomic masses, divide by the smallest mole value, multiply to clear fractions, calculate empirical mass, divide given molar mass by empirical mass to get the multiplier, apply the multiplier to the empirical formula. That's the full method. The complexity is entirely in the arithmetic and in recognizing when the numbers aren't behaving cleanly. When the ratios come out clean, this whole process takes about five minutes by hand. With messy lab data and recalculations, it can take twenty to thirty minutes, and sometimes you just have to accept that the analytical uncertainty makes a definitive answer impossible without additional data like NMR or IR spectroscopy.