A molecular formula is identical to the empirical formula, and is based on quantity of atoms of each type in the compound.
The relationship between empirical and molecular formula is that the empirical formula is the simplest formula, and the molecular can be the same as the empirical, or some multiple of it. An example might be an empirical formula of C3H8. Its molecular formula may be C3H8 , C6H16, C9H24, etc. Looking at it the other way, if the molecular formula is C6H12O6, the empirical formula would be CH2O.