Hypomagnesemia can lead to muscle spasms through mechanisms such as affecting the concentrations of sodium, potassium and calcium ions in cell membranes and regulating the renal outer medullary potassium channels located in the distal nephron (Varghese et al., 2020). This evidence concerns the gene KCNA3 and Hypomagnesemia.