Why do you still get muscle cramps even though you're taking magnesium?
Research shows that magnesium does little for idiopathic muscle cramps, which fits with what we know about how cramps develop: the problem lies in how nerves control muscles, not in a magnesium deficiency.
Magnesium probably does not help with idiopathic nocturnal cramps, the cramps that come on for no clear reason. Many studies show small, non-meaningful differences compared to a dummy pill. The certainty of this evidence is high. We therefore do not recommend magnesium for this purpose.
The explanation for why magnesium does so little lies in the cause of cramps itself. Cramps are increasingly seen as a problem in how the nervous system controls muscles: the signals that start a muscle contraction are not being switched off properly. Magnesium does not fix that control problem. The older idea that cramps are caused by fluid loss or a shortage of minerals such as magnesium is based on anecdotal evidence. Many studies following athletes over time do not support that mineral-shortage idea.
Even if you take enough magnesium, your body may not absorb it well. A diet high in sodium and low in vegetables and fruit reduces how much magnesium your gut can take up. A supplement may therefore deliver less than you expect.
An added downside is that magnesium can cause digestive complaints. In studies, 11% to 37% of people using it experienced diarrhoea or other stomach problems, compared with 10% to 14% in the group taking a dummy pill. That is a real risk for something that does not work against cramps anyway.
For pregnancy-related cramps the results are mixed: some studies find no effect, others do. All pregnancy studies carry a high risk of unreliable results. If you have cramps during pregnancy, discuss this with your doctor.
This answer draws on many combined studies of controlled trials, including two Cochrane reviews. The certainty of the evidence for idiopathic cramps in older adults is high: the researchers themselves described the certainty as high for the primary outcome. For pregnancy-related cramps, the researchers rated all five studies as carrying a high risk of unreliable results, and the certainty of the evidence ranged from low to moderate. The sections on the nerve-control cause of cramps are based on reviews that summarise existing research without controlled intervention data, and therefore cannot establish cause and effect.
Can you take too much magnesium?
Yes, too much magnesium can be dangerous, although serious toxicity through ordinary supplements is rare in people with healthy kidneys. With kidney problems or the use of intravenous magnesium, medical supervision is genuinely necessary.
Does a magnesium deficiency make you more sensitive to stress?
A low magnesium level is associated with greater sensitivity to stress. In some people with mild anxiety, supplements help, though results are inconsistent.
Why does magnesium work for some people but not others?
Whether magnesium works for you depends strongly on which form you take and how high your dose is. Preferably choose an organic form such as citrate rather than oxide, and give it at least two months.
Which form of magnesium is best to take?
Magnesium citrate has the strongest evidence for absorption into the body. Magnesium oxide, the cheapest option, demonstrably performs the worst and is best avoided.
Does magnesium help with poor sleep and muscle cramps, and which form should you take?
Magnesium has no demonstrable benefit for ordinary nighttime leg cramps, but for sleep problems there are cautious indications that 250 mg of magnesium bisglycinate per day may help somewhat, especially if you get little magnesium through your diet.
How much magnesium do you need per day?
Research suggests that your body reaches balance at around 165 mg per day, but official recommendations are higher and there is considerable individual variation. In any case, make sure you get enough magnesium-rich foods, as a large part of the population falls short.