Experiment guides → Supplements → Magnesium not working
Magnesium isn't helping your sleep. Now what?
Quick answer: the most likely explanation is the least exciting one: you weren't short on magnesium, so there was nothing for a supplement to fix. The trials that found a benefit were in older adults with insomnia who were probably deficient, and even there the pooled effect was only about 17 minutes faster sleep onset. Three other suspects: the label (compound weight vs elemental magnesium can be a five-fold difference), the problem (caffeine timing, alcohol, an irregular wake time each move sleep more than magnesium does), and the absence of a baseline — without one, "nothing happened" and "a small something happened" look identical. A two-week stop-test sorts them out.
"I will stop magnesium for 14 nights and compare against the nights I was on it."
What the research says
Even when it works, the effect is small. The only meta-analysis of randomized magnesium trials for sleep pooled 151 older adults and found sleep onset 17 minutes faster and no significant change in total sleep time, at low-to-very-low certainty. If you were hoping for a transformed night, the literature never promised one (Mah & Pitre, 2021).
The wider evidence is inconsistent. A 2023 systematic review across observational and interventional studies concluded that magnesium's link with sleep is plausible but the trial evidence is inconsistent and low quality, with no clear picture of who responds. "It didn't work for me" is entirely compatible with the published data (Arab et al., 2023).
Other levers are simply bigger. For comparison: a 2023 meta-analysis found caffeine cuts total sleep by about 45 minutes and sleep efficiency by 7% on average — three times the magnesium effect, in the other direction. If afternoon coffee is still in the picture, it can swallow any benefit magnesium might be giving (Gardiner et al., 2023).
What this evidence doesn't say
None of this proves magnesium can't work for you — only that the published effect is small, the responders are poorly characterised, and a non-response is common. The stop-test below can't tell you why it isn't working, only whether it's doing anything at all, which is the question that decides whether to keep buying it.
Run it as an experiment
- Log five nights while still taking it. This is your "on" baseline: sleep quality, restedness, time-to-sleep each morning. Don't skip it — it's the half of the comparison you've been missing.
- Check the label once. Find the elemental magnesium per serving. If it's under 100 mg, the test you've been running was under-dosed; consider a proper 14-night trial at 200–300 mg before concluding anything.
- Make the pact. "I will stop magnesium for 14 nights and compare against the nights I was on it." Change nothing else.
- Morning check-ins, same three questions. Watch for the first few nights: if sleep is noticeably worse off magnesium, that's the strongest evidence it was doing something. If nothing shifts, that's your answer.
- Decide, then pick a bigger lever. No difference? Drop it and spend the next 14 nights on a caffeine cutoff, alcohol-free nights, or a fixed wake time — each has a larger documented effect. Worse off it? Restart, and retest later to confirm.
What to expect
For most people the two blocks look the same, and the supplement can go. A minority sleep noticeably worse in the off block — usually people who were genuinely low — and for them the stop-test is the first solid evidence that the pills are earning their place. Either way you finish with a result instead of a habit you never examined.
Who should skip this
If you were prescribed magnesium for a medical reason (arrhythmia, pre-eclampsia history, a documented deficiency), don't stop it for an experiment — ask your doctor. If sleep has been poor for months regardless of what you take, insomnia treatment has far stronger evidence than any supplement; that's the conversation to have.
Frequently asked questions
Why doesn't magnesium help me sleep when it helps others?
Most likely because the "others" in the trials were older adults who were short on magnesium. Supplements correct deficiencies; they don't add sleep to a body that already has enough. Genetics, dose, and the actual cause of your poor sleep all play in too.
Should I switch to a different type of magnesium?
Only if you were taking oxide, which is poorly absorbed. Switching between citrate and glycinate rarely changes the outcome — no sleep trial has compared them. A stop-test first tells you whether magnesium is doing anything; a form comparison only matters if it is.
What should I try instead of magnesium for sleep?
Pick the lever with the biggest documented effect that's actually in your life: last caffeine before early afternoon (~45 min of sleep on average), alcohol-free nights (protects the second half of the night), or waking at the same time every day. Test one for 14 days, the way you just tested magnesium.
Related experiments
Sources
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review & meta-analysis. BMC Complement Med Ther. 2021;21:125. PubMed 33865376
- Arab A, Rafie N, Amani R, Shirani F. The role of magnesium in sleep health: a systematic review of available literature. Biol Trace Elem Res. 2023;201(1):121–128. PubMed 35184264
- Gardiner C, Weakley J, Burke LM, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev. 2023;69:101764. PubMed 36870101
Track this experiment in N of 1
A few baseline nights, then the change — and your own mornings deliver the result. No streaks, no guilt. Your first experiment is free.
Downloadon the App StoreThis page is general information about published research, not medical advice. Don't stop a supplement your doctor prescribed for a medical condition without asking them first.