The ICECAP methodology is used to derive interionic potentials of some cation and anion impurities in MgO, namely, Li+, Na+, K+, Be2+, H−, S2−, and O2−. Analysis is given of the defect energies obtained by using the derived impurity potentials. Based on the available experimental data, comparison is made to justify the reliability of the derived impurity potential for Be2+. The calculated activation energy for Be2+ diffusion comes out to be 1.54 eV as compared to the experimental value of 1.60 eV, which is considered to be very satisfactory.