An empirical formula gives the simplest whole-number ratio of atoms in a chemical compound, while a molecular formula specifies the number of atoms in a molecule
The empirical formula is obtained from the percent composition of a compound, while the molecular formula requires knowledge of the molar mass of the species