Skip to main content

    Journal

    Does magnesium actually help you sleep?

    Imagine this. It's 1 a.m., and you're scrolling past your third video promising that a magnesium supplement will "fix your sleep." The comments are full of people swearing it works. So you buy a bottle, and the next few nights you do sleep a little better. Case closed?

    Not quite. When researchers pooled the controlled trials in older adults, they found just three small studies with 151 people in total. Those studies suggested people fell asleep about 17 minutes faster on average, and the researchers rated the evidence as low quality.¹ In this essay we'll use a few thinking tools to work out what your better nights can and can't tell you, and how to test it for yourself.

    The question

    Here is the question in plain words: if an adult takes magnesium by mouth, do they sleep better than they would have without it?

    That is a different question from "Did I sleep better after I started taking it?" The second question is about what happened to you. The first is about cause and effect. By the end of this essay, you should be able to tell the two apart, and know what kind of evidence it takes to answer the first one.

    What the evidence actually says

    Scientists have tested magnesium for sleep in several trials, and here are the three most useful sources, from the broadest to the most specific.

    A 2021 review of trials in older adults. Two researchers combined three randomized trials, with 151 older adults in total, from three countries.¹ On average, people taking magnesium fell asleep about 17 minutes faster than people taking a placebo, a dummy pill. But the real effect could be anywhere from about 7 to 27 minutes. Total sleep time was about 16 minutes longer, but that difference was not statistically significant. In other words, it could easily have been chance. All three trials had a moderate-to-high risk of bias, and the authors rated the evidence as low to very low quality.¹ These trials were in older adults only, so we can't assume the same results for younger people.

    A 2026 review of 12 trials in adults. This is the most recent and broadest summary.² The researchers found 12 randomized trials on sleep. But the trials differed so much that they could not be combined into one number. They used different groups of people, different forms of magnesium, different amounts, different lengths and different ways of measuring sleep. Some measured how people said they slept. Others used brain-wave recordings, wrist devices or consumer sleep trackers. The results were inconsistent, and the certainty of the evidence was low to very low. The authors' conclusion is clear: current evidence does not support oral magnesium as a routine treatment for insomnia.² Magnesium may give modest benefits on some self-reported measures for some adults, but the findings don't line up.

    A 2025 trial in younger and middle-aged adults. This is the best single trial we found in adults under retirement age.³ It included 155 adults aged 18 to 65 who said they slept poorly. For four weeks, half took a magnesium supplement and half took a placebo. Neither the participants nor the researchers knew who got which. People filled in a sleep questionnaire called the Insomnia Severity Index, where lower scores mean fewer sleep problems.

    Here's the interesting part. Scores in the magnesium group dropped by about 3.9 points. Scores in the placebo group dropped by about 2.3 points.³ So the placebo group improved too: by about 18% from where they started, compared with 28% for the magnesium group. Most of the improvement happened in both groups.

    The difference between the groups only just passed the usual test for statistical significance (p = 0.049, just under the 0.05 cut-off). The effect size was small, and the authors themselves describe it as a "modest benefit."³ The trial only used self-reported sleep, and it lasted four weeks. There was a hint that people who ate little magnesium in their diet might benefit more, but that was an exploratory finding, not something the trial was set up to test. There's one more catch. The supplement used in this trial also contains glycine, another substance, so the trial can't tell us whether any benefit came from the magnesium or the glycine.

    A note on independence. One researcher, A. Lopresti, is an author of both the 2025 trial and the 2026 review.²˒³ That doesn't mean anything was done wrong, but it does mean these two sources are not fully independent of each other. When you count up evidence, it's worth noticing when the same people appear on more than one side of the table.

    What about official bodies? The US National Institutes of Health (NIH) publishes a detailed fact sheet on magnesium.⁴ It covers blood pressure, heart health, diabetes, bone health and migraine. It has no section on sleep or insomnia. So it doesn't back magnesium for sleep. We use it below only for safety information.

    Evidence label: Weak. A few small, mixed, low-quality studies. One decent trial found a small benefit, with a big improvement on placebo too. The latest review says the evidence doesn't support magnesium as a routine insomnia treatment.

    The thinking tools

    Placebo effect

    The placebo effect is when people feel better after a treatment partly because they expect to, not because of what's in it. In the 2025 trial, people taking a dummy pill improved their sleep scores by about 18%, even though they had no magnesium at all.³ That gain is partly expectation and partly natural bounce-back after a bad patch (regression to the mean, below), so not all of it is the placebo effect. Still, when you feel better after starting a supplement, some of that feeling may come from expecting to feel better. That's real, but it isn't the pill.

    Regression to the mean

    Regression to the mean means that unusually bad (or good) stretches tend to be followed by more ordinary ones, all by themselves. Think about when you'd go looking for a sleep fix: probably after a run of bad nights. But sleep goes up and down naturally. After a bad patch, the next few nights are likely to be better anyway. If you start a supplement at your worst moment, the supplement gets the credit for a recovery that was probably coming regardless. The people in the 2025 trial signed up because they were sleeping badly, which is one reason both groups improved.³

    Randomized controlled trials and blinding

    So how do scientists get past these traps? With a randomized controlled trial. People are split by chance into two groups. One gets the real thing, and the other gets a placebo. Because both groups get the same expectations and the same natural ups and downs, any extra difference is more likely to come from the treatment itself.

    Blinding makes this even fairer. It means people don't know which group they're in. In a "double-blind" trial, like the 2025 one, the researchers don't know either.³ That way, hopes and expectations push both groups equally. This is why the trial could show that most of the improvement also happened without magnesium, something your own before-and-after experience can never show.

    Sample size

    Sample size is simply how many people were studied. Small studies give wobbly answers that can swing a lot by chance alone. The whole 2021 review rests on just 151 people across three trials.¹ That's why its result has such a wide range, from about 7 to about 27 minutes. More people would give a more precise answer.

    So what should I do?

    First, the facts: the evidence that magnesium helps healthy adults sleep is weak. If there is a benefit, it seems to be small, and it's hard to separate from the placebo effect and natural ups and downs. The most recent review says magnesium is not supported as a routine treatment for insomnia.²

    Whether to try it anyway is partly a question of values, not just facts. How much do you care about a possible small benefit, versus the cost and the uncertainty? That's your call. (See facts vs values.) This essay doesn't recommend any product or amount.

    A few safety points matter, though, according to the NIH fact sheet:⁴

    • Kidney problems: if your kidneys don't work well, your body can't clear extra magnesium, and it can build up to harmful levels. Talk to a clinician before taking it.
    • Other medicines: magnesium can interfere with how some bone-strengthening medicines and some antibiotics are absorbed. Some water pills and long-term heartburn medicines also affect magnesium levels. If you take any regular medicine, check with a doctor or pharmacist first.
    • Side effects: large amounts from supplements or medicines often cause diarrhoea, nausea and cramps. Very large amounts, mostly from laxatives or antacids, have caused serious harm.

    And if you have trouble sleeping most nights, for weeks at a time, see a clinician. Persistent insomnia deserves proper help, and the evidence doesn't support magnesium as a routine insomnia treatment.²

    Try this week

    Your two-week sleep log (no changes allowed)

    Before you test anything, find out what your normal sleep looks like.

    • What to do: For 14 nights, change nothing. Don't start or stop any supplement, and keep your routine as usual.
    • What to record each day: (1) the time you went to bed, (2) roughly how many minutes it took to fall asleep, and (3) a morning rating of how rested you feel, from 1 (awful) to 5 (great).
    • How to read it: Look at how much your numbers bounce around with no change at all. Did some nights take 10 minutes and others 40? Did your ratings swing from 2 to 4? That's your natural variation. Any future "it worked!" needs to beat that.
    • When to get help: If your log shows you struggle to sleep on most nights, or you feel exhausted most days, talk to a doctor.

    Key takeaways

    • Feeling better after starting a supplement can't tell you the supplement worked. In one trial, the placebo group's sleep scores improved by about 18%.³
    • The evidence for magnesium and sleep is weak: small, low-quality studies with mixed results, and the latest review doesn't support it as a routine insomnia treatment.¹˒²
    • Randomized, blinded trials with enough people are how we separate a real effect from expectation and natural ups and downs.

    Sources

    1. Mah, J., & Pitre, T. (2021). Oral magnesium supplementation for insomnia in older adults: A systematic review & meta-analysis. BMC Complementary Medicine and Therapies, 21, 125. https://doi.org/10.1186/s12906-021-03297-z
    2. Lopresti, A. L., Smith, S. J., & Drummond, P. D. (2026). Magnesium supplementation for sleep in adults: A systematic review of randomized controlled trials. Journal of Dietary Supplements, 23(5), 553–581. https://doi.org/10.1080/19390211.2026.2719670
    3. Schuster, J., Cycelskij, I., Lopresti, A., & Hahn, A. (2025). Magnesium bisglycinate supplementation in healthy adults reporting poor sleep: A randomized, placebo-controlled trial. Nature and Science of Sleep, 17, 2027–2040. https://doi.org/10.2147/NSS.S524348
    4. National Institutes of Health, Office of Dietary Supplements. (2026, January 6). Magnesium: Fact sheet for health professionals. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/