Hvile
Sleep
Lina

Magnesium and Sleep: The Mineral Most People Are Deficient In

May 17, 2026
2 min read
Swedish Fika moment promoting creativity and social connection.

Magnesium is involved in over 300 enzymatic processes in the human body—from ATP production to protein synthesis to DNA repair. It is also the primary mineral regulator of the GABA receptor system, the nervous system's main inhibitory network. Without sufficient magnesium, the nervous system cannot effectively down-regulate from alertness to rest. This is why magnesium deficiency is one of the most common and most overlooked contributors to poor sleep and chronic anxiety.

Studies suggest that up to 50–75% of adults in Western countries consume less than the recommended daily amount of magnesium, primarily due to soil depletion, processed food diets, and the magnesium-depleting effects of caffeine, alcohol, and chronic stress.

Magnesium and Sleep: The Mechanisms

MechanismEffect on Sleep
GABA receptor bindingPromotes neural calm; reduces time to sleep onset
Melatonin regulationRequired for melatonin synthesis from serotonin
Cortisol regulationBlunts hypothalamic-pituitary-adrenal (HPA) axis hyperactivity
Muscle relaxationAntagonises calcium at muscle fibre level, reducing nocturnal cramps
Nerve signal regulationReduces nervous system hyperexcitability that causes racing mind

Best Forms of Magnesium for Sleep

FormAbsorptionBest ForNotes
Magnesium glycinateVery highSleep, anxiety, muscle relaxationBest tolerated; no laxative effect
Magnesium L-threonateHigh (crosses BBB)Cognitive function, brain magnesiumExpensive; more research needed
Magnesium citrateGoodGeneral supplementationMild laxative effect at higher doses
Magnesium oxidePoor (~4%)Constipation onlyMost common in cheap supplements—avoid for sleep

Dietary Sources First

Dark leafy greens (spinach, chard), pumpkin seeds, dark chocolate (70%+), legumes, almonds, and avocado are the richest dietary sources. Aim for 400–420 mg/day (men) or 310–320 mg/day (women) from food before supplementing. If supplementing for sleep, 200–400 mg magnesium glycinate taken 30–60 minutes before bed is the most evidence-supported approach. Combine with the full sleep hygiene protocol for compounding results.

«Magnesium is involved in over 300 enzymatic reactions in the body. Its role in the sleep-wake cycle, via GABA receptor activation, is one of the best-supported mechanisms in sleep nutrition research.» — Andrew Huberman PhD, Stanford School of Medicine
Lina, Founder of Hvile

Written by

Lina

Founder of Hvile

Lina created Hvile after searching for a mindfulness app that felt genuinely calm — not gamified, not clinical. She writes about rest, rituals, and the quiet practices that actually make a difference.