Magnesium salts are available as a medication in a number of formulations. They are used to treat magnesium deficiency, low blood magnesium, eclampsia, and several other conditions. Magnesium is important to health. Usually in lower dosages, magnesium is commonly included in dietary mineral preparations, including many multivitamin preparations. Chelated magnesium is sometimes used to aid in absorption. In 2017, it was the 171st most commonly prescribed medication in the United States, with more than three million prescriptions.
In practice, magnesium is given in a salt form together with any of several anionic compounds serving as counter-ions, such as chloride or sulfate. Nevertheless, magnesium is generally presumed to be the active component. An exception is the administration of magnesium sulfate in barium chloride poisoning, where sulfate binds to barium to form insoluble barium sulfate. Magnesium is absorbed orally at about 30% bioavailability from any water soluble salt, such as magnesium chloride or magnesium citrate. The citrate is the least expensive soluble oral magnesium salt available in supplements, with 100 mg and 200 mg magnesium typically contained per capsule or tablet. Magnesium aspartate, chloride, lactate, citrate and glycinate each have bioavailability 4 times greater than the oxide form and are equivalent to each other per amount of magnesium, though not in price. The ligand of choice for large-scale manufacturers of multivitamins and minerals containing magnesium is the magnesium oxide due to its compactness, high magnesium content by weight, low cost, and ease-of-use in manufacturing. However it is insoluble in water. Insoluble magnesium salts such as magnesium oxide or magnesium hydroxide depend on stomach acid for neutralization before they can be absorbed, and thus are relatively poor oral magnesium sources, on average. Magnesium sulfate is soluble in water. It is commonly used as a laxative, owing to the poor absorption of the sulfate component. In lower doses, they may be used as an oral magnesium source, however. Intravenous or intramuscular magnesium is generally in the form of magnesium sulfate solution. Intravenous or intramuscular magnesium is completely bioavailable, and effective. It is used in severe hypomagnesemia and eclampsia.