Quick answer
Magnesium may help some people fall asleep a little faster, but the evidence is limited. A meta-analysis of three small trials in older adults found people fell asleep about 17 minutes sooner than with placebo, but the evidence quality was low. It is most likely to help people with low magnesium intake. Supplemental magnesium should stay under 350 mg a day unless a doctor advises otherwise.
Key takeaways
- Trials show a modest improvement in time to fall asleep, but the evidence quality is low.
- People with low dietary intake are the most likely to benefit.
- Glycinate and citrate are commonly chosen. Oxide is more likely to cause digestive side effects.
- The upper limit for supplemental magnesium in adults is 350 mg per day.
- Avoid supplementing without medical advice if you have kidney disease, and check medicine interactions.
Why magnesium is linked to sleep
Magnesium is involved in hundreds of enzyme reactions, including those that regulate nerve signalling and muscle relaxation. It interacts with GABA receptors, part of the system that calms the nervous system, and helps regulate stress hormone pathways. That biology is why magnesium is often promoted for sleep and relaxation. Plausible mechanisms, though, are not the same as proven outcomes.
What does the research actually show?
The best summary comes from a 2021 systematic review and meta-analysis of randomised trials in older adults with insomnia. It identified three trials involving 151 people. Pooled results showed people taking magnesium fell asleep 17.36 minutes faster than those on placebo. Total sleep time improved by around 16 minutes, but that difference was not statistically significant 1.
The authors were clear about the limits: all trials had moderate-to-high risk of bias, and the evidence quality was low to very low. They concluded the literature is not strong enough for confident recommendations, while noting that magnesium is cheap, widely available and may reasonably be tried for insomnia symptoms 1.
Which form of magnesium is best for sleep?
- Magnesium glycinate (bisglycinate): popular for sleep and generally gentle on digestion.
- Magnesium citrate: well absorbed, but can have a laxative effect at higher doses.
- Magnesium oxide: inexpensive and common in trials, but more likely to cause loose stools.
- Magnesium L-threonate: marketed for the brain, with limited human evidence for sleep so far.
Head-to-head sleep trials comparing forms are lacking, so tolerability and cost are reasonable deciding factors.
How much magnesium is safe?
For adults, the tolerable upper intake level for magnesium from supplements and medicines is 350 mg per day. This limit does not include magnesium from food. Higher supplemental doses commonly cause diarrhoea, nausea and cramping, and very high intakes can be dangerous for people with impaired kidney function 2.
Magnesium can also interact with some medicines, including bisphosphonates for osteoporosis, certain antibiotics such as tetracyclines and quinolones, and some diuretics. Doses often need to be separated in time, so check with a pharmacist or doctor 2.
Better sleep starts with the basics
Even for people who respond, magnesium is a small lever compared with consistent sleep and wake times, morning light, limiting alcohol and caffeine late in the day, and a cool, dark bedroom. If you snore loudly, stop breathing during sleep, or have insomnia lasting more than a few weeks, speak to a clinician. Conditions like sleep apnoea need proper assessment.
Frequently asked questions
When should I take magnesium for sleep?
Many people take it 30–60 minutes before bed, but consistency matters more than exact timing. Taking it with food can reduce digestive side effects.
Can I take magnesium every night?
For most healthy adults, nightly use within the 350 mg supplemental upper limit is considered safe. People with kidney disease or taking interacting medicines should get medical advice first.
Is magnesium glycinate better than melatonin?
They work differently. Melatonin shifts sleep timing and has better evidence for jet lag and delayed sleep phase, while magnesium’s evidence for insomnia is limited. Neither replaces good sleep habits or treatment for sleep disorders.
How do I know if I am low in magnesium?
Blood tests measure only a small fraction of total body magnesium, so a normal result does not rule out low intake. Diet review is often as informative, since nuts, seeds, legumes, whole grains and leafy greens are good sources.
Sources
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review & meta-analysis. BMC Complement Med Ther. 2021;21(1):125. doi.org/10.1186/s12906-021-03297-z
- National Institutes of Health, Office of Dietary Supplements. Magnesium: fact sheet for health professionals. ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
Medical disclaimer: This article is for general information and education only and is not medical advice. It does not replace diagnosis or treatment by a qualified clinician. Talk to your doctor or pharmacist before starting supplements, especially if you are pregnant, take medicines or have a medical condition. Evidence reviewed as of 16 September 2026.
