Magnesium for Sleep: What Trials Show About Deep Sleep
Magnesium has become the default answer to the question of how to sleep better. Powders, gummies, bedtime drinks. If you wear an Apple Watch, Oura ring or Whoop, you've probably wondered whether a nightly dose would push your deep sleep number up.
The trials give a modest answer. Magnesium may help some people a little, mostly on how they rate their own sleep. The evidence on deep sleep in particular is thin. Here's what the studies actually measured, and what they didn't.
Why magnesium for sleep is such a popular idea
Magnesium is an essential mineral. According to the NHS, adults aged 19 to 64 need about 300mg a day if they're men and about 270mg if they're women, and most people should be able to get it from a varied diet. Researchers have proposed several ways magnesium might affect the nervous system and sleep. But a plausible mechanism isn't a measured benefit. So let's look at the trials.
Three small trials in older adults
The most cited summary is a 2021 systematic review and meta-analysis by Mah and Pitre in BMC Complementary Medicine and Therapies. They found just three randomized trials comparing oral magnesium with a placebo in older adults, with 151 participants in total, from Iran, Germany and the USA.
Pooling two of those trials, people taking magnesium fell asleep about 17 minutes faster than people on placebo. Total sleep time went up by about 16 minutes, but that difference wasn't statistically significant. The authors rated the evidence low to very low quality, judged every trial to be at moderate to high risk of bias, and concluded the literature was substandard for doctors to make well informed recommendations. They also called the clinical significance of the 17 minute improvement debatable.
The outcomes were mostly questionnaires and sleep logs. In one trial the insomnia scores improved more with magnesium. In another, sleep quality scores improved equally in both groups.
The one trial that looked at slow wave sleep
Deep sleep is what sleep scientists call slow wave sleep, or N3. Only one of the three trials in that review measured it directly. That was a German crossover study from 2002 with 12 healthy older adults, who were recorded with sleep EEG after 20 days on magnesium oxide or placebo. The review reports that slow wave sleep improved on magnesium. It also rated that finding very low certainty, and noted that every participant in the study reported soft stools.
That's the whole case from lab sleep recordings: twelve people, one study, over two decades old.
A bigger, more recent trial: magnesium bisglycinate
A 2025 trial by Schuster and colleagues in Nature and Science of Sleep is the largest so far. It randomized 155 German adults aged 18 to 65 who said they'd slept poorly for more than four weeks. They took magnesium bisglycinate or a placebo before bed for four weeks.
On the Insomnia Severity Index, the magnesium group improved by 3.9 points against 2.3 points on placebo (p = 0.049). The authors put the effect size at a Cohen's d of 0.2, which is small. About 19% of the magnesium group had a clinically meaningful drop of six points or more, compared with 11% on placebo. Several secondary measures, including daytime sleepiness, fatigue and stress, didn't differ between groups.
Two details matter here. First, sleep was entirely self-reported, with no actigraphy and no polysomnography, so the trial tells us nothing about deep sleep. Second, an exploratory analysis hinted that people who reported eating less magnesium improved more. That diet measure was a single question that hadn't been validated, and no one's blood magnesium was tested, so treat it as a lead, not a finding.
The wearable trial: magnesium L-threonate and the Oura ring
This is the study most relevant to people who track their sleep. Hausenblas and colleagues, writing in Sleep Medicine: X in 2024, randomized 80 adults aged 35 to 55 with self-reported sleep problems to magnesium L-threonate or placebo for 21 days. Everyone wore an Oura ring.
The headline result was that Oura's deep sleep score improved more on magnesium. But deep sleep measured in minutes didn't differ significantly between groups (p = 0.070). The magnesium group went from about 96 to 98 minutes. The placebo group dropped from about 100 to 94 minutes. Most of the gap came from placebo falling, not magnesium rising. Insomnia Severity Index scores, total sleep and REM minutes showed no significant group difference either.
The study was funded by AIDP, three of its six authors are affiliated with that company, and the supplement came from its manufacturer. Participants were about 80% women. The authors themselves point out the strong placebo response on subjective measures and the short duration.
How much should you trust your wearable's deep sleep figure?
If you plan to judge magnesium by your own deep sleep numbers, it helps to know what those numbers are. In a 2024 study in Sensors, Robbins and colleagues compared an Oura Ring Gen3, Fitbit Sense 2 and Apple Watch Series 8 against polysomnography in 35 healthy adults over one night in a lab. All three devices were good at telling sleep from wake. Stage detection was weaker. The Apple Watch underestimated deep sleep by an average of 43 minutes, and the Fitbit by 15 minutes. Oura's stage estimates didn't differ significantly from polysomnography. The study had Oura funding, and one author sits on Oura's medical advisory board.
So your tracker is a reasonable tool for spotting trends in your own nights, as long as you use the same device throughout. It isn't a lab measurement. A shift of a few minutes in deep sleep may just be noise.
What the research can't tell you
- Whether you'll benefit. No trial has shown who responds. The idea that people with low intake respond more is untested.
- Anything long term. The trials ran from three to eight weeks.
- Which form is best. Oxide, citrate, bisglycinate and L-threonate were each tested in different people, with different measures, and never compared head to head.
- How much is placebo. In both recent trials the placebo groups improved a lot, especially in the first week.
- The deep sleep question. No trial has studied deep sleep in a decent-sized group using polysomnography. The evidence is one 12 person EEG study and one wearable trial where deep sleep minutes didn't significantly differ.
- Whether results apply to diagnosed insomnia. Most participants reported poor sleep but hadn't been diagnosed with a sleep disorder.
Testing it on your own nights
If you're curious, the useful question isn't whether magnesium works on average. It's whether it changes anything for you. Before starting any supplement, talk to a pharmacist or doctor, especially if you take regular medication or have kidney problems. The NHS notes that large amounts taken at once can cause diarrhoea.
Then keep everything else as steady as you can: bedtime, caffeine, alcohol, exercise timing, room temperature. Change one thing at a time. Somnia Deep Sleep, an iPhone app now in beta, is built for this. It runs a 14-night experiment on the stages your Apple Watch, Oura or Whoop already writes to Apple Health, compares them with your own 30-night baseline, and labels the result Strong signal, Likely or Too early to tell. One caveat applies to any self-test: you know you're taking magnesium, so expectations can shape how you feel, even if they can't shift your tracker's numbers as easily.
When to see a doctor instead
A supplement isn't a fix for a sleep disorder. See a doctor if you snore loudly and gasp or choke in your sleep, if insomnia has lasted more than three months, or if daytime sleepiness affects your driving. These need proper assessment, not a supplement trial.
Sources
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complementary Medicine and Therapies. 2021;21:125. PMC8053283
- Schuster J, Cycelskij I, Lopresti A, Hahn A. Magnesium Bisglycinate Supplementation in Healthy Adults Reporting Poor Sleep: A Randomized, Placebo-Controlled Trial. Nature and Science of Sleep. 2025;17:2027 to 2040. Dove Press
- Hausenblas HA, Lynch T, Hooper S, Shrestha A, Rosendale D, Gu J. Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: A randomized controlled trial. Sleep Medicine: X. 2024;8:100121. PMC11381753
- Robbins R, Weaver MD, Sullivan JP, et al. Accuracy of Three Commercial Wearable Devices for Sleep Tracking in Healthy Adults. Sensors. 2024;24(20):6532. PubMed 39460013
- NHS. Vitamins and minerals: Others (magnesium). nhs.uk
Want to see what magnesium, or any other habit, actually does to your own deep sleep? Join the Somnia beta and run the experiment on your own nights.
This article is general information, not medical advice.
Test it on your own nights
Somnia runs 14-night habit experiments on the deep-sleep data your Apple Watch, Oura or Whoop already records, then tells you how confident the result is.
Join the beta

