Does magnesium help you sleep? Here's what the experts say

does magnesium help you sleep? Woman peacefully asleep in her bed
(Image credit: Getty Images/ Daley and Newton)

If you tend to toss and turn at night, you might be looking for just about any solution to get some shut-eye; but does magnesium help you sleep? We decided to dig into the issue and consult an expert who explained how magnesium could support a better night’s snooze, and when you should choose to steer clear of magnesium supplements.

A decent night’s slumber is vital for your body. According to the Cleveland Clinic, a whopping 70 million Americans suffer from sleep disorders. Adequate sleep is crucial for your body’s recovery, growth, and repair, and, over time, poor sleep can negatively affect mood, stress levels, metabolism, and even your immune system. 

But is magnesium the savior we’ve been looking for? Rohini Bajekal, certified nutritionist and board-certified lifestyle medicine professional at Plant-Based Health Professional, tells us that magnesium is an abundant mineral that regulates several processes in your body — like nerve and muscle function, blood glucose control, and blood pressure. 

Magnesium could even boost melatonin production in the body and play a role in sleep regulation, helping you finally reach a good night’s sleep. Find out how below. 

Magnesium to help sleep – does it work?

Bajekal explains the research: “There is limited evidence to support everyone at a population level taking magnesium supplements for insomnia. However, magnesium has been found to support restful and restorative deep sleep. It does so by maintaining healthy levels of GABA (Gamma-Aminobutyric Acid) —a neurotransmitter (chemical messenger) that has sleep-enhancing and stress-reducing effects.”

The research would agree, showing that magnesium can stimulate GABA and even bind to the neurotransmitter, helping to slow down nerve activity and allowing you to drift off more peacefully. It is thought magnesium could ‘soothe’ the nervous system and brain activity, helping you to shut off more quickly. 

Bajekal says it is suspected that magnesium deficiencies can contribute to poor sleep by disrupting nerve signaling and altering levels of sleep-inducing hormones such as melatonin.

Magnesium supplements are sometimes prescribed to boost melatonin and improve sleep. Some evidence, like this journal published in the Department of Clinical Nutrition and Dietetics, has shown that 500mg of magnesium increased sleep time, cycle efficiency, and melatonin concentration, decreasing insomnia scores. 

Person holding a magnesium supplement in their hand next to the supplement bottle

(Image credit: Getty Images/ Grace Carey)

In the double-blind clinical trial, 46 elderly subjects were randomly allocated 500mg of magnesium or a placebo daily for eight weeks. The group that supplemented magnesium showed a significant increase in the above (cycle efficiency, melatonin concentration and so on) and fell asleep more quickly, with a decrease in early waking. Pretty impressive.

Finally, there is even some compelling evidence that magnesium can help reduce anxiety, a common symptom of those who struggle to slumber. MMW Advances in Medicine found that introducing magnesium helped regulate the parasympathetic and sympathetic (your fight-or-flight reaction to stress) nervous systems and reduce symptoms like restless leg syndrome, exacerbated by magnesium deficiency.

The research goes some way to explaining how a magnesium supplement could help send you off at night. But before we hail magnesium as a wonder supplement, Bajekal warns that current studies are limited and fixed on a small scale, and there are other factors to consider.

Should I take magnesium?

Bajekal explains that certain groups appear more prone to deficiency than others.

“As magnesium deficiency and increased urinary magnesium excretion (losing magnesium through your urine) can occur in people with insulin resistance, women with PCOS may benefit from magnesium supplementation, as well as those with restless legs syndrome and the elderly," she noted. 

But she warns it is difficult to assess your ‘magnesium status’ because most of it lives inside your cells or bones. Regardless, focus on getting your sources from food before turning to supplements. 

“Dietary surveys of people in the UK and USA consistently show that many of us consume less than recommended amounts of magnesium,” warns Bajekal. 

According to the National Office of Dietary Supplements (ODS), the daily recommended intake for healthy adults ranges between 300-400mg, depending on factors like age and pregnancy. Thankfully, magnesium is readily available in food and (for most people) doesn’t require supplementation. 

Image of healthy fruits and vegetables and someone picking up an avocado

(Image credit: Getty Images/ Maria Korneeva)

“I recommend including plenty of nutritious plant-based foods in the diet – dark leafy green vegetables such as spinach, legumes such as chickpeas and soya, whole grains, and nuts and seeds," Bajekal suggests. 

Various types of meat like chicken and beef are also solid sources of magnesium, and even mineral water can help you chuck in some extra doses — without the added calories. By maintaining a healthy diet, you’ll likely hit your daily target without much problem. 

However, there are other instances where people might find it harder. Poor diet, certain medications, or chronic conditions like Crohn’s or Celiac disease could increase your risk of deficiency.

