Magnesium for Sleep: What the Evidence Shows
Last updated: 4 November 2026
The evidence is weak. A review of three small trials in older adults found that magnesium tablets may shorten the time it takes to fall asleep by about 17 minutes, although the review authors rated their confidence in that result as low. The trials cannot tell you what would happen at other ages. Nor do they show which dose, if any, would work.
What one review of three trials found
A 2021 systematic review in BMC Complementary Medicine and Therapies pooled three randomised trials of oral magnesium in older adults. A systematic review is a search for every trial on a question, followed by a check of how good each one is. Together, the trials had 151 people. All compared magnesium with a dummy tablet (a placebo), running for between 20 days and 8 weeks.
Two trials measured how long it took to fall asleep. Pooled, magnesium came out about 17 minutes shorter than placebo. Two trials measured total sleep time, where magnesium came out about 16 minutes longer. That gap was not statistically significant, which means it could easily be chance.
Sleep questionnaires gave mixed results. One trial found a bigger improvement on the Insomnia Severity Index with magnesium, whereas another found that both groups improved by the same amount on the Pittsburgh Sleep Quality Index.
Why the confidence is low
The authors rated the certainty of the evidence as low to very low. They also found a high risk of bias, which means the way the trials were run or reported could have pushed the results either way. No trial described how people were randomly assigned or how the groups were kept blind to what they took.
The trials were small and measured sleep in different ways, with some using sleep diaries while others used recordings of brain activity. The review itself was not registered in advance. The authors called for better trials.
The review covers older adults only, so it cannot tell you what happens at other ages. Worry can also keep people awake. Our article on magnesium and anxiety looks at a separate body of research.
How much was used in the trials
The trials gave between 320 mg and 729 mg of elemental magnesium a day, split into two or three doses. That is the weight of the magnesium itself rather than the tablet. The tablets were magnesium oxide or magnesium citrate. Our guide to which form of magnesium is best absorbed explains how those two differ.
The NHS says 400 mg or less a day of magnesium from supplements is unlikely to cause harm, while more than that for a short time can cause diarrhoea. The top of the trial range is well above that line. One trial reported soft stools, whereas the others reported no side effects. You can read more on what happens if you take too much magnesium.
The NHS also says there is not enough evidence on what high doses do over a long time. Because the trials lasted weeks at most, they cannot answer that.
What the NHS puts first for poor sleep
The NHS page on insomnia says that regularly having trouble sleeping is usually helped by changing sleep habits. Its tips include going to bed only when sleepy, getting up at the same time each day, winding down for an hour before bed and keeping the bedroom dark and quiet. It also suggests being active during the day, while NHS Every Mind Matters gives similar advice.
The NHS says to see a GP if changed habits have not helped, if the trouble has lasted for months or if it is hard to cope with day to day. A GP may offer cognitive behavioural therapy (CBT), a talking therapy that works on the thoughts and habits that disrupt sleep. The NHS says sleeping pills are rarely prescribed now, because of side effects and the risk of dependence.
Who should get advice before trying it
If you take prescription medicines, ask your pharmacist first. An NHS prescribing guide says magnesium taken by mouth may reduce the absorption of tetracycline antibiotics and bisphosphonates. It lists several other medicines, including levothyroxine, whose doses need to be kept apart from magnesium.
The same guide says side effects may be greater in people with severe kidney problems, so if that is you, speak to your GP before starting. Do the same if you are pregnant or breastfeeding. Check first too if the person who wants to take it is a child.
The trials covered only a few weeks. If you plan to carry on for longer, check in with a pharmacist or your GP along the way.
Common questions
Does the form of magnesium matter for sleep?
Do the trials tell us anything about magnesium from food?
What should I avoid in the evening if I struggle to sleep?
Could something other than magnesium be behind my poor sleep?
Sources
- Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complementary Medicine and Therapies, 2021.
- Insomnia. NHS, page accessed 4 November 2026.
- Sleep problems. NHS Every Mind Matters, page accessed 4 November 2026.
- Vitamins and minerals: Others. NHS, page accessed 4 November 2026.
- Oral Magnesium Supplementation Guide (Adults). NHS Bristol, North Somerset and South Gloucestershire (BNSSG) medicines guidance, 2023.


Share:
Magnesium Citrate vs Glycinate vs Oxide: What Is the Difference
Magnesium Myths and Misconceptions