The empirical formula is the simplest ratio of atoms in a compound; the molecular formula is the real count. How each is found and how they connect.
An empirical formula reports the ratio of atoms in a compound reduced to the smallest whole numbers. Glucose contains carbon, hydrogen and oxygen in the ratio 1 to 2 to 1, so its empirical formula is CH2O, even though a real glucose molecule holds six of everything. To find the ratio from percentage data, treat the percentages as grams in a 100 gram sample, divide each by the element's atomic mass to get moles, then divide every result by the smallest. A compound that is 40.0 percent calcium, 12.0 percent carbon and 48.0 percent oxygen gives mole amounts of about 1, 1 and 3, and the empirical formula CaCO3 falls out directly.
Sometimes the division produces fractions like 1 to 1.5 to 1, because experimental percentages carry small errors. The fix is to multiply the whole ratio by the smallest number that clears the fractions: by 2 for halves, by 3 for thirds, by 4 for quarters. Ratios within about a tenth of a whole number are rounded to it. The empirical formula calculator on the tools page does this scaling automatically for two or three elements, trying multipliers until the ratio settles into whole numbers, which is exactly the judgement a chemist makes by eye.
The empirical formula alone does not say how big the molecule is. One more measurement, the molar mass, completes the picture: divide the molar mass by the mass of the empirical unit and multiply the subscripts by the result. An empirical unit CH2O has a mass of about 30; a compound with that composition and a molar mass near 180 has six units per molecule, giving C6H12O6. Benzene shows the opposite extreme: its empirical formula is CH, and its molar mass of 78 reveals six units, C6H6. Both formulas are honest; they simply answer different questions, one about ratio and one about the molecule itself. The percentages themselves usually come from combustion analysis, a technique with a distinguished history. A weighed sample is burned completely in oxygen, and the carbon dioxide and water produced are captured and weighed. The carbon in the sample is all inside the carbon dioxide, and the hydrogen is all inside the water, so two weighings hand you two percentages, with oxygen often found by difference. Liebig's apparatus for this analysis, built in the 1830s, turned organic chemistry from guesswork into measurement, and the modern automated version still opens the investigation of every new organic compound in exactly the same way.
The calculator that goes with this guide is ready on the tools page.
Find an empirical formula