When to take magnesium for sleep

At this point, if you are not getting enough magnesium in your diet, visit your doctor to discuss any underlying health conditions or contraindications to magnesium supplements, and when to take them if they’re suitable. They can diagnose magnesium deficiency and decide if supplementation is necessary. 

According to the ODS, the symptoms of magnesium deficiency include loss of appetite, nausea, and weakness which could develop into numbness, tingling, cramps, and irregular heartbeat. 

Your first step should be to look at your current diet and try to be as balanced and varied as possible, including magnesium-rich foods daily. We’ve put together some handy tips on how to sleep better naturally, which include expert advice like avoiding blue light before bed and stretching to help improve your nighttime sleep routine. 

But is too much sleep a problem too? An expert discusses oversleeping causes to help you reach that Goldilocks bedtime routine — just right. If you are taking magnesium supplements, current recommendations say to take them 1-2 hours (consistently) before bedtime for sleep. 

For other fitness and wellness tips, check out how we tried following a keto diet for a month, some of the best meal kit delivery services, and discover what is an orthopedic mattress and how it can improve your sleep. 

And for more sleep specific tips, check out this TikTok doctor's tips on how to nap and still sleep well at night and how doctors recommend sleep this sleep app for insomnia

Sam Hopes
Senior Fitness Writer, Fitness and Mobility Coach

Sam Hopes is a level 3 qualified trainer, level 2 reiki practitioner and senior fitness writer at Tom's Guide. She is also currently undertaking her Yoga For Athletes training course. Sam has written for various fitness brands and websites over the years and has experience across brands at Future such as Live Science, Fit&Well, Coach, and T3.

Having worked with fitness studios like F45 and Virgin Active, Sam now primarily teaches outdoor bootcamps, bodyweight, calisthenics and kettlebells. She also coaches mobility and stretching-focused classes several times a week and believes that true strength comes from a holistic approach to training your body.

Sam has completed two mixed doubles Hyrox competitions in London and the Netherlands and finished her first doubles attempt in 1:11.

Read more
A woman's feet placed on the floor by a bed with her hand about to rub magnesium cream on them
Does putting magnesium oil on your feet really help you fall asleep fast? Here's what the science says
A woman sat on the edge of her bed holding her stomach in pain as she experiences the symptoms of GERD
Trouble sleeping? Your melatonin supplements could be stopping you from sleeping through the night
A woman sat on bed wearing white vest and orange shorts with a glass of water in hand, looking out of window with wooden frame and plants outside.
Trouble sleeping? Being deficient in this vitamin could be why you can’t sleep through the night
A woman lying awake in bed looking tired as a slither of sunlight lights up her face, with a Tom's Guide Sleep Week 2025 logo in the top right corner
Expert warns 'sleepmaxxing' may actually cause sleep deprivation — plus 3 tips to tackle it for Sleep Week
A man laying on grey sofa sleeping next to bowl of popcorn
Trouble sleeping? Adding more of these two food groups to your diet will help you sleep faster, better and deeper
A woman lying on her front in bed next to a bowl of fruit, reading a book and eating the fruit
Can getting good sleep help weight loss? Here's what the experts say
Latest in Sleep
A man and a woman sleeping in bed
Forget the Scandi Sleep Method — 3 tricks for better sleep I recommend for bedsharing couples
Bare feet poking out of the covers at the end of a bed
Twitching in your sleep? Expert shares 5 most common causes of hypnic jerks
A woman with dark hair lies in bed yawning because she is so tired and ready to sleep
Tired all the time? Sleep experts share how to tackle hypersomnia — plus what might be causing it
A woman with long dark hair falls asleep quickly in a comfy bed dressed with soft white linens
I'm an ex-insomniac turned sleep coach — my 3 top tips to fall asleep quickly
A person lying on their stomach on the Leesa Legend Hybrid Mattress
What’s so bad about stomach sleeping? Expert dishes the dirt on so-called ‘worst sleeping position ever’
Woman doing a yoga pose in bed against a green background
Sleep expert reveals her secret weapon for falling asleep fast — and you can do it in 15 minutes
Latest in News
Rendered images of rumored foldable iPhone.
Foldable iPhone report just revealed key details — here's what we know
NYTimes Connections
NYT Connections today hints and answers — Saturday, March 23 (#651)
NYT Strands on a cellphone
NYT Strands today — hints, spangram and answers for game #385 (Sunday, March 23 2025)
Nintendo Switch 2
Nintendo Switch 2 rumored specs — here’s what we know so far
iPhone 17 Pro render
iPhone 17 Pro — 7 biggest rumored upgrades
CAD renderings of the Google Pixel 10 Pro XL
Pixel 10 leak could be good news for all Android phones