If you get leg cramps at night and are thinking about buying magnesium, the short answer is that the evidence does not back it. The 2020 Cochrane review that pooled every available clinical trial concluded that magnesium supplements are unlikely to provide clinically meaningful prevention of cramps in older adults, at any of the doses studied, with the certainty of the evidence rated as moderate.
That does not make magnesium a useless mineral, nor does it mean your cramps cannot be helped. It means that if the problem is not a magnesium deficiency, the supplement will not fix it.
Why everyone links magnesium and cramps
The idea has a real physiological basis. Magnesium is the most abundant divalent cation inside the body’s cells and acts as a cofactor in many enzyme systems, including energy metabolism, nerve transmission and muscle contraction. The summary of product characteristics for the magnesium lactate tablets authorised in Spain describes it in exactly those terms.
On top of that comes the legal framework for labelling. Regulation (EU) 432/2012 authorises the claim “magnesium contributes to normal muscle function” on any food or supplement that is at least a source of magnesium. It is a correct and perfectly legal sentence, but it says something much more modest than it seems: that the mineral takes part in normal muscle function, not that supplementing it relieves cramps in someone who already eats enough magnesium.
And there is a third factor: when a magnesium deficiency is real and long lasting, muscle symptoms do appear. The signs of a significant shortfall include muscle cramps, together with loss of appetite, nausea, vomiting, fatigue, weakness, tingling and heart rhythm disturbances. The logical leap that fails is the reverse one: that having cramps means you are deficient.
What the trials actually found
The Cochrane review identified 11 randomised trials with 735 participants in total, spread across three very different settings.
| Group studied | No. of trials | What was observed |
|---|---|---|
| Older adults with idiopathic cramps (mean age 61.6 to 69.3) | 5 | No significant difference versus placebo in the frequency, intensity or duration of cramps at four weeks |
| Pregnant women with cramps at rest | 5 | Conflicting results and major design limitations; they could not be combined |
| People with liver cirrhosis | 1 | Study too small to draw conclusions |
| Exercise associated cramps | 0 | No randomised trial was found |
That last row is worth reading twice: the most popular use of magnesium among athletes, avoiding cramps at the end of a long race, is precisely the one with no randomised trial either supporting or ruling it out.
On safety, serious adverse effects were rare and no different from placebo, but mild adverse effects were common: mainly diarrhoea and nausea, which affected between 11% and 37% of participants taking magnesium, depending on the trial.
When magnesium does make sense
The supplement is meant to correct a shortfall, not to treat a symptom. In Spain, the magnesium lactate medicine is indicated for the prevention of deficiency states caused by diets low in vegetables, whole grains and pulses that show up as muscle weakness and cramps, in adults and children over 12. The average dose is 146 to 292 mg of magnesium a day split after meals, and its summary of product characteristics expressly warns that continuous use is not recommended and that if symptoms last more than seven days the situation should be reassessed.
People more prone to deficiency include those with digestive diseases such as Crohn’s disease or coeliac disease, people with type 2 diabetes, people who drink alcohol chronically and older people.
Recommended daily intakes are around 400 to 420 mg for adult men and 310 to 320 mg for adult women, counting all food. On European labels you will see another figure, 375 mg, which is the nutrient reference value set in Regulation (EU) 1169/2011 and is only used to calculate percentages on the label.
Pulses, nuts, seeds, whole grains and green leafy vegetables such as spinach are the usual sources, along with milk and yoghurt. If your diet includes these groups regularly, the chance of a real deficiency is low.
The ceiling you should not exceed
The tolerable upper intake level for magnesium from supplements and medicines is 350 mg a day in adults and in young people aged 9 to 18. It is striking that it is lower than the recommended intake, but it is not a contradiction: the recommendation includes magnesium from food and the limit does not. Magnesium naturally present in food and drinks does not need to be limited, because healthy kidneys remove the excess in urine.
Going over that limit with tablets typically causes diarrhoea, nausea and abdominal pain. Extremely high intakes can cause irregular heartbeat and cardiac arrest.
There are situations in which oral magnesium is contraindicated or calls for caution: severe kidney failure, because of the risk of hypermagnesaemia; heart block, ischaemic heart disease or arrhythmias; myasthenia gravis; chronic diarrhoea, ulcerative colitis or an ileostomy. In older people with reduced kidney function the dose must be adjusted.
Interactions worth keeping in mind
If you take other medicines, magnesium can interfere with their absorption. The recommended gaps are simple to apply:
- Tetracyclines and quinolones (antibiotics): take them at least 2 hours apart, because magnesium binds to them and makes them less effective.
- Bisphosphonates (osteoporosis): also at least 2 hours apart.
- Diuretics: some increase magnesium loss in urine. Furosemide, for example, increases the excretion of potassium, calcium and magnesium, and cramps themselves are among the signs of the electrolyte disturbances it can cause.
- Proton pump inhibitors for reflux or ulcers: used long term they can lower blood magnesium levels.
- Very high dose zinc supplements: they interfere with the absorption and regulation of magnesium.
If you are taking any of these, ask before adding magnesium on your own.
So what should you do about cramps?
Magnesium not being the answer does not leave the problem without options. During a cramp, stretching the affected muscle is usually what ends the episode: with a calf cramp, pull the tip of your foot towards you with your leg straight. Afterwards, walking a little and applying local heat to the sore muscle help.
For prevention, it is worth reviewing the whole picture rather than looking for a pill: hydration throughout the day, how quickly you build up training if cramps come with exercise, footwear and gentle stretching before bed. And, above all, go through the list of medicines you take, because a new cramp that appears weeks after starting a treatment deserves a conversation with whoever prescribed it before any supplement.
When to see a doctor
Get a medical assessment, instead of trying a supplement on your own, if:
- The cramps are very frequent, very intense or regularly stop you sleeping.
- They started or got worse shortly after starting a new medicine, especially diuretics.
- They come with persistent muscle weakness, tingling, numbness or loss of strength.
- You notice swelling, redness, warmth or pain in one leg only, especially in the calf.
- They appear together with palpitations or a feeling of irregular heartbeat.
- You have kidney, heart or liver disease, diabetes or myasthenia gravis, as these determine whether you can take magnesium and at what dose.
- You are pregnant and the cramps are disabling: the evidence in pregnancy is conflicting and the decision has to be made case by case.
- You have taken a magnesium supplement for more than a week without improvement, or it has given you persistent diarrhoea.
This article is for information only and does not replace an individual assessment by a doctor or pharmacist. Sources: Cochrane: Magnesium for skeletal muscle cramps (2020), NIH Office of Dietary Supplements: Magnesium, AEMPS/CIMA: Summary of product characteristics, Magnesioboi 48.62 mg tablets, AEMPS/CIMA: Summary of product characteristics, Furosemida Kern Pharma 40 mg tablets, Regulation (EU) 432/2012, list of permitted health claims, Regulation (EU) 1169/2011 on the provision of food information to consumers.
