Magnesium and sleep: what is the connection?
Written by Smart Supplements Editorial Team
Key takeaways
- A 2021 review of two small trials (55 older adults with insomnia) found about 17 minutes faster sleep onset on magnesium; the certainty was rated low to very low.
- A 2025 trial found a small questionnaire improvement after four weeks, but its capsule supplied glycine as well as magnesium, so it cannot isolate magnesium or rank forms.
- Correcting a magnesium shortfall and treating insomnia are different questions; poor sleep does not show a deficiency.
- The EU Scientific Committee on Food upper level for supplemental magnesium is 250 mg a day, based on avoiding diarrhoea; the NHS cites 400 mg. Neither is a recommended dose.
- Diarrhoea is the usual side effect; kidney disease, pregnancy and some medicines (such as alendronic acid) are reasons to ask a professional first.
Table of contents
- What the evidence adds up to
- Two different jobs: topping up and treating insomnia
- What the trials actually tested
- How much is too much? Two official ceilings
- The label check that makes the numbers usable
- Side effects, kidneys, pregnancy and medicines
- Where magnesium fits in a sleep plan
- Common questions
- Where that leaves magnesium
- Where to go next
Walk down any sleep aisle and magnesium is there, usually between the valerian and the melatonin, often with a calm blue label and a promise to help you "unwind". It's a fair moment to ask whether the mineral is doing any work, or just looking relaxed on the shelf.
Here's the plain answer. Magnesium might help some people fall asleep a little faster or feel their sleep is slightly better, but the research is thin, the effects found so far are small, and nobody has shown who is most likely to benefit. It isn't a proven treatment for insomnia. It's an interesting, cheap, widely sold mineral with a modest amount of human evidence, plus a few real safety points worth knowing before you buy.
What the evidence adds up to
- The best-known review pooled trials in older adults with insomnia. It found people fell asleep about 17 minutes sooner on magnesium than on placebo, but the certainty of that evidence was rated low to very low.
- A 2025 trial in adults reporting poor sleep found a small improvement on a questionnaire after four weeks. The capsules contained both magnesium and glycine, and the effect size was small.
- Correcting a magnesium shortfall and treating insomnia are different jobs. Poor sleep doesn't tell you that you're short of magnesium.
- Diarrhoea is the usual side effect. Kidney disease and some medicines call for a conversation with a doctor or pharmacist first.
- For chronic insomnia, European guidance puts cognitive behavioural therapy for insomnia (CBT-I) first.
Two different jobs: topping up and treating insomnia
These two ideas get blended on product labels, so it helps to pull them apart.
Magnesium is an essential mineral. The NHS says the body needs it to turn food into energy and to keep the parathyroid glands working normally, and that most people can get what they need from a varied, balanced diet: the UK figures for adults aged 19 to 64 are 300 mg a day for men and 270 mg for women, with sources including spinach, nuts and wholemeal bread (NHS, vitamins and minerals: others, page last reviewed August 2020).
"Fixing a deficiency" means restoring a low level to a normal one. That's a medical question, answered by a clinician and sometimes a blood test. "Treating insomnia" means asking whether a capsule changes how someone sleeps, whatever their magnesium status. The studies below mostly test the second question, and mostly in people who weren't tested for deficiency.
There is a link in the research, though. A 2023 systematic review of nine studies covering 7,582 adults found that observational studies connected magnesium status with sleep quality, while the randomised trials of supplements gave uncertain, contradictory results (Arab et al., 2023, Biological Trace Element Research). Observational links can't show which way the arrow points, or whether a capsule would change anything. Many things disturb sleep, and symptoms can't tell you your magnesium level.
What the trials actually tested
Older adults with insomnia: a small result, rated low certainty
In 2021, Mah and Pitre pooled randomised trials of oral magnesium against placebo in older adults with insomnia (BMC Complementary Medicine and Therapies). They found three trials with 151 older adults in three countries. The details matter:
- The trials used 320 to 729 mg of elemental magnesium a day, as magnesium oxide or magnesium citrate, taken in two or three doses, for between 20 days and 8 weeks.
- Only two of the trials reported time to fall asleep, covering 55 people between them. Pooled, people on magnesium fell asleep 17.36 minutes sooner than people on placebo (95% confidence interval 7.44 to 27.27 minutes).
- Total sleep time was 16.06 minutes longer with magnesium, but that difference was not statistically significant.
- Results on sleep questionnaires were mixed: one trial found a bigger improvement on magnesium, another found both groups improved equally.
- All three trials carried a moderate-to-high risk of bias, and the review rated the evidence as low to very low certainty. The authors wrote that the clinical importance of a roughly 17-minute shorter wait is debatable.
Put together: it's a hint worth following up, not a measurement you can plan around. It comes from small trials in older adults only, so it says little about a 30-year-old with a busy week.
Adults reporting poor sleep: a small effect, and glycine in the capsule
A 2025 randomised, double-blind, placebo-controlled trial recruited adults aged 18 to 65 who reported poor sleep (Schuster et al., 2025, Nature and Science of Sleep). It randomised 155 people and analysed 153 of them. Participants took two capsules a day, 30 to 60 minutes before bed, for four weeks.
- The active capsules contained magnesium bisglycinate, giving 250 mg of magnesium and about 1.5 g of glycine a day. The placebo was cellulose.
- On the Insomnia Severity Index (ISI), scores fell by 3.9 points with the supplement and 2.3 with placebo (p = 0.049). The authors call the effect size small (Cohen's d = 0.2).
- Other measures, including the psychological questionnaires, showed no significant difference.
- Sleep was measured by questionnaire. Fewer than 10% of participants completed the optional sleep diary, so that data couldn't be interpreted, and there was no objective sleep measurement. The authors asked for longer trials with objective measures.
- Participants with lower self-reported dietary magnesium seemed to improve more, but that came from a single non-validated question and was labelled exploratory. It's an idea for a future study, not a rule for deciding who should supplement.
- No serious adverse events were reported. Seven adverse events were listed in the placebo group and two in the magnesium group, and two placebo participants withdrew with stomach pain.
- The trial was funded by the authors' university institute, with capsules made by Biogena. One author discloses that his research company receives funding from nutraceutical companies.
Because the capsule delivered glycine as well as magnesium, the trial can't tell you which ingredient (if either) accounted for the difference, and it can't rank magnesium forms. Glycine has its own, separate evidence base.
How much is too much? Two official ceilings
Two official figures show up in articles about magnesium, and they answer slightly different questions.
- Source: EU Scientific Committee on Food (SCF, 2001); carried into EFSA's overview of upper intake levels, version 11, August 2025; Figure: 250 mg magnesium a day; What it covers: Readily dissociable magnesium salts and compounds like magnesium oxide in supplements, water or added to foods. Excludes magnesium naturally present in food and drink.
- Source: NHS, citing Department of Health advice; Figure: 400 mg a day or less from supplements is unlikely to cause harm; What it covers: Supplements, UK advice. Taking more than 400 mg for a short time can cause diarrhoea.
How to read them:
- The EU level is a tolerable upper intake level. The SCF took it from a "no laxative effect observed" dose in adults, including pregnant and lactating women, and children aged four and over. The amount at which mild diarrhoea first appeared in a small share of adults was about 360 to 365 mg of magnesium a day (SCF opinion on the tolerable upper intake level of magnesium, 2001; EFSA, overview of tolerable upper intake levels).
- So the limit is about avoiding a laxative effect, not about a dose where serious harm starts. The NHS number of 400 mg is higher because it's a different body, giving a different margin, from a different type of evidence.
- Neither number is a recommended dose. Both describe an upper boundary for supplementary magnesium, on top of what you get from food, and legal maximums in supplements are a separate matter that varies by country (for the Netherlands, the food authority NVWA is the place to check).
- For comparison, the 2025 trial used 250 mg of elemental magnesium a day, and the older-adult trials used 320 to 729 mg. Those are what the studies used, with their participants and their results.
The label check that makes the numbers usable
Supplement labels can list the weight of the whole compound, or the weight of the magnesium in it. They aren't the same. The 2025 trial gives a neat example: each capsule contained 893 mg of magnesium bisglycinate, which supplied 125 mg of magnesium (and 761.5 mg of glycine). Two capsules a day therefore gave 250 mg of elemental magnesium, even though the capsules' contents weighed far more than that.
When you compare a label with any of the figures above, use the elemental magnesium per daily portion. For how forms differ (citrate, glycinate, oxide and the rest), our magnesium forms guide covers formulation detail in one place so we don't repeat it here, and our label-reading guide shows how to find the elemental amount.
Side effects, kidneys, pregnancy and medicines
Diarrhoea. This is the common one. The NHS says more than 400 mg for a short time can cause it, and the SCF describes mild diarrhoea as the most sensitive unwanted effect of readily dissociable magnesium salts, usually reversing within a day or two. In the older-adult trials, one study reported that all participants had soft stools at the highest dose (729 mg a day) (Mah and Pitre, 2021).
Kidney disease. Healthy kidneys remove excess magnesium. The SCF names severely impaired kidney function as a risk factor for too much magnesium building up in the blood. Anyone with kidney disease should ask a doctor before taking a magnesium supplement. Magnesium salts are also used in some laxatives and antacids, so those count too.
Pregnancy and breastfeeding. The SCF reported no laxative effects up to 250 mg a day in studies that included pregnant and breastfeeding women, and its upper level covers them. That's about the diarrhoea threshold in a research setting. It doesn't amount to advice for an individual pregnancy, so ask a midwife, doctor or pharmacist before starting.
Medicines. Magnesium can get in the way of some medicines being absorbed.
- The SCF notes interactions with iron and, in older reports, with drugs including tetracycline, penicillin and digoxin.
- For the osteoporosis medicine alendronic acid, the NHS asks you to tell your doctor if you take supplements containing calcium, iron, magnesium or zinc, and to wait at least 30 minutes after the tablet before taking any other medicine by mouth (NHS, alendronic acid and other medicines).
- No source covers every antibiotic or bisphosphonate, so a pharmacist is the right person to ask about your exact medicines and timing. Count magnesium-containing antacids and laxatives in your list. Our medicine interactions guide explains how to prepare for that conversation.
Where magnesium fits in a sleep plan
The 2023 European Insomnia Guideline recommends cognitive behavioural therapy for insomnia (CBT-I) as the first-line treatment for chronic insomnia in adults, delivered in person or digitally. The guideline's abstract doesn't list magnesium supplements either way (Riemann et al., 2023, Journal of Sleep Research). If poor sleep has lasted for weeks or is hitting your days, a clinician can look at causes and options that capsules can't. The everyday habits that come first are in our sleep hygiene guide.
If you're thinking of trying magnesium, the evidence gives you a few reference points. The trials were short, from about three weeks to eight weeks, and had small effects. None of the trials tested long-term nightly use. A label with a clear elemental amount per portion is easier to compare with those trials than a "sleep blend" with a proprietary list of extras, and stopping if it upsets your stomach is the obvious response to diarrhoea. That's our reading of the evidence, not a recommendation of any product or amount.
Common questions
Does magnesium help you fall asleep?
Possibly a little. Pooled data from two small trials in older adults suggested about 17 minutes faster sleep onset, with low to very low certainty. A 2025 trial found a small questionnaire improvement from a magnesium and glycine capsule. Neither is strong enough to call it established.
Is magnesium glycinate best for sleep?
No study compared forms head to head. Glycinate was the form in the 2025 trial, and that capsule also supplied glycine. See the magnesium forms guide.
Is it safe to take every night?
The trials lasted from about three weeks to eight weeks, so there's no long-term sleep data here. Safety also depends on your kidneys, your medicines and the amount, as above.
Where that leaves magnesium
Magnesium and sleep are connected, but not in the tidy way labels suggest. The human evidence is small, mostly from questionnaires, and cautious in its own authors' words. If you're curious, the usual side effect is diarrhoea at higher amounts, and kidney disease and some medicines are reasons to ask first. If your sleep is genuinely poor, the better next step is a conversation about the cause.
Where to go next
- Sleep hygiene tips for the habits that come before any capsule
- Magnesium forms compared for citrate, glycinate, oxide and label maths
- Supplements and medicine interactions before you add anything to a prescription
Written by Smart Supplements with AI assistance from the sources linked in the text. It has not been reviewed by a clinician.
Last updated: 12 October 2026
This article is for informational purposes only and is not intended as medical advice. Always consult a healthcare professional before starting any new supplement, especially if you take prescription medication.
Related topics
Related articles
Sleep supplements: ingredients before the promise
Sleep supplements decoded: what the label lists, what studies say each ingredient does for sleep, and what NL/EU rules allow, with dated brand labels.
Sleep herbs explained: valerian, passionflower, chamomile and lavender
Valerian, passionflower, chamomile and lavender look like one cosy committee on a label. Here is what each one's research covers, and where the cautions sit.
Melatonin: timing, labels and the questions to ask
What melatonin does, which amounts and timings studies and regulators report, how labels compare, and what to ask a label. No personal doses.