Magnesium vs melatonin: what the evidence shows
Grades side by side
| Outcome | Magnesium | Melatonin |
|---|---|---|
| Working memory | Not graded | |
| Perceived stress | Not graded | |
| Sleep latency | ||
| Sleep quality | ||
| Strength and power output | Not graded | |
| Total sleep time | Not graded | |
| Jet lag symptoms | Not graded |
Bottom line
Magnesium is a mineral [1] and melatonin a hormone [2]. In trials mostly in healthy volunteers or people with sleep complaints, melatonin shortened time to fall asleep by about 4 minutes [3], though labels are often inaccurate [4]. Magnesium's self-reported sleep effects, mostly in older adults with sleep complaints, were small or inconsistent [5][6][7]; diarrhea is its main side effect [8][1].
What the magnesium page found
Magnesium is a mineral used in hundreds of enzyme reactions [1]. Placebo-controlled trials found small or inconsistent self-reported sleep effects, mostly in older adults with sleep complaints [5][6][7]. Stress and memory evidence is thin [9][10]. Diarrhea is the main side effect; the supplement upper levels (350 mg US, 250 mg EU a day) are precautionary, set on mild diarrhea [8][1].
Read the full magnesium evidence page for every graded outcome, the doses used in studies, safety and interactions.
What the melatonin page found
Melatonin is a hormone the brain makes to help control sleep/wake cycles [2]. In trials mostly in healthy volunteers or people with sleep complaints, supplements shortened the time to fall asleep by about 4 minutes [3], and most travel trials found less jet lag [11][12]. Product labels are often inaccurate [4], and Australia limits supply to pharmacists or prescription [13].
Read the full melatonin evidence page for every graded outcome, the doses used in studies, safety and interactions.
How to read this comparison
The grades side by side come from each compound's own evidence page and change when either page is re-graded. A grade covers the people and doses in its studies, not every use. This page does not rank one compound above the other; check both safety sections before combining them.
References
- European Food Safety Authority (Scientific Committee on Food). Tolerable Upper Intake Levels for Vitamins and Minerals: Opinion on the Tolerable Upper Intake Level of Magnesium (expressed September 26, 2001). 2006-02.
- National Center for Complementary and Integrative Health (NIH). Melatonin: What You Need To Know. May 2024.
- Brzezinski A, Vangel MG, Wurtman RJ, et al. Effects of exogenous melatonin on sleep: a meta-analysis. Sleep Med Rev. 2005.
- Erland LA, Saxena PK. Melatonin Natural Health Products and Supplements: Presence of Serotonin and Significant Variability of Melatonin Content. J Clin Sleep Med. 2017.
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complement Med Ther. 2021.
- Lopresti AL, Smith SJ, Drummond PD. Magnesium Supplementation for Sleep in Adults: A Systematic Review of Randomized Controlled Trials. J Diet Suppl. 2026.
- Schuster J, Cycelskij I, Lopresti A, et al. Magnesium Bisglycinate Supplementation in Healthy Adults Reporting Poor Sleep: A Randomized, Placebo-Controlled Trial. Nat Sci Sleep. 2025.
- Institute of Medicine (National Academies). Dietary Reference Intakes for Calcium, Phosphorus, Magnesium, Vitamin D, and Fluoride, chapter 6: Magnesium (1997), doi:10.17226/5776. 1997.
- Boyle NB, Lawton C, Dye L. The Effects of Magnesium Supplementation on Subjective Anxiety and Stress-A Systematic Review. Nutrients. 2017.
- Chen F, Wang J, Cheng Y, et al. Magnesium and Cognitive Health in Adults: A Systematic Review and Meta-Analysis. Adv Nutr. 2024.
- Herxheimer A, Petrie KJ. Melatonin for the prevention and treatment of jet lag. Cochrane Database Syst Rev. 2002.
- Spitzer RL, Terman M, Williams JB, et al. Jet lag: clinical features, validation of a new syndrome-specific scale, and lack of response to melatonin in a randomized, double-blind trial. Am J Psychiatry. 1999.
- Australian Government, Department of Health, Disability and Ageing (Federal Register of Legislation). Therapeutic Goods (Poisons Standard—October 2026) Instrument 2026 (F2026L01327). Updated September 30, 2026.