Magnesium’s reputation
for leg cramps is shakier
than you’d think.
Leg cramps at night — that sudden, wrenching calf cramp at 2 am — are one of the most common complaints doctors hear. “Take magnesium” is the internet’s default answer. The research is more specific: magnesium mostly hasn’t beaten placebo for everyday night cramps, one form stands out in one trial, and a vitamin K2 study made headlines before its data was questioned. Here’s the honest picture.
Worth saying first: leg cramps have many causes. If cramping comes with swelling, redness or warmth in one leg, get medical help promptly — that can be a blood clot, not a cramp.
Why leg cramps at night happen
A cramp is a muscle that contracts and fails to relax. Night-time leg cramps are very common — up to 60% of adults get them — and become more frequent with age and in pregnancy. Most have no single identifiable cause; nerve over-excitability, muscle fatigue and some medicines all play a part.
Muscles work in a cycle: a nerve signal and calcium make a fibre contract, then it relaxes. In a cramp, that relaxation fails and the muscle locks into a painful, involuntary contraction. Muscle cramps at night most often hit the calf, sometimes the foot or thigh. Night cramps are extremely common, affecting up to 60% of adults, and more frequent after 50 and in pregnancy.1 Doctors call most cases idiopathic — no single cause is found — which is exactly why so much confident, contradictory advice exists.
Think of the 60-year-old woken three nights a week, the pregnant woman in her third trimester, or the runner who cramps after a long training day. Their cramps may look the same, but the evidence for what helps differs for each.
Magnesium for leg cramps: what the trials actually show
For ordinary night cramps in older adults, a Cochrane review of 11 trials concluded magnesium is unlikely to help, at any dose studied (moderate-certainty evidence). Two further trials of magnesium oxide — one over four weeks, one over 60 days — found it no better than placebo. There are no trials of magnesium for exercise cramps.
This is worth saying plainly: for everyday night cramps in older adults, magnesium supplements haven’t beaten placebo. The Cochrane review, pooling 11 randomised trials, concluded magnesium is unlikely to provide meaningful cramp prevention in this group at any of the doses used — with side effects such as diarrhoea common.2 A JAMA Internal Medicine trial of 94 adults found magnesium oxide no better than placebo over four weeks,3 and a 60-day trial of 173 adults found the same.4 No trials have tested magnesium for exercise-related cramps.2
Most of these trials used magnesium oxide or citrate. None of this means magnesium doesn’t matter — it contributes to normal muscle function, and low magnesium is common and under-diagnosed. It means treating a cramp as an automatic “take magnesium” problem oversells the evidence.
“Magnesium’s role in muscle relaxation is real. Whether a supplement stops your night cramps is a different — and much less settled — question.”
Why biology and proven treatment aren’t the same thing
Leg cramps in pregnancy: mixed evidence, one standout trial
Leg cramps affect 30–50% of pregnant women. One well-run trial found 300 mg a day of magnesium bisglycinate halved cramp frequency in 86% of women versus 60.5% on placebo, but a citrate trial found no benefit, and a 2021 pooled analysis of four trials found no overall effect. Always ask your doctor before taking anything in pregnancy.
The pregnancy evidence is genuinely mixed. In a well-run trial of 80 pregnant women, 300 mg a day of magnesium bisglycinate for four weeks halved cramp frequency in 86% of women, against 60.5% on placebo.5 But a trial of magnesium citrate at the same dose found no benefit,6 and when a 2021 meta-analysis pooled four trials (332 women) using different forms, magnesium didn’t reduce cramp frequency overall.7 The Cochrane review of pregnancy cramps concluded that no treatment can yet be recommended with confidence.8
The fair reading: the form may matter, and bisglycinate has the one clearly positive trial — but the overall evidence isn’t strong enough to promise results. Pregnant women should speak to their doctor before starting any supplement.
Vitamin K2 for leg cramps: a headline trial with questions attached
A 2024 trial in 199 adults over 65 reported that vitamin K2 (180 mcg of MK-7 daily for eight weeks) reduced night cramps. The paper was retracted and replaced in 2025, and independent reviewers flagged implausibly precise results and unclear dropout reporting — one evidence service concluded the evidence is unclear. Promising, but not proven.
In 2024, JAMA Internal Medicine published a trial in 199 adults over 65 reporting that vitamin K2 as MK-7, 180 mcg a day for eight weeks, reduced how often, how intensely and how long night cramps occurred, compared with placebo.9 It made headlines worldwide.
Then the questions came. The paper was formally retracted and replaced in 2025 after the editors raised concerns.10 Independent reviewers pointed to confidence intervals too precise to be plausible and poor reporting of dropouts, and one clinical evidence service concluded that the evidence for K2 and cramps is unclear.11 The trial also received non-financial support from a K2 manufacturer.10 Until another trial confirms it, K2 for cramps is a promising idea, not a proven fix — and people taking warfarin-type blood thinners should avoid K2 supplements unless their doctor approves.
Causes of leg cramps worth checking
Some medicines are linked to cramps: thiazide and potassium-sparing diuretics and inhaled long-acting asthma or COPD inhalers most clearly, statins and loop diuretics more weakly. Pregnancy, age, muscle fatigue, long sitting, dehydration, nerve compression in the lower back, and conditions such as diabetes or kidney and liver disease also play a part.
In prescribing data from 4.2 million people, cramp treatment became clearly more common in the year after people started thiazide or potassium-sparing diuretics or inhaled long-acting beta-agonists (asthma and COPD inhalers); links with statins and loop diuretics were weak.12 If cramps began after a new prescription, mention it to your doctor — never stop a medicine on your own.
Worth ruling out
- A recent new medicine, especially diuretics or long-acting inhalers
- Pregnancy, particularly the third trimester
- Nerve compression, such as lumbar spinal stenosis
- Diabetes, kidney, liver or thyroid conditions
- Long days of sitting, standing or heavy exercise
Common but overstated
- “Eat a banana” — potassium matters for muscle, but there’s little evidence it prevents ordinary cramps
- Magnesium as a guaranteed fix — the trials mostly disagree
- Quinine — modestly effective, but risky and not advised for routine use
When leg cramps are a warning sign
Leg pain or cramping with swelling, redness or warmth in one leg can be a deep vein thrombosis (blood clot) — get it checked the same day. See a doctor too if cramps are frequent and disrupting sleep, come with muscle weakness or wasting, or began after a new medicine.
We don’t sell a cramp cure — and here’s why.
Given the evidence above, neither product is marketed as a cramp treatment. Both are there for broader, better-established roles.
Element 5
300 mg of magnesium, with 150 mg as magnesium bisglycinate — the form used in the one positive pregnancy-cramp trial — plus Aquamin® and taurate. Magnesium contributes to normal muscle function and electrolyte balance; it isn’t a proven cramp fix.
See Element 5 →Bioactive Multivitamin
55 mcg of MenaQ7® vitamin K2 with vegan D3, for bone health — about a third of the dose in the questioned cramp trial, and not claimed to prevent cramps.
See the multivitamin →What actually helps with night-time leg cramps
See a doctor first if you have warning signs or frequent cramps. Review your medicines with them. Try gentle calf and hamstring stretches before bed — one trial found this reduced cramps, though another didn’t. Stretch the calf during a cramp, stay hydrated, and don’t rely on supplements alone.
- See a doctor for warning signs or frequent crampsSwelling, redness or warmth in one leg needs same-day care; frequent, sleep-disrupting cramps deserve a proper check.
- Review your medicinesAsk whether a diuretic, inhaler or other medicine could be contributing — don’t stop anything yourself.
- Stretch before bedIn one trial, nightly calf and hamstring stretches for six weeks reduced cramp frequency and severity in adults over 55; another trial found no benefit.13
- Stretch through a crampPull your toes towards you or stand and lean into the wall to lengthen the calf.
- Keep supplements in perspectiveMagnesium and K2 support normal muscle and bone health, but neither is a proven cramp cure.
Leg cramps at night, answered plainly.
Why do I get leg cramps at night?
Does magnesium help leg cramps?
Does vitamin K2 help leg cramps?
What medicines can cause leg cramps?
What is good for leg cramps in pregnancy?
Does stretching help leg cramps?
Do bananas or potassium stop leg cramps?
Is quinine safe for leg cramps?
When are leg cramps an emergency?
Will Element 5 stop my leg cramps?
Studies behind this guide
- Allen RE, Kirby KA. Nocturnal leg cramps. Am Fam Physician. 2012;86(4):350–5.
- Garrison SR, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020;9:CD009402. PMID 32956536 — 11 RCTs; unlikely to help idiopathic cramps in older adults (moderate certainty).
- Roguin Maor N, et al. Effect of magnesium oxide supplementation on nocturnal leg cramps: a randomized clinical trial. JAMA Intern Med. 2017;177(5):617–23. PMID 28241153 — n=94, 4 weeks, no better than placebo.
- Barna O, et al. A randomized, double-blind, placebo-controlled, multicenter study assessing the efficacy of magnesium oxide monohydrate in the treatment of nocturnal leg cramps. Nutr J. 2021;20:90 — n=173, 60 days, no difference from placebo.
- Supakatisant C, Phupong V. Oral magnesium for relief in pregnancy-induced leg cramps: a randomised controlled trial. Matern Child Nutr. 2015;11(2):139–45 — 300 mg/day magnesium bisglycinate chelate, n=80.
- Araújo CAL, et al. Oral magnesium supplementation for leg cramps in pregnancy — an observational controlled trial. PLoS One. 2020;15(1):e0227497 — 300 mg/day magnesium citrate, no difference from placebo.
- Liu J, Song G, Zhao G, Meng T. Effect of oral magnesium supplementation for relieving leg cramps during pregnancy: a meta-analysis of randomized controlled trials. Taiwan J Obstet Gynecol. 2021;60(4):609–14. DOI 10.1016/j.tjog.2021.05.006 — 4 RCTs, n=332; no significant reduction in cramp frequency overall.
- Luo L, et al. Interventions for leg cramps in pregnancy. Cochrane Database Syst Rev. 2020;12:CD010655 — 8 RCTs, 576 women; no intervention can be recommended with confidence.
- Tan J, et al. Vitamin K2 in managing nocturnal leg cramps: a randomized clinical trial. JAMA Intern Med. 2024;184(12):1443–7. PMID 39466236 — n=199, age 65+, 180 mcg MK-7/day, 8 weeks.
- Notice of retraction and replacement: Tan and Zhu. JAMA Intern Med. 2025;185(7):904. PMID 40314950 — author disclosures include nonfinancial support from Sungen Biotech.
- EBSCO DynaMed. EBM Focus: “Don’t jump at vitamin K2 for nocturnal leg cramps” — critique citing implausibly precise confidence intervals and unclear dropout reporting (REAPPRAISED checklist, Avenell).
- Garrison SR, Dormuth CR, Morrow RL, Carney GA, Khan KM. Nocturnal leg cramps and prescription use that precedes them: a sequence symmetry analysis. Arch Intern Med. 2012;172(2):120–6. PMID 22157068
- Hallegraeff JM, van der Schans CP, de Ruiter R, de Greef MHG. Stretching before sleep reduces the frequency and severity of nocturnal leg cramps in older adults: a randomised trial. J Physiother. 2012;58(1):17–22 — n=80; a separate trial (Coppin 2005) found no benefit.
Nutrition Science Hub
Magnesium oxide vs glycinate
Absorption, side effects and the outcome trials, side by side.
Read the guide → MagnesiumMagnesium deficiency in India
Symptoms, causes, foods — and why a blood test can miss it.
Read the guide → Vitamin K2Vitamin K2: MK-7 vs MK-4
The K2 forms, and why half-life matters.
Read the guide →