Abstract This study adopts density functional theory to predict and thoroughly investigate new types of perovskite compounds for solid state storage of hydrogen. CaTiH3 and MgTiH3 perovskite hydrides are chosen and investigated using density functional theory in terms of ground state properties, electronic, mechanical, and thermodynamic properties for solid state storage of hydrogen. Stability of compounds are verified by calculating formation energies. Several crucial parameters; elastic constants, bulk, Young, Shear modulus, and Cauchy pressures are computed and analysed in great detail. Mechanical stability evaluation indicated that both compounds are mechanically stable whereas MgTiH3 is ductile whilst CaTiH3 is a brittle material. In addition, mechanical anisotropy is analysed using 2D surfaces. Both compounds showed anisotropic behaviour in all directions except for linear compressibility. Electronic band structures and their corresponding density of states of compounds are obtained. The results indicate that both compounds have metallic nature. From the results presented here, it can be predicted that MgTiH3 is a better material for hydrogen storage with a gravimetric density of ∼4.01 wt %.