It is determined by the difference in the electron structures of the atoms. These primarily are: The number of outer electrons, i.e the number of valence shell electrons released during a metallic bond.