Skip to content

Magnesium vs melatonin: what the evidence shows

Evidence last reviewed Editorial review: NootropicsWork Editorial TeamEducational, not medical advice

The two compounds

Magnesium

Essential mineral (electrolyte)

Melatonin

Hormone (pineal hormone)

Grades side by side

OutcomeMagnesiumMelatonin
Working memoryNot graded
Perceived stressNot graded
Sleep latency
Sleep quality
Strength and power outputNot graded
Total sleep timeNot graded
Jet lag symptomsNot 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

  1. 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.SourceTier 1
  2. National Center for Complementary and Integrative Health (NIH). Melatonin: What You Need To Know. May 2024.SourceTier 2
  3. Brzezinski A, Vangel MG, Wurtman RJ, et al. Effects of exogenous melatonin on sleep: a meta-analysis. Sleep Med Rev. 2005.PMID 15649737DOI 10.1016/j.smrv.2004.06.004Tier 1, meta-analysis
  4. Erland LA, Saxena PK. Melatonin Natural Health Products and Supplements: Presence of Serotonin and Significant Variability of Melatonin Content. J Clin Sleep Med. 2017.PMID 27855744DOI 10.5664/jcsm.6462Tier 1
  5. Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complement Med Ther. 2021.PMID 33865376DOI 10.1186/s12906-021-03297-zTier 1, meta-analysis
  6. Lopresti AL, Smith SJ, Drummond PD. Magnesium Supplementation for Sleep in Adults: A Systematic Review of Randomized Controlled Trials. J Diet Suppl. 2026.PMID 42661485DOI 10.1080/19390211.2026.2719670Tier 1, systematic review
  7. 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.PMID 40918053DOI 10.2147/NSS.S524348Tier 1, controlled trial
  8. 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.SourceTier 1
  9. Boyle NB, Lawton C, Dye L. The Effects of Magnesium Supplementation on Subjective Anxiety and Stress-A Systematic Review. Nutrients. 2017.PMID 28445426DOI 10.3390/nu9050429Tier 1, systematic review
  10. Chen F, Wang J, Cheng Y, et al. Magnesium and Cognitive Health in Adults: A Systematic Review and Meta-Analysis. Adv Nutr. 2024.PMID 39009081DOI 10.1016/j.advnut.2024.100272Tier 1, meta-analysis
  11. Herxheimer A, Petrie KJ. Melatonin for the prevention and treatment of jet lag. Cochrane Database Syst Rev. 2002.PMID 12076414DOI 10.1002/14651858.CD001520Tier 1, systematic review
  12. 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.PMID 10484950DOI 10.1176/ajp.156.9.1392Tier 1, RCT
  13. 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.SourceTier 1
Reviewed by NootropicsWork Editorial Team, editorial team. Checklist logged . Next review due . Report an error