Magnesium is involved in over 300 enzymatic reactions including those regulating GABA receptor activity, cortisol metabolism, and melatonin synthesis. Deficiency is widespread, with surveys estimating 45-50% of Americans consume less than the recommended dietary intake. Sub-optimal magnesium status is associated with poor sleep quality, elevated nighttime cortisol, and reduced slow-wave sleep duration. The evidence that correcting deficiency improves sleep is reasonably strong. The evidence that supplementing beyond adequate intake improves sleep in people who are already replete is weaker. The difference matters because it determines who is likely to benefit from taking a supplement.
How Magnesium Affects Sleep Physiology
GABA-A receptor activity: Magnesium enhances GABA (gamma-aminobutyric acid) signaling, the primary inhibitory neurotransmitter in the central nervous system. GABA activity suppresses neuronal excitability and promotes sleep onset. Low magnesium reduces GABA-A receptor sensitivity, shifting the nervous system toward excitation.
NMDA receptor inhibition: Magnesium blocks NMDA glutamate receptors at resting membrane potentials, reducing excitatory signaling. This blocking action requires adequate intracellular magnesium and weakens with deficiency.
Cortisol regulation: Magnesium deficiency is associated with elevated cortisol, particularly in the evening hours when cortisol should be declining. Higher evening cortisol delays sleep onset and reduces slow-wave sleep duration, the deepest and most restorative stage.
Melatonin pathway: Magnesium is involved in the enzymatic steps that convert serotonin to melatonin. Deficiency may impair melatonin synthesis, delaying the evening circadian signal that initiates sleep.
Which Forms Are Absorbed vs. Which Are Not
The form of magnesium in a supplement determines both its absorption rate and which tissues it reaches:
Magnesium glycinate (bisglycinate): Chelated to glycine, an amino acid. High bioavailability, low laxative effect, and glycine itself has independently demonstrated sleep-promoting properties. A 2012 trial in Sleep and Biological Rhythms showed 3g glycine before bed reduced sleep onset latency and improved subjective sleep quality in healthy volunteers with self-reported sleep complaints. Magnesium glycinate is the most commonly recommended form for sleep applications.
Magnesium threonate (L-threonate): Crosses the blood-brain barrier more efficiently than other forms due to the threonate carrier molecule. A 2022 randomized trial in Nutrients found magnesium threonate improved sleep quality and next-day cognitive performance in adults over 50. The higher CNS penetration makes it specifically relevant for sleep and cognitive applications, though it is considerably more expensive per dose than glycinate.
Magnesium oxide: The most common form in low-cost grocery store supplements due to its high elemental magnesium percentage. Bioavailability is approximately 4%, making it poorly absorbed. Its primary physiological effect is osmotic, drawing water into the colon and acting as a laxative. Not useful for sleep.
Magnesium citrate: Moderate bioavailability, reasonably well tolerated at low-to-moderate doses, but commonly causes loose stools above 400 mg. Useful for constipation. Not specifically indicated or studied for sleep.
Magnesium malate: Bound to malic acid, good absorption, commonly used for muscle recovery and exercise-related fatigue. Not specifically studied for sleep outcomes.
What Clinical Trials Show
A 2012 double-blind randomized controlled trial in the Journal of Research in Medical Sciences randomized 46 older adults with insomnia to 500 mg elemental magnesium or placebo for 8 weeks. The magnesium group showed statistically significant improvements in:
- Sleep onset latency (time to fall asleep)
- Total sleep time
- Sleep efficiency (time asleep divided by time in bed)
- Early morning awakening frequency
- Serum cortisol (decreased)
- Serum melatonin (increased)
The participants were older adults (mean age 62), a population more likely to be deficient due to reduced dietary intake and impaired intestinal absorption with age.
A 2021 systematic review in BMC Complementary Medicine and Therapies examined 7 randomized trials of magnesium supplementation and sleep outcomes. It found consistent improvements in sleep onset latency and subjective sleep quality in older adults, with more modest and inconsistent effects in younger populations. This pattern is consistent with the deficiency hypothesis: older adults are more likely to be deficient and therefore more likely to benefit from correction.
Dietary Magnesium Sources
The recommended daily intake is 400-420 mg for adult men and 310-320 mg for adult women. The gap between these targets and actual intake is primarily explained by displacement of magnesium-rich whole foods by processed foods, as refining grains removes approximately 80% of their magnesium content.
Foods highest in magnesium:
- Pumpkin seeds: 150 mg per 28g serving
- Almonds: 80 mg per 28g
- Spinach: 78 mg per half cup cooked
- Dark chocolate (70%+): 64 mg per 28g
- Black beans: 60 mg per half cup cooked
- Avocado: 58 mg per medium fruit
Getting 200-300 mg/day from food while supplementing the remainder is preferable to relying entirely on supplements, since food magnesium comes with cofactors that support absorption.
Testing Limitations
Serum magnesium tests are an imprecise measure of total body magnesium status. The body tightly regulates serum magnesium within a narrow range by drawing from bone and intracellular stores, meaning serum levels can appear normal while intracellular and tissue magnesium is genuinely low. A normal serum magnesium result does not rule out sub-optimal cellular stores.
Red blood cell magnesium measurement is a better proxy for intracellular status but is not routinely ordered. In practice, most clinicians use serum magnesium for deficiency screening, knowing its limitations.
Practical Dosing for Sleep
For supplementation targeting sleep quality:
- Magnesium glycinate: 200-400 mg elemental magnesium taken 30-60 minutes before bed
- Magnesium threonate: 144 mg elemental magnesium (the dose studied in the 2022 Nutrients trial), typically sold as approximately 2g of the threonate compound
Start at the lower end of the dose range and assess effect over 2-3 weeks. Taking magnesium with a small meal reduces the laxative effect at higher doses.
The response is clearest in people who are actually deficient. If dietary magnesium intake is consistently adequate (close to 350-400 mg/day from food), supplementation is less likely to produce a dramatic change in sleep quality. For people with poor dietary variety, high stress, or alcohol consumption, which increases magnesium excretion, supplementation is more likely to produce a noticeable effect.
For more on sleep physiology and evidence-based approaches to sleep quality, see Sleep Stages and Memory Consolidation and Blue Light and Sleep Disruption.