Magnesium may help some adults sleep a little better, but the research is small, mixed and not strong enough to promise it will work for you. A 2025 placebo-controlled trial found a small improvement in insomnia severity scores, a 2021 meta-analysis of older adults found a shorter sleep onset in low-quality evidence, and the reviews say larger, longer studies are still needed. Here is what the evidence actually shows, and where it stops.
What a 2025 trial found
A 2025 placebo-controlled trial, published in Nature and Science of Sleep, enrolled 155 adults aged 18 to 65 who reported poor sleep quality. Participants were randomly assigned to daily magnesium bisglycinate (250 mg of elemental magnesium) or placebo capsules. The primary comparison was at Week 4.
The magnesium group’s Insomnia Severity Index scores fell by 3.9 points, compared with 2.3 points in the placebo group. The authors describe that as a small effect (Cohen’s d of 0.2) and a modest benefit. They found no significant differences on other psychological measures.
These were healthy adults who reported poor sleep, so the trial does not tell you how magnesium works for a diagnosed insomnia disorder. The authors say future studies should include objective sleep measures and longer treatment periods.
What do the reviews say?
Reviews pull many studies together, but they differ in how positive they are, and all of them call for better trials. Here is what each one found.
| Review or trial | Who was studied | What it found |
|---|---|---|
| 2021 meta-analysis of magnesium in older adults | Three randomized trials, 151 older adults with insomnia | Pooled data showed sleep onset about 17 minutes shorter than placebo. The gain in total sleep time was not statistically significant. All three trials carried moderate-to-high risk of bias. |
| 2023 systematic review of magnesium and sleep health | Nine cross-sectional, cohort and randomized studies, 7,582 adults | Observational studies linked magnesium status with sleep quality. The randomized trials gave uncertain results. The authors want trials lasting more than 12 weeks. |
| 2024 Cureus review of magnesium for anxiety and sleep | 15 interventional trials | Five of eight sleep studies reported improvement, two reported none and one was mixed. The authors wrote that magnesium is likely useful for mild anxiety and insomnia, particularly in people with low magnesium status at baseline, and called for larger trials. |
Read together, the evidence is mixed. Magnesium status tracks with better sleep in observational studies, while the controlled trials are small, varied and not conclusive. The 2021 authors were blunter, writing that the quality of the literature is “substandard for physicians to make well-informed recommendations” on oral magnesium for older adults with insomnia.
Does glycinate work better for sleep?
There is no proof that glycinate beats other forms for sleep. WebMD’s 2024 article quotes a psychiatrist who says “it is hard to find peer-reviewed literature on magnesium glycinate and sleep specifically,” and notes that in much of the literature “the specific type of magnesium used in the study isn’t noted.” That article also describes magnesium glycinate as suggested to have a calming effect on the nervous system, while a behavioral sleep specialist quoted there says researchers are still working out how it works for different people.
An older 2016 Harvard Health Publishing piece said some initial studies suggested magnesium may help with insomnia, but that the evidence was limited. The 2024 review added that dosages, formulations and durations differed across its studies, and some included other possibly active ingredients. So if a label says glycinate, the research on that exact form is still thin.
Who might notice a difference, and who should check first
Two findings hint at a pattern. The 2024 review’s authors thought the effect was most likely in people with low magnesium status at baseline. The 2025 trial’s exploratory analysis found bigger gains among participants who reported lower dietary magnesium. Those are hints, not rules. Neither study can tell you whether you are one of those people, and the 2025 authors call for better measurement of baseline magnesium intake and status. As the behavioral sleep specialist quoted by WebMD puts it, magnesium is “not a one-stop fix for everyone.”
Safety and medicines
WebMD notes that magnesium glycinate is generally safe, but taking too much can upset your stomach. It says seniors, teenagers and people with kidney concerns should talk to their doctor before starting, especially if they take other medicines, to avoid interactions. It also points out that the FDA does not regulate supplements in the same way as medications. The 2024 review describes minimal side effects in the trials it included.
If your question is about a specific medicine, such as tirzepatide, or a condition such as colitis, take it to your pharmacist or prescriber before adding magnesium. This page does not go into those questions.
Your other options, side by side
| Option | What the evidence shows | Who it suits and the limits |
|---|---|---|
| Magnesium-rich foods | WebMD lists pumpkin seeds, leafy greens such as spinach and Swiss chard, almonds, cashews, salmon and halibut. Harvard Health suggests older men get enough by eating leafy greens, nuts and seeds. | Suits anyone who wants to start with food, which WebMD says experts often recommend. Eating these foods is not the same as taking the amounts used in trials. |
| Oral magnesium supplement | The 2025 bisglycinate trial, the 2021 older-adult meta-analysis and the 2024 review, as described above. | Suits adults who have checked with a clinician first. Results are small and mixed, and forms and doses differed across studies. |
| Good sleep habits, sometimes called sleep hygiene | WebMD says good sleep habits might help you reach the seven-to-nine-hour sleep goal. | Suits anyone who wants to work on sleep without a supplement. Habits alone may not fix persistent problems. |
| Talking with a clinician about ongoing problems | WebMD advises talking with your doctor before starting a supplement, so they can check it against your health conditions and medicines. | Suits anyone whose sleep problems keep going or who takes prescription medicines. |
Costs vary by brand, form and package size, and prices change, so check today’s figures directly with the maker before you decide.
For a wider look at supplements, see Workout Recovery Supplements: What the Research Shows and What to Expect. Supplements sold for training are a separate question. Our guide to cordyceps for athletic performance covers that topic.
What is still not known
- Whether magnesium helps people with a diagnosed insomnia disorder. The 2024 review calls for larger trials, and the 2025 trial’s authors call for longer ones.
- Which form, if any, works best for sleep.
- Who responds. The high-responder idea from the 2025 trial is exploratory and unconfirmed.
- Whether any effect lasts beyond a few weeks. The 2023 review asks for trials longer than 12 weeks.
- Whether objective sleep measures show the same gains as questionnaires. The 2025 authors say they need to be tested.
When to take it, and when to see a clinician
For timing, your pharmacist or prescriber is the right person to ask, especially if you take other medicines. If trouble sleeping keeps going, bring it to a clinician rather than relying on a supplement alone.
Before that visit, keep a simple sleep log for a few weeks. Note when you go to bed, how long it takes you to fall asleep and how often you wake. It gives your clinician something concrete to work with.
If your sleep question comes from training, our guide to cordyceps for athletic performance covers that separate topic.
By the Fitness Career Guide Editorial Team
This article is for general information purposes only and does not constitute medical advice. Consult your doctor or qualified healthcare provider before making changes to your health routine.