Does Magnesium Stop Muscle Cramps? What the Evidence Shows
Share
A cramp grips you at 2am or mid-run, the muscle locks solid, and the first advice you hear is to take magnesium. It is the default fix, sold in tubs and stirred into bedtime drinks. The idea feels obvious, because magnesium helps muscles relax. The evidence tells a more careful story.
Most cramps in healthy people do not come from low magnesium, and supplements rarely stop them. That does not make magnesium useless. It matters a great deal for people who run short on it. Here is what the trials show, what actually triggers most cramps, and when magnesium earns its place.
Why magnesium gets the blame
Magnesium helps nerve and muscle cells manage the flow of calcium, and calcium is part of how a muscle contracts. On paper, more magnesium should mean fewer unwanted contractions. That logic drove decades of advice, and it holds up in people who are truly short on magnesium. The problem is that most people who cramp are not short on it, so topping up a store that is already full changes little.
The other reason is timing. Cramps come and go on their own, so it is easy to credit a supplement for an improvement that was on its way regardless. Controlled trials exist to strip out that effect, and this is where the popular story starts to wobble.
What the trials found
A 2020 Cochrane review by Garrison and colleagues pooled 11 randomised trials covering 735 people. For older adults with common night cramps, the reviewers found that magnesium was unlikely to reduce cramps in a way people would notice, compared with a placebo. In plain terms, the cramps kept coming at about the same rate whether people took magnesium or a dummy pill.
Two gaps are worth naming. For pregnancy-related cramps the trial results conflicted, so the picture there is unsettled. And for cramps during or after exercise, the reviewers found no good randomised trials at all. So the honest answer for a gym-goer or runner is that magnesium has not been shown to prevent training cramps, not that it has been tested and passed. The direction of the evidence, for now, points away from magnesium as a general cramp cure.
This is exactly the kind of question a placebo test is built for. Cramps rise and fall on their own, and people tend to start a supplement when things are at their worst. By chance alone, the next week often looks better. A randomised trial gives one group magnesium and another an identical dummy pill, then compares the two. When both groups improve by a similar amount, the honest read is that the improvement came from time and chance, not the mineral. That is close to what the pooled trials showed for common cramps.
What really causes most cramps
Current sports medicine reviews point to nerve fatigue rather than a mineral shortage as the most likely driver of exercise cramps. When a muscle works hard while shortened and tired, the nerves that control it start firing out of rhythm, and the muscle clamps down. This fits what athletes notice in the real world. Cramps tend to strike late in a hard session, in the muscles doing the most work, and often in people pushing past their usual training load.
Dehydration and lost electrolytes get blamed too, and they may play a part in hot conditions, but the evidence there is mixed rather than settled. The pattern that holds up best is simple. A 2022 review of exercise cramps found that they cluster in athletes going faster or longer than their training prepared them for, which points to overload more than to a mineral gap. That is good news, because fatigue is something training can fix, while a supplement aimed at the wrong cause cannot.
When magnesium does matter
None of this means magnesium does not count. It is an essential mineral involved in hundreds of reactions, from energy production to muscle and nerve function. Many adults fall short of the recommended intake, which sits at 400 to 420 milligrams a day for men and 310 to 320 for women. Certain medicines, heavy alcohol use, and gut conditions raise the risk of running low. If you are genuinely deficient, correcting that supports normal muscle and nerve function, and cramps that stem from the shortfall may ease.
The first move is food, not a tub of powder. Magnesium is spread across seeds, nuts, beans, whole grains, and leafy greens, and your body absorbs about 30 to 40 percent of what you eat. A handful of pumpkin seeds or a bowl of spinach and beans goes a long way toward the daily target.
If you do choose a supplement, keep the dose sensible. Health authorities set an upper limit of 350 milligrams a day from supplements for adults, separate from what you get in food, because larger amounts often bring loose stools and stomach upset. Forms such as magnesium citrate and glycinate are absorbed reasonably well, while cheap magnesium oxide is more likely to loosen the bowels than to raise your levels. Signs of a real shortfall are worth knowing too. Persistent tiredness, poor appetite, and muscle twitches can point to low magnesium, though they overlap with many other causes, so it is worth asking a doctor to check rather than guessing.
How to actually reduce cramps
- Build training load slowly. Sudden jumps in distance or intensity are a common trigger.
- Stretch the cramp-prone muscle during and after hard sessions. Gentle calf and hamstring stretches help many people.
- Condition the muscle for the work you ask of it, so it fatigues later.
- Drink to thirst and replace fluids in the heat. This is sensible even where the cramp evidence is mixed.
- Eat magnesium-rich foods across the week to cover the basics.
Common mistakes
- Treating magnesium as a cure. For most cramps the trials show little effect, so it should not be your only plan.
- Taking high doses for a fast fix. Large amounts from supplements often cause loose stools and do not target the real cause.
- Ignoring training load. The cheapest fix, a slower build-up, gets skipped most often.
- Skipping food sources. Seeds, beans, and greens cover magnesium for a fraction of the cost of pills.
Frequently asked questions
The bottom line
Magnesium is an essential mineral worth getting enough of, mostly from food. As a cramp cure, the trials do not support the reputation. For common cramps the benefit is small at best, and for exercise cramps it has not been tested well. If cramps trouble you, work on training load, conditioning, and simple stretching first. Save the supplement for a real shortfall, and reach for seeds, beans, and greens before the tub.
Sources
- Garrison SR, et al. (2020). Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews. pubmed.ncbi.nlm.nih.gov/32956536
- Review (2025). Magnesium: health effects, deficiency burden, and public health directions. pmc.ncbi.nlm.nih.gov/articles/PMC12655508
- Evidence-based review (2022). Pathophysiology, treatment, and prevention of exercise-associated muscle cramps. pmc.ncbi.nlm.nih.gov/articles/PMC8775277
- US National Institutes of Health, Office of Dietary Supplements. Magnesium fact sheet for health professionals (recommended intakes, absorption, and food sources).