
Tired but wide awake?
You lie in bed, exhausted — but your mind won't quiet down. You wake up at 3am for no reason. If this sounds familiar, magnesium may be worth a look, especially if your diet is low in it: surveys suggest a majority of US adults eat less magnesium than recommended (68% below the RDA in one national survey, King et al., 2005).
First, the most important point: for ongoing insomnia, the recommended first-line treatment is cognitive behavioral therapy for insomnia (CBT-I), not a supplement (American College of Physicians guideline). Magnesium is at best a modest add-on. And not all magnesium supplements are equal — the wrong form can send you running to the bathroom at 2am. Here is what the research shows for each form, and how to dose them safely.
Take the free supplement quiz →
How magnesium may affect sleep
Magnesium doesn't sedate you like a sleeping pill. Researchers think it may help through a few mechanisms:
- Calming GABA signaling. Magnesium appears to act on GABA receptors, the brain's main calming system.
- Dampening NMDA signaling. Magnesium blocks excitatory NMDA receptors, which may help quiet a racing mind.
- Early clinical data. A small 2012 trial in 46 older adults with insomnia found 500 mg/day of magnesium (as oxide, a dose above today's supplement upper limit, so only with medical advice) improved sleep efficiency and time to fall asleep, along with melatonin and cortisol levels (Abbasi et al., 2012). Total sleep time did not change significantly.
Overall, the evidence is modest. A 2026 systematic review of 12 randomized trials found inconsistent results with low to very low certainty, and concluded the evidence does not support oral magnesium as a routine treatment for insomnia (Lopresti et al., 2026). An earlier review in older adults found sleep onset about 17 minutes faster, based on low-quality evidence (Mah & Pitre, 2021).
Magnesium glycinate — a good first choice
Glycinate is magnesium bound to the amino acid glycine. It is well tolerated and gentle on the stomach, and both citrate and glycinate are better absorbed than oxide (NIH ODS). Small trials suggest 3 g of glycine before bed may improve sleep quality; a magnesium glycinate capsule contains far less glycine than that.
A 2025 randomized, placebo-controlled trial in 155 adults reporting poor sleep found a small improvement in insomnia scores after 4 weeks with 250 mg/day of magnesium bisglycinate, with no extra stomach side effects (Schuster et al., 2025). The authors described the effect as small.
Best for: people who want to try magnesium for sleep, sensitive stomachs. Research suggests: 250 mg elemental magnesium in the evening. Don't exceed 350 mg/day from supplements. View magnesium glycinate on Amazon.
Magnesium L-threonate — the pricier option
Threonate was developed by MIT researchers, who showed it raised brain magnesium in rats (Slutsky et al., 2010). In people, the evidence is thin: a 3-week, 80-person trial funded by the ingredient's maker found 1 g/day of magnesium L-threonate improved some ring-measured sleep scores and morning alertness (Hausenblas et al., 2024).
The catch: expect $30–50 per month versus $10–20 for glycinate. The trial used 1 g/day; labels typically suggest 1–2 g of the compound (about 72–144 mg elemental magnesium).
Best for: people curious to try it who have not responded to glycinate after about 4 weeks — with realistic expectations. View magnesium L-threonate on Amazon.
Other forms
- Citrate — well absorbed and cheap, but it can loosen stools at higher doses, which isn't ideal overnight. Fine for constipation or general repletion.
- Malate — another well-tolerated form; there's no good evidence it's better for energy or recovery.
- Oxide — poorly absorbed and more likely to cause loose stools, though one small insomnia trial did use it.

At a glance
| Form | Sleep evidence | Absorption | GI tolerance | Cost/month | Best for |
|---|---|---|---|---|---|
| Glycinate | Limited (one small RCT, small effect) | Good | Excellent | $10–20 | Trying magnesium for sleep, sensitive stomachs |
| L-Threonate | Limited (one 3-week, maker-funded trial) | Good (brain data in rats) | Excellent | $30–50 | Second option if glycinate doesn't help |
| Malate | None specific to sleep | Good | Good | $12–22 | General use |
| Citrate | None specific to sleep | Good | Poor at high dose | $8–15 | Constipation, repletion |
| Oxide | Limited (one small trial, above-UL dose) | Low | Poor | $5–10 | Not a first choice |
Who is most likely to run low?
- Adults over 60 — absorption declines with age
- Type 2 diabetes or insulin resistance — greater urinary magnesium losses
- Regular heavy drinkers — alcohol increases magnesium loss
- People with digestive conditions such as Crohn's or celiac disease
- People on long-term PPIs or certain diuretics
- Athletes — they lose a little magnesium in sweat, though usually only a few milligrams per hour
Dosing, timing, and what to expect
Many people take magnesium in the evening, 1–2 hours before bed. Check the label for elemental magnesium: a product listing 500 mg magnesium glycinate may contain only 50–80 mg elemental. Prefer third-party tested (NSF, USP, Informed Sport), true chelated bisglycinate — view chelated glycinate on Amazon and choose a product that keeps you at or below 350 mg/day from supplements.
If it helps, you'll likely notice within about 4 weeks; if not, it may not be your issue. Avoid taking it with high-dose zinc. Take tetracycline or quinolone antibiotics at least 2 hours before or 4–6 hours after magnesium, and separate magnesium from osteoporosis drugs (bisphosphonates) by at least 2 hours.
A safety note: the NIH tolerable upper limit for supplemental magnesium is 350 mg/day — above that, diarrhea, nausea, and cramping become more likely. Don't take magnesium supplements if you have kidney disease unless your doctor advises it. Anyone with heart conditions, who is pregnant, or who takes interacting medications should consult a healthcare provider first.
Bottom line
If you sleep poorly, start with sleep habits and, for ongoing insomnia, ask about CBT-I. If you'd still like to try magnesium, glycinate is a sensible, inexpensive first pick: small trials suggest a modest benefit for some people, and it's generally safe at up to 350 mg/day from supplements if your kidneys are healthy. Research suggests 250 mg elemental in the evening; give it about a month. Not sure magnesium is actually your gap? Our free quiz shows what's worth trying first.