Skip to content

Save 10% at 10X Health: tests & supplements

Shop now (opens 10X Health in a new tab; affiliate link)
Live10X

Biohacking · Answer

Does magnesium help you sleep?

Magnesium is popular for sleep, but trials are small and mixed. Here's what research shows, which forms people use, and how to get enough from food.
By Reviewed Updated 1 min read

Quick answer

Does magnesium help you sleep?

Magnesium may help sleep a little, particularly in older adults or people with low intake, but the evidence is limited. A 2021 systematic review found only three small trials in older adults, with low-quality evidence overall. Getting enough magnesium from foods like nuts, seeds, beans and leafy greens is a sensible first step before supplementing.

At a glance

Key takeaways

  • Evidence that magnesium improves sleep is limited and low quality.
  • It may help most in people who don't get enough magnesium.
  • Nuts, seeds, legumes, whole grains and leafy greens are rich sources.
  • Supplement upper limit is 350 mg a day for adults unless advised otherwise.

Magnesium is one of the most popular sleep supplements. It plays a role in hundreds of enzyme reactions, including those involved in nerve and muscle function. But does taking it improve sleep?

What the research shows

A 2021 systematic review and meta-analysis looked for randomized trials of oral magnesium for insomnia in older adults. It found only three small trials with 151 participants. Magnesium was associated with falling asleep about 17 minutes faster compared with placebo, but the reviewers rated the overall evidence as low quality, and total sleep time didn't clearly improve.

In short: a modest benefit is possible, particularly in older adults, but it isn't well proven.

Who may benefit most

The NIH Office of Dietary Supplements notes that many Americans get less magnesium from food than recommended. People most likely to have low intake include older adults, people with type 2 diabetes or gastrointestinal conditions, and people with alcohol use disorder. If your intake is low, correcting it may help sleep more than it would for someone who already gets enough.

Food first

Good sources include:

  • Pumpkin seeds, almonds and cashews
  • Spinach and other leafy greens
  • Black beans, edamame and other legumes
  • Whole grains and dark chocolate

Adult RDAs are about 310–420 mg a day depending on age and sex. Not sure you are sleeping enough? Start with how much sleep adults need.

If you supplement

The upper limit for supplemental magnesium is 350 mg per day for adults. Higher doses can cause digestive upset. People with kidney disease should avoid supplements unless a clinician recommends them.

Bigger levers

Consistent sleep timing, a cool dark room, less late caffeine and alcohol, and daytime activity have stronger evidence. See the best room temperature for sleep and our sleep optimization hub.

People also ask

More questions people ask

What is the best magnesium for sleep?

Magnesium glycinate and citrate are well absorbed and commonly used, though no form has been proven best for sleep.

When should I take magnesium for sleep?

People who use it typically take it 30–60 minutes before bed.

Can too much magnesium be harmful?

High doses from supplements can cause diarrhea and cramping. People with kidney disease should avoid supplements unless prescribed.

Answers

Citations

Sources & references

  1. [1]Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-AnalysisMah J, Pitre T. BMC Complementary Medicine and Therapies, 2021 · Meta-analysisView source : Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis (opens in a new tab)
  2. [2]Magnesium: Fact Sheet for Health ProfessionalsNIH Office of Dietary Supplements · Government resourceView source : Magnesium: Fact Sheet for Health Professionals (opens in a new tab)

Study links open a PubMed search for the exact title, so they keep working even if a journal changes its URL.

Our partner store

Shop 10X Health

Genetic testing, the 10X Health System and daily supplements — straight from the official 10X Health store. Save 10% through our links.

Shop the store (opens 10X Health in a new tab; affiliate link)

Affiliate disclosure: Live10X is an independent educational site. If you purchase through our 10X Health links, we may earn a commission at no extra cost to you. It never changes what we write. Read our affiliate disclosure.

See everything we cover

These statements have not been evaluated by the Food and Drug Administration. These products are not intended to diagnose, treat, cure, or prevent any disease.

Stop guessing. Start with data — and a plan.

Take the free wellness assessment to find your highest-leverage focus areas, then explore genetic testing when you're ready to personalize further.

“Shop 10X Health” is an affiliate link — we may earn a commission at no extra cost to you. Affiliate disclosure

Free AssessmentShop · Save 10% (opens 10X Health in a new tab; affiliate link)