ScienceSep 28, 2026
Magnesium for Sleep and Exercise: What the Evidence Says
Magnesium has become the default answer to bad sleep, night cramps and slow recovery. It sits in almost every supplement "stack" people share online. The research is more specific than that reputation: magnesium matters a great deal when you are short of it, and much less when you are not.
Magnesium has become the default answer to bad sleep, night cramps and slow recovery. It sits in almost every supplement "stack" people share online. The research is more specific than that reputation: magnesium matters a great deal when you are short of it, and much less when you are not.
Why is everyone taking magnesium?
Magnesium is an essential mineral. Your body uses it in energy metabolism, muscle contraction and nerve signaling, so it is easy to see why it gets credit for everything from deeper sleep to faster recovery. This month, sleep threads on supplement forums read like recipes: melatonin, glycine, L-theanine, and magnesium on top. Nobody asks whether the magnesium is doing anything. It is simply assumed.
There is a real basis for the interest. National nutrition surveys show that usual magnesium intake often falls short of recommendations, particularly in older women (Lukaski and Nielsen, 2002). The question that matters for you is not whether magnesium is important. It is whether taking more of it helps when your diet already covers the basics. The trials answer that question differently for sleep, cramps and exercise.
Does magnesium help you sleep?
A little, possibly, and the evidence is weak. A 2021 meta-analysis found three randomized trials of oral magnesium against placebo in 151 older adults with insomnia. Magnesium shortened the time it took to fall asleep by about 17 minutes. Total sleep time rose by 16 minutes, but that change was not statistically significant. All three trials were at moderate to high risk of bias, and the authors rated the evidence low to very low quality (Mah and Pitre, 2021).
The newest review is more cautious still. Published in August 2026, it looked at twelve randomized trials of magnesium used on its own for sleep in adults. The trials used different forms, doses and durations, and their results disagreed across questionnaires, EEG, actigraphy and consumer wearables. The authors concluded that current evidence does not support magnesium as a routine treatment for insomnia. Some adults may see modest benefits on some self-reported measures, but the certainty of the evidence is low or very low (Lopresti et al., 2026).
That fits what you see in practice. Magnesium is usually taken alongside other sleep aids, and a better night after a new routine is hard to credit to any single ingredient. If you sleep badly most nights, the habits with stronger evidence behind them, such as a regular schedule and daytime exercise, come first.
Will magnesium stop muscle cramps?
This is the claim on many magnesium labels, and it has the clearest answer. A Cochrane review pooled 11 trials with 735 people. For the most common kind of cramp, the unexplained night cramps that mostly affect older adults, magnesium did not reduce cramp frequency in any meaningful way. After four weeks, the difference from placebo was 0.18 fewer cramps per week, which was not statistically significant, and the certainty of that result was moderate. Cramp intensity and duration did not change either. The authors concluded that magnesium is unlikely to give older adults clinically meaningful cramp prevention (Garrison et al., 2020).
Two details matter if you exercise. First, the review found no randomized trials at all of magnesium for exercise-associated cramps, so the claim that it prevents cramps during or after training is untested rather than disproven. Second, magnesium was not free of side effects. Mostly digestive complaints such as diarrhea occurred in 11% to 37% of people taking it, against 10% to 14% on placebo.
Does magnesium improve exercise performance or recovery?
For most people who train, no. A meta-analysis of 14 randomized trials split participants into three groups: athletes and active people, untrained healthy adults, and older adults or people with alcohol use disorder. Pooled across the trials, magnesium produced no significant gains in peak torque, muscle strength or muscle power. The benefits that did appear were in the older and alcohol-dependent groups, who are more likely to be low in magnesium. In athletes and active people, who usually have adequate magnesium status, there was no clear effect (Wang et al., 2017).
Recovery shows a smaller, more mixed signal. In a double-blind trial, 22 college-age adults took 350 mg of magnesium a day or a placebo for 10 days, then repeated a hard eccentric bench press session. The magnesium group reported muscle soreness about 1 to 2 points lower on a 6-point scale, lower perceived effort, and better perceived recovery. Repetitions to failure improved, but the difference did not reach statistical significance (Reno et al., 2022). Every positive outcome in that trial was self-reported, which makes it easier to influence by expectation.
The most relevant trial for cycling points the other way. Researchers at Colorado State gave 15 regular exercisers either magnesium chloride, 300 mg twice a day, or a placebo for nine days, then swapped them over. On magnesium, VO2max fell from 44.4 to 41.3 ml/kg/min, and mean power in a 30-second sprint fell from 439 to 415 watts. A simulated 10 km time trial did not change. Magnesium also reduced one measure of mitochondrial respiration in the thigh muscle. The authors went as far as recommending that regular exercisers without low blood magnesium should not supplement (Bomar et al., 2025). It was a small, short trial of one form of magnesium, so it does not settle the question. But it is the opposite of the boost most people expect, and it matters because VO2max is one of the strongest markers of how long and how well you live.
When does magnesium really matter?
When intake is genuinely low. In a controlled feeding study, ten healthy postmenopausal women ate a diet that provided 112 mg of magnesium a day for 93 days. Magnesium in their red blood cells and skeletal muscle dropped. During the same standardized submaximal exercise, they used more oxygen and reached higher peak heart rates than when their intake was adequate. In other words, the same work cost them more (Lukaski and Nielsen, 2002).
Long-term data on diet point the same way. A dose-response meta-analysis of 40 prospective cohort studies, with more than a million participants followed for 4 to 30 years, found that each extra 100 mg of dietary magnesium a day was associated with a 22% lower risk of heart failure, 7% lower risk of stroke, 19% lower risk of type 2 diabetes, and 10% lower all-cause mortality. There was no association with total cardiovascular disease or coronary heart disease (Fang et al., 2016). These are observational findings about food, not trials of supplements. People who eat more magnesium also tend to eat more vegetables, legumes, nuts and whole grains, and that pattern may explain part of the link.
So the useful question is where you start. If your diet is thin on those foods, if you are older, or if a clinician has found your magnesium to be low, correcting the shortfall is reasonable, and food is the first place to do it. If your intake is already adequate, the trials give little reason to expect more magnesium to improve your sleep, cramps or training, and one suggests it could cost you some aerobic capacity.
This article is not medical advice. Magnesium supplements can interact with some medicines, and people with kidney disease should not take them without talking to a clinician first.
The bottom line
Magnesium is essential, and running low on it makes exercise harder work. Correcting a real shortfall is worthwhile. Beyond that, the evidence is modest: a possible small effect on how quickly older adults fall asleep, no meaningful effect on night cramps, no strength or power gains in people who already train, and one trial where extra magnesium lowered VO2max. Treat magnesium as something to get right, mostly through food, not as a performance tool. The thing that reliably raises VO2max is still the training itself. Short, hard efforts such as Reduced Exertion High-Intensity Interval Training (REHIT) are one of the most time-efficient ways to do it.
Keep reading
More in Science
Does Creatine Improve Your Cardio Fitness? What the Evidence Says
Creatine builds muscle and may help cognition, but the endurance evidence says otherwise.
Sauna and Cardiovascular Health: What the Evidence Shows
Sauna use tracks with lower heart risk in large cohorts, but it is not a substitute for training.
What Is a Good VO₂max? Reference Values and Why Every Increment Counts
Above the median for your age and sex, and every increment above that still counts.Make every second count.
Join our 35,000+ rider community.
