Steps for empirical formula
1. Assume a 100g sample of the compound so that the given percentages can be directly converted into grams
2. Use each element's molar mass to convert the grams of each element to moles. n=m/M
3. In order to find a whole-number ratio, divide the moles of each element by whichever of the moles from step 2 is the smallest
4. If all the moles at this point are whole numbers (or very close), the empirical formula can be written with the moles as the subscript of each element
5. In some cases, one or more of the moles calculated in step 3 will not be whole numbers. Multiply each of the moles by the smallest whole number that will convert each into a whole number. Write the empirical formula