Leg cramps at night?
With magnesium,
the form makes the difference.
Leg cramps at night — that sudden, wrenching calf cramp at 2 am — affect up to 60% of adults. “Take magnesium” is the usual advice, and the research adds an important detail: the trial that worked used magnesium bisglycinate, while trials using cheap magnesium oxide did not. Here’s what causes night cramps, what helps, and the warning signs to know.
Worth saying first: if cramping comes with swelling, redness or warmth in one leg, get medical help the same day — that can be a blood clot, not a cramp.
Leg cramps at night: the short answer
Night-time leg cramps are very common and usually harmless. Magnesium contributes to normal muscle function, and the form matters: 300 mg a day of magnesium bisglycinate halved cramps in 86% of pregnant women in a trial, while magnesium oxide trials found no benefit. Stretching before bed, checking your medicines and knowing the warning signs all help.
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 look the same, but what helps can differ. The good news: most night cramps are harmless, and a few simple steps make a real difference.
Why leg cramps at night happen
A cramp is a muscle that contracts and fails to relax. Night cramps affect up to 60% of adults and become more frequent with age and in pregnancy. Usually no single cause is found; 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 magnesium helps it relax. In a cramp, that relaxation fails and the muscle locks into a painful contraction — most often in 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, meaning no single cause is found.
Magnesium for leg cramps: why the form matters
Magnesium contributes to normal muscle function and electrolyte balance. The one clearly positive cramp trial used magnesium bisglycinate at 300 mg a day. The trials that found no benefit mostly used magnesium oxide, which is only about 4% absorbed and acts as a laxative.
Magnesium contributes to normal muscle function and electrolyte balance,2 and it’s the mineral that lets a contracted muscle relax. But not all magnesium supplements are alike.
In a well-run trial of 80 pregnant women with leg cramps, 300 mg a day of magnesium bisglycinate for four weeks halved cramp frequency in 86% of women, against 60.5% on placebo — and nearly half became cramp-free.3 By contrast, trials that used magnesium oxide for ordinary night cramps in older adults found it no better than placebo — over four weeks in one trial and 60 days in another.4,5 That’s not surprising: only about 4% of magnesium oxide is absorbed, and the rest pulls water into the gut.6
So if you try magnesium, choose the form from the positive trial: magnesium bisglycinate, ideally non-buffered so none of the dose is hidden oxide. It’s also gentle on the stomach and suits evening use. And magnesium glycinate has more going for it: in active adults, 350 mg a day reduced muscle soreness after exercise.7
“The trial that worked used magnesium bisglycinate. The trials that didn’t mostly used magnesium oxide. Form isn’t a detail — it’s the difference.”
What the cramp trials show
Leg cramps in pregnancy
Leg cramps affect 30–50% of pregnant women, especially in the third trimester. In a randomised trial, 300 mg a day of magnesium bisglycinate halved cramp frequency in 86% of women. Gentle stretching and good hydration help too. Always check with your doctor before taking any supplement in pregnancy.
Pregnancy is when leg cramps are most common, affecting 30–50% of pregnant women. The bisglycinate trial above was in exactly this group: 300 mg a day for four weeks halved cramps in 86% of women, and nearly half became cramp-free.3 Gentle calf stretches before bed and staying well hydrated are simple, low-risk additions. Because every supplement in pregnancy deserves a doctor’s view, please speak to yours before starting magnesium.
Vitamin K2 and leg cramps: a promising early trial
A 2024 trial in 199 adults over 65 found that 180 mcg of vitamin K2 (MK-7) a day for eight weeks reduced how often, how badly and how long night cramps occurred. It’s an interesting early result that researchers want to see repeated. K2’s established roles are in bone health.
Vitamin K2 is best known for helping direct calcium into bone. In 2024, a trial in 199 adults over 65 reported that 180 mcg of vitamin K2 (MK-7) a day for eight weeks reduced the frequency, intensity and length of night cramps compared with placebo.8 It’s a promising lead, and a second trial would confirm it. If you take warfarin-type blood thinners, avoid K2 supplements unless your doctor approves.
Causes of leg cramps worth checking
Some medicines are linked to cramps — most clearly thiazide and potassium-sparing diuretics and long-acting asthma or COPD inhalers. 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 weaker.9 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
Simple things that help
- Calf and hamstring stretches before bed
- Staying hydrated, especially in Indian summers
- A well-absorbed magnesium (bisglycinate), not oxide
- Stretching the calf the moment a cramp starts
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.
Pure Magnesium Glycinate: the form from the positive cramp trial.
Magnesium in the form the research supports — non-buffered, so none of it is the oxide that failed in the other trials.
Pure Magnesium Glycinate by Evo Hominus™
100% non-buffered magnesium bisglycinate. Three tablets give 440 mg of elemental magnesium from 3,667 mg of fully reacted bisglycinate, with about 2.7 g of glycine and 0 mg of magnesium oxide. Magnesium contributes to normal muscle function and electrolyte balance. Best taken in the evening; women can take two tablets, and pregnant women should ask their doctor first.
See Pure Magnesium Glycinate →Also in development: our Bioactive Multivitamin and Element 5. Formulas will be published at launch.
What helps with night-time leg cramps
Check warning signs first, review your medicines with your doctor, stretch your calves before bed, stretch through a cramp when it hits, stay hydrated, and if you take magnesium, choose bisglycinate rather than oxide.
- Check the warning signsSwelling, 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 a trial of adults over 55, nightly calf and hamstring stretches for six weeks reduced cramp frequency and severity.10
- Stretch through a crampPull your toes towards you, or stand and lean into a wall to lengthen the calf.
- Choose the right magnesiumNon-buffered magnesium bisglycinate in the evening, within India’s daily allowance (440 mg men, 370 mg women) — not oxide.
- The magnesium bisglycinate cramp trial was in 80 pregnant women. A Cochrane review of 11 trials (mostly oxide and citrate) found magnesium unlikely to help ordinary night cramps in older adults; a citrate trial in pregnancy found no benefit, and a 2021 pooled analysis of four pregnancy trials using different forms found no overall effect.3,11,12,13
- The vitamin K2 trial was retracted and replaced by the journal in 2025, and independent reviewers questioned how precise its results were; one evidence service rated the evidence unclear. The trial had non-financial support from a K2 maker.8,14,15
- A second stretching trial found no benefit.10 The soreness trial was in 22 young adults over 10 days.7
- Quinine modestly reduces cramps but can cause rare, serious reactions, so it isn’t recommended for routine use.
Leg cramps at night, answered plainly.
Why do I get leg cramps at night?
Does magnesium help leg cramps?
Which magnesium is best for 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?
When are leg cramps an emergency?
Studies behind this guide
- Allen RE, Kirby KA. Nocturnal leg cramps. Am Fam Physician. 2012;86(4):350–5.
- European Commission. Regulation (EU) No 432/2012 establishing a list of permitted health claims made on foods (magnesium: normal muscle function, electrolyte balance).
- 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.
- 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.
- 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.
- Firoz M, Graber M. Bioavailability of US commercial magnesium preparations. Magnes Res. 2001;14(4):257–62. PMID 11794633
- Reno AM, et al. Effects of magnesium supplementation on muscle soreness and performance. J Strength Cond Res. 2022;36(8):2198–2203. PMID 33009349 — 350 mg/day magnesium glycinate, n=22.
- 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.
- 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.
- Garrison SR, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020;9:CD009402. PMID 32956536 — 11 RCTs.
- 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.
- 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.
- Notice of retraction and replacement: Tan and Zhu. JAMA Intern Med. 2025;185(7):904. PMID 40314950
- EBSCO DynaMed. EBM Focus: “Don’t jump at vitamin K2 for nocturnal leg cramps” — critique of the 2024 trial’s confidence intervals and dropout reporting.
Nutrition Science Hub
Magnesium oxide vs glycinate
Absorption, side effects and the outcome trials, side by side.
Read the guide → Evening wind-downTrouble winding down at night
Restless legs, tight shoulders and a busy mind — the nutrients that help.
Read the guide → RecoverySlow recovery after workouts
Magnesium, glycine and omega-3 for athletes who cramp and stay sore.
Read the guide →