Abstract:Despite similarities in formulae and local structures of Zr 2 CoH 5 and Mg 2 CoH 5 , they are shown from ab initio calculations to present contrasted electronic, magnetic, mechanical and bonding properties due to the environment of cobalt with hydrogen characterized by negatively charged CoH x entities (x = 4, 5 resp.) and to the chemical nature of Zr versus Mg.