Overview

Magnesium is a mineral your body needs for hundreds of basic jobs, including energy production and the activity of enzymes involved in oxidative phosphorylation (how your cells make usable energy). It's one of the most-studied over-the-counter supplements, and researchers have tested it for several very different everyday problems, with mixed results depending on what you're using it for.

For muscle cramps, a large Cochrane review found magnesium supplements don't clearly reduce cramp frequency or intensity compared with placebo in the general population1. For muscle fitness — things like grip strength, leg strength, and muscle power — a meta-analysis of randomized trials found a modest positive effect, particularly in older adults and athletes2. For sleep, a systematic review in older adults with insomnia found some improvement in sleep quality but noted the evidence base is still limited3. For brain health, a 2024 review of trials and cohort studies looked at how magnesium intake and blood levels relate to cognitive outcomes, finding associations worth further study rather than definitive proof4. And in pregnancy, magnesium sulfate (an injectable form, not the oral supplement) is well established for preventing eclampsia (seizures linked to pre-eclampsia) in at-risk women5.

Is this for you?

Why are you considering magnesium?

This is not medical advice — just general orientation.

Safety

  • Documented interactions from safety databases include calcium supplements, potassium, adenosine triphosphate, manganese, insulin, vitamin D, fluorides, magnesium sulfate, acetylcholine, and edetic acid. Magnesium sulfate is specifically used as a medical treatment for pre-eclampsia and eclampsia during pregnancy, but this is an injectable, clinically-supervised form and not the same as an oral supplement — pregnant women should only use magnesium sulfate under medical supervision5. Beyond these documented interactions, the reviewed studies did not report detailed side-effect profiles for oral magnesium supplementation in the general population, so anyone with kidney problems or on multiple medications should check with a doctor before starting it.

Dosage

The reviewed studies did not report a single consistent oral dosage across trials — magnesium form and dose varied by study and outcome studied. What the research does clarify is bioavailability: organic magnesium formulations (e.g., citrate, glycinate-type compounds) appear to be absorbed better than inorganic forms (e.g., oxide), and absorption percentage is dose-dependent, meaning higher single doses tend to be absorbed less efficiently as a proportion6. For eclampsia prevention, magnesium sulfate was used as an intravenous/intramuscular medical treatment in the pooled trials (over 11,000 women), a fundamentally different context from an oral supplement and not a self-administered dose5.

Where to find it

As an Amazon Associate, Holistic Codex earns from qualifying purchases. Product recommendations are editorially independent.

Interactions

A safety database lists documented interactions between magnesium and: calcium supplements, potassium, adenosine triphosphate, manganese, insulin, vitamin D, fluorides, magnesium sulfate, acetylcholine, and edetic acid. The reviewed studies did not detail the clinical significance or direction of each of these interactions, so anyone taking these substances or medications alongside magnesium supplements should discuss it with a doctor or pharmacist.

Traditional Use

Magnesium is an element, and no traditional system has a concept of it — the metal was first isolated in 1808, long after these texts were written. What the older systems do have is an answer to the complaint magnesium is most often bought for today: the muscle that seizes up. Read that way, the record is unusually clear, and mostly unusually unfavourable.

Ayurveda

India · over 3,000 years

Ayurveda reads a cramp as disturbed vata — the principle of movement, dryness and cold — and answers it with warmth applied from the outside in: massage with warm sesame oil, warming foods, and mineral-bearing preparations given inside a wider regimen rather than on their own. Notice what is absent from that list. There is no isolated mineral given against a measured shortage, because there was nothing to measure with and nothing isolated to give. Ayurveda addresses precisely the symptom magnesium is sold for, and it does so explicitly by other means — so it offers the supplement no support, and if anything points at the oil and the heat instead.

What the science says

Disputed

Two Cochrane systematic reviews asked whether magnesium supplements prevent idiopathic cramps in pregnancy, older age, exercise or motor neuron disease, and concluded that the efficacy of magnesium for preventing cramps remains unclear7,1.

