Some links on this page are affiliate links. If you buy through them we may earn a commission, at no extra cost to you. It never changes our rankings. How we make money
Explainer

Magnesium for leg cramps: what the trials actually show

Magnesium is the first thing most people reach for when a calf cramp wakes them at night. For older adults the trials say it barely beats a placebo; in pregnancy the evidence is mixed, and for sport there are no good trials at all. Here is what does help.

Compare forms, doses and products: Magnesium →

This guide contains affiliate links. If you buy through them we may earn a commission at no extra cost to you. Information only — not medical advice.

Foam roller and running shoes on an exercise mat, with a carafe of water and green mineral crystals
AI-generated illustration · NutriMetrics

Key takeaways

  • Night cramps in older adults: a 2020 Cochrane review of 5 trials found magnesium is unlikely to give a meaningful benefit over placebo (moderate-certainty evidence).
  • Pregnancy: results are inconsistent. Some small trials saw fewer cramps, others no difference; the certainty is low.
  • Exercise cramps: there are no good trials of magnesium. Cramps in sport are mostly linked to fatigue and overload, not a lack of magnesium.
  • The EU lets a label say magnesium "contributes to normal muscle function", but not that it prevents or relieves cramps.
  • What helps most people: stretching the calf, before bed and during a cramp. See a doctor if cramps disturb your sleep, last over 10 minutes or come with swelling, numbness or weakness.

The short answer

If you are an adult with ordinary night-time calf cramps, magnesium probably won’t help much more than a placebo. That is the conclusion of the best evidence available, a 2020 Cochrane review. In pregnancy the picture is less clear: some trials saw fewer cramps, others didn’t. For cramps during sport nobody has run a good trial. What reliably helps is cheaper: stretch the calf, every evening and during a cramp, and check whether a medicine or another condition is behind it.

What the trials found

WhoEvidenceResult
Adults with night cramps, mostly over 60Cochrane 2020: 5 trials, 271 peopleDifferences against placebo were small and not significant for frequency, intensity or duration. Moderate certainty
Pregnant womenCochrane 2020 (pregnancy review): 8 small trials, 576 womenInconsistent: one trial found more women free of cramps, others little or no difference. Low to very low certainty
People with exercise crampsNo randomised trials foundNo evidence either way
Adults with night cramps (magnesium oxide, 4 weeks)Roguin Maor 2017, 94 peopleCramps fell in both groups; no difference between magnesium and placebo
Adults over 45 with night cramps (one brand of magnesium oxide, 60 days)Barna 2021, 175 people3.4 fewer cramps a week with magnesium vs 2.6 fewer with placebo

Two things stand out. First, placebo works surprisingly well on cramps: in both recent trials the placebo group also had far fewer cramps. That is why your own experience (“I took magnesium and the cramps stopped”) is not proof: cramps come and go on their own. Second, the one recent positive trial tested a single branded product and found a difference of less than one cramp a week. It is a reason for more research, not a reason to expect magnesium to fix your cramps.

What a label is allowed to say

Magnesium has several authorised EU health claims. The one closest to cramps is “magnesium contributes to normal muscle function”. A product can use it from 15 % of the reference intake, which is about 56 mg of magnesium per daily dose. The claim describes normal function, not prevention or treatment. A supplement that promises “against cramps” or “for cramp-free nights” goes beyond what the law allows. Our table of authorised claims has the exact wording of the magnesium claims.

What helps instead

  • During a cramp: straighten the leg and pull your toes up towards you, or stand and put weight on the foot. Massage the muscle.
  • To prevent cramps: stretch your calves every day, especially before bed. The NHS suggests regular calf stretches; they may not stop cramps completely, but they can make them less frequent.
  • Look for a cause. Cramps are more common with age, late in pregnancy, after hard exercise in heat, with some liver diseases and with some medicines, such as statins and diuretics. If cramps began after a new medicine, ask your doctor or pharmacist. Don’t stop it on your own.

See a doctor if cramps disturb your sleep, last longer than 10 minutes, come with swelling or numbness, or your leg muscles are getting weaker or thinner.

If you still want to try magnesium

Magnesium is cheap and safe at normal doses, so a short trial is reasonable as long as you keep it honest:

  1. Dose: no more than 250 mg of magnesium a day from supplements, the EFSA upper level. Above it, diarrhoea becomes more likely. Count the magnesium in any multivitamin too. Our maximum levels by country show national limits.
  2. Form: citrate or bisglycinate are gentler on the stomach than oxide. Read the label for elemental magnesium per day, not the weight of the compound. See magnesium forms compared.
  3. Time limit: the trials lasted 4 to 8 weeks. Write down how many cramps you have a week before you start and after a month. No change? Stop.
  4. Check first with your doctor if you have kidney disease, are pregnant, or take antibiotics (tetracyclines, quinolones), bisphosphonates or long-term stomach-acid medicines.

Most adults already get a fair amount of magnesium from nuts, seeds, beans, whole grains and leafy greens. Our guide to magnesium-rich foods shows how much is in a normal day of eating.

FAQ

Does magnesium help with leg cramps?

For most adults with night-time leg cramps, probably not more than a placebo. The 2020 Cochrane review concluded that magnesium is unlikely to provide clinically meaningful cramp prevention in older adults. In pregnancy the trials disagree, and for exercise cramps there are no good trials.

How long should I try magnesium for cramps?

If you decide to try it, the trials ran for 4 to 8 weeks. If you notice no difference after about a month, stop rather than raising the dose. Keep supplement magnesium at or below 250 mg a day.

Which magnesium is best for cramps?

No form has been shown to prevent cramps. Citrate and bisglycinate are usually easier on the stomach than oxide, which is more likely to cause diarrhoea. The amount of magnesium per day matters more than the form.

Can I take magnesium for leg cramps in pregnancy?

Some small trials in pregnant women found fewer cramps with magnesium and others found no effect. Talk to your midwife or doctor before taking any supplement in pregnancy.

When are leg cramps a reason to see a doctor?

When they disturb your sleep, last longer than 10 minutes, come with swelling or numbness, or your leg muscles get weaker or thinner. Also if they started after a new medicine, such as a statin or a diuretic. Don't stop a prescribed medicine on your own.

Sources

  1. Garrison SR et al. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews, 2020
  2. Luo L et al. Interventions for leg cramps in pregnancy. Cochrane Database of Systematic Reviews, 2020
  3. Roguin Maor N et al. Effect of magnesium oxide supplementation on nocturnal leg cramps: a randomized clinical trial. JAMA Intern Med, 2017
  4. Barna O et al. Magnesium oxide monohydrate for nocturnal leg cramps: a randomized, placebo-controlled trial. Nutrition Journal, 2021
  5. NHS — Leg cramps
  6. Regulation (EU) No 432/2012 — list of permitted health claims
  7. EFSA — Summary of tolerable upper intake levels (2024)
Toon Van Buylaere

Founder of NutriMetrics, with about 20 years in European e-commerce. Not a health professional: the health statements in this guide come from the official sources linked at the end.

Keep reading