- Magnesium plays a real role in sleep regulation — it calms the nervous system and helps the body produce melatonin
- Around half of adults in Western countries don't get enough magnesium from food alone
- Studies show supplementation can reduce the time it takes to fall asleep by up to 17 minutes and add around 16 minutes of total sleep time
- The evidence is strongest in older adults and people who are deficient — effects in healthy, well-nourished adults are less clear
- The form of magnesium matters: glycinate and bisglycinate are better absorbed and gentler on the stomach than oxide
Why magnesium and sleep are connected
Magnesium is involved in over 300 biochemical processes in the body — and several of them are directly relevant to sleep. It activates the parasympathetic nervous system (the "rest and digest" mode), blocks the NMDA receptor which is responsible for keeping the brain alert, and supports the production of GABA, the main calming neurotransmitter in the brain. It also plays a role in regulating melatonin and keeping cortisol levels in check at night.
In short, low magnesium gives your brain a harder time switching off. And the problem is widespread: research suggests that around 50–60% of adults in Western countries don't meet the recommended daily intake through diet alone. Ultra-processed food, soil depletion, high stress levels, and heavy alcohol use all deplete magnesium. So does ageing — older adults both absorb less and excrete more of it.
What the studies show
A 2025 review published in Nature and Science of Sleep — the most comprehensive to date — pulled together the full body of evidence on magnesium and sleep disorders. The headline finding from a meta-analysis of three randomised controlled trials: compared to placebo, magnesium supplementation reduced time to fall asleep by 17.36 minutes and extended total sleep time by 16 minutes. These are meaningful improvements for people who struggle with sleep, particularly older adults with insomnia.
An earlier 2024 systematic review from Hackensack Meridian Health looked at 12 studies across diverse populations. The majority showed at least modest benefits for sleep quality and anxiety — with one consistent pattern: studies using higher doses got better results, while all the negative studies used low doses.
A 2025 randomised controlled trial — the largest of its kind with 155 participants — tested magnesium bisglycinate (250mg elemental magnesium daily) against a placebo over several weeks. Participants taking magnesium showed measurably better scores on the Insomnia Severity Index by the end of the trial.
Beyond supplementation, a 2022 study in Biological Trace Element Research found that higher dietary magnesium intake was independently associated with better overall sleep quality, and a negative correlation between magnesium levels and insomnia severity in the general population.
The pros and cons
- Biologically plausible mechanism. Magnesium directly regulates the brain systems responsible for relaxation, alertness suppression, and melatonin production — not a stretch to expect sleep effects.
- Real improvements in insomnia studies. Meta-analyses show meaningful reductions in sleep onset latency and increases in total sleep time, particularly in older adults.
- Safe and widely available. Magnesium is an essential mineral, not a drug. At standard doses it has a strong safety profile and is cheap.
- Fixes a real deficiency. If your sleep issues are partly driven by low magnesium — common in people eating highly processed diets, heavy drinkers, or older adults — supplementation is genuinely addressing a root cause, not masking symptoms.
- Non-habit forming. Unlike sleep medication, you can stop taking it without rebound effects or dependence.
- Evidence is mostly in older adults. The strongest results come from studies in elderly populations. Effects in younger, healthy, well-nourished adults are less consistent and less well studied.
- Results are inconsistent across trials. Roughly half of interventional trials show significant improvements, half show limited effects. Study quality, dose, duration, and population all vary considerably.
- Form matters a lot. Magnesium oxide (the cheapest, most common form) is poorly absorbed. Studies showing positive effects mostly used glycinate, bisglycinate, or citrate. What's in the bottle matters.
- Can cause digestive issues at high doses. Magnesium oxide is particularly notorious for this.
- Not a fix for lifestyle factors. If your sleep is poor because of irregular schedules, late caffeine, alcohol, or high stress, magnesium won't fix those. Fixing those will likely help more.
Who is most likely to benefit
The evidence is clearest for two groups. First, older adults — who absorb less magnesium, excrete more, and have higher rates of insomnia. The meta-analysis data is most robust in this population. Second, people who are likely deficient — those eating few vegetables, nuts, seeds, and wholegrains; people who drink alcohol regularly; those on medications that deplete magnesium (some diuretics, antacids, and antibiotics); and people under chronic stress.
For healthy younger adults with a decent diet and no particular deficiency risk, the evidence is weaker — though it doesn't rule out a benefit. The honest answer is that the research simply hasn't been done at sufficient scale in this group yet.
How to take it
If you want to try it, the form you choose matters more than most supplement labels suggest. The best-absorbed and best-tolerated forms for sleep are magnesium glycinate and magnesium bisglycinate. Magnesium citrate is a reasonable second choice. Avoid magnesium oxide — it's the cheapest form but has poor bioavailability and is most likely to cause gastrointestinal upset.
Check the label for elemental magnesium content, not the total weight of the compound.
Foods naturally rich in magnesium include dark leafy greens (especially spinach), pumpkin seeds, almonds, cashews, black beans, dark chocolate, and whole grains. If your diet is already rich in these foods, supplementation may add little benefit.
Magnesium is one of the more credible sleep supplements — it has a plausible biological mechanism, a reasonable evidence base (especially in older adults or people who are deficient), and a good safety profile. It won't fix poor sleep habits, but if you sleep badly, feel anxious at night, and suspect your diet might not be magnesium-rich, it's a reasonable, low-risk thing to try.
- He C. et al. (2025). The Mechanisms of Magnesium in Sleep Disorders. Nature and Science of Sleep, 17, 2639–2656. DOI: 10.2147/NSS.S552646. PMID: 41116797. View on PMC →
- Rawji A. et al. (2024). Examining the Effects of Supplemental Magnesium on Self-Reported Anxiety and Sleep Quality: A Systematic Review. Cureus, 16(4), e59317. DOI: 10.7759/cureus.59317. View on PMC →
- Arab A. et al. (2023). The Role of Magnesium in Sleep Health: A Systematic Review. Biological Trace Element Research, 201(1), 121–128. DOI: 10.1007/s12011-022-03162-1. PMID: 35184264. View on PubMed →
- Abbasi B. et al. (2012). The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial. Journal of Research in Medical Sciences, 17(12), 1161–1169. PMID: 23853635. View on PubMed →