An empirical formula makes no mention towards arrangement or number of atoms. It is standard for a lot of ionic compounds, like CaCl2, and for macromolecules, such as SiO2.
The molecular formula on the other hand shows the number of each type of atom in a molecule, also the structural formula shows the arrangement of the molecule. It is possible for different types of compounds to have equal empirical formulas.
Glucose (C 6H 12O 6), ribose (C 5H 10O 5), acetic acid (C 2H 4O 2), and formaldehyde (CH 2O) all have different molecular formulas but the same empirical formula: CH 2O. This is the actual molecular formula for formaldehyde, but acetic acid has double the number of atoms, ribose has five times the number of atoms, and glucose has six times the number of atoms.
The chemical compound n-hexane has the structural formula CH 3CH 2CH 2CH 2CH 2CH 3, which shows that it has 6 carbon atoms arranged in a chain, and 14 hydrogen atoms. Hexane's molecular formula is C 6H 14, and its empirical formula is C 3H 7, showing a C:H ratio of 3:7.
Suppose you are given a compound such as methyl acetate, a solvent commonly used in paints, inks, and adhesives. When methyl acetate was chemically analyzed, it was discovered to have 48.64% carbon (C), 8.16% hydrogen (H), and 43.20% oxygen (O). For the purposes of determining empirical formulas, we assume that we have 100 g of the compound. If this is the case, the percentages will be equal to the mass of each element in grams.
Change each percentage to an expression of the mass of each element in grams. That is, 48.64% C becomes 48.64 g C, 8.16% H becomes 8.16 g H, and 43.20% O becomes 43.20 g O.
Convert the amount of each element in grams to its amount in moles.
Divide each of the found values by the smallest of these values (2.7)
If necessary, multiply these numbers by integers in order to get whole numbers; if an operation is done to one of the numbers, it must be done to all of them.
Thus, the empirical formula of methyl acetate is C 3H 6O 2. This formula also happens to be methyl acetate's molecular formula.