Differentiate between empirical formula and molecular formula

The empirical formula is the simplest whole-number ratio of atoms in a compound, while the molecular formula shows the actual number of atoms of each element in a molecule of the compound. The empirical formula can be used to represent a compound in its simplest terms, while the molecular formula gives more detailed information about the compound's structure. For example, the empirical formula for glucose is CH2O, while its molecular formula is C6H12O6.