Our Services
Medical Information
Helpful Resources
Published on: 9/17/2026
Magnesium may modestly ease anxiety symptoms and improve sleep quality, since it helps regulate the nervous system, supports GABA activity, and can lower cortisol, though the research is stronger for sleep than for anxiety and results vary by form, dose, and whether you are actually deficient. Forms like magnesium glycinate and citrate are typically better absorbed than oxide, and low magnesium levels are more common in people with poor diets, high stress, diabetes, or heavy alcohol use. There are important safety details, dosing considerations, and possible medication interactions to weigh, so see below to understand more.
Because ongoing anxiety and insomnia can also signal thyroid problems, anemia, sleep apnea, or other treatable conditions, a supplement alone may not address the real cause. Take a free, instant, online symptom check to see what could be driving your symptoms and what steps make sense next.
Last reviewed for medical accuracy: 09/17/2026
Magnesium is an essential mineral involved in over 300 biochemical reactions in the body. In recent years, researchers have explored its potential to ease anxiety and improve sleep. While it’s not a cure-all, there’s growing evidence that magnesium supplementation may help you relax, fall asleep more easily, and calm racing thoughts.
Magnesium helps regulate:
By supporting these processes, magnesium can influence how you feel during the day and how you rest at night.
Magnesium may aid sleep by:
Magnesium may ease anxiety by:
Incorporate magnesium-rich foods into your diet:
Common supplement forms include:
When choosing a supplement, look for “USP verified” or third-party testing to ensure quality.
General guidelines for adults:
Keep total magnesium (from food and supplements) within the Tolerable Upper Intake Level (UL) of 350 mg supplemental magnesium daily, unless under medical supervision.
Magnesium is generally safe when taken within recommended doses. Possible side effects include:
To minimize side effects:
People with kidney disease should avoid high-dose magnesium supplements unless directed by a doctor.
While magnesium can help mild anxiety and sleep disturbances, consult a healthcare professional if you experience:
For an early assessment of your symptoms, consider a free, online symptom check, using the doctor approved Ubie Symptom Checker. This tool can help you decide if you need to see a healthcare provider.
Magnesium isn’t a cure for severe anxiety disorders or chronic insomnia, but it can be a helpful component of a broader wellness plan. Always discuss any new supplement with your healthcare provider—especially if you have existing health conditions or take other medications.
If you’re experiencing severe anxiety, persistent insomnia, or any concerning symptoms, please speak to a doctor. Only a qualified healthcare professional can give personalized advice and rule out serious conditions.
(References)
* Boyle NB, Lawton C, Dye L. The Effects of Magnesium Supplementation on Subjective Anxiety and Stress-A Systematic Review. Nutrients. 2017 Apr 26;9(5). doi: 10.3390/nu9050429. Epub 2017 Apr 26. PMID: 28445426; PMCID: PMC5452159.
* Chan V, Lo K. Efficacy of dietary supplements on improving sleep quality: a systematic review and meta-analysis. Postgrad Med J. 2022 Apr;98(1158):285-293. doi: 10.1136/postgradmedj-2020-139319. Epub 2021 Jan 13. PMID: 33441476.
* Barbagallo M, Veronese N, Dominguez LJ. Magnesium in Aging, Health and Diseases. Nutrients. 2021 Jan 30;13(2). doi: 10.3390/nu13020463. Epub 2021 Jan 30. PMID: 33573164; PMCID: PMC7912123.
* Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complement Med Ther. 2021 Apr 17;21(1):125. doi: 10.1186/s12906-021-03297-z. Epub 2021 Apr 17. PMID: 33865376; PMCID: PMC8053283.
* Aucoin M, LaChance L, Naidoo U, Remy D, Shekdar T, Sayar N, Cardozo V, Rawana T, Chan I, Cooley K. Diet and Anxiety: A Scoping Review. Nutrients. 2021 Dec 10;13(12). doi: 10.3390/nu13124418. Epub 2021 Dec 10. PMID: 34959972; PMCID: PMC8706568.
* 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 Jan;201(1):121-128. doi: 10.1007/s12011-022-03162-1. Epub 2022 Feb 19. PMID: 35184264.
* Sarris J, Ravindran A, Yatham LN, Marx W, Rucklidge JJ, McIntyre RS, Akhondzadeh S, Benedetti F, Caneo C, Cramer H, Cribb L, de Manincor M, Dean O, Deslandes AC, Freeman MP, Gangadhar B, Harvey BH, Kasper S, Lake J, Lopresti A, Lu L, Metri NJ, Mischoulon D, Ng CH, Nishi D, Rahimi R, Seedat S, Sinclair J, Su KP, Zhang ZJ, Berk M. Clinician guidelines for the treatment of psychiatric disorders with nutraceuticals and phytoceuticals: The World Federation of Societies of Biological Psychiatry (WFSBP) and Canadian Network for Mood and Anxiety Treatments (CANMAT) Taskforce. World J Biol Psychiatry. 2022 Jul;23(6):424-455. doi: 10.1080/15622975.2021.2013041. Epub 2022 Mar 21. PMID: 35311615.
* Rawji A, Peltier MR, Mourtzanakis K, Awan S, Rana J, Pothen NJ, Afzal S. Examining the Effects of Supplemental Magnesium on Self-Reported Anxiety and Sleep Quality: A Systematic Review. Cureus. 2024 Apr;16(4):e59317. doi: 10.7759/cureus.59317. Epub 2024 Apr 29. PMID: 38817505; PMCID: PMC11136869.
* Hausenblas HA, Lynch T, Hooper S, Shrestha A, Rosendale D, Gu J. Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: A randomized controlled trial. Sleep Med X. 2024 Dec 15;8:100121. doi: 10.1016/j.sleepx.2024.100121. Epub 2024 Aug 17. PMID: 39252819; PMCID: PMC11381753.
* Ortega RM, Jiménez-Ortega AI, Peral-Suárez Á, Martínez-García RM, González-Rodríguez LG. [Nutrition in improving sleep quality and fighting insomnia]. Nutr Hosp. 2025 Sep 11;42(Spec No1):43-46. doi: 10.20960/nh.06090. PMID: 40728459.
We would love to help them too.
For First Time Users
We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.
Was this page helpful?
Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.