Home / Sleep science / Supplements
Supplements

Magnesium for sleep: does it work, which form, and how much

Magnesium is one of the most studied sleep supplements, with a credible mechanism of action and consistent evidence behind it. But the form you take matters as much as the dose, and most people are taking the wrong one.

Supplement marketing is relentless and frequently dishonest. Claims are made without evidence, doses are set arbitrarily, and the specific form of a compound is rarely disclosed. Magnesium is different. It has a well-understood physiological role in sleep, a body of research supporting its use, and the evidence is strong enough that it appears in mainstream clinical guidance for sleep difficulties. If you take one sleep supplement, make it magnesium. But the form matters significantly.

For context on why sleep quality affects every area of health, read our article on why sleep is the foundation of all health and wellness. For the other environmental and behavioural changes that work alongside magnesium supplementation, see our guide to bedroom temperature and our article on sleep sounds and white noise.

What magnesium does in the body

Magnesium is the fourth most abundant mineral in the human body and is involved in over 300 enzymatic processes. For sleep specifically, the most important mechanisms are its role in regulating GABA receptors and its ability to support the nervous system's transition from sympathetic activation to parasympathetic rest.

GABA is the primary inhibitory neurotransmitter in the central nervous system. It reduces neuronal excitability, essentially quieting the brain's activity. Magnesium acts as a cofactor for GABA receptor function, meaning that adequate magnesium levels support the brain's ability to downregulate its activity at sleep onset. Low magnesium is directly associated with increased neural hyperexcitability, which manifests as difficulty falling asleep, restless legs, and frequent waking.

How common is magnesium deficiency

More common than most people realise. An estimated 50 to 80 percent of adults in Western countries have magnesium intakes below the recommended daily amount. This is partly a consequence of industrial food production, which has depleted the magnesium content of soil over the past century, and partly the result of diets high in processed foods and low in magnesium-rich whole foods including leafy greens, nuts, seeds and legumes.

50-80%
of Western adults below recommended magnesium intake
300+
enzymatic processes requiring magnesium
200-400mg
glycinate recommended dose for sleep

What the research shows

A 2012 randomised controlled trial published in the Journal of Research in Medical Sciences found that magnesium supplementation in elderly subjects with insomnia significantly improved sleep onset time, sleep efficiency, total sleep time, and early morning awakening compared to placebo. Serum melatonin levels also increased in the supplementation group.

A 2021 systematic review and meta-analysis in Sleep Medicine Reviews, examining multiple controlled trials, concluded that magnesium supplementation was associated with significant improvements in subjective insomnia measures. A 2022 study in BMC Complementary Medicine and Therapies found similar improvements in younger adult populations.

The evidence is strong enough that magnesium deficiency is now included as a contributing factor to insomnia in mainstream clinical nutrition guidance. If you have difficulty falling asleep, wake frequently, or experience restless legs, magnesium deficiency is a plausible contributing factor and one of the most straightforward things you can address.

Why the form of magnesium matters

This is the part supplement labels rarely explain. Not all magnesium compounds are absorbed equally. The form determines how much elemental magnesium your body actually absorbs and uses, and the differences are dramatic.

Hard truth

The vast majority of magnesium supplements sold in supermarkets and pharmacies are magnesium oxide. If your supplement does not specify the form it contains, it is almost certainly oxide, and you are unlikely to notice any sleep benefit at all. Check the label specifically for "magnesium glycinate" or "magnesium bisglycinate".

How to take magnesium for sleep

200 to 400mg of elemental magnesium glycinate, taken 30 to 60 minutes before bed. Start at the lower end and adjust based on your response. It can be taken with or without food. Do not take it alongside other mineral supplements including zinc, as these can compete for absorption pathways.

Magnesium spray as an alternative

Transdermal magnesium, applied as a spray or oil to the skin, is a legitimate alternative for those who prefer not to take oral supplements or who have sensitive digestion. The absorption rate is lower than glycinate capsules but meaningful, and it avoids any digestive side effects. Apply to the legs or abdomen 20 to 30 minutes before bed. Some people use both oral and topical forms together.

Recommended product
Magnesium Glycinate Capsules

Look for a product specifying magnesium bisglycinate or magnesium glycinate. 200-400mg elemental magnesium per dose. No unnecessary fillers. Take 30-60 minutes before bed.

View via our affiliate link
Recommended product
Magnesium Body Spray

Transdermal application. No tablets required. Apply to legs or abdomen 20-30 minutes before bed. Good option if you have digestive sensitivity or prefer topical application.

View via our affiliate link
Pair it with sound

Taking magnesium 30 minutes before bed pairs well with starting your sleep sounds at the same time. Both work toward the same outcome via different physiological pathways. The Little Ones brown noise track is our recommendation for adult sleep.