Skip to content
AlternativeMed

Magnesium for Sleep: What Research Shows

Magnesium for sleep: what systematic reviews of randomized trials found (small, low-quality, inconsistent), where it might fit, safety limits, and how it compares with melatonin.

Content last updated . This page has not been medically reviewed.

The short version

Magnesium is widely used as a sleep aid, but the research is thin and mixed. A 2026 systematic review of randomized controlled trials concluded that current evidence does not support oral magnesium as a routine treatment for insomnia. It may give modest benefits for some subjective outcomes in some adults, but findings are inconsistent and certainty is low or very low. [1] This page uses the labels explained in How to fall asleep faster.

What the research shows

QuestionWhat the source foundEvidence label
Does magnesium help sleep in adults generally?A review of 12 randomized trials found inconsistent results across self-reported sleep, brain-wave measures, activity trackers and body markers; populations, forms, doses and durations varied widely. [1]Mixed
Older adults with insomniaA meta-analysis of 3 trials (151 people) found time to fall asleep was about 17 minutes shorter than with placebo; total sleep time improved by about 16 minutes, which was not statistically significant. All trials had moderate-to-high risk of bias and low to very low quality evidence. [2]Promising but limited
Sleep quality in wider reviewsA 2022 review of 9 studies (7,582 people) showed conflicting findings and called for large, well-designed trials longer than 12 weeks. [3]Mixed
Magnesium glycinate specificallyProper evidence not found in the sources read that tests this form against other forms for sleep. The reviews above combined different formulations. [1]Insufficient evidence
Restless legs or night crampsAnalyzed separately in the 2026 review. [1]See Restless legs

The authors of the older-adults review noted that the quality of the literature is too weak for well-informed recommendations, though magnesium is inexpensive and widely available. [2] That is a statement about cost, not proof that it works.

Who studied it

The reviews above cover older adults with insomnia and mixed adult groups. [2][1] Results should not be transferred to children, teens, pregnancy or people with kidney disease. Proper evidence not found in the sources read for those groups.

Safety and limits

  • The NIH complementary health center advises that magnesium from supplements and medications should not exceed upper limits unless a health care provider recommends it: 350 mg for adults and children 9 to 18 and 110 mg for children 4 to 8 (limits for supplement magnesium, not food). [3]
  • High intakes can cause diarrhea, nausea and abdominal cramping; extremely high intakes can lead to irregular heartbeat and cardiac arrest. [3]
  • Many products combine magnesium with other ingredients; check totals using Amounts and duplicate ingredients.
  • Magnesium may interact with medicines and conditions. The NIH Office of Dietary Supplements fact sheet could not be accessed for this page (the site blocked the request), so proper evidence not found here on specific interactions; ask a pharmacist and see How interactions work and Existing conditions.
  • Tell your health care providers about any supplement you use. [3]

Magnesium versus melatonin

Melatonin has been studied more, with modest effects on falling asleep but no guideline support for chronic insomnia; magnesium has far less research. [3] See Melatonin for sleep.

Better-supported steps first

The recommended first treatment for chronic insomnia is CBT-I. [4] See CBT-I, Sleep hygiene and Natural sleep aids compared.

When to get help

See a clinician if trouble sleeping lasts for months or affects daily life. [5] Seek medical advice before using magnesium if you have kidney problems or take regular medicines.

Frequently asked questions

Does magnesium glycinate help sleep?

Proper evidence not found for a specific advantage of the glycinate form in the reviews read. [1]

Is there an upper limit?

For supplement and medicine magnesium, NCCIH cites 350 mg for adults and 110 mg for children 4 to 8. [3]

Can magnesium replace CBT-I?

No. CBT-I is the recommended first treatment for chronic insomnia. [4]

References

Education, not medical advice. This page is for general information. It does not diagnose or treat any condition and is not a substitute for care from a qualified health professional. Natural does not automatically mean safe. Ask a clinician or pharmacist before changing your care, especially if you take medication, are pregnant or breastfeeding, or have a health condition.