Electron affinity refers to the energy change when an atom in the gas phase acquires an electron. It decreases down a column due to electrons being added farther from the nucleus and increases across a period as atoms approach full valence shells, improving stability. Notable exceptions include nitrogen, beryllium, noble gases, and fluorine, which either have no or very low affinities due to greater instability when gaining electrons.