If you take magnesium hoping to fall asleep faster, the honest answer is a qualified yes, and mostly for one group.
A pooled analysis of three trials in BMC Complementary Medicine and Therapies looked at older adults with insomnia. It found magnesium cut the time to fall asleep by about 17 minutes compared with placebo.
Total sleep time also improved by around 16 minutes on average. That gain was not statistically significant.
The three trials pooled 151 older adults with insomnia. Doses ran from 320 to 729 mg of elemental magnesium a day.
Also read: How to get more iron from plant foods: the pairings that make a real difference
There is a big caveat. The authors rated the overall evidence as low to very low certainty. All three trials also carried a moderate to high risk of bias.
That means the 17 minute figure is a real signal in the data, but a shaky one.
How magnesium could quiet the brain
Magnesium plays a role in the systems that dial the brain down at night. A 2025 review in Nature and Science of Sleep describes how magnesium ions bind to GABA receptors, the brain's main brakes on nerve activity.
That interaction dampens excitability and helps sleep begin. Magnesium also blocks NMDA receptors, which carry the brain's excitatory glutamate signals. The result is less arousal in the neurons that keep you alert.
Also read: Aged cheese, wheat germ and mushrooms are linked to longer life
The mineral supports melatonin production too. Magnesium helps an enzyme called serotonin N-acetyltransferase, which is a step in making the hormone that sets the body's sleep-wake rhythm. In animal studies, low magnesium is linked with lower plasma melatonin.
What a newer 155-person trial adds
Older adults with insomnia are not the only group researchers have tested. A 2025 randomized trial in Nature and Science of Sleep enrolled 155 otherwise healthy adults with poor sleep.
They took 250 mg of elemental magnesium a day, in the well-absorbed bisglycinate form, for four weeks.
Insomnia severity scores fell further in the magnesium group than in the placebo group. The difference reached statistical significance, but the size of the effect was small.
Also read: Want to age healthier? These habits can make a difference
One pattern stood out. Participants whose diets were lowest in magnesium at the start improved the most. The authors described their finding as a modest improvement in insomnia severity, not a broad cure for poor sleep.
Who is most likely to benefit
The pattern in the evidence points in one direction. Magnesium works best in people who are already running short of it. National surveys suggest a large share of US adults fall below the recommended daily intake from food.
Harvard's Nutrition Source lists the recommended intake at 400 to 420 mg a day for men. For women, the range is 310 to 320 mg.
For someone with adequate magnesium intake and no insomnia, the case for a supplement is thinner. Standard advice for sleep problems still starts with consistent bedtimes, cutting late-day caffeine and alcohol, and asking a doctor about causes like sleep apnea.
Also read: What your baby eats in the first year could affect whether they develop eczema
How much is safe
For adults, the tolerable upper intake level for supplemental magnesium is 350 mg a day, per the same Harvard summary of US Institute of Medicine guidance. Magnesium naturally present in food does not count toward that limit.
Above that level, supplement doses can cause diarrhea, nausea and cramping in some people. Anyone taking prescription medication should ask a pharmacist or doctor before starting magnesium, since it can interact with certain drugs.
If sleep problems last more than a few weeks, that is a signal to see a doctor. Loud snoring, gasping at night or heavy daytime sleepiness are also reasons to check for sleep apnea rather than reach for another supplement.
Also read: Sleeping on your side may lower your risk of Alzheimer's
This article is made and published by Mie Hermansen, who may have used AI in the preparation.
