Given the formula of a compound, you can calculate the weight percentage of each element. The reverse can also be done: Given the weight percentage of each element in a compound, you can calculate the empirical formula of the compound. The empirical formula gives the lowest ratio of the atoms that are present in the compound.