Combustion analysis and mass spectrometry hand chemists a percent composition or a set of masses โ€” not a chemical formula. Getting from one to the other is a short, mechanical process: convert to moles, find the simplest ratio, and (if you know the molar mass) scale that ratio up to the real molecular formula. This article walks through each step, the rounding rule that turns messy decimals into clean subscripts, and why the same empirical formula can describe wildly different compounds.

Why percent composition isn't a formula yet

A percent composition tells you the relative mass contributed by each element, but atoms don't combine by mass โ€” they combine in whole-number counts. Two elements with equal masses can still be present in very different numbers of atoms, because atoms have different masses themselves. The bridge between mass and atom-count is the mole: dividing a mass by an atomic mass converts it into a number of moles, which โ€” unlike mass โ€” is directly proportional to the number of atoms. That's why every empirical-formula calculation starts by assuming a fixed sample size (100 g is the standard convention, since it turns each percentage directly into a mass in grams) and converting every element's mass to moles before doing anything else.

Turning mole ratios into whole numbers

Once you have moles for each element, dividing every value by the smallest one gives a ratio where that smallest element is exactly 1. In clean textbook problems the other ratios come out whole (2, 3, 4...) and you're done. In real data โ€” and in real lab measurements โ€” the ratios often land on a decimal like 1.5, 1.33, 1.25, or 1.2. These aren't errors; they're a sign that the true ratio needs another whole element's worth of atoms to resolve. The fix is to multiply every ratio by the smallest integer that clears the decimal: ร—2 for a .5, ร—3 for a .33 or .67, ร—4 for a .25 or .75, ร—5 for a .2, .4, .6, or .8. The calculator tries multipliers from 1 up to 12 and stops at the first one where every element rounds cleanly to a whole number.

One empirical formula, many possible compounds

The empirical formula CHโ‚‚O is shared by at least three genuinely different substances: formaldehyde (molecular formula CHโ‚‚O itself, molar mass โ‰ˆ 30 g/mol), acetic acid (Cโ‚‚Hโ‚„Oโ‚‚, โ‰ˆ 60 g/mol), and glucose (Cโ‚†Hโ‚โ‚‚Oโ‚†, โ‰ˆ 180 g/mol). Percent composition alone can never distinguish between them, because scaling every subscript by the same factor doesn't change the ratio of masses. That's exactly why the molecular formula requires a second, independent piece of information โ€” the compound's actual molar mass, usually measured by mass spectrometry or a colligative-property method like freezing-point depression. Divide that molar mass by the empirical formula's own mass, round to the nearest whole number, and you get the multiplier that separates formaldehyde from glucose.

When the numbers don't round cleanly

Real combustion-analysis data carries measurement error, so a ratio might come out as 1.97 instead of a clean 2.00, or a molar-mass-derived multiplier might land on 5.94 instead of 6. The calculator rounds to the nearest whole number in both cases โ€” that's normal and expected. What's worth double-checking is when the rounding error is large: if a mole ratio is more than roughly 6% away from the nearest whole number even after trying every multiplier up to 12, or if the molar mass doesn't divide by the empirical mass to within about 5%, it's a sign the input percentages, masses, or atomic masses may have a typo rather than a formula that genuinely needs an unusually large repeat unit.