Should you take magnesium for sleep?

Long championed as a panacea for sleep, we investigate the science behind the mineral.


We get asked about magnesium for sleep quite a lot. It’s one of the more common supplements out there, but what exactly is this mineral? And why does magnesium make you sleepy?

Magnesium is essential to the functioning of your body and brain. It’s a vital catalyst for many enzymes, enabling over 300 regular reactions . At any one time, you’d expect there to be about 25g of magnesium in your body, but most of that is tied up in your bones. It also always comes from external sources—much like iron and calcium. As a metal, your body can’t produce it.

Does magnesium help you sleep?

Studies have shown magnesium to be beneficial when it comes to sleep. It plays a role in the process, activating the parasympathetic nervous system and helping regulate the production and release of melatonin—the hormone that guides sleep-wake cycles.

Magnesium in the diet has been shown to aid sleep, and supplements have been shown to help older individuals in this regard, but there’s not enough data when it comes to the rest of the population.

Is melatonin or magnesium better for sleep?

Both magnesium and melatonin are famed for helping you drift off to dreamland, but which one works better? The answer to this isn't straight forwarded, as they address different sleep goals.

According to the Sleep Foundation , magnesium helps the body relax and reduces stress to help you sleep longer. In contrast, melatonin helps you get to sleep faster.

Magnesium for sleep (and more!)

There are other benefits of magnesium beyond better sleep. It helps maintain a healthy amount of GABA—a neurotransmitter that calms excitement in the central nervous system and aids relaxation .

It’s also essential for normal muscle and heart function, and is excellent for the health and structure of your bones. All in all, a good one to have around.

Magnesium in food

For magnesium, your first stop should always be your diet. Regular foods that have a lot of magnesium include:

  • Spinach

  • Wholemeal bread

  • Nuts

  • Pulses

But if you want a more comprehensive list, take a look here .

How much magnesium should I take at night for sleep?

There are no clear recommendations on how much for magnesium for sleep specifically, however, the NHS recommends getting between 270mg and 300mg of magnesium a day. Given the safe upper limit is around 400mg, make sure that any supplements keep you below that level.

When should you take magnesium for sleep?

When to take magnesium for sleep depends on your bedtime and evening routine. If you're taking a supplement, it's recommended to do so 30 minutes before you go to bed.

Which form of magnesium is best for sleep?

The most important thing when you're taking magnesium for sleep is to make sure what you're taking is actually effective. Magnesium comes in countless compounds, and you’ll absorb each at a different rate. For example, you’ll need to take significantly more magnesium oxide than magnesium glycinate.

Want to learn to sleep better?


About the author:
store logo
Laura Sugden

Know your own mind?

The average brain health score is 51/100. Take our 3-minute quiz to learn how yours measures up and how to boost it.

Related articles