Magnesium for sleep: what three small 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. The research behind it is much smaller than its reputation, which is worth knowing before you spend anything.

What the review found

A 2021 systematic review looked for randomized trials of oral magnesium against placebo for insomnia in older adults. It found three, covering 151 people across three countries.

Pooled, sleep-onset latency was 17.36 minutes shorter on magnesium than on placebo (95% CI −27.27 to −7.44, p = 0.0006). Total sleep time improved by 16.06 minutes, but that result was not statistically significant (Mah 2021).

Seventeen minutes off your sleep latency is a result anyone would take. Now the caveats, which the reviewers state plainly: all three trials sat at moderate-to-high risk of bias, and the outcomes were supported by low to very low quality evidence. Their own summary is that “the quality of literature is substandard for physicians to make well-informed recommendations.”

They still cautiously suggest it’s reasonable to try, on the grounds that magnesium is cheap, available, and low-risk. That’s a fair position. It’s also a very different sentence from “magnesium is proven to help you sleep.”

What the evidence doesn’t cover

Three gaps matter, because the marketing papers over all of them.

It was studied in older adults. All three trials recruited older participants, a group more likely to be short of magnesium. If you’re 32 and eat a reasonable diet, you are not the population that was tested.

The form wasn’t the point. Magnesium glycinate is the internet’s preferred version, sold on claims about superior absorption and a calming effect from the glycine. Those claims are extrapolated from absorption chemistry rather than head-to-head sleep trials. No study has shown glycinate beats citrate or oxide for sleep, because nobody has run it.

Correcting a shortfall is not enhancement. The most plausible reading of a real effect is that topping up a deficiency helps people who had one. There’s little reason to expect extra magnesium to improve sleep in someone already replete, by the same logic that makes vitamin C useful for scurvy and useless for a head cold.

Doses and practicalities

The review’s suggested range was doses under 1 g, taken up to three times a day. Most supplements land at 200 to 400 mg of elemental magnesium, which is a sane starting point.

Two things to know. Magnesium oxide is the cheapest form and the most likely to send you to the bathroom; the laxative effect is the main side effect across all forms, and oxide is the worst offender. Magnesium also interacts with several medications, including some antibiotics and thyroid drugs, so it’s worth asking a pharmacist if you take anything regularly.

Food sources carry no such caveats and are 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 behind it rather than three. An earlier last coffee has a controlled trial behind it too; the cutoff sits six to ten hours before bed, depending on how fast you clear caffeine. And for chronic insomnia, CBT-I remains the first-line treatment that nothing on the supplement shelf has come close to matching.

Magnesium is a cheap, reasonable thing to try. It is not the reason you’ll sleep better.

If the problem is your head, not your minerals

Most people reaching for a sleep supplement are dealing with a mind that won’t switch off, which no mineral addresses. A story or a guided body scan works on that directly. Get Sleepy has 1,100+ free episodes, and Premium still costs less than a month of capsules.


Sources: Mah & Pitre 2021. 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?
The best available evidence is three randomized trials in 151 older adults with insomnia. Pooled together, they came to 17.36 minutes less time to fall asleep than on placebo, plus 16 minutes more total sleep, a change that was not statistically significant. All three trials carried a moderate-to-high risk of bias, and the reviewers rated the results low to very low quality, calling the literature substandard for physicians to make well-informed recommendations.
How much magnesium should I take for sleep?
The review's suggested range was doses under 1 g, taken up to three times a day. Most supplements land at 200 to 400 mg of elemental magnesium, which is a sane starting point. Magnesium interacts with several medications, including some antibiotics and thyroid drugs, so it is worth asking a pharmacist if you take anything regularly.
Is magnesium glycinate better for sleep than other forms?
Nobody has run that trial, so no study has shown glycinate beats citrate or oxide for sleep. The case for it is extrapolated from absorption chemistry and from the calming reputation of glycine. What the forms are known to differ on is the laxative effect, which is the main side effect across all of them and worst with the cheapest form, magnesium oxide.
Does magnesium work if you are not deficient?
The most plausible reading of the trials is that topping up a shortfall helps the people who had one. All three recruited older adults, a group more likely to be short of magnesium in the first place, so a 32-year-old eating a reasonable diet is outside the population that was tested. There is little reason to expect extra magnesium to improve sleep in someone already replete.