divide the molar mass of the compound by the empirical formula mass. the result should be a whole number or very close to a whole number. multiply all the subscripts in the empirical formula by the whole number found in step 2. the result is the molecular formula.