Last updated: October 2026
Magnesium is a popular remedy for cramps, but the evidence is weak. A Cochrane review found it’s unlikely to prevent night-time leg cramps in older adults, and a trial of magnesium at bedtime worked no better than placebo. It may help if you’re actually low in magnesium. Regular calf stretching is what the NHS recommends first.
Below: what the research shows for night cramps, exercise cramps and pregnancy, which magnesium to choose if you want to try it, how much, and when cramps need a GP.
Does magnesium help cramps? The research
| Type of cramp | What the research found |
|---|---|
| Night-time leg cramps (older adults) | Cochrane review, 2020: magnesium is unlikely to give a meaningful reduction in cramps. A 2017 trial of magnesium oxide at bedtime for four weeks found no difference from placebo; both groups improved, suggesting a placebo effect. |
| Cramps in pregnancy | Conflicting results: one trial found a benefit, others didn’t. See magnesium in pregnancy. |
| Exercise cramps | No controlled trials. Exercise cramps are more linked to muscle fatigue than to low minerals. |
| Period cramps | No high-quality evidence. See magnesium for PMS. |
That doesn’t mean magnesium does nothing for muscles: it contributes to normal muscle function and electrolyte balance. But if your magnesium intake is already adequate, extra is unlikely to stop cramps.
Our pick
Magnesium Glycinate Sleep Complex
Magnesium Glycinate Sleep Complex is a berry drink powder with 290mg of magnesium a scoop from bisglycinate and citrate, plus glycine and L-theanine. Magnesium contributes to a reduction of tiredness and fatigue.
Add Magnesium Glycinate Sleep Complex to bag See ingredients and reviews
Vegan and made in the UK. Free UK delivery over £45, 14-day returns on unopened items.
Subscribe £22.49One-off £29.99
View productWhat causes cramps?
Often there’s no clear cause. Common triggers include:
- muscle tiredness after exercise or long periods standing
- tight calf muscles and sitting or lying awkwardly
- getting older, pregnancy, and dehydration
- some medicines, such as diuretics and statins
- conditions such as diabetes, liver or kidney disease, and nerve problems
Who might benefit from magnesium?
- People with a low intake: diets low in wholegrains, nuts, seeds and greens. See signs of magnesium deficiency.
- People on medicines that lower magnesium, such as some diuretics or long-term proton pump inhibitors (like omeprazole). Your GP can check your level with a blood test.
- Heavy drinkers and people with gut conditions that affect absorption.
Best magnesium for cramps
| Type | For cramps |
|---|---|
| Glycinate (bisglycinate) | Gentle on the stomach; good for an evening routine |
| Citrate | Well absorbed; can loosen stools |
| Oxide | Used in the night-cramp trial; cheap but less well absorbed |
| Epsom salt bath (sulphate) | Very little is absorbed through skin, but a warm bath relaxes muscles |
| Magnesium sprays and oils | Little evidence they raise magnesium levels. See magnesium spray |
Our Magnesium Glycinate Sleep Complex combines bisglycinate and citrate with glycine, L-theanine and botanicals, giving 290mg of magnesium per serving as a warm evening drink. Compare forms in types of magnesium.
How much to take
Adults need 270 to 300mg a day, mostly from food. If you supplement, 100 to 300mg a day is typical, and the NHS says 400mg or less a day from supplements is unlikely to cause harm. Give it four weeks, and if cramps haven’t changed, magnesium probably isn’t the answer for you. Speak to your GP first if you have kidney problems.
What helps cramps (NHS)
- During a cramp: stretch and massage the muscle. For a calf cramp, gently pull your toes up towards your shin.
- To prevent cramps: regular calf stretches, especially before bed.
- Afterwards: painkillers such as paracetamol or ibuprofen can ease lingering soreness.
- If these don’t help, a GP may review your medicines or, rarely, prescribe quinine.
Muscle soreness after exercise is different from cramp. See magnesium for muscle pain and CBD balm.
Cramping after heavy sweating? See electrolytes: do you need them?
When to see a GP
iSee a GP if cramps are frequent, affect your sleep or daily life, started after a new medicine, or come with muscle weakness, numbness or swelling. Get urgent help if one leg is swollen, red, warm and painful, as it could be a blood clot.
Related guides
- For what to do when cramps wake you, see leg cramps at night.
- Magnesium glycinate for muscles and cramps.
- Which magnesium is best: glycinate, citrate or threonate.
- Magnesium for sleep: best type, dose and timing.
- How to have an Epsom salt bath.
- For more on the form used in that cramp trial, read magnesium oxide explained.
- If you like a warm soak, our magnesium flakes guide explains what a bath can and can’t do.
- Does magnesium help eye twitching?
- For the best form for cramps and other goals, see our best magnesium supplement UK guide.
- Period cramps are different from leg cramps: see period pain relief for what helps.
- For twitches rather than cramps, see our guide to muscle twitching.
- If it’s an urge to move rather than a painful cramp, see magnesium for restless legs.
- Prefer a drink to a tablet? See magnesium powder vs tablets for how the formats compare.
- If cramps come at night, read when to take magnesium for an evening routine that fits around food and medicines.
- Magnesium threonate side effects and safety.
- Before reaching for a supplement, check your diet against our list of foods high in magnesium.
- Taking more magnesium than you need can upset your stomach; see the side effects of magnesium.
- Give it a few weeks of daily use; our magnesium timeline shows what the trials found.
- Taking glycinate? See how much magnesium glycinate to take daily, including how to read the label.
- If cramps are breaking up your sleep, our guide to tiredness on your period explains what helps.
Sources 5
- Garrison SR et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev, 2020.
- Roguin Maor N et al. Effect of magnesium oxide supplementation on nocturnal leg cramps. JAMA Intern Med, 2017.
- Luo L et al. Interventions for leg cramps in pregnancy. Cochrane Database Syst Rev, 2020.
- NHS. Leg cramps.
- NHS. Vitamins and minerals: magnesium.





























