The electron affinity of an element is the energy released when an isolated atom in its ground state captures an electron in the gas phase,
It is positive when the anion is more stable than the atom and the free electron.
Examples
Example 2.14 (Halogens and their neighbours)
The electron affinities of , , and are 3.40, 3.61, 3.36 and , the largest of all elements; those of and are 1.44 and , of , of . Atoms that complete a subshell by capturing an electron (the halogens) release much energy. Nitrogen, beryllium, magnesium and the noble gases form no stable gaseous anion: the extra electron would have to pair in a half-filled p subshell or enter a new subshell. Fluorine’s affinity is smaller than chlorine’s because the added electron is crowded into the small 2p shell.