PTH and Hypocalcemia: Magnesium’s role in calcium metabolism can lead to hypocalcemia due to hypoparathyroidism, resistance to parathyroid hormone (PTH), and the decreased synthesis of calcitriol [107].