Hypoparathyroidism is decreased function of the parathyroid glands with underproduction of parathyroid hormone (PTH). This can lead to low levels of calcium in the blood, often causing cramping and twitching of muscles or tetany (involuntary muscle contraction), and several other symptoms. It is a very rare disease. The condition can be inherited, but it is also encountered after thyroid or parathyroid gland surgery, and it can be caused by immune system-related damage as well as a number of rarer causes. The diagnosis is made with blood tests, and other investigations such as genetic testing depending on the results. The primary treatment of hypoparathyroidism is calcium and vitamin D supplementation. Calcium replacement or vitamin D can ameliorate the symptoms but can increase the risk of kidney stones and chronic kidney disease. Additionally, medications such as recombinant human parathyroid hormone or teriparatide may be given by injection to replace the missing hormone.