Can magnesium help with sleep?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: October 13, 2025View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Magnesium's Effect on Sleep Quality

Magnesium supplementation may help improve sleep quality, particularly in individuals with magnesium deficiency or self-reported sleep problems, though evidence is limited and mixed.

Evidence for Magnesium's Effects on Sleep

  • Magnesium deficiency is common and has been associated with conditions characterized by chronic inflammatory stress, which may include sleep disturbances 1.

  • A randomized controlled trial found that magnesium L-threonate (MgT) supplementation (1g/day for 21 days) significantly improved objective sleep measures including deep sleep score, REM sleep score, and light sleep time compared to placebo 2.

  • MgT supplementation also improved subjective measures including behavior upon awakening, energy, daytime productivity, mood, and mental alertness 2.

  • Higher dietary magnesium intake has been independently associated with normal sleep duration (vs. short sleep duration) in analysis of NHANES data, though it was not associated with self-reported sleep disorders 3.

Specific Sleep Benefits of Magnesium

  • Magnesium oxide (12 mmol) administered at night may help with magnesium absorption, as nighttime is when intestinal transit is assumed to be slowest 4.

  • A combination supplement containing melatonin (5mg), magnesium (225mg), and zinc (11.25mg) taken 1 hour before bedtime for 8 weeks significantly improved sleep quality in older adults with primary insomnia compared to placebo 5.

  • Improvements were seen in:

    • Overall sleep quality scores
    • Ease of getting to sleep
    • Quality of sleep
    • Morning alertness
    • Total sleep time 5

Limitations and Considerations

  • A systematic review of available literature found inconsistent results between observational studies and randomized controlled trials regarding magnesium's effects on sleep 6.

  • While observational studies suggested an association between magnesium status and sleep quality, randomized clinical trials showed uncertain associations between magnesium supplementation and sleep disorders 6.

  • The relationship between magnesium and sleep may be bidirectional - in one study, improved sleep quality resulted in increased erythrocyte magnesium levels regardless of whether participants received magnesium or placebo supplementation 1.

  • Magnesium supplementation appears to be most beneficial for those with low magnesium status - when analyzing only participants with serum magnesium concentrations <1.8 mg/dL, magnesium supplementation increased serum magnesium concentrations while placebo did not 1.

Practical Recommendations

  • Consider magnesium supplementation for sleep improvement, particularly if dietary intake is inadequate or serum levels are low 1.

  • Magnesium oxide at a dose of 12 mmol taken at night may be beneficial 4.

  • Magnesium L-threonate at 1g/day may be particularly effective for improving deep sleep, REM sleep, and daytime functioning 2.

  • Combining magnesium with other sleep-promoting supplements like melatonin and zinc may provide enhanced benefits 5.

  • Ensure adequate dietary magnesium intake through foods like green leafy vegetables, nuts, seeds, and whole grains 3.

  • Be aware that magnesium supplementation may be most effective in those with existing deficiency or poor sleep quality 1, 6.

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.