Quiet bedroom with magnesium-rich nuts and seeds on a nightstand, illustrating magnesium for leg cramps at night

Magnesium for Leg Cramps: What the Evidence Says

Magnesium for leg cramps is one of the most common supplement searches, and the honest answer is that the evidence is mixed. Magnesium supports normal muscle function,* but a 2020 Cochrane review of randomized trials found that magnesium is unlikely to make a meaningful difference to typical night leg cramps in older adults.[1] One later trial did report a modest effect, so the question isn't fully closed.[4]

This guide walks through what causes leg cramps, what the studies actually measured, and what you can do tonight. If you're mainly interested in meeting your daily magnesium needs, Orzax Magnesium Triple Complex combines citrate, malate and bisglycinate in one daily tablet.

Key Takeaways

  • A Cochrane review of 11 randomized trials (735 participants) found magnesium unlikely to meaningfully reduce idiopathic cramps in older adults.[1]
  • Magnesium contributes to normal nerve impulse conduction and muscle contraction,* and cramps can appear as a sign of worsening magnesium deficiency.[2]
  • Individual trials disagree: one 4-week trial found no difference from placebo, while a 60-day trial reported a small advantage.[3][4]
  • Nightly calf and hamstring stretching reduced cramp frequency and severity in a 6-week trial of adults over 55.[6]
  • Keep supplemental magnesium at or below 350 mg a day unless a clinician advises otherwise.[2]

Why leg cramps happen

What a leg cramp is

A leg cramp is a sudden, involuntary and painful tightening of a muscle, most often in the calf. Night leg cramps (nocturnal leg cramps) strike during rest or sleep and can last from seconds to several minutes, sometimes leaving the muscle sore the next day.

They are very common. In a clinical review, up to 60 percent of adults reported having had nocturnal leg cramps.[7] They are especially common later in life and can significantly affect sleep quality.[8]

Common causes of leg cramps

For most people, the exact cause is unknown. Researchers now think muscle fatigue and nerve dysfunction play a bigger role than electrolyte problems.[7]

Factors linked to cramps in the medical literature include:

  • Age: cramps are especially common in older adults.[8]
  • Pregnancy: pregnancy is one of the situations commonly associated with leg cramps.[7]
  • Certain medications: diuretics and long-acting beta-agonist inhalers have been associated with leg cramps.[8] Others reported in the literature include conjugated estrogens, raloxifene, naproxen, teriparatide and intravenous iron sucrose.[7]
  • Underlying health conditions: vascular disease, lumbar spinal stenosis, and some liver and kidney conditions are associated with cramps, which is one reason frequent cramps deserve a medical check.[7]

Magnesium's role in muscle function

Magnesium is a cofactor in more than 300 enzyme systems.[2] It helps move calcium and potassium across cell membranes, a process that supports nerve impulse conduction, muscle contraction and normal heart rhythm.*[2] A major physiology review describes magnesium as the second most abundant cation inside cells and notes its particular importance in the brain, heart and skeletal muscle.[9]

Low magnesium and muscle cramps

According to the NIH Office of Dietary Supplements, muscle contractions and cramps are among the symptoms that can develop as magnesium deficiency worsens.[2] Many people fall short: 48% of Americans get less magnesium from food and beverages than their estimated average requirement.[2]

Older adults are more likely to have low intakes, absorb less magnesium and lose more through the kidneys.[2] Long-term use of proton pump inhibitors and some diuretics can also lower magnesium levels.[2] Still, low intake and cramps both being common in later life doesn't mean one causes the other, and that's exactly what the trials set out to test.

Does magnesium help leg cramps? What the research shows

The Cochrane review

The most complete summary is a 2020 Cochrane systematic review of 11 randomized trials with 735 participants.[1] For idiopathic cramps (cramps with no identified cause), mostly in older adults, magnesium did not produce a meaningful reduction in cramp frequency, intensity or duration compared with placebo.[1]

Over four weeks, the difference was just 0.18 fewer cramps per week (95% CI -0.84 to 0.49), rated moderate-certainty evidence.[1] The chance of a 25% or greater drop in cramp rate was essentially the same with magnesium or placebo (RR 1.04), rated high certainty.[1] The review found no trials of magnesium for exercise-associated cramps.[1]

A 2017 magnesium oxide trial

In a randomized, double-blind trial published in JAMA Internal Medicine, 94 adults (mean age about 65) with frequent night cramps took magnesium oxide or placebo at bedtime for four weeks.[3] Cramps fell from about 7.8 to 4.4 per week with magnesium and from 8.5 to 5.5 per week with placebo.[3]

