1 Find the empirical formula. 2  Get the mass of each element by assuming a certain overall mass for the sample (100 g is a good mass to assume when working with percentages). 3  Convert the mass of each element to moles.  Find the ratio of the moles of each element.