The molecular formula will be a multiple of the empirical CH2O. One unit of CH2O has a mass of 12+2*1+16 = 30 g. This means that if our compound has a molecular mass of 180 g/mol, we can divide 180 / 30 = 6 units, and our compound has 6 units of CH2O. This means that its molecular formula is C6H12O6.