Metal hydrides are promising moderator materials in advanced reactors, where their thermal neutron scattering cross sections significantly affect the accuracy of reactor design. This study uses special quasi random structure (SQS) and first-principles lattice dynamics methods to calculate parameters such as the phonon densities of states of sub-stoichiometric zirconium hydride (ZrH
x) and yttrium hydride (YH
x). Based on these parameters, thermal scattering law (TSL) data for sub-stoichiometric hydrides are generated using the nuclear data processing code NECP-Atlas. The influences of hydrogen content on the thermal scattering cross sections of hydrides and the effective multiplication factor (
keff) values of critical assemblies are analyzed. The result shows that variations in hydrogen content within hydrides lead to differences in thermal scattering cross sections, consequently affecting the neutron transport calculations of nuclear reactor. For the ICT003 and ICT013 benchmarks loaded with ZrH
x (with H/Zr ≈ 1.6), using the TSL data derived from ZrH
x with other hydrogen content results in a maximum deviation of 104 pcm in
keff. For the HCM003 benchmarks loaded with ZrH
2, the use of TSL from ZrH
x with other hydrogen content leads to a maximum deviation of 147 pcm in
keff.