Early Summer Sale - Save up to 55% off RRP* with new lines added!
Shop now
Sleep Science

Does Magnesium Help With Sleep? What The Science Actually Says

Published 23 Jun 2026· 5 min read
A picture of Sharon Robson

Written by Sharon Robson

Lifestyle Editor

Mattress Online

Scroll through social media for more than five minutes and you will find someone telling you that magnesium changed their sleep forever. Magnesium is everywhere right now, and while some of the claims are plausible, others are wildly overstated.

As with many things, the truth sits somewhere in the middle. Magnesium does, in fact, play a genuine role in how the body prepares for sleep. But a supplement alone is unlikely to be the silver bullet that wellness influencers suggest.

Here is what the science actually says.

What does magnesium do in the body?

Before getting to sleep specifically, it helps to understand what magnesium actually does. Magnesium is one of the body's most widely used minerals, involved in hundreds of biological processes, including:

  • Energy production. Magnesium is essential for converting food into the cellular energy your body runs on.
  • Protein and DNA synthesis. It plays a foundational role in building proteins, DNA and RNA, the basic machinery of every cell.
  • Muscle and nerve regulation. It controls how muscles contract and relax, and acts as a gatekeeper for electrical signals passing through the nervous system.
  • Cardiovascular health. Magnesium supports healthy blood vessel function, helps regulate blood pressure, and contributes to overall heart health.

So sleep is just one piece of a much larger picture.

Does magnesium help with sleep?

There are several ways magnesium interacts with the mechanisms behind sleep, and they are worth understanding properly.

Unlike prescription sleep medication, it’s important to understand that magnesium does not sedate you. Instead, it works with your body's existing systems rather than overriding them, which is why people who take it do not typically report that heavy, groggy feeling the following morning.

Here is what magnesium can do:

  • Calm the brain. Magnesium binds to GABA receptors, the brain's primary calming receptors. This is the same system involved in sleep paralysis and the body's transition into rest. Activating it helps quieten mental activity before sleep.
  • Reduce excitatory signals, encouraging rest. At a cellular level, magnesium can dampen the electrical signals that keep your nervous system activated, bringing the body toward a calmer baseline.
  • Suppress cortisol. Some studies suggest magnesium can reduce cortisol production. Given that elevated cortisol is one of the main reasons people struggle to fall or stay asleep, this matters.
  • Support melatonin production. Research also indicates that magnesium plays a role in producing melatonin, the hormone that signals to your body that it is time to sleep.

While the wider benefits are great, it is important to caveat that the overall scientific evidence that magnesium supplements alone meaningfully improve sleep is limited.

What type of magnesium is best for sleep?

This is where it gets more specific. Magnesium is not one thing – it comes in several different compounds, each with different properties and uses. If you are considering the supplement, the type matters.

TypeBest for
Magnesium glycinate/bisglycinateCalming a racing mind, easing muscle tension and general relaxation. Gentle on the stomach, making it the most commonly recommended form for sleep.
Magnesium L-threonateCognitive support, focus and memory. It crosses the blood-brain barrier directly, making it particularly useful for mental hyperarousal at bedtime.
Magnesium citrateCorrecting general deficiency and supporting digestive regularity. A good general-purpose option, though not sleep-specific.
Magnesium oxidePrimarily used for constipation relief. Poor at raising blood magnesium levels and not useful for sleep.

For sleep specifically, magnesium glycinate is the most widely recommended starting point. It targets the nervous system and muscle relaxation without the digestive side effects that some other forms cause.

Should you be taking a magnesium supplement to aid sleep?

That depends on where you are starting from.

Most of the magnesium your body needs comes from food; leafy greens, nuts, seeds and whole foods are the richest sources. If your diet includes plenty of these, your levels are likely fine and supplementing may not add much.

Modern diets have drifted heavily toward refined carbohydrates and processed foods, which are low in magnesium. If your diet is unbalanced, a supplement may help fill the gap.

Some groups are more likely to have lower magnesium levels and may benefit more from supplementation:

  • Older adults. The gut's ability to absorb nutrients declines with age, while the kidneys excrete more magnesium. The combination can lead to gradual depletion in the body.
  • People with type 2 diabetes. High blood sugar causes the kidneys to produce more urine, and magnesium is lost in that process.
  • Those with gastrointestinal conditions. Conditions like Crohn's disease or coeliac disease compromise the digestive tract's ability to absorb minerals effectively.

If any of these apply to you, it’s worth having a conversation with your GP rather than self-diagnosing through a supplement. Low magnesium can have multiple causes, and addressing the root issue is more effective than masking it.

As always, it’s important to seek professional or medical advice before starting any supplement, particularly if you take other medication.

The bottom line

If you are sleeping badly, magnesium is not going to fix it on its own. Social media has a habit of turning anything with a plausible biological mechanism into a miracle cure, and magnesium has received that treatment in full.

If you have a genuine deficiency, addressing it, whether through diet or supplementation, may remove one barrier to better sleep. But a magnesium deficiency alone is not the reason most people sleep poorly.

The foundations of sleep matter more. A consistent sleep schedule, a dark and cool bedroom, reduced screen exposure before bed, and a mattress that actually supports your body. These are the things with the most evidence behind them, and no supplement changes their importance.

For practical advice on building better sleep habits, visit our Sleep Journal. And if your sleep environment is part of the problem, our guides on cooling mattresses and mattresses for back pain are a good place to start.

About our Team

A picture of Sharon Robson

Written by Sharon Robson

Lifestyle Editor

Mattress Online

PR professional and ex-broadcast reporter, Sharon combines 20 years of experience to highlight a wide variety of lifestyle topics related to sleep and wellbeing.

Mattress Online Logo