BeH2 cannot be prepared directly by heating powdered beryllium with hydrogen. It can, however, be prepared from the corresponding halides by reduction with complex alkali metal hydrides such as lithium aluminium hydride as follows.
Lithium hydride reacts with anhydrous aluminium chloride in presence of ether to form LiAlH4, lithium aluminium hydride.
8LiH + Al2Cl6 →2LiAlH4 + 6LiCl
LiAlH4 reacts with BeCl2 to form BeH2.
2BeCl2 + LiAlH4 → 2BeH2 + LiCl + AlCl3