← Back to Blog

Magnesium for Sleep: What the Research Says

January 30, 2026 · 7 min read

Last Updated: November 28, 2025

Sleep problems are epidemic among women. Up to 60% of menopausal women report significant sleep disturbances, and stress and anxiety only make things worse at every stage of life [1]. Whether it's trouble falling asleep, staying asleep, or waking up feeling unrested, poor sleep affects everything from mood and energy to long-term health. If you're going through perimenopause or menopause, our guide on supplements for menopause relief covers additional options.

If you've been searching for a natural solution, magnesium is one of the most researched natural sleep aids available. But does it actually work? And if so, which type should you take? Let's look at what the science says.

How Magnesium Affects Sleep

Magnesium is involved in over 300 enzymatic reactions in the body, and several of those pathways directly influence your ability to fall asleep and stay asleep. Here's how it works:

What the Studies Show

The research on magnesium and sleep is encouraging, particularly for women and older adults who are most likely to be deficient.

The Abbasi 2012 study is one of the most cited trials on magnesium and sleep. Published in the Journal of Research in Medical Sciences, this double-blind, placebo-controlled study found that 500 mg of magnesium taken daily for eight weeks significantly improved subjective sleep quality in elderly adults with insomnia. Participants also showed increased melatonin levels, reduced cortisol, and improved sleep time and sleep efficiency compared to the placebo group [3].

The Boyle 2017 systematic review, published in Nutrients, examined the existing evidence on magnesium and anxiety. The review found that magnesium supplementation had a beneficial effect on subjective anxiety, which is relevant because anxiety is one of the most common drivers of poor sleep in women [4].

Magnesium and restless legs: Restless leg syndrome (RLS) is another sleep disruptor that disproportionately affects women. Hornyak et al. found that magnesium supplementation improved symptoms of periodic limb movements during sleep, a condition closely related to RLS [5]. While the evidence here is more preliminary, magnesium's muscle-relaxing properties provide a plausible mechanism.

Which Type of Magnesium Is Best for Sleep?

Not all magnesium supplements are created equal. The type of magnesium you choose matters significantly for both absorption and the specific benefit you're after.

Our recommendation: For sleep, magnesium glycinate is the clear winner. It combines strong absorption, calming properties from the glycine bond, and minimal digestive side effects.

Magnesium Glycinate — Top Pick for Sleep

Magnesium glycinate is the best-absorbed, most calming form of magnesium for sleep support. The glycine component adds its own relaxation benefits, and this form is gentle on the stomach — an important consideration for daily use.

Suggested dose: 200–400 mg taken 30–60 minutes before bed.

View Top-Rated Magnesium Glycinate on Amazon

Ashwagandha (KSM-66) — Pairs Well with Magnesium

If your sleep problems are driven by stress and anxiety, ashwagandha is an excellent complement to magnesium. KSM-66 is the most clinically studied ashwagandha extract, with research showing it significantly reduces cortisol levels and improves both stress and sleep quality [6]. Combining ashwagandha with magnesium glycinate addresses both the physical and hormonal sides of stress-driven insomnia.

Suggested dose: 300–600 mg daily of KSM-66 ashwagandha root extract.

View Top-Rated Ashwagandha on Amazon

Tips for Better Sleep Beyond Supplements

Supplements work best as part of a broader sleep hygiene routine. Poor sleep also drains your daytime energy — for more on that connection, see our article on supplements for energy after 40. A few evidence-based habits that make a real difference:

Important Disclaimer: This article is for informational purposes only and is not intended as medical advice. Always consult your healthcare provider before starting any new supplement, especially if you are pregnant, nursing, taking medications, or have an existing health condition. Individual results may vary.

Not sure which supplements are right for your sleep?
Take Our Free Quiz

Editorial Standards: This article was written by Sarah Chen, a Registered Dietitian Nutritionist with over 15 years of experience in women's health. Content is reviewed quarterly for accuracy. All sources are cited inline and linked to peer-reviewed research.

Frequently Asked Questions

How much magnesium should I take for sleep?

Most research suggests 200-400 mg of magnesium glycinate taken 30-60 minutes before bed. Start with a lower dose (200 mg) and increase if needed. The upper tolerable limit for supplemental magnesium is 350 mg for adults, though magnesium glycinate tends to be gentler on the stomach than other forms.

Which type of magnesium is best for sleep?

Magnesium glycinate is considered the best form for sleep because it combines high bioavailability with the calming effects of glycine (an amino acid that promotes relaxation). Magnesium citrate is a second choice but has stronger laxative effects. Avoid magnesium oxide for sleep, as it is poorly absorbed.

How long does it take for magnesium to help with sleep?

Some people notice improvements in sleep quality within a few days to a week. However, the full benefits of magnesium supplementation typically develop over 4-8 weeks of consistent daily use, as it takes time to replenish depleted magnesium stores and regulate the sleep-related pathways.

Can I take magnesium every night?

Yes, magnesium glycinate is safe for daily use and is not habit-forming like some sleep medications. Many women benefit from taking it nightly as part of their bedtime routine. If you have kidney disease or take certain medications, consult your doctor first, as impaired kidney function can affect magnesium excretion.

Sources

  1. National Sleep Foundation. "Menopause and Sleep." sleepfoundation.org
  2. Held K, et al. "Oral Mg2+ supplementation reverses age-related neuroendocrine and sleep EEG changes in humans." Pharmacopsychiatry. 2002;35(4):135-143. PubMed
  3. Abbasi B, et al. "The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial." Journal of Research in Medical Sciences. 2012;17(12):1161-1169. PubMed
  4. Boyle NB, et al. "The Effects of Magnesium Supplementation on Subjective Anxiety and Stress — A Systematic Review." Nutrients. 2017;9(5):429. PubMed
  5. Hornyak M, et al. "Magnesium therapy for periodic leg movements-related insomnia and restless legs syndrome: An open pilot study." Sleep. 1998;21(5):501-505. PubMed
  6. Langade D, et al. "Efficacy and Safety of Ashwagandha (Withania somnifera) Root Extract in Insomnia and Anxiety: A Double-blind, Randomized, Placebo-controlled Study." Cureus. 2019;11(9):e5797. PubMed
  7. NIH Office of Dietary Supplements. "Magnesium — Fact Sheet for Health Professionals." ods.od.nih.gov