A person stretching a calf muscle in bed
Supplements

Does Magnesium Really Help With Muscle Cramps? What the Evidence Says

Millions take magnesium for muscle cramps, but a 2020 Cochrane review of 11 randomised trials found it doesn't outperform placebo. A 2026 Finnish trial showed compression stockings work — magnesium didn't. Here's what the evidence says for nocturnal cramps, pregnancy, and exercise.

Sera Voss9 min read

Somewhere around 3 a.m. is when it usually happens. A sharp, involuntary knot seizes the calf, sudden enough to jolt you upright and persistent enough that a minute later you’re standing on cold floorboards, flexing your foot against the spasm and waiting it out. If the scene rings familiar, you have almost certainly heard the same advice that circulates through doctors’ offices, running groups, and midnight Google searches: take magnesium. Over-the-counter magnesium is so widely recommended for cramps that the advice feels settled, one of those pieces of health wisdom that outran the need for proof long ago.

Why wouldn’t it be? Magnesium sits at the centre of muscle physiology. It regulates calcium transport across cell membranes, and without enough of it a muscle fibre that contracts may struggle to relax. On paper, that mechanism sounds like a tidy explanation for cramps. Textbooks and clinical references repeated the magnesium-cramp connection for decades, well before anyone tested it in a proper randomised trial. The biological story looked solid.

A 2020 Cochrane review pooled 11 randomised controlled trials with 735 participants and came to an uncomfortable conclusion: “It is unlikely that magnesium supplementation provides clinically meaningful cramp prophylaxis to older adults experiencing skeletal muscle cramps.” Not ambiguous. Not hedged with “more research needed.” The best evidence synthesis available says the supplement probably does not do what millions of people take it for.

Garrison’s team at the University of Alberta calculated a mean difference of −0.18 cramps per week between magnesium and placebo. The 95% confidence interval ran from −0.84 to 0.49, crossing zero without much trouble. Put bluntly, the treatment effect was indistinguishable from chance, and even the most generous edge of that interval fell short of what most patients would consider worthwhile.

What the largest individual trial found

Three years earlier, a JAMA Internal Medicine randomised trial led by Noga Roguin Maor at Clalit Health Services in Israel tested magnesium oxide against placebo in 94 older adults with frequent nocturnal leg cramps. After four weeks, cramps decreased in both groups: 48.4 percent of magnesium users reported improvement, and so did 29.5 percent of the placebo group. That gap was not statistically significant (P = 0.67). The authors wrote that the improvement in both arms “is probably a placebo effect that may explain the wide use of magnesium for NLC.”

Side-effect data did not strengthen magnesium’s case. Across the Cochrane review’s included trials, 11 to 37 percent of people taking oral magnesium reported gastrointestinal symptoms (mostly diarrhoea and nausea), compared to 10 to 14 percent in the placebo groups. A cramp remedy that fails to beat a sugar pill while adding bathroom urgency is not much of a remedy.

Then there is the formulation question. Most of the negative trials used magnesium oxide, a cheap form with notoriously poor bioavailability; some studies suggest as little as 4 percent of the elemental magnesium from oxide gets absorbed. Maybe a better-absorbed form, like magnesium glycinate or citrate, would produce different results. The catch: no large, well-designed cramp trial has tested these alternatives head-to-head. The few that do exist, including a small glycinate study in pregnant women, were underpowered to settle anything. Is the formulation defence wrong? Probably not. Has it been tested? Also no.

The trial that pit magnesium against compression stockings

Newer evidence comes from a 2026 Finnish trial published in Trials, which did something previous studies had not: it compared magnesium directly against a mechanical intervention. Compression stockings reduced weekly leg cramp frequency by 1.43 episodes (P = 0.001). Magnesium supplementation produced a change of −0.20 per week (P = 0.929). The spread was wide enough that the paper reads less as a trial of two interventions and more as an argument against reaching for a pill bottle first.

Antimo Moretti, in a 2024 commentary for the Journal of Rehabilitation Medicine, walked through the evidence with similar restraint: the trials are small, heterogeneity is high, and effect sizes, where they exist at all, are small enough that their clinical meaning is doubtful. He suggested future research should focus on active comparators (stretching protocols, compression garments, hydration strategies) rather than running another magnesium-versus-placebo trial that confirms what is already known.

What about pregnancy?

Change the population and the evidence shifts, at least a little. A 2014 systematic review by Sebo and colleagues in Family Practice concluded that magnesium “does not appear to be effective in the treatment of NLC in the general population, but may have a small effect in pregnant women.” That may is doing a lot of work. One 2017 trial in Maternal & Child Nutrition found that 300 mg of oral magnesium bisglycinate reduced cramp frequency and intensity in pregnant women compared to placebo, but the study was small and the authors flagged its limitations themselves.

Inconsistency across pregnancy trials tells you something in its own right. Formulation, dosing duration, how cramps were measured — the studies differ on all of these, which makes a single definitive answer impossible. The Cochrane review’s take on pregnancy cramps was characteristically cautious: the evidence is insufficient to recommend magnesium routinely, but it is also insufficient to rule out a benefit. For a pregnant woman whose cramps are severe enough to disrupt sleep night after night, a clinician might reasonably suggest a trial period and be upfront that the evidence behind it is thin.

