Sleep and magnesium

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.

Written by:
Dominic Walton, Managing Director
Reading time:
5 min
The research

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.

Reading the evidence

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.

Amounts

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.

Sleep habits

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.

Take care

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.

Frequently asked

Common questions

Does the form of magnesium matter for sleep?
The three trials used oxide or citrate tablets and the review does not compare forms, so it cannot say whether one form works better for sleep. It also has no data on glycinate.
Do the trials tell us anything about magnesium from food?
No, because the trials used supplement tablets. The NHS says most people can get all the magnesium they need from a varied, balanced diet, naming spinach, nuts and wholemeal bread as sources.
What should I avoid in the evening if I struggle to sleep?
The NHS advises avoiding alcohol, tea, coffee and smoking for 6 hours before bed. It also says to keep large meals away from bedtime, suggesting a warm milky drink or herbal tea instead. In addition, it says to avoid vigorous exercise within 4 hours of going to bed.
Could something other than magnesium be behind my poor sleep?
Quite possibly. The NHS lists stress, anxiety, noise, an uncomfortable bedroom, caffeine, alcohol and some medicines among the common causes. It also lists health conditions such as sleep apnoea, restless legs syndrome and an overactive thyroid. If poor sleep carries on, a GP can look into these.
Evidence

Sources