
Magnesium and sleep: what the evidence says about the most recommended bedtime supplement
Magnesium has a plausible mechanism for improving sleep through GABA and NMDA receptors, but the trial data shows the effect is modest and largely limited to people with low dietary magnesium intake.
Magnesium is one of the few supplements with a plausible mechanism for improving sleep that holds up to scrutiny. It acts as an agonist at GABA-A receptors, the same receptors targeted by prescription sleep medications, albeit through a different binding site and with far weaker effect. It also suppresses NMDA receptor activity, reducing excitatory signaling in the brain, and supports melatonin synthesis as a cofactor in the conversion of tryptophan to serotonin and serotonin to melatonin.
These mechanisms exist in biochemistry textbooks. Whether they translate to better sleep in people who are not magnesium deficient is a separate question, and the trial data on that question is thinner than most supplement labels acknowledge.
What the trials actually found
A 2024 systematic review and meta-analysis published in Sleep Medicine Reviews examined 13 randomized controlled trials of magnesium supplementation for sleep. The pooled analysis found that magnesium reduced the time it took to fall asleep by an average of 17 minutes compared to placebo. It also increased total sleep time by roughly 24 minutes. The effects were larger in older adults and in people with baseline magnesium intakes below the estimated average requirement.
Those are statistically significant results but they are modest. A 17-minute reduction in sleep latency is meaningful for someone taking 45 minutes to fall asleep. It is probably unnoticeable for someone who falls asleep in 10 minutes. The most consistent finding across studies was a small improvement in sleep efficiency (the percentage of time in bed spent actually sleeping), from roughly 78 percent to 84 percent in two of the better-designed trials.
A separate 2023 trial in the Journal of Research in Medical Sciences tested 500 mg of magnesium oxide in 46 older adults with insomnia. The magnesium group reported improved scores on the Insomnia Severity Index, but the study was open-label and relied on self-reported sleep quality rather than polysomnography. A 2021 study in Nutrients using actigraphy in 60 adults found that magnesium bisglycinate improved sleep onset latency in people with baseline magnesium intake below the RDA, but had no detectable effect above that threshold.
The pattern across the literature is consistent: magnesium helps sleep when magnesium status is low. When magnesium intake is already adequate, adding more does little.
Which form of magnesium
The supplement aisle offers magnesium oxide, citrate, glycinate, L-threonate, chloride, sulfate, malate, and taurate. They differ in bioavailability and the effects of their anion partners.
Magnesium glycinate (magnesium bound to the amino acid glycine) has the most direct sleep rationale. Glycine itself is an inhibitory neurotransmitter that may promote sleep independently of magnesium. A small body of research, including a 2019 study in Neuropsychopharmacology Reports, suggests glycine lowers core body temperature, which is part of the physiological transition into sleep. Using glycinate provides both the magnesium and the glycine, which may act additively.
Magnesium citrate is more bioavailable than oxide but its laxative effect at doses above 300 mg limits its use as a sleep aid. Magnesium L-threonate was developed to cross the blood-brain barrier more effectively and shows some promise for cognitive endpoints, but its effect on sleep is less studied. Magnesium oxide is the cheapest and most widely sold form, but its bioavailability is poor and the trial data for sleep is weaker.
For sleep specifically, the glycinate form has the most consistent, if modest, evidence.
Who is actually deficient
Estimates vary, but the National Health and Nutrition Examination Survey (NHANES) data consistently finds that roughly half of American adults consume less than the estimated average requirement for magnesium from food alone. The numbers skew higher for older adults, people with type 2 diabetes, and those taking proton pump inhibitors or diuretics long-term.
Dietary magnesium is abundant in leafy greens, nuts, seeds, legumes, and whole grains. The modern diet strips much of it out through food processing. Refined grains lose about 80 percent of their magnesium content. The same diet that is low in fiber tends to be low in magnesium.
What the evidence does not say
Magnesium is not a sleeping pill. The effect sizes in the trials are small and the effects appear only when there is a deficiency to correct. No trial has shown that magnesium outperforms cognitive behavioral therapy for insomnia or matches the effect size of prescription hypnotics.
Safety at doses up to 350 mg of elemental magnesium per day is well established. Above that, the main side effect is gastrointestinal: diarrhea, cramping, bloating. Magnesium competes with calcium for absorption and very high doses of one can impair the other. People with kidney disease should not supplement magnesium without medical supervision because the kidneys regulate magnesium excretion.
The bottom line
Magnesium has a plausible biological mechanism for sleep and enough trial data to support modest benefit in people whose dietary intake is low. For everyone else, the evidence says the effect is minimal. The glycinate form has the best rationale for sleep. Starting with dietary sources (leafy greens, nuts, seeds) is the first step. If supplementing, 200 to 350 mg of elemental magnesium as glycinate, taken an hour before bed, is the best-supported approach in the literature. As with any supplement, consult a medical professional before starting.
Margot Ellis
Science writer covering sleep chronobiology, chronotypes, and the supplement-sleep intersection. Reports from London.

