Can magnesium keep you awake? Some people say it does, but the research we read doesn’t show it. In two placebo-controlled trials, nobody taking magnesium reported a sleep problem as a side effect. That doesn’t prove it can’t happen to you, so here is what the evidence covers, where it stops, and what to try if your sleep got worse after you started.
The Short Answer
- It isn’t a known side effect in these trials. The only sleep complaint in the two trials came from a placebo group.
- A rare reaction is still possible. The trials were small and short, so they could miss something that affects only a few people.
- Your own test is simple. Pause the supplement for several nights and see if your sleep changes.
- Don’t take more to fix it. The adult upper limit is 350 mg a day from supplements.
Can Magnesium Keep You Awake? What the Trials Found
We looked for trials that compared magnesium with a placebo and published a side effect table. A placebo group matters here, because people’s sleep changes from week to week whether they take anything or not. We read these two in full.
| What we checked | 2025 glycinate trial | 2026 threonate trial |
|---|---|---|
| People | 155 adults with poor sleep | 100 adults unhappy with their sleep |
| Daily magnesium | 250 mg, 30 to 60 minutes before bed | 145 mg from 2 g of Magtein |
| Length | 4 weeks | 6 weeks |
| Sleep result | Insomnia scores fell 3.9 points, against 2.3 on placebo. The authors called this modest. | One of the sleep questionnaires improved. Oura ring data showed no difference from placebo. |
| Sleep complaints on magnesium | 0 | 0 listed |
| Sleep complaints on placebo | 1 | 0 listed |
| Who paid | A university institute in Germany | Threotech, which supplied the product |
The 2025 trial matters most for this question, because it used the popular glycinate form at bedtime. Its magnesium group reported 2 side effects in total, against 7 in the placebo group. In the 2026 trial, side effects believed to be linked to the capsules were about equal in both groups, and sleep problems weren’t on the list.
These trials have limits. Both are small and short, and side effects were self-reported. They were designed to look for a sleep benefit, not to hunt for rare reactions. The threonate trial also tested one branded form at a lower dose. So our conclusion is narrow: these trials give no sign that magnesium commonly keeps people awake, but they can’t rule it out for you.
Why You Might Feel More Awake
No study we found has tested why this happens, so treat these as possibilities. We’ve marked how strong each one is.
- Something else in the product (well established for caffeine). Some blends add other ingredients. Check the label for caffeine, guarana or green tea extract. In one study, 400 mg of caffeine disrupted sleep even when taken 6 hours before bed.
- Stomach trouble (the side effect is real, the sleep link is our inference). The NIH lists diarrhea, nausea and cramping from high supplement doses. Any of those could wake you, though these trials didn’t measure that.
- Your sleep was already changing (our inference). Many people start magnesium during a bad patch of sleep. A rough week after starting may have nothing to do with the capsule.
- Glycine (a theory only). See the next section.
Can Magnesium Glycinate Keep You Awake?
Magnesium glycinate is magnesium bound to glycine, and you get a fair amount of glycine with it. The 2025 trial’s daily dose contained about 1,500 mg. Glycine is a suspect online because it can act on NMDA receptors, which excite brain cells.
The evidence we found points the other way. In a small 2012 study, 3 g of glycine before bed reduced next-day fatigue in sleep-restricted volunteers, and it described no stimulating effect. That study analyzed only 7 men, so it can’t settle the question. We found no trial showing that glycine or magnesium glycinate keeps people awake.
If you searched for magnesium glycinate and insomnia because you hope it will help, our guide to magnesium for sleep covers how much benefit to expect and which products we’d look at first.
Does Magnesium Give You Energy?
Your body needs magnesium to make energy. The NIH says it’s a cofactor in more than 300 enzyme systems, including those behind energy production. That describes what the mineral does inside your cells. It doesn’t mean a capsule works like a stimulant, and neither trial listed feeling wired or restless as a side effect.
What to Do if Magnesium Seems to Keep You Awake
These steps come from what the evidence can and can’t tell you. They aren’t from a trial, and they don’t replace advice from your doctor.

- Pause it for several nights. Write down when you fell asleep and how often you woke.
- Read the whole label. Look for added stimulants, and add up the magnesium per serving. The upper limit and warning signs are in our side effects guide.
- If sleep improves, try once more. Use a lower dose or take it earlier in the evening. If the problem comes back, stop. It doesn’t matter that the trials found no pattern.
- Switching forms is a fair experiment, not a proven fix. We found no trial comparing forms for this problem. Our types of magnesium chart shows the options.
When to call your doctor
- You have kidney disease. Talk to your doctor before taking magnesium at all.
- You take regular medication. Magnesium can interact with some antibiotics, osteoporosis drugs and diuretics.
- Your sleep stays poor for weeks after you stop. Something else is probably going on, and it’s worth checking.
Using magnesium for anxiety instead? See what two systematic reviews found.
Frequently Asked Questions
Can magnesium keep you awake?
It may for some people, but the research we read doesn’t show it. In two placebo-controlled trials, nobody taking magnesium reported a sleep problem as a side effect. The trials were small, so a rare reaction can’t be ruled out.
Can magnesium cause insomnia?
We found no trial showing that it does. Insomnia scores improved modestly in a 2025 trial of magnesium glycinate. If your sleep got worse after starting, pause it for several nights and compare.
Can magnesium glycinate keep you awake?
We found no trial showing this. In the 2025 glycinate trial, the magnesium group reported no sleep problems. The placebo group reported one. Some people suspect the glycine, but that is only a theory.
Why does magnesium keep me awake?
No study we found has tested why. Check the label for added stimulants such as caffeine. Stomach upset could also wake you, and your sleep may have been changing already.
Can magnesium cause vivid dreams?
The two trials we read did not list vivid dreams as a side effect. That doesn’t rule them out, because the trials were small and short. If dreams bother you, pause it and see if they stop.
Should I take magnesium in the morning instead?
It’s a fair thing to try, but we found no trial comparing morning and night for this problem. The 2025 trial used a dose 30 to 60 minutes before bed and found no sleep complaints in the magnesium group.
How We Researched This
In November 2026 we read the side effect tables of both trials, the 2012 glycine study and Sleep Foundation’s medically reviewed magnesium guide. The NIH details come from its magnesium fact sheet, which we last read in full in October 2026. Questions people ask online helped us choose the topic, but those posts aren’t evidence and we don’t cite them. We did not test any supplement.
Want the deeper investigation? Our ebook The Supplement Scam Bible shows how supplement labels, dosage claims and “clinically proven” wording mislead. Get the ebook.
Sources
- Schuster et al. (2025), Nature and Science of Sleep: Magnesium bisglycinate supplementation in healthy adults reporting poor sleep
- Lopresti and Smith (2026), Frontiers in Nutrition: Magnesium L-threonate, cognitive performance and sleep quality
- Bannai et al. (2012), Frontiers in Neurology: Glycine and daytime performance in sleep-restricted volunteers
- Drake et al. (2013), Journal of Clinical Sleep Medicine: Caffeine taken 0, 3 or 6 hours before bed
- NIH Office of Dietary Supplements: Magnesium, Fact Sheet for Health Professionals
- Sleep Foundation: Magnesium for Sleep
This article is for general information, not medical advice. If you have a health condition or take medication, talk to your doctor first. Read our Health Disclaimer.




