Scroll through social media for a few minutes and someone will tell you magnesium is the secret to deep, uninterrupted sleep. Powders, gummies, sprays and bedtime "mocktails" have turned a basic mineral into a nightly ritual for a lot of people.
Magnesium is essential, and it may help some people sleep a little better. But the research is thinner and more modest than the hype. Here's how five common claims hold up.
Myth 1: Magnesium is a proven sleep aid
Fact: the evidence is encouraging but low quality. A 2021 systematic review found only three randomized trials comparing oral magnesium with placebo for insomnia in older adults, with 151 people in total. Pooled together, magnesium shortened the time it took to fall asleep by about 17 minutes. Total sleep time rose by about 16 minutes, but that difference wasn't statistically significant (Mah and Pitre, 2021).
All three trials had a moderate to high risk of bias, and the reviewers rated the evidence as low to very low quality (Mah and Pitre, 2021). Promising, in other words, but not proven.
Myth 2: Magnesium works like a sleeping pill
Fact: when it helps, the effect tends to be modest. In a 2025 randomized trial, 155 adults aged 18 to 65 who reported poor sleep took either 250 mg of elemental magnesium as magnesium bisglycinate or a placebo each day. After 4 weeks, insomnia severity scores fell by 3.9 points in the magnesium group and 2.3 points in the placebo group (Schuster et al., 2025).
That difference was statistically significant, but the effect size was small, and the authors described the benefit as modest (Schuster et al., 2025). Notice, too, that the placebo group improved. That's exactly why placebo-controlled trials matter so much when judging sleep products.
Myth 3: One form of magnesium is best for sleep
Fact: the trials described here each tested one form against placebo, not forms against each other. Besides the bisglycinate trial, a 21-day trial in 80 adults aged 35 to 55 with sleep problems found that 1 gram a day of magnesium L-threonate improved several sleep scores measured by a wearable ring, along with daytime measures such as energy and mood, compared with placebo (Hausenblas et al., 2024).
An earlier trial in 46 older adults used 500 mg of magnesium a day for 8 weeks and reported better insomnia severity scores and faster sleep onset than placebo (Abbasi et al., 2012).
These studies used different forms, doses, people and ways of measuring sleep, so they can't tell you which form is best. Choosing a form your gut tolerates well is a sensible tiebreaker.
Myth 4: Magnesium helps everyone equally
Fact: people with low intake may benefit more. In the 2025 bisglycinate trial, an exploratory analysis suggested larger improvements among participants who reported lower dietary magnesium intake at the start (Schuster et al., 2025).
Exploratory findings need confirmation. But they fit a reasonable idea: making up a shortfall is different from adding more to a diet that already provides enough.
Myth 5: If a little helps, more is better
Fact: more mostly means more side effects. For adults, the upper limit for magnesium from supplements and medications is 350 mg a day, and high supplement doses often cause diarrhea, nausea and cramping (NIH Office of Dietary Supplements).
The 500 mg dose in the older trial was above that limit, which is one reason not to copy study doses on your own. The risk of magnesium building up is also higher in people with impaired kidney function (NIH Office of Dietary Supplements).
A realistic way to try it
Start with food. Pumpkin seeds, chia seeds, almonds, spinach and black beans are all good sources of magnesium (NIH Office of Dietary Supplements).
If you add a supplement, keep it simple. Pick one product, stay within the upper limit and don't stack several magnesium-containing products.
Give it about 4 weeks, the length of the bisglycinate trial, and keep a short sleep diary so you're judging the whole month rather than one good night.
Keep the basics in place. A steady wake time, a caffeine cutoff and a wind-down routine still matter.
Ask about CBT-I (cognitive behavioral therapy for insomnia) if poor sleep has lasted for months.
When to see a doctor
Talk to your doctor if poor sleep lasts more than a few weeks and affects your days, if you snore loudly or someone notices pauses in your breathing, or if digestive symptoms wake you at night. Check before taking magnesium if you have kidney disease or take antibiotics, osteoporosis medication, diuretics or long-term acid-reducing drugs.
Sources
Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complement Med Ther. 2021;21(1):125. PMID 33865376
Schuster J, Cycelskij I, Lopresti A, Hahn A. Magnesium bisglycinate supplementation in healthy adults reporting poor sleep: a randomized, placebo-controlled trial. Nat Sci Sleep. 2025;17:2027-2040. PMID 40918053
Hausenblas HA, Lynch T, Hooper S, Shrestha A, Rosendale D, Gu J. Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: a randomized controlled trial. Sleep Med X. 2024;8:100121. PMID 39252819
Abbasi B, Kimiagar M, Sadeghniiat K, Shirazi MM, Hedayati M, Rashidkhani B. The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trial. J Res Med Sci. 2012;17(12):1161-9. PMID 23853635
National Institutes of Health, Office of Dietary Supplements. Magnesium: fact sheet for health professionals. ods.od.nih.gov
This article is for general information and isn't medical advice. Talk to your healthcare provider before taking magnesium if you have kidney disease or take prescription medication, and about sleep problems that don't improve.
The weekly email
Straight answers about the gut after 40, once a week.