Using the formula of the compound and the relative atomic mass of the element in the compound the percentage of an element in a compound the percentage of an element in a compound can be calculated.