The relative formula mass is the sum of all the relative atomic masses (Ar) of the atoms in the formula added together. For example: HCl. This contains 1 atom of hydrogen (H) and 1 atom of chlorine (Cl).