“Magnesium helps you sleep better.”
Magnesium has not been shown to help most people sleep better, and the trials that tested it found small, mixed results.
A magnesium supplement is unlikely to fix a sleep problem. Trials found at most a slight benefit, so it is not worth relying on, and ongoing trouble sleeping is better checked with a clinician.
If you want to try it anyway, check your medicines and kidney health with a pharmacist first. If trouble sleeping goes on, ask a clinician about it instead of trying more supplements.
Safety note: Magnesium supplements can cause diarrhea. People with kidney disease are at higher risk of magnesium building up to harmful levels, and magnesium can interfere with some medicines.
Talk to a healthcare professional if: you have kidney disease, you take other medicines and want a pharmacist to check for interactions, or your trouble sleeping lasts for weeks or affects your days.
Small trials have tested magnesium for sleep, and the best result was a slightly faster time to fall asleep in older adults, with no clear gain in total sleep. Confidence is limited because the trials are few, small and rated low to very low in quality.
Magnesium has not been shown to help most people sleep better, and the trials that tested it found small, mixed results. In three trials of 151 older adults, people taking magnesium fell asleep about 17 minutes faster than with a placebo, but total sleep time did not clearly improve. A 2026 review of 12 trials found the results inconsistent.
The older-adult trials were at moderate to high risk of bias. Across trials, the form of magnesium, the dose and the length of treatment varied a lot, and the 2026 review concluded that the evidence does not support magnesium as a routine treatment for insomnia.
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complementary Medicine and Therapies. 2021;21(1):125. DOI: 10.1186/s12906-021-03297-z. PMID: 33865376. PMCID: PMC8053283
- Mah J, Pitre T. Correction: Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complementary Medicine and Therapies. 2024;24:418. DOI: 10.1186/s12906-024-04721-w
- Lopresti AL, Smith SJ, Drummond PD. Magnesium Supplementation for Sleep in Adults: A Systematic Review of Randomized Controlled Trials. Journal of Dietary Supplements. 2026;23(5):553-581. DOI: 10.1080/19390211.2026.2719670. PMID: 42661485
- NIH Office of Dietary Supplements. Magnesium: Health Professional Fact Sheet. Updated January 6, 2026