Final answer:
The molecular formula of a compound differs from the empirical formula in that the molecular formula gives the actual number of atoms of each element in a molecule, while the empirical formula only gives the relative number of atoms.
Step-by-step explanation:
The molecular formula of a compound differs from the empirical formula in that the molecular formula gives the actual number of atoms of each element in a molecule, while the empirical formula only gives the relative number of atoms. For example, the empirical formula for glucose is CH2O, while the molecular formula is C6H12O6. The compound's empirical and molecular formulas can be the same if the molecule is composed of one unit, meaning that the empirical formula will be equal to the molecular formula.