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.
The chemical formula for water is H2O, which means this molecule has 3 atoms: 2 of hydrogen (H) and 1 oxygen (O) atom. Using the periodic table of the elements to find atomic weights, we find that ...