Research Review

Magnesium for Sleep

Magnesium is one of the most widely studied minerals in the context of sleep. Here's what the clinical evidence actually shows — and where it falls short.

5 studies cited Last reviewed: March 2026 8 min read
Moderate evidence — Several small RCTs show improvements in subjective sleep measures, but large-scale confirmatory trials are lacking.

Quick Facts

  • Evidence Level Moderate
  • Research Dosages 250–500 mg/day
  • Study Durations 2–8 weeks
  • UL (Supplemental) 350 mg/day (adults)
  • Primary Measures PSQI, ISI

Key Studies

The research on magnesium and sleep is growing but still limited in scale. Below are the most relevant clinical studies, ordered by the strength of their methodology.

Systematic Review & Meta-Analysis

Oral magnesium supplementation for insomnia in older adults

Mah & Pitre, 2021 · BMC Complement Med Ther · 3 RCTs, 151 participants

This meta-analysis of three RCTs found that magnesium supplementation reduced sleep onset latency by 17.36 minutes compared to placebo (95% CI: -27.27 to -7.44, p=0.0006). Total sleep time increased by approximately 16 minutes, though this did not reach statistical significance. The authors noted the evidence quality was low-to-very-low due to small sample sizes and risk of bias.[1]

Systematic Review

Effects of Supplemental Magnesium on Anxiety and Sleep Quality

Rawji et al., 2024 · Cureus · 15 interventional trials reviewed

This PRISMA-compliant systematic review examined 15 interventional trials. Of the 8 studies measuring sleep outcomes, 5 reported improvements, 2 showed no effect, and 1 had mixed results. The review concluded that supplemental magnesium is "likely useful in the treatment of mild insomnia, particularly in those with low magnesium status at baseline." The authors emphasized that heterogeneous study designs, dosages, and formulations make definitive conclusions difficult.[2]

Double-Blind RCT

Magnesium supplementation and primary insomnia in elderly

Abbasi et al., 2012 · J Res Med Sci · 46 elderly participants · 8 weeks

In this foundational study, elderly subjects receiving 500 mg magnesium daily for 8 weeks showed significant improvements in Insomnia Severity Index scores (p=0.006), sleep efficiency (p=0.03), sleep time (p=0.002), and sleep onset latency (p=0.02). The supplemented group also showed increased serum melatonin (p=0.007) and decreased cortisol (p=0.008), suggesting a potential hormonal mechanism.[3]

Randomized Controlled Trial

Magnesium and potassium for insomnia in diabetes patients

Khalid et al., 2024 · Front Endocrinol · 290 diabetic patients · 2 months

The largest study to date on this topic. Patients receiving 250 mg magnesium twice daily showed significant decreases in insomnia severity (p=0.0001). Cortisol levels decreased (p=0.001) and melatonin levels improved (p=0.001). Note: this study was conducted specifically in diabetic patients, which may limit generalizability.[4]

Systematic Review & Meta-Analysis

Efficacy of dietary supplements on improving sleep quality

Chan & Lo, 2022 · Postgrad Med J · 31 RCTs across multiple supplements

This broader review of sleep supplements across 31 RCTs found insufficient data to meta-analyze magnesium specifically. The authors concluded that amino acids, melatonin, and vitamin D showed clearer benefits for sleep, while "further research on the effect of magnesium supplementation on improving sleep quality is required."[5]

How Magnesium May Affect Sleep

Magnesium's potential influence on sleep appears to involve several biological pathways, though the mechanisms are not fully established in human research:

It's worth noting that these mechanisms are partially supported by the human trials above but are largely derived from preclinical (animal and cell) research. More targeted mechanistic studies in humans are needed.

Dosages Used in Research

The clinical trials reviewed used the following dosages:

Study Dosage Duration Population
Abbasi et al., 2012 500 mg/day 8 weeks Elderly with insomnia
Khalid et al., 2024 250 mg twice daily 2 months Diabetic patients
Mah & Pitre, 2021 (meta) <1g, up to 3x/day Varied Older adults

Note that the NIH's Tolerable Upper Intake Level (UL) for supplemental magnesium is 350 mg/day for adults. Some studies used dosages above this threshold. The UL applies specifically to supplemental magnesium — magnesium from food does not count toward this limit and does not pose toxicity concerns.[6]

Magnesium Forms Compared

Not all magnesium supplements are created equal. Bioavailability varies significantly by form, which matters for both absorption and potential side effects.

Form Bioavailability Notes
Magnesium glycinate High Well-absorbed, less likely to cause GI effects. Glycine itself may have calming properties.
Magnesium citrate High Well-absorbed. Can have laxative effect at higher doses.
Magnesium chloride High Good absorption. Available in topical forms as well.
Magnesium L-threonate Moderate Studied for crossing the blood-brain barrier. Limited human data for sleep specifically.
Magnesium oxide Low Poorly absorbed despite high elemental magnesium content. More likely to cause GI effects.

The NIH notes that forms which dissolve well in liquid are more completely absorbed in the gut. Aspartate, citrate, lactate, and chloride demonstrate superior absorption compared to oxide and sulfate.[6]

Safety Considerations

Magnesium is generally well-tolerated at standard supplemental doses, but there are important safety points to consider:

The Bottom Line

The current evidence suggests that magnesium supplementation may modestly improve sleep quality, particularly in populations that are older, deficient, or have difficulty falling asleep. The strongest finding is a reduction in sleep onset latency (time to fall asleep) of approximately 17 minutes, based on a small meta-analysis.

However, the evidence base has notable limitations:

Magnesium appears most promising for individuals who have low baseline magnesium status — and approximately 50% of the US population consumes less than the Estimated Average Requirement for magnesium from food alone.

Medical Disclaimer: This article is for informational purposes only and does not constitute medical advice. Always consult a qualified healthcare provider before starting any supplement regimen. SafeSupps does not recommend specific supplements — we present the research so you can make informed decisions.

References

  1. Mah J, Pitre T. "Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis." BMC Complement Med Ther. 2021;21(1):125. PubMed
  2. Rawji A, Peltier MR, Mourtzanakis K, Awan S, Rana J, Pothen NJ, Afzal S. "Examining the Effects of Supplemental Magnesium on Self-Reported Anxiety and Sleep Quality: A Systematic Review." Cureus. 2024;16(4):e59317. PubMed
  3. Abbasi B, Kimiagar M, Sadeghniiat K, Shirazi MM, Hedayati M, Rashidkhani B. "The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial." J Res Med Sci. 2012;17(12):1161-1169. PubMed
  4. Khalid S, Bashir S, Mehboob R, et al. "Effects of magnesium and potassium supplementation on insomnia and sleep hormones in patients with diabetes mellitus." Front Endocrinol (Lausanne). 2024;15:1370733. PubMed
  5. Chan V, Lo K. "Efficacy of dietary supplements on improving sleep quality: a systematic review and meta-analysis." Postgrad Med J. 2022;98(1158):285-293. PubMed
  6. National Institutes of Health, Office of Dietary Supplements. "Magnesium — Health Professional Fact Sheet." Updated 2024. NIH ODS

Related Reading