Does magnesium improve sleep?

Answered October 30, 202611 sources

EvidenceCLimitedStudies in people with real weaknesses: small, short or conflicting trials, or observational studies only.

Magnesium may help some adults fall asleep a little sooner, but the trials are small and inconsistent. We don't yet know if it works for most people.

Who it's for
Older adults with insomnia may benefit; not shown to help others.
What to expect
About 17 minutes faster to fall asleep, with a wide margin of doubt.
Watch out for
Diarrhea, nausea and cramps at high doses.
Magnesium may help older adults fall asleep faster

A dot with a line shows the average change in minutes to fall asleep, and the line shows the likely range.

Magnesium may help older adults fall asleep faster
ResultEstimate95% rangeReading
Time to fall asleep (3 trials)−17.36−27.27 to −7.44Clear improvement

Source 1 BMC Complement Med Ther, 2021

Figure 5. Forest plot comparison of magnesium supplementation compared to placebo for sleep onset latency (SOL) outcome.

Figure 5 from Oral magnesium supplementation for insomnia in older adults, BMC Complement Med Ther 2021. Licence: CC BY 4.0

Figure 6. Forest plot comparison of magnesium supplementation compared to placebo for total sleep time (TST) outcome N.B.: Inverse-variance weight method applied; Sleep onset latency…

Figure 6 from Oral magnesium supplementation for insomnia in older adults, BMC Complement Med Ther 2021. Licence: CC BY 4.0

What the studies show

  • A review that pooled 3 trials in 151 older adults with insomnia found they fell asleep about 17 minutes sooner on magnesium than on a dummy pill (placebo A dummy treatment that looks like the real one, so people can't tell which they got.). The true effect could be anywhere from about 7 to 27 minutes. Total sleep time rose about 16 minutes, which could be down to chance. All three trials had moderate to high risk of flaws1.
  • A review of 12 randomized trials People are assigned by chance to the treatment or a comparison, so a difference in results is likely caused by the treatment itself. of magnesium alone in adults found inconsistent results across questionnaires, brain recordings and wearables. Certainty was low to very low, and the review concluded the evidence does not support magnesium as a routine insomnia treatment6.
  • A review of 15 trials found 5 of 8 sleep studies reported improvement, 2 reported none and 1 was mixed. Many studies were small, and doses and forms varied8.
  • A trial of 46 older adults gave 500 mg a day for 8 weeks. Insomnia scores, sleep efficiency and time to fall asleep improved more than with placebo. Total sleep time did not differ between groups10.
  • A trial of 80 adults aged 35 to 55 with self-reported sleep problems used 1 g a day of magnesium L-threonate for 21 days. Sleep scores and daytime mood improved more than with placebo4.
  • A trial of 100 adults over 51 with poor sleep gave 320 mg a day for 7 weeks. Sleep scores improved, but the authors said a placebo effect may explain it, since diet and sleep changed without the supplement being the clear cause7.
  • Studies that followed people over time link higher magnesium levels to better sleep. Randomized trials in the same review were uncertain2.

Trials of magnesium combined with melatonin or zinc5,9 can't separate magnesium's effect from the other ingredients.

Key studies

StudyWhoWhat it found
Review of 3 trials, 20211151 older adults with insomniaFell asleep about 17 minutes sooner; low-quality evidence
Review of 12 trials, 20266Adults, various sleep problemsInconsistent results; low to very low certainty
Trial, 20121046 older adults with insomnia500 mg daily improved insomnia scores; total sleep time unchanged
Trial, 2024480 adults aged 35 to 55Better sleep and daytime function than placebo over 21 days

Safety

High doses from supplements or medications often cause diarrhea, sometimes with nausea and abdominal cramping. The upper limit for magnesium from supplements and medications is 350 mg a day for adults11. Trials above that level used 500 mg10 and 1 g of a different form4.

What we don't know

  • Whether magnesium works in younger adults or people without insomnia, and which form and dose work best.
  • Whether benefits last beyond about 8 weeks; reviewers call for trials longer than 12 weeks2.

Ask a follow-up

Written by AI from the studies listed, without review by a clinician, and graded with the GRADE method. It can be wrong, so check the studies it cites. Education, not medical advice.