The difference between groups was not significant (P = .67), and there were no differences in severity, duration, quality of life or sleep quality.[3] The authors attributed the improvement in both groups to a probable placebo effect.[3]

A 2021 multicenter trial

A later randomized, double-blind, placebo-controlled trial in Ukraine gave 226 mg of magnesium oxide monohydrate or placebo once daily at bedtime for 60 days; 175 participants completed the study.[4] Both groups improved, but episodes fell slightly more with magnesium (-3.4 compared with -2.6, p = 0.01), with greater improvements in cramp duration and sleep quality.[4] This trial was published after the Cochrane review's search, so it isn't included in that summary.

Leg cramps during pregnancy

Evidence in pregnancy is limited and inconsistent. A Cochrane review of six studies with 390 women, four of which tested oral magnesium, found that it is unclear whether any intervention studied is effective, with evidence graded low or very low certainty.[5] The 2020 Cochrane review on magnesium likewise described the pregnancy findings as conflicting.[1] Anyone pregnant should talk with their prenatal care provider before taking any supplement.

Study summary

Study Who was studied Magnesium given Main finding
Cochrane review, 2020[1] 11 trials, 735 participants (mostly older adults) Various forms and doses No meaningful reduction in idiopathic cramps over placebo
Randomized trial, 2017[3] 94 adults, mean age about 65 Magnesium oxide at bedtime, 4 weeks No significant difference from placebo; both groups improved
Multicenter trial, 2021[4] 175 completers 226 mg magnesium oxide monohydrate at bedtime, 60 days Slightly larger drop in episodes than placebo
Cochrane review (pregnancy), 2015[5] 6 studies, 390 pregnant women Oral magnesium in 4 trials Unclear effect; low to very low certainty evidence

Why the evidence on magnesium and cramps is mixed

Several factors help explain why results differ from study to study:

  • Strong placebo response: in both recent trials, cramps dropped noticeably in the placebo groups too.[3][4]
  • Who was studied: most participants were older adults with idiopathic cramps, not people with documented low magnesium status. Serum magnesium is also not routinely measured in practice.[9]
  • Short durations and small samples: the two recent trials lasted four weeks and 60 days, and each had fewer than 200 participants.[3][4]
  • Different forms and doses: the recent trials used magnesium oxide; results may not carry over to other forms or amounts.

The fair reading: magnesium isn't a reliable fix for typical night cramps, but getting enough magnesium overall remains important for normal muscle and nerve function.*

Practical steps for night leg cramps

Stretch before bed

In a randomized trial of 80 adults over 55, stretching the calves and hamstrings every night just before sleep for six weeks reduced cramp frequency by about 1.2 cramps per night more than no stretching, and also reduced cramp severity.[6] Another review notes that the evidence on stretching is not entirely consistent,[8] but it's low-cost and low-risk.

  1. Calf stretch: stand facing a wall, step one foot back, keep that heel down and lean forward until you feel a stretch in the calf. Hold for 10 to 20 seconds, then switch legs.
  2. Hamstring stretch: sit with one leg straight, reach gently toward your toes and hold.
  3. During a cramp: pull your toes toward your shin or stand and press your heel into the floor until the muscle releases.

Review your magnesium intake

Adults need 310 to 420 mg of magnesium a day, depending on age and sex.[2] Food comes first: leafy greens, nuts, seeds, legumes and whole grains all contribute. If you choose a supplement, these steps help:

  1. Check the label for elemental magnesium per serving, not the weight of the whole compound. Our guide to reading supplement labels explains how.
  2. Pick a form you tolerate. Our article on magnesium citrate, glycinate and malate outlines how the common forms differ.
  3. Stay at or below 350 mg a day from supplements unless your clinician recommends otherwise.[2]
  4. Choose a consistent time of day. Our guide to the best time to take magnesium covers morning and evening routines.
  5. Keep a simple cramp diary for a few weeks so you and your clinician can judge any change objectively.

How Orzax Magnesium Triple Complex fits

Orzax Magnesium Triple Complex provides 200 mg of elemental magnesium per tablet from three forms: magnesium citrate, magnesium malate and magnesium bisglycinate. The label directs one tablet daily, and each bottle holds 60 tablets, a 60-day supply.

At 200 mg, one tablet sits within the 350 mg daily upper limit for supplemental magnesium in adults.[2] It's designed for adults who want to help maintain adequate magnesium intake, which supports normal muscle function.* To learn why some formulas combine several forms, read our guide to magnesium complex benefits.

