Does magnesium help you sleep?
For most people, not by much. The trials are small and mixed, the clearest signal is in older adults and people who get little magnesium from food, and even there the effect is modest.
By The Natura teamUpdated 11 min read

Does magnesium help you sleep?
Possibly a little, for some people, but the evidence is weak. When researchers pool the trials, the effects are small and the studies are short, and most of them rely on how people say they slept rather than on measured sleep.
The most up-to-date overview is a 2026 systematic review of 12 randomised controlled trials in adults, published in the Journal of Dietary Supplements. The trials used different forms, doses and measures, and their results didn't line up. The authors rated the certainty of the evidence low to very low and concluded that it does not support oral magnesium as a routine treatment for insomnia, though some adults may see modest gains on some self-reported measures. So if magnesium does help you, expect a small change.
What do the studies actually show?
Older adults with insomnia
A 2021 systematic review and meta-analysis by Mah and Pitre in BMC Complementary Medicine and Therapies found three randomised trials comparing magnesium with placebo, involving 151 older adults in total. On average, people taking magnesium fell asleep 17.4 minutes sooner. Total sleep time went up by about 16 minutes, but that result could have been chance. All three trials were at moderate to high risk of bias. The authors judged the evidence too poor for doctors to make well-informed recommendations.
The most quoted of those trials, run in Iran and published in 2012, gave 46 adults aged 60 to 75 either 500 mg of magnesium a day (as magnesium oxide) or a placebo for eight weeks. Insomnia scores, sleep time and time taken to fall asleep all improved more with magnesium. Everyone in that trial already had a low magnesium intake, below 75% of the recommended amount, and the dose was higher than the 400 mg a day the NHS says is unlikely to cause harm from supplements.
Adults who say they sleep badly
A 2025 trial in Nature and Science of Sleep gave 155 adults aged 18 to 65 who reported poor sleep either 250 mg of magnesium a day (as magnesium bisglycinate) or a placebo for four weeks, taken 30 to 60 minutes before bed. Insomnia scores fell by 3.9 points with magnesium and 2.3 with placebo. That difference only just reached statistical significance, and the authors described the effect as small. The groups showed no significant differences on any of the other sleep, tiredness or mood questionnaires, and all of the results were self-reported. In an exploratory analysis, people who ate less magnesium tended to improve more.
Magnesium L-threonate
Two trials of a branded magnesium L-threonate have reported benefits, with caveats. In a 2024 trial of 80 adults aged 35 to 55, published in Sleep Medicine: X, the threonate group got better deep sleep and REM sleep scores from a consumer sleep ring over 21 days. Insomnia scores, though, were not significantly different from placebo, because the placebo group improved too. A 2026 trial of 100 adults in Frontiers in Nutrition found an improvement in one self-reported sleep measure and no difference in any of the sleep data the ring recorded. Companies that make or supply the ingredient funded both trials.
Who might notice a difference?
If anyone notices a difference, it is most likely to be people who don't get much magnesium from food. The 2012 trial recruited people with low intakes, and the 2025 trial's exploratory analysis points the same way. Low intakes are fairly common in the UK. An analysis of National Diet and Nutrition Survey data on 3,238 adults aged 20 to 59 found that more than one in 10 got less magnesium from food than the lower reference nutrient intake, an amount that is enough only for the few people with the smallest needs. Among people in their twenties, the figure was 19%.
Some medicines can lower magnesium over time. The MHRA has warned that low magnesium has been reported in people taking proton pump inhibitors, such as omeprazole or lansoprazole, for more than a year. If that's you, ask your GP whether your magnesium should be checked rather than treating yourself.
If night-time leg cramps are what wake you, a Cochrane review found magnesium unlikely to help typical cramps in older adults. If it's hot flushes or night sweats, our perimenopause guide covers what has evidence.
Does magnesium help restless legs?
There's no good evidence that it does. The NHS page on restless legs syndrome doesn't mention magnesium. It says the condition is thought to be linked to iron levels and the brain chemical dopamine, and that people with low blood iron may need iron supplements (see the signs of low iron). A 2019 systematic review found only one randomised placebo-controlled trial of magnesium among its eight eligible studies. That trial found no significant effect, though it may have been too small, and the authors couldn't say whether magnesium works. A 2024 review of supplements found one trial of magnesium, in 75 adults who were all also taking a prescription medicine. Those given 200 mg a day of magnesium oxide for eight weeks did better than those on the medicine alone, but the authors called the evidence limited. Night-time cramps are a different problem, mentioned above. See a GP if restless legs stop you sleeping or affect your mood, and if you're pregnant, ask your midwife or GP before taking any supplement.
What is the best magnesium for sleep?
Nobody can honestly name the best magnesium for sleep, because no trial has compared forms head to head. If you're choosing which magnesium for sleep to try, magnesium glycinate (also sold as bisglycinate) is a reasonable choice: it's the form used in the 2025 trial above, and nobody in that trial's magnesium group reported stomach problems. Citrate is well absorbed too, but magnesium citrate is also used as an osmotic laxative in UK bowel-preparation medicines, so higher doses can loosen stools. Oxide, the form in most of the older trials, is poorly absorbed. The threonate trials so far were paid for by the ingredient's makers.
So the best magnesium supplement for sleep in the UK is one you tolerate, at an amount within the NHS guidance. Be wary of a label that promises sleep, because the rules don't allow that claim (see below). For a full comparison of forms, absorption and how to read a label, see our guide to magnesium glycinate vs citrate.
Is magnesium citrate good for sleep?
There's little sleep-specific evidence for it. The one magnesium citrate trial in the 2021 review followed 100 adults over 51 who slept badly on a standard questionnaire. They took 320 mg of magnesium a day as citrate tablets for eight weeks, and their sleep-quality scores improved by about the same amount as with placebo. Citrate does have good absorption data: in a 2003 trial of 46 healthy adults it gave higher blood magnesium than oxide or an amino-acid chelate. It also holds water in the bowel, so loose stools are likelier at higher doses, which is worth knowing before an evening dose.
Does a magnesium drink help you sleep?
No trial in the 2021 review tested a magnesium drink. A drink or powder is the same compounds dissolved in water, so the form of magnesium and the amount matter more than the format. Dissolved forms may be absorbed a little better: in one small 2011 trial, urinary magnesium rose about 40% after effervescent oxide tablets dissolved in water and about 20% after oxide capsules. Our guide to magnesium glycinate vs citrate covers powders and liquids. Count the magnesium in a drink with the rest of your day's intake, and remember the NHS advice to avoid alcohol, tea and coffee for at least 6 hours before bed.
Does magnesium spray help you sleep?
No good trial shows that a magnesium spray, oil or lotion helps sleep, and there is little evidence that enough magnesium crosses the skin to matter. Despite the name, magnesium oil is not an oil: a 2024 pilot paper describes the magnesium chloride spray it tested as a liquid brine. A 2017 review in Nutrients went through the studies of sprays, oils, lotions, creams and baths and could not recommend transdermal magnesium. Its examples included a three-day lotion safety trial in 34 volunteers in which blood magnesium did not differ from placebo. In a 2017 pilot, 25 people used a magnesium cream or a placebo cream for two weeks, and blood magnesium did not rise significantly overall.
The 2024 pilot, in six people with an ileostomy and funded by the spray's maker, saw blood magnesium rise in two of the six, but it had no control group. None of these studies measured sleep, so a magnesium sleep spray that promises better sleep promises more than the research can back.
How much magnesium for sleep?
Keep within the NHS guidance. Adults need 300 mg of magnesium a day (men) or 270 mg (women), and food such as spinach, nuts and wholemeal bread provides it. The NHS says 400 mg or less a day from supplements is unlikely to cause any harm, and that taking more than 400 mg for a short time can cause diarrhoea. The European Food Safety Authority sets a lower upper level of 250 mg a day for magnesium from supplements, also based on diarrhoea.
The recent trials used 75 to 250 mg of magnesium a day, and the older trials in the 2021 review used more. These figures are for elemental magnesium, meaning the magnesium itself rather than the weight of the whole compound, which is the number UK labels have to show. Count every source you take: a multivitamin, an electrolyte drink and a sleep blend can add up quickly.
When should you take magnesium for sleep?
If you're trying it for sleep, take it in the evening, which is how the 2025 trial did it (30 to 60 minutes before bed). There's little evidence that the exact time of day changes how much you absorb, but a fixed time makes it easier to tell whether it's doing anything. For the best time to take magnesium at other times of day, see our guide to magnesium side effects.
How long does magnesium take to work for sleep?
Trials ran for three to eight weeks, so about a month is a fair test and one night is too soon to judge. Absorption itself is quicker: a 2017 review says magnesium absorption starts about an hour after a dose and is about 80% complete at six hours. In the 2025 trial, most of the fall in insomnia scores came in the first two weeks, but it happened in the placebo group too. The groups were only compared at four weeks, when magnesium came out slightly ahead, so early improvement doesn't prove the magnesium is responsible. If you notice nothing after a month, magnesium is probably not the answer for you. For how long magnesium takes to work in general, see our guide to magnesium side effects.
Is it safe to take magnesium every night?
For most healthy adults, a supplement within the NHS guidance is unlikely to cause harm. The usual side effect is loose stools, which become more likely as the dose goes up. Check with a GP or pharmacist first if any of these apply:
- You have kidney disease. Your kidneys clear extra magnesium, and the UK product information for a licensed magnesium medicine says it must not be used in severe kidney impairment. Don't take magnesium unless your kidney team advises it.
- You take tetracycline antibiotics such as doxycycline, quinolone antibiotics such as ciprofloxacin, or a bisphosphonate for your bones such as alendronic acid. Magnesium can reduce how much of these you absorb. Licensed UK product information advises a gap of 2 to 3 hours from tetracyclines and 3 to 4 hours from bisphosphonates, and your pharmacist can tell you the right gap for your medicine.
- You take levothyroxine, or any medicine whose leaflet tells you to keep indigestion remedies or minerals away from it.
- You're pregnant or breastfeeding.
Can a supplement claim to help you sleep in the UK?
No. In Great Britain, health claims for food supplements must come from an authorised list, and there's no authorised sleep claim for magnesium. Magnesium can claim to contribute to normal psychological function, normal functioning of the nervous system, and the reduction of tiredness and fatigue. None of those claims is about sleep, so a magnesium product that promises better sleep is making a claim the rules don't allow.
Melatonin is different again: in the UK it's a prescription-only medicine. The NHS says most adults aged 55 and over can take it for short-term sleep problems, while younger adults and children need a specialist's recommendation.
What helps sleep more than a supplement?
The NHS's first advice for poor sleep is a set of everyday habits:
- Go to bed only when you're sleepy, and get up at the same time every day.
- Relax for at least an hour before bed, for example with a bath or a book.
- Keep your bedroom dark and quiet, with a comfortable mattress and covers.
- Avoid alcohol, tea and coffee for at least 6 hours before bed, and don't eat a big meal late at night.
- Exercise during the day, but not in the 4 hours before bed.
- Don't nap during the day, and don't sleep in after a bad night.
See a GP if changing your habits hasn't helped, if you've struggled for months, or if poor sleep is affecting your daily life. They may offer cognitive behavioural therapy for insomnia, with a therapist or through an online programme. The NHS says sleep aids from a pharmacy may help for a week or two but can't cure insomnia.
Our sleep calculator works out bedtimes that fit whole sleep cycles around a fixed wake-up time. For the other things people take for sleep, read melatonin in the UK and sleep supplements in the UK.
Where Natura fits
The Natura cabinet (coming soon) includes Daily Magnesium, one capsule giving 200 mg of magnesium as glycinate, and a Sleep Pack of glycine 3 g, theanine 200 mg, magnesium 200 mg as glycinate and ashwagandha 600 mg. The Sleep Pack is not a sleeping tablet and contains no melatonin, and we don't claim that either product helps you sleep; magnesium contributes to normal psychological function and to the reduction of tiredness and fatigue. Both already contain 200 mg of magnesium, so there's no need to take them together, and ashwagandha isn't suitable for everyone, so read the label first if you're pregnant or take medicines.
Common questions
How long does it take for magnesium to work for sleep?
The trials ran for three to eight weeks, and the 2025 bisglycinate trial judged its main result at four weeks, so a month is a fair test. If you notice no difference by then, magnesium probably isn't what's holding your sleep back. Keep within the NHS guidance of 400 mg or less a day from supplements, and stop sooner if it upsets your stomach.
Is magnesium good for sleep if my diet is already good?
It is less likely to make a noticeable difference. The clearest results came from older adults whose magnesium intake was low to begin with, and in a 2025 trial of adults with poor sleep, people who ate less magnesium tended to improve more, while the overall effect was small. If you already eat plenty of foods the NHS lists as sources, such as spinach, nuts and wholemeal bread, a supplement has less of a gap to fill.
Can I buy melatonin in the UK?
Not without a prescription. Melatonin is a prescription-only medicine in the UK. The NHS says most adults aged 55 and over can take it for short-term sleep problems, while younger adults and children need a specialist's recommendation first. If you think it might help you, talk to your GP, who can also look at what is behind the poor sleep.
Does magnesium help with night-time leg cramps?
Probably not, for the common kind. A 2020 Cochrane review found that magnesium is unlikely to help typical muscle cramps in older adults, based on moderate-certainty evidence. The evidence for leg cramps in pregnancy was very low certainty, so nobody can say either way. If cramps are frequent or painful, or keep waking you, mention them to a GP rather than relying on a supplement.
Does a magnesium spray or bath help you sleep?
There's little evidence that useful amounts of magnesium get through the skin, and a 2017 review in the journal Nutrients called transdermal magnesium scientifically unsupported. A warm bath can still be part of winding down, and the NHS suggests relaxing for an hour before bed, for example with a bath. Just don't count a spray or bath salts as your magnesium dose.
Can I take magnesium every night?
Most healthy adults can, within limits. The NHS says 400 mg or less a day from supplements is unlikely to cause harm, and the European Food Safety Authority's upper level for supplemental magnesium is 250 mg a day. Don't take it if you have kidney disease unless your doctor advises it, and ask a pharmacist how to space it from some antibiotics and bone medicines.
Sources
- NHS: Vitamins and minerals, others (magnesium)
- NHS: Insomnia
- NHS: About melatonin
- Lopresti, Smith and Drummond (2026), Magnesium supplementation for sleep in adults: a systematic review of randomized controlled trials, Journal of Dietary Supplements
- Mah and Pitre (2021), Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis, BMC Complementary Medicine and Therapies
- Abbasi et al. (2012), The effect of magnesium supplementation on primary insomnia in elderly, Journal of Research in Medical Sciences
- Schuster et al. (2025), Magnesium bisglycinate supplementation in healthy adults reporting poor sleep, Nature and Science of Sleep
- Hausenblas et al. (2024), Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems, Sleep Medicine: X
- Lopresti and Smith (2026), The effects of magnesium L-threonate on cognitive performance and sleep quality in adults, Frontiers in Nutrition
- Derbyshire (2018), Micronutrient intakes of British adults across mid-life: a secondary analysis of the UK National Diet and Nutrition Survey, Frontiers in Nutrition
- MHRA Drug Safety Update: Proton pump inhibitors in long-term use, reports of hypomagnesaemia
- Garrison et al. (2020), Magnesium for skeletal muscle cramps, Cochrane Database of Systematic Reviews
- EFSA (2024), Safety of magnesium L-threonate as a novel food, including the upper level for supplemental magnesium, EFSA Journal
- emc: Magnesium 4mmol Chewable Tablets (magnesium glycerophosphate), Summary of Product Characteristics
- emc: Picolax powder for oral solution, Summary of Product Characteristics
- Royal Berkshire NHS Foundation Trust: Ciprofloxacin patient leaflet (December 2025)
- Gröber et al. (2017), Myth or reality: transdermal magnesium?, Nutrients
- GOV.UK: Great Britain nutrition and health claims (NHC) register
- NHS: Restless legs syndrome
- Marshall et al. (2019), Magnesium supplementation for the treatment of restless legs syndrome and periodic limb movement disorder: a systematic review, Sleep Medicine Reviews
- González-Parejo et al. (2024), Effects of dietary supplementation in patients with restless legs syndrome: a systematic review, Nutrients
- Walker et al. (2003), Mg citrate found more bioavailable than other Mg preparations in a randomised, double-blind study, Magnesium Research
- Siener et al. (2011), Bioavailability of magnesium from different pharmaceutical formulations, Urological Research
- Schuchardt and Hahn (2017), Intestinal absorption and factors influencing bioavailability of magnesium: an update, Current Nutrition and Food Science
- Kass et al. (2017), Effect of transdermal magnesium cream on serum and urinary magnesium levels in humans: a pilot study, PLOS ONE
- Nightingale et al. (2024), Pilot study of a topical magnesium preparation to treat hypomagnesaemia in patients with an ileostomy, Intestinal Failure
This guide is general information, not medical advice. If you have a medical condition, take prescription medicines, or are pregnant or breastfeeding, speak to your GP or pharmacist before starting a supplement.
This product is a food supplement intended for use by adults aged 18 and over. It is not intended to diagnose, treat, cure, or prevent any disease. Consult a qualified healthcare professional before use, particularly if pregnant, breastfeeding, or taking medication. Individual results vary.
Further reading

Vitamins and minerals
Magnesium glycinate vs citrate: which to take
Both are reasonable choices, and in absorption studies the dose matters more than the form. The practical difference is in your gut: citrate holds water in the bowel and can loosen stools at higher doses, while glycinate caused no stomach problems in a recent trial.
11 min read

Hydration
Do you need electrolytes, or is water enough?
For most people on most days, water and normal meals cover your electrolytes, and UK adults already eat more salt than recommended. Electrolyte drinks earn their place in a few situations: long or hot sessions with heavy sweating, hours of work in serious heat, and (as pharmacy oral rehydration solution) sickness or diarrhoea.
16 min read

Vitamins and minerals
When to take vitamin D in a UK winter
Start in October. From October to early March, UK sunlight is too weak for your skin to make enough vitamin D, so the NHS says everyone should consider 10 micrograms (400 IU) a day until spring, and some people need it all year.
12 min read