Magnesium for sleep: what the trials found

Magnesium is the default sleep supplement. It’s the base of the sleepy girl mocktail, a fixture of every sleepmaxxing routine, and one of the most-recommended things on the internet. A 2026 review of every randomized trial its authors could find concluded that the evidence does not support it as a routine treatment for insomnia.
What the newest review found
In 2026, researchers in Australia searched for randomized trials of magnesium taken alone for sleep in adults, and found 12 on sleep, insomnia or poor sleep. The trials differed so much in who they enrolled, which form and dose they used, how long they ran and what they measured that the results could not be pooled into one number (Lopresti 2026).
Findings were inconsistent across questionnaires, EEG, actigraphy and consumer wearables, and the certainty of the evidence was low to very low. The authors’ conclusion: “Current evidence does not support oral magnesium as a routine treatment for insomnia.” They allow that it may offer modest benefits on selected self-reported outcomes in some adults.
Where the 17-minute figure comes from
The number you may have seen comes from a 2021 review of older adults. It found three trials covering 151 people in three countries, but only two of them measured sleep times: 46 adults aged 60 to 75 in Iran and 12 healthy volunteers aged 60 to 80 in Germany.
Pooled, with 55 people in the analysis, participants fell asleep 17.36 minutes sooner on magnesium than on placebo (95% CI −27.27 to −7.44, p = 0.0006). Total sleep time rose by 16.06 minutes, which was not statistically significant (Mah 2021).
The third and largest trial, in 100 US adults over 51, added nothing to that figure. Both of its groups improved equally on their overall sleep-quality score. The reviewers put all three trials at moderate-to-high risk of bias, rated the evidence low to very low quality, and wrote that “the quality of literature is substandard for physicians to make well-informed recommendations.”
What trials in younger adults found
The evidence no longer stops at older adults. In a 2025 trial in Germany, 155 adults aged 18 to 65 who reported poor sleep took 250 mg of elemental magnesium as bisglycinate, or a placebo, for four weeks. Scores on a 28-point insomnia scale fell 3.9 points on magnesium and 2.3 on placebo (p = 0.049). The effect size was small (d = 0.2), and no other psychological outcome differed between the groups (Schuster 2025).
Two trials of magnesium L-threonate, a branded form, disagree with each other. In 80 adults aged 35 to 55, three weeks of it improved several wearable sleep scores and some morning measures (Hausenblas 2024). In 100 adults aged 18 to 45, six weeks of it improved self-reported sleep-related impairment, but not sleep disturbance, restorative sleep or wearable sleep measures (Lopresti & Smith 2026). Companies in the supplement business funded both: AIDP, which employs three of the first trial’s authors, and Threotech, which also supplied the product for the second.
Does the form or a shortfall matter?
Glycinate is the internet’s preferred version, sold on claims about absorption and a calming effect from the glycine. We found no trial that compares it with citrate or oxide for sleep, so nobody can say it is the better choice. The 2025 bisglycinate trial above tells you about a small effect against placebo, which is a different question.
A shortfall may decide who benefits, and that idea remains unproven. In the 2025 trial, people reporting less magnesium in their diet seemed to improve more, but the authors treat that analysis as exploratory. The Iranian trial also screened out people with higher magnesium intake, so its result may not carry over to anyone already getting enough.
How much is safe to take?
The National Institutes of Health lists an adult upper limit of 350 mg a day from supplements and medicines, not counting food. UK guidance says 400 mg or less a day from supplements is unlikely to cause harm. Read the label for elemental magnesium, not the weight of the whole compound.
The older-adult trials used 320 to 729 mg a day, and the 2021 review’s suggestion of under 1 g a day, split into two or three doses, sits above both limits. Start from the limits, not from the trial doses.
Loose stools are the best-known side effect. All 12 volunteers in the German trial had soft stools, and UK guidance says more than 400 mg over a short time can cause diarrhea.
Two groups should ask before starting. The kidneys clear magnesium, so it can build up to toxic levels when they work poorly. If you have kidney disease, talk to your doctor first. Magnesium also interacts with several medications, including some antibiotics and osteoporosis drugs, so ask a pharmacist if you take anything regularly.
Food is the sensible first move: leafy greens, nuts, seeds, legumes, whole grains.
Where it ranks
If you’re deciding where to spend effort, magnesium isn’t the highest-yield item on the list. A warm bath 1 to 2 hours before bed has a better-evidenced mechanism and costs nothing. Progressive muscle relaxation has 31 trials pooled behind it. An earlier last coffee has a controlled trial too, and the caffeine cutoff calculator works out your own window. For chronic insomnia, CBT-I remains the first-line treatment, and nothing on the supplement shelf has come close to matching it.
Magnesium is cheap and reasonable to try within those limits. It is not the reason you’ll sleep better.
If the problem is your head, not your minerals
If a mind that won’t switch off is what keeps you up, a supplement isn’t aimed at that. A story or a guided body scan gives your attention somewhere else to go. We can’t promise more than that: in a 2026 trial of 495 working adults, bedtime stories did not beat a control on sleep disturbance (Vazzaz 2026), and our look at the research covers why. Get Sleepy has 1,100+ episodes, free to stream with ads, so trying one tonight costs you nothing.
Sources: Lopresti et al. 2026 · Mah & Pitre 2021 · Schuster et al. 2025 · Hausenblas et al. 2024 · Lopresti & Smith 2026 · Vazzaz et al. 2026. Check with a pharmacist before starting a supplement, especially alongside other medication. This is general information, not medical advice — persistent insomnia is worth taking to a doctor.
Common questions
- Does magnesium help you sleep?
- Probably not much, and not reliably. A 2026 systematic review of 12 randomized trials found inconsistent results, rated the evidence low to very low certainty, and concluded that it does not support oral magnesium as a routine treatment for insomnia. It may give modest benefits on some self-reported measures in some adults.
- How much magnesium should I take for sleep?
- Stay within the limits for supplements: 350 mg of magnesium a day in US guidance, and 400 mg or less in UK guidance. Those figures exclude food. Read the label for elemental magnesium, not the weight of the whole compound. If you have kidney disease, ask your doctor first. Magnesium also interacts with several medications, including some antibiotics and osteoporosis drugs, so ask a pharmacist if you take anything regularly.
- Is magnesium glycinate better for sleep than other forms?
- We found no trial that compares glycinate with citrate or oxide for sleep, so no study has shown it is better. One 2025 trial tested magnesium bisglycinate against placebo in 155 adults and found a small benefit on an insomnia questionnaire.
- Does magnesium work if you are not deficient?
- Nobody knows yet. In a 2025 trial of adults aged 18 to 65, people reporting less magnesium in their diet seemed to improve more, but that analysis was exploratory. Whether a shortfall decides who benefits has not been properly tested.