Exercise cramps: a complete evidence vacuum

Athletes who have been told to take magnesium for exercise-associated muscle cramps should know one thing: no randomised controlled trial has ever tested this. Not one. The Cochrane review excluded exercise-associated cramps from its scope because there were no trials to include. Exercise cramps involve a different mechanism (neuromuscular fatigue and altered spinal-reflex activity, according to the prevailing theory) from nocturnal cramps. Extrapolating from one body of evidence to the other is not reasonable.

Even the dehydration-and-electrolyte model of cramping, which would make magnesium a logical fix, has been under serious challenge from exercise physiologists over the past decade. If your calves seize up at kilometre 30 of a marathon, the evidence points toward neural fatigue, not a magnesium shortfall. No supplement has been shown to prevent it.

The placebo problem that won’t go away

Perhaps the most striking finding in the magnesium-cramp literature does not involve magnesium at all. It is the placebo response. In the JAMA Internal Medicine trial, roughly one in three people taking placebo pills reported fewer cramps. Across the Cochrane review’s pooled data, the placebo arms kept improving, often by enough that magnesium could not outpace them.

Placebo responses in pain-adjacent conditions are notoriously strong. Cramps are subjective, intermittent, and responsive to expectation. Believe that the magnesium tablet in your hand will help, and there is a real chance you will feel better — not because of the mineral, but because of the belief. Whether that matters depends on what you are optimising for. Fewer cramps from a cheap, well-tolerated supplement? A placebo effect still has value. An evidence-based intervention that outperforms a sugar pill? Magnesium is not it, at least not for the general population.

Consider the economics for a moment. The global magnesium supplement market was valued at roughly $1.2 billion in 2025, with cramp relief ranking among the top three purchase reasons in consumer surveys. When a product category that large is built substantially on a health claim the best evidence does not support, it says something about how slowly clinical findings reach consumer behaviour. It also says something about how little incentive supplement companies have to update the record.

So what actually works?

Compression stockings sit at the top of the evidence list for nocturnal leg cramps in older adults, thanks to that 2026 Finnish trial. A stretching protocol (sustained passive calf stretching before bed, specifically) has modest support from small trials and makes physiological sense: most nocturnal cramps involve the gastrocnemius. Adequate hydration appears to matter, though the evidence is more circumstantial than experimental. For pregnancy-related cramps, the picture is genuinely unsettled — magnesium might help some women, but the data are too inconsistent for a confident recommendation.

People who are genuinely magnesium-deficient (a smaller subset than supplement marketing implies, though real in populations with poor diets, alcohol-use disorders, or certain gastrointestinal conditions) may benefit from repletion for reasons that have nothing to do with cramps specifically. That is a legitimate clinical scenario. It is just not the one most magnesium buyers are in.

The bottom line

Magnesium is a vital mineral, involved in over 300 enzymatic reactions and essential for nerve conduction and muscle contraction. The idea that supplementing it might prevent cramps is not far-fetched. It is just that when you test the idea in randomised trials, the results keep coming back negative: the Cochrane review in 2020, the JAMA trial in 2017, the Finnish trial in 2026.

None of this makes magnesium useless. It means the specific claim — magnesium prevents or reduces idiopathic muscle cramps — is not supported by the best evidence we have. Before reaching for a supplement bottle at 3 a.m., you might try reaching for a pair of compression stockings instead. Or at least know that whatever relief follows may come from somewhere other than the mineral itself.

[@portabletext/react] Unknown block type "horizontal-rule", specify a component for it in the `components.types` prop

References

  1. Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews. 2020. https://www.cochranelibrary.com/cdsr/doi/10.1002/14651858.CD009402.pub3/full
  2. Roguin Maor N, Alperin M, Shturman E, et al. Effect of magnesium oxide supplementation on nocturnal leg cramps: a randomized clinical trial. JAMA Internal Medicine. 2017;177(5):617-623. https://jamanetwork.com/journals/jamainternalmedicine/fullarticle/2603490
  3. Leskinen J, Toppila J, Rantanen T, et al. Secondary prevention of leg cramps using compression stockings or magnesium supplements: a randomised trial. Trials. 2026. https://link.springer.com/article/10.1186/s13063-025-09370-z
  4. Sebo P, Cerutti B, Haller DM. Effect of magnesium therapy on nocturnal leg cramps: a systematic review. Family Practice. 2014;31(1):7-19. https://pubmed.ncbi.nlm.nih.gov/24280947/
  5. Moretti A. What is the role of magnesium for skeletal muscle cramps? A Cochrane Review summary with commentary. Journal of Rehabilitation Medicine. 2024. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8020016/
  6. Supakatisant C, Phupong V. Oral magnesium for relief in pregnancy-induced leg cramps: a randomised controlled trial. Maternal & Child Nutrition. 2017. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6860204/
Share
Written by
Sera Voss

Formulation analyst covering the supplement industry's supply chain, purity testing, and ingredient sourcing. Reports from Los Angeles.

More to read