IE1 and IE2 of Mg are 178 and 348 Kcal mol−1 respectively. The energy required for the reaction
M(g) → Mg2+(g) + 2e− is
+526 KCal
M(g) ------------ M+(g) + e− IE1 = +178 Kcal
M+(g) ⟶ M+2(g) + e− IE2 =+ 348 Kcal
-----------------------------------------------------------------------------------------
M(g) ⟶ M+2(g) + 2 e− I.E = IE1+ IE2 = 178 + 348
= 526 KCal