Percent composition to simplest ratio — empirical formula with every step shown.
Imagine you burn an unknown organic compound, trap everything it produces, and discover it contains 40.00 percent carbon, 6.71 percent hydrogen, and 53.29 percent oxygen by mass. You know the composition, but what is the formula? The empirical formula is the answer: the simplest whole-number ratio of atoms in the compound. For those percentages the ratio works out to one carbon, two hydrogens, one oxygen — CH2O — the same empirical formula shared by formaldehyde, acetic acid, and glucose, even though those are very different molecules.
The path from percentages to formula runs through the mole. Percentages are masses, and atoms of different elements have different masses, so equal percentages do not mean equal numbers of atoms. Dividing each element’s percent by its atomic mass converts mass into moles — a particle count — and then dividing every mole value by the smallest one reveals the ratio. The last step is clearing any fractions by multiplying through by a small integer, exactly like reducing a recipe to its simplest form.
This calculator performs all four steps and shows its work: moles for each element, the divided ratios, the multiplier that clears the fractions, and the final formula with proper subscripts. Enter up to three elements as symbols with their mass percentages (the classic combustion-analysis result), and it returns the simplest ratio. The sections below work the classic formaldehyde example by hand, explain why empirical and molecular formulas differ, and cover the judgment calls — like recognizing when 1.33 means “multiply by 3.”
An empirical formula is a ratio, not a molecule. CH2O tells you that carbon, hydrogen, and oxygen appear in a 1:2:1 proportion — it does not tell you whether the actual molecule is formaldehyde (CH2O), acetic acid (C2H4O2), or glucose (C6H12O6), because all three share that ratio. To go from the empirical formula to the molecular formula you need one more piece of data: the molar mass. Dividing the molar mass by the empirical-formula mass tells you the whole-number multiple — glucose’s 180.156 divided by 30.026 is 6, so the molecular formula is C6H12O6.
For ionic compounds, the empirical formula is the whole story: sodium chloride really is NaCl in the simplest ratio, and there is no discrete “molecule” of table salt beyond the crystal lattice. For covalent compounds, the empirical formula is a stepping stone. Students sometimes feel cheated that elemental analysis cannot identify glucose uniquely, but that limitation is genuine chemistry, not a flaw in the method — composition alone cannot distinguish isomers and homologs that share a ratio.
The procedure rests on a convenient fiction: pretend you have 100 grams. Because percentages are per hundred, assuming a 100 g sample turns “40.00 percent carbon” directly into “40.00 g of carbon” with no extra arithmetic. That is why the method only needs percentages — the sample size cancels out. If your analysis instead reports grams directly, the same steps work: divide each gram amount by the atomic mass and continue identically.
The trickiest step is the last one: clearing fractions. Real data gives ratios like 1.00 : 1.99 : 1.00, which obviously means 1:2:1, but it also gives 1.00 : 1.33 : 2.67, where the decimals hide the integers 3, 4, 8 — multiply everything by 3. The calculator tests multipliers 1 through 8 and accepts the smallest one that brings every ratio within 0.06 of a whole number. Learning to recognize 0.25, 0.33, 0.50, and 0.67 as quarters, thirds, halves, and two-thirds — cleared by multiplying by 4, 3, 2, and 3 — is the single most useful exam skill in this topic.
Key terms:
Assume a 100 g sample so that each percent equals that many grams, then follow the three lines in order. The division by the smallest mole value is what converts absolute mole amounts into a clean ratio anchored at 1, and the multiplier k clears any remaining fractions. If no multiplier up to 8 works, the data is probably too noisy or an element is missing — real analyses that sum far from 100 percent usually have an undetected element.
This is the textbook formaldehyde/glucose analysis. Follow it once by hand and the method is yours forever.
Note the judgment call in step 4: 1.999 is not “almost 2, keep the decimal” but “2, within measurement error.” Empirical formulas count atoms, and there is no such thing as 1.999 atoms.
A nitrogen oxide analyzes as 25.94 percent nitrogen and 74.06 percent oxygen. This one needs a multiplier.
This example shows why the multiplier search matters: 2.500 is exactly the kind of value students wrongly round to 2 or 3. Halves, thirds, and quarters in the divided ratio are signals to multiply, never to round.
A graduate student synthesizes a new organometallic compound and sends it for elemental analysis. The report comes back: 32.1 percent carbon, 4.3 percent hydrogen, the rest a metal the student already knows is iron. Iron by difference is 63.6 percent. Running the numbers: C = 32.1 ÷ 12.011 = 2.672, H = 4.3 ÷ 1.008 = 4.266, Fe = 63.6 ÷ 55.845 = 1.139. Dividing by 1.139 gives 2.35 : 3.75 : 1.00 — not clean. Multiplying by 4 clears it: 9.4 : 15 : 4, still rough, which tells the student the sample was impure rather than that the math failed. A second, cleaner synthesis gives ratios that resolve to C10H10Fe — ferrocene — and the empirical formula confirms the structure the spectra suggested.
Second scenario: a quality-control lab receives a shipment labeled “sodium carbonate, anhydrous.” Analysis shows excess water, and the empirical calculation including hydrogen and oxygen from the water reveals the shipment is actually the decahydrate. The formula check catches a mislabeled shipment before it ruins a production batch — a routine but high-value use of composition math in industry.
Third: an environmental lab analyzes soot from a fire scene. The carbon-to-hydrogen ratio distinguishes petroleum accelerants from ordinary wood smoke: gasoline-derived residues show a characteristic H:C pattern that wood, with its oxygen-rich cellulose, does not. The empirical-formula logic — ratios, not absolute amounts — is what makes the comparison robust even when the sample size is tiny and contaminated.
Fourth: a mineralogist gets an energy-dispersive X-ray spectrum of an unknown crystal giving element weight percents. Converting to mole ratios yields Fe : O = 2 : 3, identifying hematite, Fe2O3, versus magnetite, Fe3O4, which would give 3 : 4. When the two candidate minerals differ only in ratio, the empirical formula calculation is the identification.
Pharmaceuticals: Every new drug candidate undergoes elemental analysis, and the measured percentages must match the proposed formula within tight tolerances (typically ±0.4%). A mismatch flags impurities, wrong structures, or unexpected salts and hydrates before the compound ever reaches expensive biological testing.
Materials science: Battery researchers characterizing a new cathode material use composition analysis to confirm the metal ratios — the difference between a working lithium nickel oxide and a dud is often a few percent in the Ni:Co:Mn ratio, and the empirical-formula calculation turns raw percentages into that ratio.
Geology: Mineral identification from microprobe data is empirical-formula work: weight percents of elements convert to mole ratios that name the mineral. Field geologists distinguish ore minerals from look-alikes this way long before any crystal structure is measured.
Forensics: Arson investigators compare the elemental signature of fire debris against accelerant databases. Because the method uses ratios rather than absolute amounts, it works on the trace residues that survive a fire — exactly the samples where weighing anything accurately is impossible.
Food chemistry: Protein content is estimated from nitrogen analysis (the Kjeldahl method) using the empirical relationship between nitrogen mass and protein mass. The famous 6.25 conversion factor is, at heart, an empirical-formula-style ratio baked into a routine assay.
Art conservation: Identifying pigments in a painting — is that blue lapis lazuli or modern ultramarine? — uses elemental ratios from non-destructive X-ray fluorescence. The empirical formula distinguishes historical pigments from later retouching, which matters enormously for authentication.
One pattern worth internalizing: ratios are robust where absolute amounts are fragile. A contaminated sample, a tiny sample, or a sloppy weighing all corrupt absolute masses, but ratios often survive because the errors cancel. That is why composition analysis remains a first-line identification tool two centuries after its invention: it extracts the most error-resistant information the sample contains.
History: Liebig’s combustion train. Before the 1830s, determining a compound’s composition was slow, finicky work. Justus von Liebig’s kaliapparat — a compact glass apparatus that trapped combustion products for weighing — turned elemental analysis into a routine, almost industrial procedure. Liebig’s laboratory became a factory of formulas: students arrived from across Europe, learned the method, and carried it home, and the flood of reliable empirical formulas it produced underpinned the structural theory of organic chemistry. Modern automated CHN analyzers are the direct descendants of Liebig’s glassware.
A worked scenario with numbers: finding the multiplier. An analysis gives 27.3% C, 72.7% O. Moles: C = 27.3 ÷ 12.011 = 2.273; O = 72.7 ÷ 15.999 = 4.544. Divide by 2.273: C = 1.000, O = 2.000 — clean, k = 1, formula CO2. Now a harder one: 17.5% N, 82.5% Cl gives N = 1.249, Cl = 2.327; divided: 1.000 : 1.863. No small multiplier clears 1.863 cleanly (k=2 gives 2 : 3.73; k=3 gives 3 : 5.59), which is the data’s way of saying the analysis is off — perhaps the sample decomposed. The multiplier search doubles as a data-quality check: when no k works, suspect the numbers, not the method.
Edge cases and pro tips: hydrates and adducts. Waters of crystallization appear in the analysis as extra hydrogen and oxygen that refuse to fit any sensible organic ratio — a red flag that part of the “compound” is really H2O. Experienced analysts subtract the water first (from a separate drying experiment) and compute the formula of the anhydrous residue. Similarly, pharmaceutical salts (hydrochlorides, mesylates) add their counterion’s elements to the analysis; the empirical formula of the salt is correct but must not be mistaken for the formula of the free drug.
When the empirical formula is not enough. Composition analysis cannot distinguish structural isomers (ethanol and dimethyl ether are both C2H6O), cannot order the atoms, and cannot detect elements the analyst did not look for — the classic “oxygen by difference” assumption fails if nitrogen is secretly present. Modern structure elucidation therefore pairs elemental analysis with spectroscopy (NMR, IR, mass spectrometry), each method covering the others’ blind spots. Use the empirical formula as the constraint every proposed structure must satisfy, not as the structure itself.
Empirical formula = simplest whole-number ratio of atoms, found by: (1) treating percents as grams in 100 g, (2) dividing each by its atomic mass to get moles, (3) dividing all mole values by the smallest, (4) multiplying by the smallest integer k (1-8) that clears fractions. The molecular formula is a whole-number multiple of the empirical formula, found via the molar mass. E.g., 40.00% C, 6.71% H, 53.29% O gives CH2O. Source: Sigma Calculator, Empirical Formula Calculator, https://sigmacalculator.net/chemistry-calculators/empirical-formula-calculator/
Cite this page as: Empirical Formula Calculator, Sigma Calculator, https://sigmacalculator.net/chemistry-calculators/empirical-formula-calculator/
Last updated: October 12, 2026