Your health. Your questions. Your next chapter.
Forty to Sixty

Magnesium for sleep: what the evidence says

There is very little research on magnesium supplements for insomnia and other sleep disorders, so the NIH says there is not enough rigorous evidence to know whether they work. [1] The best-known review pooled three small trials in 151 older adults and found people fell asleep about 17 minutes sooner, but rated the evidence low to very low quality. [2]

A calm bedroom interior with a made bed and a bedside lamp.

Does magnesium help you sleep?

The honest answer is that we do not know. NCCIH notes that magnesium has become popular on social media as an ingredient in a "sleepy girl mocktail" for its purported ability to improve sleep, but says there is very little research on magnesium supplements for insomnia and other sleep disorders. [1] Because of that, it says, there is not enough rigorous scientific evidence to determine whether they are effective. [1]

What did the review of trials find?

The review most often cited is Mah and Pitre, published in 2021. It searched for trials comparing oral magnesium with placebo or no treatment in older adults with insomnia and found three randomized controlled trials with 151 participants in three countries. [2] Pooled, sleep onset latency was 17.36 minutes shorter after magnesium than after placebo (95% confidence interval 7.44 to 27.27 minutes). [2] Total sleep time improved by 16.06 minutes, which was not statistically significant. [2]

The authors open by noting that magnesium is often purported to improve sleep, but that there is limited evidence to support the claim. [2] Then the caveats, which are large. All three trials had a moderate-to-high risk of bias, and the outcomes were supported by low to very low quality evidence. [2] The authors concluded that the quality of the literature is substandard for physicians to make well-informed recommendations on oral magnesium for older adults with insomnia. [2] The authors did add that, because oral magnesium is cheap and widely available, the randomized evidence may support it for insomnia symptoms, which is a cautious statement about a weak evidence base, not a recommendation. [2] NCCIH describes the same review as suggesting magnesium may help with how quickly older adults fall asleep, while noting that the reviewers called the studies low quality and inadequate for making well-informed decisions. [1]

Does any of this apply to women in their 40s and 50s?

Not directly. Those trials enrolled older adults with insomnia, not women in perimenopause. [2] NCCIH also describes a second review of nine studies with 7,582 participants that showed conflicting findings on magnesium and sleep quality, and said larger, well-designed trials lasting more than 12 weeks are needed. [1] That gap is why we describe this as an open question rather than a recommendation either way. Separately, The Menopause Society's 2023 position statement lists supplements and herbal remedies among the options it does not recommend for them. [5]

Is magnesium safe, and is there an upper limit?

Magnesium that occurs naturally in food and drink is not harmful and does not need to be limited, and in healthy people the kidneys remove any excess in the urine. [3] Magnesium from dietary supplements and medications is different: the Office of Dietary Supplements says it should not exceed the upper limit unless a health care provider recommends it, and the upper limit for adults is 350 mg a day from those sources, not counting food. [3] High intakes from supplements and medications can cause diarrhea, nausea and abdominal cramping, and extremely high intakes can lead to irregular heartbeat and cardiac arrest. [3]

Magnesium supplements can also interfere with some medicines. The Office of Dietary Supplements gives bisphosphonates for osteoporosis, antibiotics, diuretics and drugs for acid reflux or peptic ulcers as examples, and advises telling your doctor, pharmacist and other providers about any supplement you use. [3]

What to ask your clinician or pharmacist

Whether magnesium could interact with any medicine you take, such as bisphosphonates, antibiotics, diuretics or acid reflux drugs. [3] Whether the amount in any supplement stays under the 350 mg upper limit for supplements and medications, and whether you need it at all. [3] Whether your sleep problem calls for a different approach, such as CBT-I. [6]

What does magnesium do in the body?

The Office of Dietary Supplements describes magnesium as a nutrient the body needs, important for regulating muscle and nerve function, blood sugar and blood pressure, and for making protein, bone and DNA. [3] Sleep is not on that list, which is part of why a sleep claim needs its own evidence.

What foods contain magnesium?

The Office of Dietary Supplements lists legumes, nuts, seeds, whole grains and green leafy vegetables such as spinach, plus fortified breakfast cereals and some milk products such as milk and yogurt. [3] It also notes that the federal Dietary Guidelines say people should get most of their nutrients from food and beverages. [3]

When to talk to your clinician

If you wake often, can't fall asleep, or feel unrefreshed for a month or more, tell your clinician instead of treating it on your own, because sleep apnea, insomnia, night sweats and bladder symptoms all disrupt midlife sleep and each calls for something different. [4] If you already take magnesium or are thinking about it, tell the person who manages your medicines. [3]

Sources

  1. National Center for Complementary and Integrative Health (NIH), In the News: Magnesium Supplements for Sleep Disorders. Last updated January 2024. Retrieved 2026-10-18.
  2. Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis, BMC Complement Med Ther 2021. PMID 33865376. Retrieved 2026-10-18.
  3. NIH Office of Dietary Supplements, Magnesium: Fact Sheet for Consumers. Updated March 22, 2021. Retrieved 2026-10-18.
  4. Office on Women's Health, Menopause symptoms and relief. Page last updated May 30, 2025. Retrieved 2026-10-18.
  5. The 2023 nonhormone therapy position statement of The North American Menopause Society, Menopause 2023. PMID 37252752. Retrieved 2026-10-18.
  6. Qaseem et al., American College of Physicians guideline on chronic insomnia disorder, Ann Intern Med 2016. PMID 27136449. Retrieved 2026-10-18.

Every statement above was checked against the linked source on October 18, 2026. This article is education, not individual medical advice. Related: Melatonin for sleep, Perimenopause supplements, the 7-Day Midlife Sleep Reset.