Magnesium for Sleep: What the Evidence Shows
Magnesium for sleep rests on a few small trials. What 3 trials in older adults and a 2025 German trial found, which forms they used, and the cautions.

Magnesium for sleep sounds like a simple fix, yet the trials behind it are few, small and mixed, so magnesium is not a proven sleep aid. The clearest signals come from older adults and from people who eat little magnesium. A systematic reviewsystematic review: A review that fixes its question and its rules for including studies in advance, then searches out every study that fits and weighs them together. Some systematic reviews pool the results into a meta-analysis; others describe what the studies found without combining the numbers.Full entry in the glossary published in 2021 pooled two small trials in 55 older adults and found that magnesium shortened the time it took to fall asleep by about 17 minutes compared with a placeboplacebo: A dummy treatment, such as a sugar pill or a decaffeinated drink, made to look like the real one so that people in a trial cannot tell which they received. Comparing against it separates a treatment's effect from the effect of expecting to be treated.Full entry in the glossary, on evidence the authors rated low quality.1
If you are weighing magnesium against other options, start with the best-tested ways to sleep better, where supplements come after daily habits and, for long-running insomnia, therapy.
What the trials on magnesium for sleep found
The core of the evidence is three placebo-controlled trials in older adults, which Jasmine Mah and Tyler Pitre, researchers at Dalhousie and McMaster universities in Canada, pooled in 2021. In the two trials that timed sleep, magnesium helped people fall asleep somewhat faster, but total sleep time did not clearly change. The reviewers judged the evidence too weak for doctors to make well-informed recommendations, though, since magnesium is cheap and widely available, they saw nothing to rule it out.
The weakness lies in how the trials were run. None reported how participants were randomized or how the blinding was kept, the reviewers rated two of the three at high risk of bias, and they measured sleep in different ways, from questionnaires and a sleep diary to brain recordings.1 A gap of a quarter of an hour sounds useful, but with so few people and such mixed methods, the true effect could be bigger, smaller or close to nothing.
A 2026 systematic review of 12 randomized trials in adults, by researchers in Australia, found inconsistent results, rated the certainty low to very low, and concluded that the evidence does not support magnesium as a routine treatment for insomnia. We could read only its summary; two of its three authors are based at a contract research firm, and the lead author also co-wrote the 2025 German trial described below.2
- Myth
- Magnesium is a proven natural sleep aid.
- Fact
- Only a handful of small trials exist, and they disagree. The best results are modest, mostly in older adults and people low on magnesium, and rest on low-quality evidence.
One of the three was a 2012 trial in Tehran, Iran, in older adults with insomnia. By the end, the magnesium group’s insomnia severity scores, time to fall asleep and sleep efficiency improved more than the placebo group’s, while total sleep time barely differed between the groups. The trial was funded by a public nutrition research institute, and the participants were chosen in part because their diets were low in magnesium.3
A 2010 US trial run by the Department of Agriculture’s Grand Forks Human Nutrition Research Center shows why a placebo group matters. In adults over 51 who slept poorly, sleep quality scores improved by about the same amount on magnesium citrate as on a dummy pill, and the authors suggested a placebo effect may explain the improvement.4
Older adults and people low on magnesium show the clearest signals
The trials with encouraging results mostly enrolled people likely to be short of magnesium. The 2012 Iranian trial took only older adults who ate less than three-quarters of the recommended amount, and a 2025 German trial found, in an exploratory analysis, that people reporting lower magnesium intake improved more.35
Older adults are more often short for several reasons. The US NIH Office of Dietary Supplements (ODS) says older adults eat less magnesium than younger adults, absorb less of it from the gut and lose more through the kidneys, and are more likely to have chronic diseases or take medicines that alter magnesium levels.6
- Short of magnesium from food: older adults and people with low intake, where the trial signals were clearest
- Already eating enough: smaller gains, if any, in the one trial that looked
- Dashed line: the amount the diet should supply. Fill levels are illustrative, not data
Picture two people buying the same bottle. One is in their seventies and eats mostly white bread, meat and little else; the other is in their thirties and eats beans, nuts and greens most days. The trials say something, cautiously, about the first person and much less about the second: the Iranian trial enrolled only people like the first, and the German trial’s exploratory analysis found smaller gains in people who already ate more magnesium.35
A 2023 systematic review by Iranian nutrition researchers frames the gap: observational studies link magnesium status with sleep quality, while the randomized trials disagree with one another.7 Such a link cannot show which came first, or whether something else, such as overall diet, drives both.
A four-week German trial found a small benefit
A 2025 trial at Leibniz University Hannover in Germany, billed by its authors as the largest placebo-controlled trial of magnesium for sleep, found a small improvement in insomnia symptoms after four weeks of magnesium bisglycinate in adults who reported poor sleep. The authors list its limits plainly: sleep was only self-reported, the trial lasted four weeks, and the average score at the end was still in the range they call subthreshold insomnia. Each daily dose also carried about 1.5 g of glycine, an amino acid studied for sleep in its own right, which the plain cellulose placebo cannot separate from the magnesium.5
The study
Limited evidence
Four weeks of bisglycinate capsules against a dummy pill in 155 adults in Germany (2025)
Researchers at Leibniz University Hannover randomly gave 155 adults who reported poor sleep either magnesium bisglycinate capsules or a placebo for four weeks. On the Insomnia Severity Index questionnaire, scores fell by about 3.9 points with magnesium and 2.3 points with the placebo, a gap the authors describe as small (an effect size of 0.2). The university institute funded the trial; one co-author runs a contract research firm funded by supplement companies.5
Both groups felt somewhat better, and magnesium added a little on top.
Which type of magnesium is best for sleep? No trial has compared them
No trial has compared magnesium forms head to head for sleep, so there is no evidence-based best type. Each trial used a different form, dose and group of people, so the results cannot be lined up to pick a winner.
| Trial or review | Who took part | Form and amount tested | What it found | Evidence |
|---|---|---|---|---|
| Abbasi et al., 2012, Iran | 46 older adults with insomnia and low magnesium intake | Magnesium oxide, 500 mg of magnesium a day for 8 weeks | Insomnia scores and time to fall asleep improved more than on placebo; no clear change in total sleep | Trial, limited3 |
| Mah and Pitre, 2021 review | 3 trials, 151 older adults in 3 countries | Oxide or citrate, 320 to 729 mg of magnesium a day, for 20 days to 8 weeks | Fell asleep faster in the 2 trials (55 people) that timed it; no clear change in total sleep; soft stools reported in one trial | Systematic review, low to very low certainty1 |
| Rawji et al., 2024 review | 8 sleep studies in varied groups, plus anxiety studies | Mostly magnesium oxide | Most of the sleep studies reported some improvement; one database searched, small and varied studies, some mixed with other ingredients; calls for larger trials | Systematic review, limited8 |
| Hausenblas et al., 2024, US | 80 adults aged 35 to 55 with self-reported sleep problems | Magnesium L-threonate, 1 g of the compound (about 75 mg of magnesium) a day for 3 weeks | Better questionnaire and sleep-ring scores than placebo; funded by the US company AIDP, which paid three co-authors; registered retrospectively | Trial, limited9 |
| Schuster et al., 2025, Germany | Adults reporting poor sleep | Magnesium bisglycinate, 250 mg of magnesium a day for 4 weeks | Small drop in insomnia scores; see the spotlight above | Trial, limited5 |
The amounts in the table are what the trials tested, not recommendations, and some sit above the official supplement limits described below. A doctor or pharmacist should look at your situation before you take any of them.
Absorption is the usual argument for one form over another. The ODS says small studies found magnesium in the aspartate, citrate, lactate and chloride forms is absorbed more completely than magnesium oxide, and that supplement labels list the amount of elemental magnesium, not the weight of the whole compound.6 Yet the 2012 Iranian trial, one of the more positive results, used magnesium oxide.3 Better absorption on paper has not been shown to mean better sleep, so a premium form is a price decision, not an evidence-based one.
When should you take magnesium for sleep?
No trial has tested whether morning or evening doses of magnesium work better for sleep. The 2025 German trial had people take their capsules 30 to 60 minutes before bed, so evening timing is a trial convention rather than a tested advantage.5
Timing does matter for some medicines. The ODS says magnesium can reduce the absorption of oral bisphosphonates for osteoporosis, such as alendronate, and binds to tetracycline and quinolone antibiotics, such as doxycycline and ciprofloxacin; it advises taking bisphosphonates at least 2 hours apart from magnesium, and the antibiotics at least 2 hours before or 4 to 6 hours after it. It adds that diuretics and long-term use of some acid-reflux medicines can change magnesium levels.6 If you take any of these, the right gap is a question for your pharmacist, not a bedtime routine.
Is it safe to take magnesium every night?
Magnesium from food poses no risk for healthy people, because their kidneys clear the excess, the ODS says.6 Supplements have official upper limits for adults, and they differ by place: 250 mg a day in the EU, in the European Food Safety Authority’s 2025 summary table.10 The US limit, as listed in the ODS’s 2021 consumer fact sheet, is 350 mg a day from supplements and medicines for adults, with much lower limits for children, and the ODS notes that these limits leave out food, which is why they can sit below the recommended amount from all sources combined.11
The UK’s NHS, on a page last reviewed in 2020, takes a slightly different line: 400 mg or less a day from supplements is unlikely to cause harm, more than that for a short time can cause diarrhoea, and there is not enough evidence to say what long-term high doses do.12 Because each country sets its own figure, anyone outside the EU, US and UK can look up their national food safety agency or ask a pharmacist.
The bigger risks sit with particular people. The ODS says the risk of magnesium toxicity rises with impaired kidney function or kidney failure, because the kidneys can no longer clear the excess.6 In the US, the FDA’s 2022 consumer guidance says it does not have the authority to approve dietary supplements for safety and effectiveness before they are sold, so a label is the maker’s claim, not a regulator’s verdict.13
Get a professional opinion first if you
Have kidney disease or reduced kidney function; take bisphosphonates for osteoporosis, tetracycline or quinolone antibiotics, diuretics, or prescription medicines for acid reflux or ulcers; are pregnant or breastfeeding; or are buying for a child.
What foods are high in magnesium?
Seeds, nuts, beans, whole grains and leafy greens are good everyday sources of magnesium, according to the US NIH Office of Dietary Supplements. Pumpkin and chia seeds, almonds, spinach and cashews top its table of common foods, with black beans not far behind, while refining grains strips out much of the magnesium: half a cup of cooked white rice has about a quarter of the magnesium in the same amount of brown rice. As a worked example, by the ODS figures, a small handful (1 ounce) of roasted pumpkin seeds has about 156 mg; add half a cup each of cooked black beans and boiled spinach and a slice of whole-wheat bread, and the total is about 317 mg. That is roughly the 310 to 320 mg a day the ODS recommends for adult women in the US, before counting anything else eaten that day.6
National targets differ a little. The UK’s NHS puts the daily need at 300 mg for men and 270 mg for women under 65, and says you should be able to get all the magnesium you need from a varied and balanced diet.12 Readers elsewhere can check their own national dietary guidelines.
Before you try magnesium for sleep
Poor sleep for months needs a doctor
Poor sleep that lasts for months, or that habits have not fixed, needs a doctor rather than another supplement. We have sorted US and UK official advice into three levels of urgency.
- Now: after a large dose of magnesium, especially with kidney problems, signs such as muscle weakness, trouble breathing or an irregular heartbeat need urgent help, because the ODS lists them among the signs of magnesium toxicity; call your local emergency number.6 If sleeplessness brings thoughts of suicide or self-harm, phone your local emergency number now. US readers can also reach 988, the Suicide & Crisis Lifeline, by phone or text, as the National Institute of Mental Health advises.14
- Soon: book a GP or doctor’s appointment, the NHS says, if new sleep habits have changed nothing, if sleeping badly has lasted months, or if it is wearing down your days.15 Our guide to the different kinds of insomnia and what drives them covers what that visit involves.
- At your next appointment: bring a list of every supplement you take, including magnesium, so your doctor and pharmacist can check it against your medicines and any kidney problems.
The bottom line
Magnesium is not a proven sleep aid. Two small trials in older adults found a modest benefit, about 17 minutes faster to fall asleep, on low-quality evidence, and the clearest signals come from people who eat little magnesium. Start with seeds, beans, nuts, whole grains and greens; if you try a supplement, run the dose, your medicines and your kidneys past a pharmacist or doctor first, and treat months of bad nights as a reason for an appointment.
This article is general information, not medical advice. If you're worried about your health, talk to a doctor or another qualified professional.
Frequently asked questions
How long does magnesium take to work for sleep?
Nobody knows a reliable timeline, because the trials were short and their results small. They ran from about 3 to 8 weeks. In a 2025 German trial, the largest according to its authors, most of the improvement in insomnia scores appeared within the first 2 weeks and then held steady. If nothing has changed after a few weeks, the trials give little reason to expect more, and a doctor is the better next step.
Can a blood test show whether I am low in magnesium?
Not reliably. The US NIH Office of Dietary Supplements says most of the body's magnesium sits inside cells and bone, so the usual blood test does not accurately reflect total body magnesium. A full assessment may need both lab tests and a clinical review, so a doctor will weigh your diet, health conditions and medicines alongside any test result.
Can I get enough magnesium from food alone?
Most people can. The UK's NHS says you should be able to get all the magnesium you need from a varied and balanced diet, and the US NIH Office of Dietary Supplements says magnesium from food and drinks is not harmful and does not need to be limited. Older adults and people with some gut conditions, type 2 diabetes or heavy alcohol use are more likely to run short.
Sources
- Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. Mah, J. & Pitre, T. (2021). BMC Complementary Medicine and Therapies, 21, 125 (correction published 2024)
- Magnesium Supplementation for Sleep in Adults: A Systematic Review of Randomized Controlled Trials. Lopresti, A. L., Smith, S. J. & Drummond, P. D. (2026). Journal of Dietary Supplements, 23(5)
- The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial. Abbasi, B., Kimiagar, M., Sadeghniiat, K., Shirazi, M. M., Hedayati, M. & Rashidkhani, B. (2012). Journal of Research in Medical Sciences, 17(12)
- Magnesium supplementation improves indicators of low magnesium status and inflammatory stress in adults older than 51 years with poor quality sleep. Nielsen, F. H., Johnson, L. K. & Zeng, H. (2010). Magnesium Research, 23(4)
- Magnesium Bisglycinate Supplementation in Healthy Adults Reporting Poor Sleep: A Randomized, Placebo-Controlled Trial. Schuster, J., Cycelskij, I., Lopresti, A. & Hahn, A. (2025). Nature and Science of Sleep, 17
- Magnesium: Fact Sheet for Health Professionals. Office of Dietary Supplements, National Institutes of Health (US), updated 6 January 2026
- The Role of Magnesium in Sleep Health: a Systematic Review of Available Literature. Arab, A., Rafie, N., Amani, R. & Shirani, F. (2023). Biological Trace Element Research, 201(1)
- Examining the Effects of Supplemental Magnesium on Self-Reported Anxiety and Sleep Quality: A Systematic Review. Rawji, A., Peltier, M. R., Mourtzanakis, K., et al. (2024). Cureus, 16(4), e59317
- Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: A randomized controlled trial. Hausenblas, H. A., Lynch, T., Hooper, S., Shrestha, A., Rosendale, D. & Gu, J. (2024). Sleep Medicine: X, 8, 100121
- Overview on Tolerable Upper Intake Levels as derived by the Scientific Committee on Food (SCF) and the EFSA Panel on Dietetic Products, Nutrition and Allergies (NDA). European Food Safety Authority (EU), version 11, August 2025
- Magnesium: Fact Sheet for Consumers. Office of Dietary Supplements, National Institutes of Health (US), updated 22 March 2021
- Vitamins and minerals: Others. NHS (UK), page last reviewed 3 August 2020
- FDA 101: Dietary Supplements. U.S. Food and Drug Administration (content current as of 2 June 2022)
- Suicide Prevention. National Institute of Mental Health, National Institutes of Health (US)
- Insomnia. NHS (UK), page last reviewed 19 March 2024
How we researched this
In October 2026 we looked for placebo-controlled trials and reviews of magnesium supplements and sleep on PubMed and Europe PMC, read every open-access paper in full, and compared official advice from the US NIH Office of Dietary Supplements, the FDA, the UK NHS and the European Food Safety Authority. The research dates from 2010 to 2026. The trials are small and brief, and for the 2010 US trial and the 2023 and 2026 reviews only the abstracts were available.


