Guides
Clinical AnswerEvidence: PromisingSupplementsSleep

Does magnesium help sleep?

Hillary Lin, MD·MD Reviewed: May 7, 2026·1 min read

Magnesium may help some people sleep, especially if intake is low or constipation/muscle tension is part of the picture. It is not a universal insomnia treatment.

Clinical answer

Short answer

Magnesium is reasonable to try for selected people, but the sleep evidence is modest. I would fix light, caffeine, alcohol, timing, and stress physiology first.

Who should consider it

People with low magnesium intake, constipation, muscle cramps, restless sleep, or a preference for a low-risk trial after sleep basics are handled.

Who should skip or avoid it

People with significant kidney disease, recurrent low blood pressure, problematic diarrhea, or medication interactions should ask their clinician first.

What to measure before / after

Sleep latency, awakenings, next-day grogginess, bowel changes, blood pressure symptoms, and kidney function when risk is present.

What I’d do first

If trying it, use a modest dose in the evening and judge it by sleep quality and side effects after 1–2 weeks. Stop if it causes diarrhea, grogginess, or no benefit.

What would change my mind

I would upgrade magnesium for sleep if larger randomized trials show consistent improvements in objective sleep outcomes across non-deficient adults.

The honest read

There is a signal, but not enough to pretend magnesium is a primary insomnia treatment. The best use is a measured trial in the right person, not a forever pill added to a chaotic sleep routine.

References & citations

  1. 1.Abbasi et al. Effect of magnesium supplementation on primary insomnia in elderly adults. Journal of Research in Medical Sciences, 2012
  2. 2.Oral magnesium supplementation for insomnia in older adults: systematic review
  3. 3.The role of magnesium in sleep health: systematic review

Related Guides

Ready to take action?

Work with a longevity physician

CareCore pairs longevity protocols with clinician review, documentation, and follow-through.

Explore CareCore