Does Magnesium Help You Sleep?
On this page
The short answer
Magnesium may help some people fall asleep a little faster, but the evidence is weak. A 2021 meta-analysis of trials in older adults with insomnia found people taking magnesium fell asleep about 17 minutes faster than with a placebo, but the studies were small and the certainty of evidence was low to very low (Mah and Pitre, 2021). Total sleep time did not improve significantly.
Evidence verdict: Weak. It is cheap and fairly safe for most healthy adults, but it is not a proven sleep treatment.
What the research shows
| Study | What it found |
|---|---|
| Meta-analysis of 3 trials, 151 older adults with insomnia (2021) | About 17 minutes faster to fall asleep; no significant change in total sleep time; low to very low certainty |
| Systematic review of magnesium and sleep (2022) | Mixed results; observational links between low magnesium and poor sleep, but limited trial evidence (Arab et al., 2022) |
Most trials were small, short and included mainly older adults, so results may not apply to everyone.
Who might benefit most
- People with low magnesium intake or a confirmed deficiency
- Older adults with mild sleep problems
- People who also have night-time leg cramps, although evidence for cramps is also limited
People with good diets and normal magnesium levels are less likely to notice a difference.
Which form and dose?
- Magnesium glycinate and citrate are better absorbed and gentler on the stomach than magnesium oxide
- Trials used roughly 250 to 500 mg of elemental magnesium a day
- The upper limit for magnesium from supplements in adults is 350 mg per day, according to the NIH Office of Dietary Supplements. Higher doses should only be taken with medical advice.
- Many people take it 30 to 60 minutes before bed
Side effects and safety
- Diarrhoea, nausea and stomach cramps are the most common side effects, especially with oxide, carbonate and chloride forms
- Avoid without medical advice if you have kidney disease, because magnesium can build up to dangerous levels
- Magnesium can reduce absorption of some antibiotics (tetracyclines such as doxycycline, and quinolones such as ciprofloxacin) and osteoporosis medicines (bisphosphonates). Take them at least 2 hours apart.
Better-proven ways to sleep better
- Cognitive behavioural therapy for insomnia (CBT-I) is the first-line treatment for chronic insomnia
- A regular sleep and wake time, limiting caffeine after midday and reducing evening screen use
- Talk to a doctor if poor sleep lasts more than a few weeks, or if you snore loudly or stop breathing at night
Frequently asked questions
How long does magnesium take to work for sleep? In trials, effects were measured after several weeks of daily use. A single dose is unlikely to make a big difference.
Is magnesium glycinate better for sleep than other forms? It is well absorbed and less likely to cause diarrhoea, but no good trials show it is better for sleep than other forms.
Can I take magnesium every night? Most healthy adults can take a standard dose daily. Stay at or below 350 mg a day from supplements unless a doctor advises more.
Does magnesium help with anxiety and sleep together? Some small studies suggest a possible benefit for mild anxiety, but the evidence is weak.
The bottom line
Magnesium is a reasonable, low-cost thing to try for mild sleep problems, but expect a small effect at best. It does not replace proven insomnia treatment.
Medical disclaimer: This article is for general information only and is not medical advice. Talk to your doctor or pharmacist before starting supplements.
Sources
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complement Med Ther. 2021.
- Arab A, et al. The role of magnesium in sleep health: a systematic review of available literature. Biol Trace Elem Res. 2022.
- NIH Office of Dietary Supplements. Magnesium: fact sheet for health professionals.