Magnesium has become the default recommendation for poor sleep – but despite the science being well supported, clinical evidence is surprisingly limited.
Magnesium is linked to improved nerve and muscle function as well as regulation of the nervous system. Low magnesium intake is also common, so it stands to reason that supplementing could benefit sleep.
But the evidence from studies is less clear-cut. Most magnesium-and-sleep claims trace back to three studies of 151 people, all aged 55 or over, all with diagnosed insomnia. The meta-analysis found evidence of falling asleep faster, but very few trials have tested the question at all.
In this guide, we explain what the evidence supports and how magnesium affected the sleep of Ultrahuman users.
Key takeaways
- The meta-analysis behind most magnesium-and-sleep claims pools three trials in 151 adults over 55 with insomnia. People fell asleep about 17 minutes faster than on placebo – but the authors rate their own evidence as low to very low quality.
- Those trials used magnesium oxide and citrate, in two to three doses a day. Glycinate, the form usually recommended for sleep, is not well studied.
- Across 2,190 nights logged by 343 Ultrahuman members, people slept about 12 minutes longer on the nights they took magnesium.
- However, users also went to bed earlier on those nights, and when the results are controlled for bed timing, there seems to be little difference.
The studies behind magnesium and sleep
The primary evidence is a 2021 systematic review and meta-analysis of oral magnesium for insomnia.
It pooled three randomized controlled trials covering 151 adults aged 55 and over, all with insomnia, across three countries. Daily intake ran from 320 to 729 mg of elemental magnesium, taken two to three times a day, for periods between 20 days and eight weeks. People fell asleep about 17 minutes faster on magnesium than on placebo. They also slept about 16 minutes longer, though not by a wide enough margin to rule out chance.
All three trials carried a moderate-to-high risk of bias, and the outcomes were supported by low to very low quality evidence. The review’s own conclusion is that the literature is “substandard” for physicians making recommendations about magnesium for insomnia. The three trials were 100, 46 and 12 people, and only the 12-person trial measured sleep with EEG.
All 151 participants were over 55, and all had diagnosed insomnia. That base supports a cautious statement about older adults with insomnia. It does not support the claim that magnesium improves sleep in a healthy 34-year-old who sleeps six and a half hours because of their schedule.
One trial has since tested the wider group. A placebo-controlled trial of 155 adults aged 18 to 65 with poor sleep gave 250 mg of magnesium as bisglycinate every day. Insomnia scores improved more on magnesium than on placebo after four weeks, but the margin was small, and only just wide enough to count as a real difference. The authors call the benefit modest, and point out that they measured sleep with questionnaires and not with instruments.
Magnesium is cheap and safe at ordinary doses, so trying it is reasonable. The evidence base does not let you assume it will work, and it says nothing about how much it will do for you specifically.
What Ultrahuman member data shows

