It's 3am. Your calf locks into a fist, your toes curl on their own, and you're out of bed hopping on one leg, trying to remember which way you're meant to stretch. By morning the muscle still feels bruised, and somebody (a friend, a forum, a supplement shelf) has told you the answer is magnesium.
Maybe. It's one of the most repeated bits of wellness advice going, and it isn't pulled from thin air: magnesium really does have a job in how muscles contract and relax. But the trials on night cramps specifically tell a more awkward story, and if you're spending money on it you deserve to know what that story is.
First, what a leg cramp actually is
A cramp is a sudden, involuntary tightening of a muscle, usually the calf, sometimes the foot or thigh. The NHS describes them as common and usually harmless, most often striking at night or at rest. Ageing, later pregnancy, hard exercise (especially in heat), dehydration and some medicines, including statins and diuretics, are all listed as possible triggers. For plenty of people there's no clear cause at all.[1]
That last point matters. "Magnesium deficiency" is the explanation people reach for, but it's rarely the one anybody has actually tested for.
What magnesium does for muscles
Here's the solid ground. Under the health claims rules the UK kept after Brexit, "magnesium contributes to normal muscle function" is an authorised claim, alongside claims for the nervous system, electrolyte balance and the reduction of tiredness and fatigue. It can be used on any product that's at least a source of magnesium.[2]
Notice what that claim does and doesn't say. It says magnesium is part of the machinery of normal muscle function. It doesn't say topping up will stop cramps, and nobody is allowed to say it does. That distinction is the whole article, really.
So does magnesium stop night cramps?
For the most common kind (the unexplained night-time cramps that tend to arrive with age), the best evidence says probably not.
A 2020 Cochrane review, the most thorough look at the question so far, pulled together 11 trials of magnesium for muscle cramps. For idiopathic cramps, mostly in older adults, it concluded that magnesium results in little to no difference in how often cramps happen, and rated that finding as high certainty.[3] Cochrane doesn't hand out "high certainty" lightly.
One of the clearer individual trials, published in JAMA Internal Medicine in 2017, gave 94 adults (average age 65) either magnesium oxide (520mg of elemental magnesium a night) or a placebo for four weeks. Both groups improved by almost exactly the same amount.[4]
That placebo result is quietly useful. Cramps come and go on their own, so almost anything you start during a bad patch will look like it worked. It's also why personal stories, however sincere, can't settle this one.
What about pregnancy?
Less clear. The same Cochrane review looked at pregnancy-related cramps, but the trials were small, couldn't be pooled, and the evidence was rated very low certainty. The authors' verdict: no conclusions can be drawn either way.[3] If you're pregnant and cramping, that's a conversation for your midwife or GP before you add anything new.
And after exercise?
The Cochrane review didn't reach a conclusion on exercise-associated cramps, so we won't pretend there's one. Heat, fatigue and fluid loss are the usual suspects the NHS points to here.[1]
What actually helps when your calf seizes
Less glamorous than a supplement, and better supported. The NHS suggests stretching and massaging the muscle during a cramp, and standing with your weight on the affected leg. To cut down how often they happen, it recommends a simple calf stretch: face a wall, feet flat, lean forward until you feel the pull, hold for a few seconds and repeat for around five minutes, three times a day, with the last round just before bed.[1]
See a GP if cramps are wrecking your sleep, last longer than ten minutes, or come with numbness or swelling in the leg.[1] And if you've recently started a new medicine, it's worth asking your pharmacist whether cramps are a known side effect.
"Less glamorous than a supplement, and better supported."
Where magnesium still earns its place
None of this makes magnesium pointless. It means taking it for the right reason.
Adults aged 19 to 64 need around 300mg a day (men) and 270mg (women), and the NHS says most people can get that from a varied diet: leafy greens, nuts, seeds, wholegrains.[5] Plenty of us don't eat like that every day. If yours is a beige-carbs-and-coffee kind of week, a supplement is a reasonable way to make sure you're covering the basics your muscles and nervous system rely on. Just go in expecting support for normal function, not a cure for 3am cramps.
Two practical guardrails. Keep supplemental magnesium at 400mg a day or less, which the NHS says is unlikely to cause harm; higher doses can cause diarrhoea.[5] And if you're comparing forms, our guide to magnesium glycinate vs magnesium citrate walks through why the form on the label changes how it sits with your gut.
For an everyday top-up, the simplest option is a straightforward daily formula that's honest about what's in it. Our Magnesium Complex pairs magnesium citrate and magnesium oxide with vitamin B6, at two tablets a day. Check the label for the exact milligrams per serving and make sure your total from all supplements stays inside that 400mg line.
It's made in the UK to BRC Grade AA and GMP standards and tested by Eurofins: the gold standard we hold every formula to, whatever the claim on the front.
The honest bottom line
If night cramps are your only reason for buying magnesium, start with the wall stretch tonight. It's free, and it has better backing. If you also suspect your diet runs light on greens and wholegrains, magnesium is a sensible, well-understood way to support normal muscle function. Just keep the two reasons separate in your head, and give your GP a call if the cramps keep breaking your sleep.
Frequently asked questions
Does magnesium help with leg cramps at night?
For unexplained night cramps in adults, the evidence says probably not. A 2020 Cochrane review of 11 trials found magnesium made little to no difference to cramp frequency in this group, and a 2017 trial found magnesium oxide worked no better than a placebo. Magnesium does contribute to normal muscle function, but that isn't the same as stopping cramps.
How much magnesium can I take a day?
The NHS says adults need about 300mg a day (men) or 270mg (women), mostly from food, and that taking 400mg or less a day from supplements is unlikely to cause harm. Higher doses can cause diarrhoea. Count every supplement you take, including multivitamins.
Can I take magnesium for cramps during pregnancy?
The research on magnesium for pregnancy cramps is too limited to draw conclusions either way, according to the 2020 Cochrane review. Speak to your midwife or GP before starting any new supplement while pregnant.
Which type of magnesium is best?
No form has been shown to stop cramps. For general top-up purposes, forms differ mainly in how they're tolerated: citrate, glycinate and oxide each sit a little differently with the gut. Our guide to magnesium glycinate vs magnesium citrate explains the trade-offs in more detail.
Sources
- NHS, Leg cramps: causes, how to ease and prevent cramps, and when to see a GP. https://www.nhs.uk/conditions/leg-cramps/
- Commission Regulation (EU) No 432/2012 (as retained in UK law): authorised magnesium health claims, including normal muscle function. https://www.legislation.gov.uk/eur/2012/432
- Garrison SR et al., Magnesium for skeletal muscle cramps, Cochrane Database of Systematic Reviews 2020: 11 trials; findings for idiopathic and pregnancy-associated cramps. https://cochranelibrary.com/cdsr/doi/10.1002/14651858.CD009402.pub3/information
- Roguin Maor N et al., JAMA Internal Medicine 2017: magnesium oxide vs placebo for nocturnal leg cramps (94 adults, 4 weeks), summarised by Relias Media. https://reliasmedia.com/articles/140472-can-magnesium-cure-nocturnal-leg-cramps
- NHS, Vitamins and minerals: Others (magnesium): daily needs and the 400mg supplement guidance. https://www.nhs.uk/conditions/vitamins-and-minerals/others/
At Oxford Origins, your wellbeing is our priority, and although we pride ourselves on our expertise in nutrition and supplementation, it's important to acknowledge the individuality of each person. Articles published by Oxford Origins are not intended to treat, diagnose, cure or prevent any disease, or replace the advice of your GP. We always recommend consulting with a healthcare provider if you encounter any health concerns, and we'll always be here to support you so you're never alone on your journey.















