Supplements

Magnesium for Sleep and Stress: What the Research Actually Says

8 min read · Updated June 2026

Magnesium is one of the few supplements where the research is consistent enough to take seriously. It's involved in over 300 enzymatic reactions in the body — including several that directly regulate sleep and the stress response. Here's what the evidence actually shows.

Why Magnesium and Sleep Are Connected

Magnesium plays a specific role in the sleep-wake cycle through two main mechanisms. First, it activates the parasympathetic nervous system — the "rest and digest" mode that counteracts the stress response. Second, it binds to GABA receptors, the same receptors targeted by many sleep medications, promoting calmness and reducing neural excitability.

Several controlled trials have found that magnesium supplementation improves sleep onset time, sleep efficiency, and early morning awakening in older adults with insomnia. The effect in younger, otherwise healthy adults is less clear — but low magnesium is common enough that correcting a deficiency often makes a noticeable difference regardless of age.

Magnesium and Cortisol

The relationship between magnesium and stress runs both ways. Chronic stress depletes magnesium — the body uses more of it when cortisol is elevated. But low magnesium also makes the HPA axis (your stress response system) more reactive, meaning you respond more intensely to stressors. This creates a cycle that's easy to break from the nutrition side.

Studies have found that magnesium supplementation reduces cortisol levels and perceived stress, particularly in people who were deficient to begin with. The effect is strongest in people under significant physical or psychological stress.

Which Form of Magnesium Actually Works

This is where most people go wrong. Not all magnesium supplements are equal — the form matters enormously for absorption and effect:

For sleep and stress specifically, glycinate is the default choice. Typical doses in sleep research range from 300-500mg elemental magnesium per day.

Getting Magnesium From Food First

Supplements aren't the only route. The best dietary sources of magnesium are exactly the foods that support overall health anyway:

An estimated 50-60% of Western adults don't reach the recommended daily intake (310-420mg depending on age and sex) from food alone. If your diet is low in leafy greens, nuts, seeds, and whole grains — which describes most Western diets — a supplement is a reasonable addition.

When to Take It

For sleep: take magnesium glycinate 1-2 hours before bed. For stress support: split the dose, taking some in the morning and some in the evening. Taking it with food reduces the chance of any digestive discomfort.

Magnesium is included in our sleep and stress supplement recommendations. Both our Better Sleep and Stress Relief meal plans are built around foods rich in magnesium — with the supplement recommendation included alongside each plan.

Get the Sleep Meal Plan →

This article is for informational purposes only. Consult a healthcare provider before starting any new supplement, especially if you take medications or have kidney disease.