Aurelo
Aurelo Health / Guides

Does magnesium help you sleep?

Maybe, a little. In the few small trials, magnesium helped older adults with insomnia fall asleep about 17 minutes faster, but the evidence is low quality and showed no statistically significant gain in total sleep.

Updated October 1, 2026 · 2 sources, listed at the end

What the trials found

A 2021 systematic review found only three randomized trials of oral magnesium for insomnia, with 151 older adults between them. Compared with placebo:

MeasureMagnesium vs placebo
Time to fall asleepAbout 17 minutes faster (statistically significant)
Total sleepAbout 16 minutes more (not statistically significant)
Quality of the evidenceLow to very low; all trials at moderate to high risk of bias

The reviewers concluded the research isn’t good enough for doctors to make firm recommendations, though magnesium is cheap and widely available. All three trials were in older adults, so they say little about anyone younger.

How much magnesium you need, and how much is too much

AdultsDaily need (all sources)
Men, 19 to 30400 mg
Men, 31 and older420 mg
Women, 19 to 30310 mg
Women, 31 and older320 mg

The upper limit for adults is 350 mg a day from supplements and medications. It doesn’t count magnesium from food. High doses from supplements or medications often cause diarrhea, sometimes with nausea and abdominal cramping.

Knowing how much you already get from food is a useful first step before adding a supplement.

What it’s taken with matters

Magnesium works with vitamin D and potassium, and very high zinc supplement doses (142 mg a day in one study) can get in its way. If it’s part of a stack, those pairings are worth a look.

More: Can You Take Magnesium and Zinc Together?

More: Do Vitamin D and Magnesium Work Together?

More: Do Magnesium and Potassium Work Together?

Test it on yourself

Aurelo Health adds up magnesium from food and supplements in one total, and reads the nights before and after so you can see whether it’s doing anything for you.

Log meals and supplements, rate your nights, and Aurelo shows whether magnesium is doing anything for you.

Get started free

Related questions

Supplement tracker →

Sources

  1. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis, BMC Complementary Medicine and Therapies, 2021
  2. NIH Office of Dietary Supplements, Magnesium fact sheet for health professionals

General information from the cited sources, not medical advice. If you have kidney problems or take medication, ask a doctor or pharmacist before taking magnesium.