Magnesium has become the internet's favourite sleep fix. "Sleepy girl mocktails," magnesium glycinate capsules, magnesium sprays, magnesium-infused everything. Search interest has climbed for years and social platforms have only sped it up.
Some of that attention is deserved. Magnesium does have a real, researched relationship with sleep. But the way it's often talked about online, as an instant knockout pill, isn't quite what the evidence shows. Here's the actual picture.
Magnesium is an essential mineral involved in hundreds of processes in the body, including muscle and nerve function, blood sugar regulation, and bone health. It also plays a role in how the nervous system winds down: it acts as a cofactor for GABA, the brain's main calming signal, and it helps regulate NMDA receptors, which affect how easily nerve cells fire. That's the physiological basis for why magnesium is studied for sleep and relaxation in the first place, not just marketing language (National Institutes of Health, Office of Dietary Supplements, 2024). Most adults aren't getting quite enough of it. The UK and US both set adult targets in the 300-420mg per day range depending on sex and age, and a meaningful share of people fall short of that from diet alone, particularly if they eat few leafy greens, legumes, nuts, or whole grains.
So what does the research actually find? A 2021 systematic review and meta-analysis pooling three randomised controlled trials in older adults found that magnesium supplementation reduced time to fall asleep by an average of about 17 minutes compared with placebo, a statistically significant result. Total sleep time also improved slightly, though that finding wasn't statistically significant (Mah and Pitre, 2021). Worth noting: the authors were candid that the evidence quality was low. Small sample sizes, short trial durations, and inconsistent dosing across studies mean this is a promising signal, not a settled fact.
A more recent trial looked at sleep quality itself rather than just how fast people fall asleep. In 2024, a randomised, double-blind, placebo-controlled trial gave 80 adults aged 35 to 55 with self-reported sleep problems either 1g of magnesium L-threonate or a placebo for 21 days. The supplement group showed improvements in deep sleep and REM sleep, measured with wearable sleep trackers, along with better self-reported mood, energy, and daytime alertness. The placebo group's sleep scores stayed flat or declined slightly over the same period (Hausenblas et al., 2024).
Here's the honest caveat that tends to get left out of the TikTok version of this story. Most of the strongest evidence exists for people who are mildly magnesium-deficient, or older adults with existing sleep complaints. If your diet already covers your magnesium needs, the research doesn't show a strong case that adding more will meaningfully improve your sleep on top of that. Magnesium looks like it helps correct a deficit, not like it works as a sedative regardless of your starting point.
If you're not sure whether you're getting enough, food sources are the sensible place to start: leafy greens, nuts, seeds, legumes, and whole grains. If you're considering a supplement, that's worth a conversation with a doctor or pharmacist, particularly around dose. The NIH sets the upper limit for supplemental magnesium at 350mg per day for adults, separate from food sources, and higher doses are linked to digestive side effects like diarrhoea and cramping.
The bigger point, and one we'd make about almost any single supplement, is that magnesium isn't a substitute for the fundamentals. Sleep onset and quality are shaped far more by light exposure, consistent timing, and what's happening in the 90 minutes before bed than by any one ingredient. The research on magnesium is genuinely encouraging, but it works best as one part of a wind-down routine, not a replacement for one.
References
Mah, J. and Pitre, T. (2021) 'Oral magnesium supplementation for insomnia in older adults: A systematic review & meta-analysis', BMC Complementary Medicine and Therapies, 21, p.125. Available at: https://pubmed.ncbi.nlm.nih.gov/33865376/
Hausenblas, H. et al. (2024) 'Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: A randomized controlled trial', Sleep Medicine: X, 8, p.100121. Available at: https://pubmed.ncbi.nlm.nih.gov/39252819/
National Institutes of Health, Office of Dietary Supplements (2024) Magnesium: Fact Sheet for Consumers. Available at: https://ods.od.nih.gov/factsheets/Magnesium-Consumer/