You can work out the molecular formula from the empirical formula, if you know the relative mass formula (M r) of the compound. Add up the atomic masses of the atoms in the empirical formula.