Magnesium for Sleep: Does It Work, and Which Type Is Best?

Magnesium may help some people sleep a little better, but the evidence is limited and mixed, and it is not a sleeping pill. The strongest signals come from small trials in older adults and in people whose diets are low in magnesium, where it shortened the time taken to fall asleep by a modest amount. If you already eat well and sleep badly, magnesium is unlikely to be the missing piece.
The key insight: magnesium seems to help most when you are short of it. Topping up from food first is cheap and safe, and the claim that one form, such as glycinate, is "best for sleep" has never been tested head to head.
Below: what the research found, the main forms compared, how much is safe in the UK, who should check with a GP first, and what works better for long-term insomnia.
Why People Take Magnesium for Sleep
Magnesium is a mineral your body uses to turn food into energy and to keep many enzymes and nerves working normally. The NHS lists it among the minerals most of us should get from a balanced diet. Online, it has been recast as a natural sleep aid, often sold as a calming bedtime supplement, a spray or a bath soak.
There is a plausible idea behind it: some studies link lower magnesium intake with poorer sleep. The jump is from "linked with" to "a supplement will fix my sleep", and that is where the research gets thin.
What Does the Research Say?
The evidence comes in three layers: reviews of observational studies, one review of trials in older adults, and a handful of newer trials of specific forms.
A 2022 systematic review in Biological Trace Element Research by Arab and colleagues pooled nine studies with 7,582 adults. Observational studies suggested people with better magnesium status tended to sleep better, but the randomised trials reported contradictory results. The authors called for larger, longer trials.
The most cited review is the 2021 systematic review and meta-analysis in BMC Complementary Medicine and Therapies by Mah and Pitre, which looked only at older adults with insomnia.
| What they looked at | What they found |
|---|---|
| Number of trials | 3 randomised controlled trials |
| Participants | 151 older adults in three countries |
| Time to fall asleep | 17.36 minutes shorter with magnesium than placebo |
| Total sleep time | 16.06 minutes longer, but not statistically significant |
| Quality of the evidence | Low to very low; all trials at moderate to high risk of bias |
| Authors' verdict | The research is "substandard" for doctors to make well-informed recommendations |
Two newer trials tested specific forms:
- Magnesium bisglycinate (2025). A randomised, placebo-controlled trial in Nature and Science of Sleep gave 155 adults aged 18 to 65 with self-reported poor sleep either 250 mg of magnesium a day as bisglycinate or a placebo. By week 4, insomnia scores fell by 3.9 points with magnesium and 2.3 points with placebo. The difference only just reached statistical significance and the authors described the effect as small. People with lower magnesium intake from food seemed to benefit most.
- Magnesium L-threonate (2024). A trial in Sleep Medicine: X gave 80 adults aged 35 to 55 with sleep problems 1 g a day of magnesium L-threonate or a placebo for 21 days. The magnesium group scored better on deep and REM sleep scores from a consumer sleep ring and on some daytime measures. It was a short trial, and several authors work for the company that makes the ingredient.
Put together: a modest, inconsistent benefit, mostly measured by questionnaires, in small and short studies. Notice also how big the placebo effect is. In the bisglycinate trial, people taking dummy capsules improved too.
Which Type of Magnesium Is Best for Sleep?
Supplements pair magnesium with another compound, which changes how much magnesium each capsule holds and how well it is absorbed. We could not find any trial that compares forms against each other for sleep, so "glycinate is best" is a marketing claim rather than a tested finding.
| Form | What is known | What is not known |
|---|---|---|
| Glycinate or bisglycinate | One 2025 trial showed a small benefit for insomnia scores at 250 mg a day | Whether it beats any other form; long-term effects |
| Citrate | A common, widely available form | No sleep trial we could find; like any form, high doses can cause diarrhoea |
| Oxide | Cheap and common in general supplements | Whether it helps sleep in people who are not low in magnesium |
| L-threonate | One short, industry-linked 2024 trial suggested better sleep scores | Independent confirmation; how it compares with cheaper forms |
| Sprays, flakes and Epsom salt baths | A warm bath before bed is relaxing for many people | A 2017 review in Nutrients found the idea that magnesium is absorbed well through the skin is scientifically unsupported |
If you do try a supplement, the dose of elemental magnesium on the label matters more than the name of the form.
Food First: How Much Magnesium Do You Need?
According to the NHS, adults aged 19 to 64 need:
- 300 mg a day for men
- 270 mg a day for women
The NHS says you should be able to get all the magnesium you need from a varied, balanced diet. Good sources include spinach and other leafy greens, nuts, and wholemeal bread and other wholegrains. Seeds, beans and lentils are useful too.
Easy ways to add more:
- A handful of nuts or seeds as a snack, or sprinkled on porridge or yoghurt
- Swap white bread, rice and pasta for wholegrain versions
- Add spinach or kale to soups, stews and omelettes
- Put beans or lentils in a curry, chilli or salad
Because the bisglycinate trial hinted that people with low intake from food benefit most, improving your diet tackles the likeliest reason magnesium would help in the first place. Our Foundations of Supplementation course covers how to judge when a supplement is worth taking.
Is Magnesium Safe? UK Guidance
The NHS advice is clear:
- Taking 400 mg or less a day of magnesium from supplements is unlikely to cause any harm.
- Taking more than 400 mg for a short time can cause diarrhoea.
- There is not enough evidence to say what high doses do over the long term.
Some supplements and online articles suggest higher amounts. Stay at or below 400 mg a day from supplements unless a doctor advises otherwise.
Check with your GP or pharmacist first if you:
- Have kidney disease. Your kidneys clear extra magnesium, and the NHS notes that some magnesium-containing antacids may not be safe if you have kidney problems.
- Take a bisphosphonate for your bones, such as alendronic acid. The NHS advises telling your doctor about supplements containing calcium, iron, magnesium or zinc, and the timing of doses matters.
- Take certain antibiotics. Tetracycline antibiotics such as lymecycline can be affected by supplements containing magnesium, and some other antibiotics interact with minerals too.
- Take any other regular medicines, are pregnant or breastfeeding, or want to give it to a child.
Your pharmacist can tell you whether you need to space doses apart, and by how long.
What Works Better for Long-Term Insomnia
If you have had trouble sleeping for weeks or months, the treatment with the best evidence is not a supplement. NICE considers cognitive behavioural therapy for insomnia (CBT-I) the standard first-line treatment for long-term insomnia. It helps you change the thoughts and habits that keep you awake, and the NHS says it can be offered face to face or through an online programme. GPs now rarely prescribe sleeping pills.
Sleep basics that help most people:
| Habit | Why it helps |
|---|---|
| Wake at the same time every day, weekends included | Anchors your body clock |
| Get daylight soon after waking | Helps set your sleep and wake rhythm |
| Cut caffeine after midday and limit evening alcohol | Both disrupt sleep quality |
| Keep the bedroom cool, dark and quiet | Makes it easier to stay asleep |
| Get up if you are awake for a long time | Stops your bed becoming linked with lying awake |
Our course Sleep and No More Insomnia goes through these steps in detail, and Herbs for Sleep covers gentle plant-based options and their safety. With darker evenings now, our guide to protecting your sleep after the clocks go back is a good place to start.
See your GP if:
- Poor sleep has lasted months and is affecting your daily life
- You snore loudly, gasp or stop breathing during sleep
- You have restless, uncomfortable legs at night
- Low mood or anxiety is keeping you awake
How Visionary Can Help
Visionary's sleep tracker records your sleep each night and can sync with Apple Health, so you can see whether a change, like eating more magnesium-rich foods, a regular wake time or cutting evening caffeine, actually moves your numbers over a few weeks. Your personalised Nutrition plan can build in leafy greens, nuts, seeds and wholegrains without you having to count milligrams, and the Learn library includes courses on sleep, herbs and supplements. Premium also includes a 15-minute 1-on-1 consultation with a qualified health professional.
Start your 7-day free trial and find out what really changes your sleep.
FAQ
Does magnesium help you sleep?
It may help a little, especially if you are older or your diet is low in magnesium. A 2021 review of three small trials in older adults found people fell asleep about 17 minutes faster with magnesium, but the evidence was rated low to very low quality. It is not a sleeping pill.
Is magnesium glycinate best for sleep?
There is no proof that it is. A 2025 trial of magnesium bisglycinate found a small improvement in insomnia scores, but no study has compared glycinate directly with other forms for sleep.
How much magnesium should I take for sleep?
Aim to meet your needs from food first: 300 mg a day for men and 270 mg a day for women, according to the NHS. If you take a supplement, the NHS says 400 mg or less a day is unlikely to cause harm. Check with a pharmacist if you take other medicines.
When should I take magnesium?
Studies have used different timings, and none has shown a clear best time for sleep. Many people take it in the evening. If you take antibiotics, bone medicines such as alendronic acid or other regular medicines, ask your pharmacist how to space the doses.
Do magnesium sprays or Epsom salt baths work?
A 2017 review found the claim that magnesium is absorbed well through the skin is not supported by evidence. A warm bath before bed may still help you wind down, whatever is in it.
Can magnesium cause side effects?
Yes. The most common is diarrhoea, especially above 400 mg a day. People with kidney disease should not take magnesium supplements without medical advice, and magnesium can interact with some antibiotics and bone medicines.
This article is for general information only and is not a substitute for personalised advice. If you have kidney disease, take regular medicines, are pregnant or breastfeeding, or have had poor sleep for more than a few weeks, speak to your GP or pharmacist before taking magnesium supplements.
Related articles
SleepWellbeingHolistic HealthMouth Taping for Sleep: Does It Work, and Is It Safe?
Mouth taping is everywhere online, but a 2025 review of 10 studies found little benefit and real risks. What the evidence says and what to try instead.
30 Oct 2026 · Sophie Sparkes
FitnessLongevityHolistic HealthStrength Training in Perimenopause: Where to Start
Why strength training matters in perimenopause and menopause, what the research shows for bone and muscle, and a simple plan to start.
13 Oct 2026 · Sophie Sparkes
FitnessHolistic HealthLongevityWhy Do I Feel Unhealthy Even Though I'm Exercising Regularly?
Why you still feel tired despite regular exercise, and how sleep, nutrition, stress, and recovery can affect your overall wellbeing.
23 Sept 2026 · Sophie Sparkes