Magnesium
Magnesium might shorten the time it takes older adults to fall asleep a little, but the trials are few, small and low quality. Stay at or under 350 mg a day from supplements.
- Evidence: Weak
- Low effort
- Low cost
- Works: 2–8 weeks in trials
Short answer
The evidence is weak. A 2021 review found only three small trials, all in older adults, and they suggested magnesium cut the time to fall asleep by about 17 minutes, with low-quality evidence. If you want to try it, stay at or under 350 mg a day of magnesium from supplements, and skip it if you have kidney disease unless your doctor agrees.
Why it matters
Magnesium is a mineral you need for hundreds of processes, including nerve and muscle function [3]. It’s often sold as a sleep aid, and it’s cheap. But “cheap and popular” isn’t the same as “proven”, and the studies so far are small.
Most people can get enough from food. Leafy greens, legumes, nuts, seeds and whole grains are good sources. Adult men need 400–420 mg a day and women 310–320 mg, from all sources [3].
How to do it
- Try food first. If your diet is low in greens, beans, nuts and whole grains, fixing that is the safer first step [3].
- If you supplement, stay at or under 350 mg a day. That’s the US upper limit for magnesium from supplements and medicines in adults. It doesn’t include magnesium in food [3]. The trials used more: 320–729 mg of elemental magnesium a day [1]. The trial with the clearest result gave 500 mg a day, as two 250 mg doses [2]. Higher doses are best taken only with a doctor’s advice.
- Read the label for elemental magnesium. The Supplement Facts panel lists the amount of magnesium itself, not the weight of the whole compound [3].
- Choose a form that dissolves well, if you care about absorption. Small studies found the citrate, aspartate, lactate and chloride forms are absorbed better than magnesium oxide [3]. The sleep trials used oxide and citrate [1]. We found no sleep trial of magnesium glycinate, so claims that it’s “the sleep form” aren’t backed by sleep studies.
- Timing: the trials gave magnesium two or three times a day [1], not only at bedtime. There’s no evidence that one time of day works better.
- Give it a few weeks, then judge. Trials lasted 20 days to 8 weeks [1].
Check with a doctor or pharmacist first if you’re pregnant or breastfeeding, have kidney disease, or take any regular medication. In the US, the FDA doesn’t approve dietary supplements before they’re sold; the maker is responsible for their safety and labels [4].
Side effects
High doses from supplements often cause diarrhea, sometimes with nausea and stomach cramps. Carbonate, chloride, gluconate and oxide are the forms most often reported to do this [3]. Very large doses, usually above 5,000 mg a day from laxatives or antacids, have caused dangerous magnesium toxicity, including low blood pressure and irregular heartbeat. The risk is higher with poor kidney function, because the kidneys remove extra magnesium [3].
Interactions
The NIH lists these [3]:
- Bisphosphonates for osteoporosis (such as alendronate): magnesium reduces their absorption. Take them at least 2 hours apart.
- Tetracycline and quinolone antibiotics (such as doxycycline and ciprofloxacin): take the antibiotic at least 2 hours before, or 4–6 hours after, magnesium.
- Diuretics (“water pills”, often used for blood pressure): loop and thiazide diuretics increase magnesium loss; potassium-sparing diuretics reduce it, so extra magnesium may build up.
- Proton pump inhibitors for acid reflux: long-term use can lower magnesium levels.
Many antacids and laxatives already contain magnesium [3], so count them toward the limit. Never stop a prescribed medicine to make room for a supplement.
Common mistakes
- Taking a “high-strength” product above 350 mg a day without asking a doctor [3].
- Doubling up with a magnesium antacid or laxative [3].
- Expecting a sleeping pill. The pooled benefit was about 17 minutes faster sleep onset in older adults with insomnia, and the evidence for it was low quality [1].
- Taking it at the same time as antibiotics or bisphosphonates [3].
Effect on your sleep score
- Time to fall asleep: about 17 minutes shorter than placebo in the pooled trials, in older adults with insomnia [1].
- Total sleep: about 16 minutes more on average, but not statistically significant [1].
- Efficiency: the Abbasi trial reported better sleep efficiency from sleep logs [2].
- Deep sleep, REM, HRV, resting heart rate: we found no study measuring these in healthy adults with wearables.
How confident: low. If you sleep well already, expect little or no change.
Evidence
Rated Weak. The 2021 systematic review found just three randomized trials, with 151 older adults in three countries. All were at moderate to high risk of bias, and the evidence was rated low to very low quality [1]. The authors said the evidence isn’t good enough for doctors to make well-informed recommendations.
The largest single trial gave 46 adults aged 60 to 75 with insomnia 500 mg of magnesium (as magnesium oxide) or placebo for 8 weeks. Insomnia scores, time to fall asleep and sleep efficiency improved, mostly by questionnaire and sleep diary [2]. People with high magnesium intake or kidney disease were excluded [1].
Limits: no trials in younger healthy adults, small samples, short follow-up, and doses above the upper limit. We don’t know if magnesium helps people who already get enough from food.
Try this week
Write down what you ate yesterday and count the servings of leafy greens, beans, nuts, seeds and whole grains. Add one serving a day this week. If you still want a supplement, ask your pharmacist whether it’s safe with your medicines, and choose one with 350 mg or less of elemental magnesium per day.
Sources
- [1]Mah J, Pitre T (2021). Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complementary Medicine and Therapies. Systematic review / meta-analysis
- [2]Abbasi B, Kimiagar M, Sadeghniiat K, 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. Randomized trial
- [3]NIH Office of Dietary Supplements (2026). Magnesium: Fact Sheet for Health Professionals. Government / regulator
- [4]US Food and Drug Administration (2026). Questions and Answers on Dietary Supplements. Government / regulator
General information for healthy adults, not medical advice. If you have a sleep problem that lasts, read when to see a doctor. Sources checked 4 October 2026. Spot a mistake? Tell us.