Safety and when to talk to a clinician

The upper limit for magnesium applies only to supplements and medications, not to magnesium found naturally in food and beverages.[2]

  • Upper limit: the adult UL for magnesium from supplements and medications is 350 mg a day, including during pregnancy and breastfeeding.[2]
  • Digestive effects: high supplemental doses often cause diarrhea, sometimes with nausea and abdominal cramping.[2] In cramp trials, gastrointestinal side effects were the most common complaint.[1]
  • Very high doses: very high supplemental intakes can cause low blood pressure, vomiting, irregular heartbeat and other serious effects.[2] If you have a kidney condition, talk with your clinician before taking magnesium.
  • Medication interactions: magnesium can reduce absorption of oral bisphosphonates and of tetracycline and quinolone antibiotics, so spacing doses matters. Diuretics and long-term proton pump inhibitors can change magnesium levels.[2]
  • Pregnancy and nursing: talk with your healthcare provider before starting any supplement.
  • Quinine: quinine is no longer recommended for leg cramps because of the risk of serious side effects.[7][8]

See a clinician if cramps are frequent, severe, start after a new medication, or come with leg swelling, redness, weakness, numbness, or pain when walking.

Frequently Asked Questions

Is magnesium good for leg cramps?

The best available evidence suggests magnesium is unlikely to meaningfully reduce typical night leg cramps in older adults.[1] One 2021 trial reported a small benefit over placebo,[4] so results are mixed. Magnesium does support normal muscle function as part of an adequate diet.*

What is the best magnesium for leg cramps?

No form has been shown to work better than others for cramps. The recent trials used magnesium oxide.[3][4] For general intake, choose a form you tolerate well and check the elemental magnesium on the label.

How much magnesium should I take for leg cramps?

There's no established dose for cramps. The adult RDA is 310 to 420 mg a day from all sources, and the upper limit for supplemental magnesium is 350 mg a day.[2] Ask your clinician before going higher.

Can low magnesium cause leg cramps at night?

Muscle cramps can be a symptom of worsening magnesium deficiency.[2] However, most night cramps have no identified cause, and researchers suspect muscle fatigue and nerve dysfunction more than electrolyte problems.[7]

How long does it take magnesium to work for leg cramps?

Trials have assessed magnesium over four weeks to 60 days.[1][4] If you try it, keep a cramp diary for at least a month and review the results with your clinician.

Does magnesium help leg cramps during pregnancy?

Studies in pregnancy are small and conflicting, and the evidence is graded low to very low certainty.[1][5] Talk with your prenatal care provider before taking any supplement.

References

  1. Garrison SR, Korownyk CS, Kolber MR, Allan GM, Musini VM, Sekhon RK, Dugré N. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020;9(9):CD009402. PubMed
  2. National Institutes of Health, Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. NIH ODS
  3. Roguin Maor N, Alperin M, Shturman E, Khairaldeen H, Friedman M, Karkabi K, Milman U. Effect of magnesium oxide supplementation on nocturnal leg cramps: a randomized clinical trial. JAMA Intern Med. 2017;177(5):617-623. PubMed
  4. Barna O, Lohoida P, Holovchenko Y, Bazylevych A, Velychko V, Hovbakh I, Bula L, Shechter M. 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(1):90. PubMed
  5. Zhou K, West HM, Zhang J, Xu L, Li W. Interventions for leg cramps in pregnancy. Cochrane Database Syst Rev. 2015;(8):CD010655. PubMed
  6. Hallegraeff JM, van der Schans CP, de Ruiter R, de Greef MH. 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. PubMed
  7. Allen RE, Kirby KA. Nocturnal leg cramps. Am Fam Physician. 2012;86(4):350-355. PubMed
  8. Rabbitt L, Mulkerrin EC, O'Keeffe ST. A review of nocturnal leg cramps in older people. Age Ageing. 2016;45(6):776-782. PubMed
  9. de Baaij JH, Hoenderop JG, Bindels RJ. Magnesium in man: implications for health and disease. Physiol Rev. 2015;95(1):1-46. PubMed

*These statements have not been evaluated by the Food and Drug Administration. This product is not intended to diagnose, treat, cure, or prevent any disease. This article is for informational purposes only and is not a substitute for professional medical advice. Consult your healthcare provider before starting any supplement, especially if you are pregnant, nursing, taking medication, or have a medical condition.

Share:

Before You Go…

Here are a few handpicked articles to inspire your next self-care moment.