Japanese Kampo

Japan · since the 7th century

Japanese Kampo has a standard answer to a cramping muscle, and it is a two-herb decoction: shakuyakukanzoto, equal parts peony root and licorice root, long used for muscle cramps and still one of the formulas a Japanese physician reaches for today — in cirrhosis, in lumbar spinal stenosis, in dialysis patients. Kampo never framed the cramp as a mineral shortage at all. Magnesium is not the active idea anywhere in this formula; the reasoning runs through the pair of herbs and their balance, not through an element.

What the science says

Disputed

A systematic review found three randomized trials of shakuyakukanzoto in patients with muscle cramps — too heterogeneous to pool, but suggesting possible benefit in cirrhosis and lumbar spinal stenosis. That is thin evidence, and it is evidence for a herbal decoction, not for magnesium8.

Korean Medicine

Korea · Dongui Bogam (1613)

The Dongui Bogam gives the sinews their own chapter and the cramp its own word: 轉筋, the turning sinew. Korean medicine traces its cause to blood and liver, never to a mineral. Sinews belong to the liver, the chapter says, and cramping follows when the vessels fail to nourish them — it quotes Zhang Zhongjing directly: when the blood is deficient, the sinews tighten. A cramp running from the big toe up the thigh toward the waist is blamed on rich food and drink meeting wind and cold, and treated with a blood-nourishing decoction. The rest of the chapter is physical: bathe in a hot spring for contracted sinews, and for a sinew that will not straighten after injury, sit and roll the bare foot along a length of bamboo.

What the science says

Disputed

The modern trials tested a mineral supplement against idiopathic cramp and could not confirm that it works. They say nothing about blood-nourishing decoctions, hot springs or rolling a foot on bamboo — those were never put to the same test7,1,9.

Unani

Greco-Persian lineage · since Avicenna

Unani medicine answers spasm with heat and oil. Avicenna's Canon lists oil-baths as beneficial for pains in the nerves and joints, for convulsions and for spasmodic diseases, with the instruction that the oil be warmed outside the room first; sulphur and thermal baths get a similar entry, said to soothe and warm the nerves and to relieve pain, lassitude and convulsions. Two honest caveats belong with this. His category of spasmodic disease is far broader than a night-time calf cramp — it takes in tetanus and epileptic convulsion too. And the reasoning is humoral: cold and moisture are being driven out, no deficiency is being corrected. What is striking is where it lands — Unani and Ayurveda, working independently, both answered a seizing muscle with warm oil, and neither with a mineral.

What the science says

Disputed

The modern evidence base says nothing either way about warm oil baths for cramp; the trials that exist tested magnesium supplements, and they could not confirm that those prevent cramps7,1,10.

European Herbalism

Europe · centuries of folk use

European folk herbalism has treated nervous cramping and night-time leg spasms as a nourishment problem for well over a century, recommending mineral-rich foods, tonic herbs and Epsom salt baths. That last one comes closest to the modern claim, and not by coincidence: Epsom salt is magnesium sulfate, so anyone soaking in it is sitting in the very mineral now sold in a capsule. The tradition therefore landed on roughly the right element for roughly the right symptom — which is why this is the one card here that is not simply refuted. What it lacked was any way to test whether the mineral was the reason anyone felt better.

What the science says

Partial

That test was eventually run, and it largely failed to confirm it: pooled across pregnancy, older age, exercise and motor neuron disease, the efficacy of magnesium supplements for preventing cramps remains unclear. The traditional intuition was specific enough to be tested, and it did not hold up7,1.

What biohacking says

Biohacking

21st century · data & self-tracking

