The percentage mass of an element in a compound can be calculated by finding the number of atoms of that element in the compound and multiplying it by the relative atomic mass of the element.
The percentage mass of sodium in sodium carbonate, Na,CO3, for example, is 43%, calculated by finding the number of atoms of sodium, carbon, and oxygen in the compound and multiplying it by their relative atomic masses.