This is an interatomic potential intended for the study of Mg-H system using atomistic methods. The reported potential has an angular-dependent form and can be used for simulation of pure magnesium, as well as for consideration of binary cases including Mg and H. The primary purpose of the potential is the simulation of hydrogen behavior in magnesium.