Written by Dr. Ryan Kneessi, ND
Quick answer
Magnesium is one of the most popular supplements in evening routines, and some research supports looking at it. In a small 2012 trial in older adults with insomnia, those who took magnesium reported longer sleep time and less trouble falling asleep compared with placebo. The research is still limited, so it is best seen as one part of a broader sleep routine.
Taking a lot of supplements and not sure what's worth it?
Send me your list for a free supplement review. There is no cost and no appointment needed.
Key takeaways
Magnesium is a mineral involved in muscle relaxation, nerve signaling and hundreds of other processes in the body.
A small trial in older adults with insomnia found those taking magnesium reported longer and better sleep, but the research is still modest.
Glycinate is a common evening form because it tends to be gentle on the stomach, and people with kidney concerns or certain medications need extra care.
Magnesium glycinate shows up on almost every list of sleep supplements. Here is what the research actually looked at and how people commonly fit it into their evening routine.
What does magnesium do in the body?
Magnesium is a mineral involved in hundreds of processes, including muscle and nerve function. Many people fall short of the recommended amount from food, especially when their diet is light on leafy greens, beans, nuts, and seeds.
What the research shows
The most cited trial is a 2012 double-blind study by Abbasi and colleagues in Iran. Forty-six older adults with insomnia took 500 mg of magnesium or a placebo daily for 8 weeks. Compared with placebo, the magnesium group had better sleep efficiency, a lower Insomnia Severity Index score and shorter time to fall asleep, along with higher melatonin and lower cortisol in the blood. It was a small study in older adults who may have had low magnesium intake to begin with.
A 2021 systematic review and meta-analysis by Mah and Pitre found only three randomized trials, with 151 older adults in total, comparing oral magnesium with placebo. Pooled, people fell asleep about 17 minutes faster with magnesium, while the 16-minute gain in total sleep time was not statistically significant. The authors rated all trials at moderate to high risk of bias and the evidence as low to very low quality, so magnesium for sleep remains a reasonable thing to try rather than a proven approach.
Which form of magnesium is best at night?
Magnesium glycinate is a common evening choice because it tends to be gentle on the stomach. Magnesium citrate can loosen stools, which some people prefer to take earlier in the day. For a detailed comparison, see Magnesium glycinate vs citrate vs oxide vs L-threonate.
Who should be careful with magnesium?
People with kidney concerns and people taking certain antibiotics, bisphosphonates, or blood pressure medications should check with their provider first.
Questions to bring to your clinician
These questions can help you get the most out of your next visit.
Is magnesium a good fit for my sleep, given my kidneys and current medications?
Is magnesium for sleep a reasonable choice alongside my current medications and supplements?
Would it be worth checking any labs before I try magnesium for sleep, or is my history enough to decide?
What would tell us that magnesium for sleep is working well for me, and how long should we wait before reviewing it?
Frequently asked questions
Does magnesium help you sleep?
A small 2012 trial in older adults with insomnia found that magnesium was linked to longer sleep time and faster sleep onset than placebo. More research is needed.
What is the best magnesium for sleep?
Magnesium glycinate is a common evening choice because it is usually gentle on the stomach.
When should I take magnesium for sleep?
Many people take it 30 to 60 minutes before bed. Follow the label and check with your provider if you take medications.
Sources
- Abbasi B, Kimiagar M, Sadeghniiat K, et al. The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial. J Res Med Sci 2012. PMID: 23853635. https://pubmed.ncbi.nlm.nih.gov/23853635/
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complement Med Ther 2021. PMID: 33865376. https://pubmed.ncbi.nlm.nih.gov/33865376/
- Abbasi B, et al. The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trial. J Res Med Sci. 2012. https://pubmed.ncbi.nlm.nih.gov/23853635/
This page shares general educational information and is not medical advice. These statements have not been evaluated by the Food and Drug Administration. Talk with your healthcare provider before starting a supplement, especially if you take medications, are pregnant or nursing, or have a health condition.
Looking for practitioner-grade options?
The catalog carries third-party-tested, practitioner-grade supplements from brands Dr. Kneessi uses in practice.
See practitioner-grade options in the catalogNot sure what fits? Take the Supplement Quiz →


