GradedHealth

Does magnesium help you sleep?

Small trials suggest magnesium may help a little with insomnia, but a 2026 review says the evidence does not support it as a routine treatment.

Published October 2026

Short answer

Small, inconsistent trials hint at a modest effect on insomnia. The evidence is limited, so magnesium is not a reliable sleep aid. Evidence grade C (Limited). Three small trials in older adults and one 155-person trial with a small effect; downgraded for inconsistency, small samples and risk of bias.

Key takeaways

  • Three small trials in older adults found magnesium shortened the time to fall asleep by about 17 minutes [1].
  • A 2025 trial of 155 adults with poor sleep found a small extra improvement in insomnia scores over placebo [2].
  • A 2026 review of 12 trials concluded that oral magnesium is not supported as a routine insomnia treatment [3].
  • In a Swiss cohort, magnesium supplement use was not consistently linked to sleep quality [4].

The short version

Magnesium may help a little with insomnia, but the evidence is limited. The trials are small and short, and their results disagree. A 2026 review of 12 trials concluded that oral magnesium is not supported as a routine insomnia treatment [3].

What the studies show

Older adults. A 2021 meta-analysis pooled three randomised trials with 151 older adults who had insomnia. Magnesium shortened the time to fall asleep by about 17 minutes compared with placebo. Total sleep time rose by about 16 minutes, but this was not statistically significant. All three trials had moderate-to-high risk of bias, and the quality of evidence was low to very low [1].

Adults with poor sleep. A 2025 randomised, placebo-controlled trial followed 155 adults aged 18 to 65 who reported poor sleep. Those taking 250 mg of elemental magnesium a day, as magnesium bisglycinate, for four weeks had a larger drop in insomnia scores than placebo: 3.9 points versus 2.3. The effect was small (Cohen's d of 0.2) [2].

Wider review. A 2026 systematic review of 12 trials found results inconsistent across questionnaires, EEG, research-grade actigraphy and wearables. It said magnesium "may provide modest benefits for selected subjective outcomes in some adults" [3].

Earlier review. A 2023 systematic review found that observational studies linked magnesium status to better sleep quality, while randomised trials gave contradictory results [5].

The nuances

Who might benefit is not yet clear. The 2025 trial's authors reported greater improvement in people with lower dietary magnesium, but this was an exploratory analysis [2].

Low levels and poor sleep. In a cross-sectional study of 82 people with fibromyalgia, those with poorer sleep had lower serum magnesium. The design cannot show that low magnesium causes poor sleep [6].

Survey data. In a US national survey of nearly 22,000 adults, higher magnesium intake from food was linked to normal sleep duration. Among participants with supplement data, supplement use was not linked to sleep duration or sleep disorders [7].

Cohort data. In a Swiss cohort followed over three waves, magnesium users had a higher likelihood of night cramps and a trend toward poorer sleep quality. The authors found no consistent association between supplement use and sleep quality, or with polysomnography results [4].

People with diabetes. A single-blind trial of 290 adults with diabetes and insomnia compared magnesium, potassium, both, and placebo for two months. The abstract reports less severe insomnia in the supplement groups but gives no effect sizes [8].

Funding. One author of the 2025 trial runs a research company that receives funding from nutraceutical companies; the paper declares this [2].

What this means for you

Most of these sleep trials are small, and none shows that magnesium works for everyone. If sleep problems persist, talk to a doctor before relying on a supplement.

Side effects. In pooled magnesium trial data, most side effects were digestive, mainly diarrhoea. They affected 11% to 37% of people taking magnesium and 10% to 14% on placebo. Major adverse events did not differ from placebo [9].

Kidneys and older adults. Magnesium oxide needs care with dose and blood levels in older people and in people with reduced kidney function [10].

Medicines. Magnesium-containing antacids can reduce the absorption of tetracycline and fluoroquinolone antibiotics. The usual countermeasure is to take the antacid 4 hours before or 2 hours after the antibiotic [11].

Pregnancy. A Cochrane review of 10 trials with 9,090 women found not enough high-quality evidence that magnesium supplements help in pregnancy. One trial showed a possible rise in neonatal deaths, which the authors said should be read with caution [12].

This article does not cover official upper intake limits. The magnesium topic page has the full safety list.

Go deeper

  • Magnesium — Magnesium supplements modestly lower blood pressure, mainly in people with high blood pressure or low magnesium levels, and may slightly improve blood sugar in…

References

  1. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis.. BMC Complement Med Ther, 2021.
  2. Magnesium Bisglycinate Supplementation in Healthy Adults Reporting Poor Sleep: A Randomized, Placebo-Controlled Trial.. Nat Sci Sleep, 2025.
  3. Magnesium Supplementation for Sleep in Adults: A Systematic Review of Randomized Controlled Trials.. J Diet Suppl, 2026.
  4. Magnesium supplements, sleep quality, and nocturnal leg cramps: a combination of cross-sectional and prospective studies.. Eur J Nutr, 2026.
  5. The Role of Magnesium in Sleep Health: a Systematic Review of Available Literature.. Biol Trace Elem Res, 2023.
  6. Serum magnesium levels and their association with sleep quality and disease severity in fibromyalgia syndrome: An observational cross-sectional study.. Medicine (Baltimore), 2025.
  7. Dietary Magnesium Intake Is Associated With Self-Reported Short Sleep Duration but Not Self-Reported Sleep Disorder.. Brain Behav, 2025.
  8. Effects of magnesium and potassium supplementation on insomnia and sleep hormones in patients with diabetes mellitus.. Front Endocrinol (Lausanne), 2024.
  9. Magnesium for skeletal muscle cramps.. Cochrane Database Syst Rev, 2020.
  10. Magnesium Oxide in Constipation.. Nutrients, 2021.
  11. Clinically significant drug interactions with antacids: an update.. Drugs, 2011.
  12. Magnesium supplementation in pregnancy.. Cochrane Database Syst Rev, 2014.