Melatonin was mostly studied for sleep at the wrong time of day, such as after flights across time zones or after night shifts, and as a signal that shifts the body clock; magnesium was studied in adults who rated their sleep as poor, without a sleep disorder diagnosis.[1][2][3][5][6] For self-rated poor sleep, one magnesium trial found a small difference from placebo and another found none, and a 2026 review rated the evidence low or very low; none of the trials cited here compared melatonin with magnesium directly.[5][6][7]
What each was tested for
| Situation | Melatonin | Magnesium |
|---|---|---|
| Flights across time zones | In 8 of 10 trials in a Cochrane review, less jet lag when melatonin was taken near destination bedtime after crossing at least 5 time zones. The review found similar effects on jet lag with doses of 0.5–5 mg. One trial of 257 physicians found no difference[1][8] | — |
| Night shift work | In 7 trials, daytime sleep was 24 minutes longer with 1–10 mg after the shift; time to fall asleep did not differ; low-quality evidence[2] | — |
| Shifting the body clock | In 34 healthy adults, 0.5 mg moved the clock up to 1.5 hours earlier with an afternoon dose and up to 1.3 hours later with a dose soon after waking[3] | — |
| Self-rated poor sleep, no diagnosis | In 62 adults aged 30–60 in India, 2 mg extended-release raised the share of the night asleep, measured with home sensors[9] | Bisglycinate, 250 mg: Insomnia Severity Index fell 1.6 points more than with placebo, a small effect; citrate, 320 mg in adults over 50: no difference; L-threonate: sleep measured with a ring did not differ[5][6][10] |
| Healthy sleepers in a lab | In 12 young adults, 0.3 or 1 mg at 9 p.m. shortened the time to fall asleep[11] | — |
A dash means none of the studies cited in the table tested that situation.
Limits next to each result
- Melatonin and timing. In one lab trial, melatonin at 6 or 8 p.m. shortened the time to fall asleep, while at 9 p.m. it did not.[12] Whether a dose helps depends on when it is taken relative to the body clock.[3][12]
- Melatonin, poor sleep trial. The trial of 2 mg extended-release melatonin was paid for by its maker, which also made the capsules.[9]
- Magnesium trials. Sleep was self-rated in the bisglycinate and citrate trials; Biogena made the bisglycinate capsules, and Threotech funded the L-threonate trial.[5][6][10] The 2026 review of 12 trials found results inconsistent across questionnaires, sleep recordings and wearables.[7]
Amounts studied
Safety and interactions
- Melatonin and medicines. NCCIH advises people who take medicines to check with a health care provider first, and notes that people with epilepsy or taking blood thinners need medical supervision.[13]
- Children. NCCIH advises parents to speak with a health care provider before giving melatonin; CDC estimated 11,000 emergency visits in 2019–2022 for children 5 and younger who took it unsupervised.[13][15]
- Magnesium upper limit. For adults, NIH lists an upper limit of 350 mg a day for magnesium from supplements and medications.[4]
The melatonin guide covers the studies and safety information.
Information, not a prescription. Do not start, stop or combine supplements or medicines on your own.
Sources
- Herxheimer A, Petrie KJ. Cochrane Database of Systematic Reviews. 2002. https://doi.org/10.1002/14651858.CD001520 — PubMed 11279722. ↩
- Liira J, and colleagues. Cochrane Database of Systematic Reviews. 2014. https://doi.org/10.1002/14651858.CD009776.pub2 — PubMed 25113164. ↩
- Burgess HJ, and colleagues. Journal of Clinical Endocrinology and Metabolism. 2010. https://doi.org/10.1210/jc.2009-2590 — PubMed 20410229. Funding: US National Institutes of Health; Ecological Formulas donated the pills. ↩
- NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals, Health Risks from Excessive Magnesium, Table 3. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/ ↩
- Schuster J, and colleagues. Nature and Science of Sleep. 2025. https://doi.org/10.2147/NSS.S524348 — PubMed 40918053. full text. Funding: Leibniz University Hannover; Biogena made the capsules. ↩
- Nielsen FH, and colleagues. Magnesium Research. 2010. https://pubmed.ncbi.nlm.nih.gov/21199787/ — PubMed 21199787. abstract. ↩
- Lopresti AL, and colleagues. Journal of Dietary Supplements. 2026. https://doi.org/10.1080/19390211.2026.2719670 ↩
- Spitzer RL, and colleagues. American Journal of Psychiatry. 1999. https://doi.org/10.1176/ajp.156.9.1392 — PubMed 10484950. ↩
- Thanawala and colleagues. Clocks & Sleep. 2026. https://doi.org/10.3390/clockssleep8020031 — PubMed 42345841. Funding: Nutriventia. ↩
- Lopresti AL, Smith SJ. Frontiers in Nutrition. 2026. https://doi.org/10.3389/fnut.2025.1729164 — PubMed 41601871. Funding: Threotech. ↩
- Zhdanova IV, and colleagues. Sleep. 1996. https://doi.org/10.1093/sleep/19.5.423 — PubMed 8843534. ↩
- Pires ML, and colleagues. Journal of Pineal Research. 2001. https://doi.org/10.1034/j.1600-079x.2001.310407.x — PubMed 11703562. ↩
- NIH National Center for Complementary and Integrative Health. Melatonin: What You Need To Know. https://www.nccih.nih.gov/health/melatonin-what-you-need-to-know ↩
- Tordjman S and colleagues. Current Neuropharmacology. 2017;15:434–443. https://doi.org/10.2174/1570159X14666161228122115 ↩
- CDC. Emergency Department Visits for Unsupervised Pediatric Melatonin Ingestion, United States, 2019–2022. MMWR 2024;73:215–217. https://www.cdc.gov/mmwr/volumes/73/wr/mm7309a5.htm ↩
You may quote, republish or translate this article under CC BY 4.0: credit “Verateca”, link to this page and indicate changes, including translations. Quotes from NIH, FDA and other sources, label texts and prices are not covered by this license.