For favorable thermodynamics and the considerable kinetics of the hydrogen reaction, Li−Mg−N−H compounds hold promise as novel hydrogen storage materials for on-board usage in metal amide hydrogen storage systems. To improve their performance, much effort has been devoted to the fundamental properties of metal amides, such as electronic structure, and the energetics of their hydrogen reactions. Though understanding the amino anion transition in the hydrogen reaction is essential for further development, the role of the amino anion in metal amides/imides for hydrogen storage is still ambiguous. In this study, we investigated the electronic structures and chemical bonds of Mg(NH2)2, LiNH2, and Li2MgN2H2 by way of a first principle approach. Then, the H vacancy formation energies in LiNH2 and Li2MgN2H2 were estimated to comprehend the stability of the amino anion in metal amides/imides and its effect on the thermodynamics of the hydrogen reaction. Also, the transformation between the highest occupied molecul...