Magnesium
An essential mineral involved in hundreds of bodily processes, including the systems that help your nervous system relax. Popular for sleep, with promising but still-developing evidence.

- Common timing: 1–2 hours before bed
- Evidence strength: Moderate / mixed
What magnesium is
Magnesium is an essential mineral your body uses in more than 300 enzymatic reactions — including nerve signaling, muscle relaxation, and the regulation of neurotransmitters like GABA that calm the nervous system. Because of that calming role, it's become one of the most popular sleep-related supplements.
Many adults get less than the recommended amount of magnesium from diet alone. Food sources include leafy greens, nuts, seeds, legumes, and whole grains.
What the evidence says
The evidence is promising but not definitive. Some small trials — particularly in older adults with insomnia — show modest improvements in how quickly people fall asleep and their sleep quality. Larger, higher-quality studies are still needed, and results are mixed.
Forms and timing
Not all forms absorb equally. Magnesium glycinate and citrate are commonly preferred for sleep because they're well-absorbed and gentler on digestion; magnesium oxide is cheap but poorly absorbed and more likely to cause loose stools. If used for sleep, it's typically taken one to two hours before bed.
Safety and limits
Magnesium from food is safe. From supplements, high doses can cause digestive upset and diarrhea, and people with kidney problems should be especially cautious. It can also interact with certain medications.
References
- Abbasi B, et al. The effect of magnesium supplementation on primary insomnia in elderly. J Res Med Sci. 2012.
- National Institutes of Health, Office of Dietary Supplements — Magnesium Fact Sheet.
Magnesium: FAQ
The biggest wins aren't in a bottle
Ingredients are supporting players. The free Sleep Assessment finds the habits and factors that move the needle most for you.
More from the library
All ingredientsMelatonin
A hormone your body makes to signal that it's night. As a supplement it's best understood as a timing tool for your body clock — not a sleeping pill.
Learn moreL-Theanine
An amino acid found in tea leaves, associated with a state of relaxed alertness. Studied for reducing stress and supporting a calmer transition to sleep.
Learn moreCaffeine
The world's most popular stimulant — and one of the most common hidden causes of poor sleep. Understanding its half-life is the key to enjoying it without wrecking your night.
Learn moreLavender
A fragrant herb long used for relaxation. Modern research on lavender aromatherapy suggests it may modestly support calm and sleep quality — most useful as part of a wind-down ritual.
Learn more