Ultrahuman ran the question against member data: 2,190 magnesium-logged nights across 343 members , each compared with the same member’s own nights.
The initial results looked decisive. On nights magnesium was logged, sleep began 18.94 minutes earlier and the night ran 12.22 minutes longer.
There is a problem with that comparison. The Ring records when sleep started, which means there is no way to separate magnesium bringing sleep on sooner from a magnesium tag marking a night the member was already turning in early. Magnesium is often taken as part of a deliberate wind-down, and those are the nights people get into bed earlier.
A secondary analysis compared each magnesium night only against that member’s own nights that began at the same clock time. Magnesium nights came out less than a minute longer than ordinary ones, which is too small a gap to mean anything.
Among the third of members whose baseline sleep was poorest, a magnesium night held its length but changed shape.
| Measure | Change on a magnesium night | Range |
|---|---|---|
| Deep sleep | +2.02 minutes | 0.95 to 3.09 |
| REM sleep | +2.85 minutes | 0.91 to 4.79 |
| Light sleep | −4.39 minutes | 0.12 to 8.67 |
| Time awake | −3.42 minutes | 1.23 to 5.61 |
| Sleep efficiency | +0.76 percentage points | 0.36 to 1.17 |
343 members, against their own nights beginning at the same clock time.
The log records that a dose was taken, not how much or in what form, and untagged nights may be magnesium nights too. Members who log what they take are attentive, and attentive members may run different nights for reasons that have nothing to do with magnesium. The split by baseline sleep is drawn on the Ring’s own sleep score, not a clinical threshold. This is an observational analysis, so it describes associations and not causes.
A few minutes is the realistic scale of the effect either way, and if you already sleep well, this is not where your gains are.
Why deficiency is the part that matters
The clearest reason magnesium might help your sleep is that you do not have enough of it, and the trial evidence points that way more strongly than it points at magnesium in general.
Start with the design of the trial that produced the cleanest result. Abbasi and colleagues gave 500 mg of elemental magnesium daily to 46 adults aged 60 to 75 for eight weeks, and reported that they fell asleep faster, spent more of the night asleep, and scored better on an insomnia questionnaire. Their exclusion criteria ruled out anyone whose dietary magnesium intake was above 75 percent of the recommended amount, and anyone whose serum magnesium was above 0.95 mmol/L. The trial recruited people who were already short of magnesium.
The 2025 bisglycinate trial found the same thing from the other direction. Its exploratory analysis showed larger improvements among participants with lower baseline dietary magnesium intake, which the authors read as a possible group of high responders.
Ultrahuman’s member data runs in a similar direction, though on a different variable. The changes in the table above are largest among members whose baseline sleep is poorest, which sorts people by sleep quality and not by magnesium status, and poor sleep and low magnesium are not the same thing. The two findings measure different things and neither establishes cause. Both point away from magnesium as a general sleep aid, and toward it as a correction for people who start low.
Establishing whether you are short is the hard part. Magnesium is the hardest of the common minerals to read from a blood test. Most of the body’s magnesium sits in bone and inside cells, and only a small fraction circulates, so a serum result can land mid-range while your stores are low . In Abbasi’s trial, sleep improved while the magnesium level in participants’ blood barely moved.
A normal serum magnesium therefore does not rule out a shortfall. Dietary intake is often the more useful signal. Magnesium comes from leafy greens, legumes, nuts, seeds and whole grains, and intakes below the recommended amount are common in diets built around refined foods.
Which form to take
No trial has compared magnesium forms for sleep, so the confident rankings you will find elsewhere are not built on sleep data.
The three studies in the meta-analysis used magnesium oxide and magnesium citrate. Glycinate, the form recommended almost universally for sleep, does not appear in the evidence base that reputation rests on. Oxide, the form usually dismissed as poorly absorbed, does.
What the forms genuinely differ on is absorption and how well the gut tolerates them, which is worth knowing when you are choosing one.
- Magnesium glycinate. Well absorbed and gentle on the gut, which is why it dominates sleep recommendations. A good default if you are taking it in the evening and do not want digestive effects.
- Magnesium citrate. Well absorbed, and noticeably laxative at higher doses. That property is why it is also sold for constipation. It appears in the insomnia trials.
- Magnesium oxide. Cheap, widely sold, and poorly absorbed compared with the others. It also appears in the insomnia trials, including the 500 mg daily dose in the Abbasi study.
- Magnesium L-threonate. Marketed on the basis of crossing into the brain more readily, and priced accordingly. There is a 21-day placebo-controlled trial in 80 adults reporting improvements in sleep and daytime function, measured with questionnaires and a consumer smart ring. Three of its six authors are employed by the ingredient supplier, which also holds the paper’s copyright, and an erratum was published in 2025.
If the goal is correcting intake without gut effects, glycinate is a sensible starting point. That is a tolerability judgment, and it is not a claim that glycinate works better for sleep.
When to take it
The trials that found an effect used two to three doses a day. The familiar advice to take magnesium an hour before bed does not reflect how those doses were given, and no trial has tested the single-evening-dose approach that most people follow.
Doses ran from 320 to 729 mg of elemental magnesium daily, at or above the recommended dietary allowance for adults. Higher doses bring a higher chance of digestive effects, and the form you choose changes how likely that is.
How to test whether it works for you
The trials cannot tell you whether magnesium will help you specifically. A month of your own data can.
The member analysis also shows how to run that month. The confound that ruined its raw comparison is the one you are most likely to reproduce at home.
- Keep your bedtime steady. This is the one that matters. In the member data, magnesium nights ran 12 minutes longer, and every one of those minutes came from people going to bed earlier. If you take magnesium as part of a wind-down and turn in earlier on those nights, you will measure your bedtime and call it magnesium.
- Establish a baseline first. Two to three weeks of your normal sleep data, before changing anything, so you know what your ordinary variation looks like.
- Change one thing. Magnesium only. Not magnesium plus an earlier bedtime plus cutting the evening drink, because then you learn nothing about magnesium.
- Give it three to four weeks. The trials ran from 20 days to eight weeks. A few nights tells you nothing.
- Watch the shape of the night, not its length. Light sleep and awake minutes are where the matched comparison found movement. Total sleep time is where it found none.
- Compare weeks, not nights. A week of magnesium nights against a week without. You are looking for a shift in your typical night, not a good Tuesday.
Expect a difference of a few minutes. If three or four weeks at a steady bedtime produce no visible change in your own trend, that is a real result, and it is more informative for you than any population average.
Frequently asked questions
Does magnesium help you sleep?
There is some trial evidence that it shortens the time taken to fall asleep, by about 17 minutes in a pooled analysis of three small studies in older adults with insomnia. The authors of that analysis rate the underlying evidence as low to very low quality. A 2025 trial in 155 adults with ordinary poor sleep found a small improvement in insomnia scores.
Which magnesium is best for sleep?
No trial has compared forms for sleep. Glycinate is usually recommended because it is well absorbed and gentle on the gut, and neither of those reasons comes from sleep data. The trials behind the meta-analysis used magnesium oxide and citrate.
When should I take magnesium for sleep?
The trials that found an effect used two to three divided doses across the day. The single bedtime dose that most people take has not been tested against placebo for sleep.
Can I tell if I am deficient from a blood test?
Not reliably. Most of your magnesium is stored in bone and inside cells rather than circulating in blood, so a normal serum result does not rule out low stores. Dietary intake is often the more useful signal.
References
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complementary Medicine and Therapies 2021;21:125. PMID 33865376 . Three RCTs, 151 adults aged 55+ with insomnia. A correction was published in 2024 (PMID 39702257 ).
- 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–2040. PMID 40918053
- Abbasi B, Kimiagar M, Sadeghniiat K, et al. The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trial. Journal of Research in Medical Sciences 2012;17(12):1161–1169. PMID 23853635
- Hausenblas HA, Lynch T, Hooper S, et al. 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. PMID 39252819
- Costello RB, Elin RJ, Rosanoff A, et al. Perspective: the case for an evidence-based reference interval for serum magnesium. Advances in Nutrition 2016. PMID 28140318
- Does magnesium actually improve your sleep? Ultrahuman Science, Ask Our Data . 2,190 magnesium-logged nights across 343 Ultrahuman Ring members.




