The mechanical properties of Al-Mg-Si-type aluminum alloys may degenerate due to the hydrogen damage during servicing in hydrogen environment. The Mg
2Si is the main strengthening phases in Al-Mg-Si-type aluminum alloys. Therefore, the mechanical properties of Mg
2Si directly determine the strengths of Al-Mg-Si-type aluminum alloys. In this work, the effects of hydrogen atoms on the mechanical properties of Mg
2Si are investigated by first principle calculation, which is based on the density function theory. First of all, we calculate the single crystal elasticity constants of
C11,
C12 and
C44. Then the elasticity modulus, Poisson’s ratio and hardness of polycrystalline are calculated by using the crystal elasticity constants. Furthermore, we also calculate the tensile properties of Mg
2Si with and without H atoms. The difference between the densities of states with and without H atoms is used to investigate the change of Mg
2Si induced by H atoms. The results show that hydrogen atoms significantly reduce the shear modulus and elastic modulus of Mg
2Si, resulting in the strength and hardness decreasing, but the toughness increasing. The calculations of tensile properties indicate that H atoms reduce the fracture strength but enhance the fracture elongation of Mg
2Si. The analysis of density of states indicates that hydrogen atoms will induce the properties of Mg
2Si to transform from semiconductor to metal properties. The calculated results in this paper can provide a reference basis for revealing the mechanism of strength reduction of Mg
2Si materials in a hydrogen environment.