It is true that ionization energy is required to ionize the metal /non metal atoms. But at the same time due to gain of electrons energy is released ; [electron affinity] There is net release of energy . Solution It is true that ionization energy is required to ionize the metal /non metal atoms. But at the same time due to gain of electrons energy is released ; [electron affinity] There is net release of energy ..