The improvement of hydrogen embrittlement (HE) is a key problem for transition-metal silicides. Although C40 TMSi2 disilicides are attracted candidates for ultrahigh-temperature applications, the HE mechanism of TMSi2 is unclear. Importantly, the role of hydrogen on the structural configuration, elastic modulus, and hardness of TMSi2 is entirely unknown. To reveal the HE, we study the role of hydrogen in TMSi2 (TM = Nb, Mo, and W) based on the first-principles calculations. Four H-doped sites are considered in detail. The calculated results show that hydrogen is favorable to occupy the octahedral interstitial site because the C40 TMSi2 layered structure is favorable to absorb hydrogen. H-doping results in lattice expansion of c-axis compared with the a-axis and b-axis. H-doping obviously reduces the elastic modulus and hardness of TMSi2 due to the interaction between hydrogen and TMSi2. In addition, H-doping changes the electronic properties of MoSi2 and WSi2.