Electronic structures of LaMg 2 Ni and its hydrides (intermediate phase LaMg 2 NiH 4.5 and fully hydrogenated phase LaMg 2 NiH 7) were systematically investigated using first-principles density functional theory calculations, in comparison with those of corresponding Co-and Pd-doped compounds (LaMg 2 Ni-Co, LaMg 2 NiH 4.5-Co, LaMg 2 NiH 7-Co, LaMg 2 Ni-Pd, LaMg 2 NiH 4.5-Pd and LaMg 2 NiH 7-Pd). Hydrogenation behavior on LaMg 2 Ni (100) surface was also studied. Our studies aim at providing new insights into the hyrogenation of LaMg 2 Ni. The results show the hydrogenation of LaMg 2 Ni to full hydride LaMg 2 NiH 7 is energetically favorable, as the metallic intermediate hydride LaMg 2 NiH 4.5 with Ni-H covalent bonds may act as the precursor state for LaMg 2 NiH 7 formation. The suppression of Mg-Ni and Ni-H interactions coupled with the formation of La-H bond may improve the hydrogenation performance of LaMg 2 Ni.