Magnesium is the one supplement almost every self-experimenter takes, and the community conversation is about the form: glycinate for sleep, citrate for the gut, and L-threonate for the brain, on the claim that it is the only form that crosses into the central nervous system. Two of those three claims hold up better than the third. On absorption the community is right — Examine and NIH ODS agree that citrate, chloride, glycinate, lactate and aspartate absorb well while oxide and carbonate absorb extremely poorly and cause more digestive upset, which is exactly what the cheapest supermarket tablets contain (Examine.com, NIH ODS). Overall the mineral has four outcomes at Examine's top grade across 300 references and 57,192 participants. The L-threonate story is the weak one: Examine's own answer is that human research on it is highly limited and industry-funded, and the six-week trial in 100 adults with self-reported sleep problems improved cognition but not sleep quality — with the initial publication having omitted the investigators' financial conflicts of interest. Magnesium is also unlikely to relieve unexplained cramps. Longevity forums sometimes cite magnesium as well; DrugAge holds three entries and two are negative, with magnesium chloride shortening rotifer lifespan by 20 and 23 percent11. The single positive record, plus 16 percent in fruit flies12, is not magnesium as such but a magnesium salt of thiazolidine-4-carboxylate.

What the science says

Partial

The practical number is the ceiling, not the form: the tolerable upper intake for supplemental magnesium is 350 mg a day for everyone from age nine up, and that limit counts only pills and medication, not the magnesium in food. Supp.ai documents 453 interactions for it, among the highest of any common supplement.

Evidence Strength

Magnesium is backed by six meta-analyses, which is a strong volume of pooled evidence — but the picture is genuinely mixed depending on what you're hoping it will do. The case for magnesium sulfate preventing eclampsia in pregnancy is well established, drawn from trials covering over 11,000 women. Evidence for muscle fitness is moderately supportive, evidence for sleep and cognition is preliminary and needs more research, and evidence for muscle cramps specifically leans negative. This is a good example of why "magnesium" isn't one single question — the answer depends heavily on the specific use case.

Frequently Asked Questions

Medical Disclaimer: This article is for educational purposes only and does not constitute medical advice. Always consult a qualified healthcare professional before starting any supplement regimen or making changes to your diet, especially if you have a medical condition or take medications.

Sources

  1. 1

    Garrison SR, et al.. Magnesium for skeletal muscle cramps.. The Cochrane database of systematic reviews. 2020.

    Strong EvidencePubMed
  2. 2

    Wang R, et al.. The effect of magnesium supplementation on muscle fitness: a meta-analysis and systematic review.. Magnesium research. 2017.

    Strong EvidencePubMed
  3. 3

    Mah J, et al.. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis.. BMC complementary medicine and therapies. 2021.

    Strong EvidencePubMed
  4. 4

    Chen F, et al.. Magnesium and Cognitive Health in Adults: A Systematic Review and Meta-Analysis.. Advances in nutrition (Bethesda, Md.). 2024.

    Strong EvidencePubMed
  5. 5

    Duley L, et al.. Magnesium sulphate and other anticonvulsants for women with pre-eclampsia.. The Cochrane database of systematic reviews. 2010.

    Strong EvidencePubMed
  6. 6

    Pardo MR, et al.. Bioavailability of magnesium food supplements: A systematic review.. Nutrition (Burbank, Los Angeles County, Calif.). 2021.

    Strong EvidencePubMed
  7. 7

    Garrison SR, et al.. Magnesium for skeletal muscle cramps.. The Cochrane database of systematic reviews. 2012.

    Strong EvidencePubMed
  8. 8

    Ota K, et al.. Effect of Shakuyaku-kanzo-to in patients with muscle cramps: A systematic literature review.. Journal of general and family medicine. 2020.

    Strong EvidencePubMed
  9. 9

    Korean Wikisourceclassical source text

  10. 10

    Internet Archiveclassical source text

  11. 11

    Enesco HE, et al.. Effect of calcium, magnesium and chelating agents on the lifespan of the rotifer Asplanchna brightwelli.. Experimental gerontology. 1980.

    Strong EvidencePubMed
  12. 12

    Miquel J, et al.. Favorable effects of the antioxidants sodium and magnesium thiazolidine carboxylate on the vitality and life span of Drosophila and mice.. Experimental gerontology. 1979.

    Strong EvidencePubMed