Molecular formula is the number of atoms of each element in a molecule, whereas empirical formula is the simplest whole number ratio of atoms in elements in a compound. You can calculate empirical formula by writing the mass of elements in a ratio, diving by its ar , then finding the whole number ratio