The Function of Magnesium

Out of all the minerals needed to maintain health, magnesium should not be overlooked. The body uses magnesium in numerous ways. It plays a role in muscle function and nerve transmission and acts as a catalyst in over 300 enzymatic reactions.

It is central to cellular energy production and utilization. In addition, the mineral plays a part in synthesizing protein, deoxyribonucleic acid (DNA), and ribonucleic acid (RNA).

Research on magnesium suggests it helps lower blood pressure, improve blood sugar balance, and decrease heart palpitations. Low mineral levels have been correlated with heart disease, diabetes, Alzheimer's disease, migraine headaches, attention deficit hyperactivity disorder (ADHD), and depression. In general, magnesium deficiency is associated with reduced antioxidant status and increased chronic inflammation, both of which contribute to chronic disease.

The Function of Magnesium in Cognitive Health

Considering the numerous functions of magnesium in the body, it should be no surprise that magnesium plays a role in mental health. Evidence suggests magnesium levels inside brain cells correlate directly with energy production. When brain cells fail to produce proper amounts of energy, magnesium levels are often low. This may directly impact cases of migraine since low levels have been found in patients during migraine attacks. Like vitamin B2 (riboflavin), CoQ10, and melatonin, research has also found a reduction in migraines with magnesium supplementation.


Beyond energy production in brain cells, magnesium also plays a crucial role in numerous neurotransmitter systems, including serotonin, gamma-aminobutyric acid (GABA), and glutamate circuitry.


Serotonin is generally thought of as the "feel good" neurotransmitter. Most standard antidepressant medication targets serotonin, blocking its reuptake to increase serotonin levels.

However, other approaches can also impact serotonin function. Magnesium has been shown to enhance serotonin activity. On the flip side, serotonin levels are known to decrease when magnesium is deficient.


GABA is the primary neurotransmitter that slows down brain activity. For individuals who are stressed or anxious, increasing GABA activity can be helpful. Interestingly, magnesium directly activates a subset of GABA receptors. This may help provide anxiolytic effects by slowing down overactive brain function.


While less familiar than serotonin and GABA, the excitatory neurotransmitter glutamate has been hypothesized to play a role in numerous mental health conditions, including depression, anxiety, bipolar disorder, schizophrenia, and obsessive-compulsive disorder. Glutamate increases neurotransmission by increasing calcium levels inside brain cells. This puts brain cells on a "hair trigger," so they fire more frequently. If glutamate is excessive, too much calcium can flood the cell causing "excitotoxicity" and cell death.

And here again, magnesium can potentially play another vital role in mental health and brain function. Magnesium acts as a break on glutamate activity. When magnesium is present in significant amounts, it has been shown to prevent excitotoxicity from excess glutamate.

Other Neuroprotective Effects

Research is starting to unravel other ways magnesium may help protect the brain. Along with reducing excitotoxicity, magnesium has direct anti-inflammatory effects and improves antioxidant status.

These neuroprotective effects have proven to be a safe and cost-effective way of preventing brain damage in at-risk preterm infants. The World Health Organization recommends intravenous magnesium to reduce or prevent brain damage and disability in children born too early.

Magnesium in Specific Mental Health Conditions

While understanding how magnesium affects the brain is essential, it's still worth asking if the effects are significant enough to help with specific mental health conditions. Fortunately, research is slowly bearing out potential clinical benefits for several mental health conditions, including depression, anxiety, ADHD, and Alzheimer's disease.


Some of the latest research suggests that depression is correlated with low magnesium status, although the relationship is hard to nail down. Detecting magnesium deficiency is fraught with challenges since the standard test, serum magnesium is not accurate in all cases of deficiency. Most magnesium is stored inside cells, and checking blood levels does not always correlate to an individual's magnesium status. While a review of the research on magnesium deficiency and depression suggests a potential link, more research is needed due to the variability of the studies.

As for clinical effects, a small study in older, magnesium-deficient diabetics struggling with depression suggests potential benefits. In the study, patients were given either magnesium supplementation or antidepressant medication. The trial found magnesium supplementation as effective as medication, cutting symptoms by over one-third. In a small, separate trial of fibromyalgia patients, magnesium supplementation was also shown to reduce levels of depression symptoms by just over one-third.

Another small trial in treatment-resistant depressed patients found intravenous magnesium to be helpful. As serum levels of magnesium increased, symptoms of depression improved. A separate pilot trial administered probiotics combined with magnesium in patients already on antidepressants. Two-thirds of patients responded with significant improvements in depressive symptoms after eight weeks. While not conclusive, one study found that magnesium combined with vitamin B6 may be more effective for mood symptoms in "highly stressed individuals" than magnesium alone.

More recent trials have continued to suggest improvements in depression with magnesium supplementation. One of the larger trials with over a hundred patients concluded that "Magnesium is effective for mild-to-moderate depression in adults. It works quickly and is well tolerated without the need for close monitoring for toxicity."


Stress has become a regular component of modern life. As such, numerous individuals struggle with stress and anxiety. Estimates suggest that over 15% of people worldwide will have an anxiety disorder throughout their lifetime.

And like with depression, the data suggest that magnesium may be helpful for anxiety symptoms. Unfortunately, the current data for anxiety is significantly less robust than the data for depression. One of the most recent reviews found that four of the eight published studies on anxious individuals, one of two studies in patients with high blood pressure, and four of seven studies on anxiety combined with premenstrual syndrome showed beneficial responses to magnesium treatment. At the very least, the data suggests that there is a subset of individuals with anxiety in which magnesium supplementation may be helpful.

Attention Deficit Hyperactivity Disorder

Attention deficit hyperactivity disorder, or ADHD, also appears to have links to magnesium. A recent review of the published research found a potential association between low magnesium levels and ADHD symptoms.

One of the first studies on ADHD and magnesium in children supplemented magnesium over a six-month trial. In the study, hyperactivity was significantly reduced with magnesium treatment. Another trial combined magnesium with vitamin B6 and found benefits for reducing ADHD symptoms.

More recently, a study on magnesium threonate, a form of magnesium known to more effectively reach the brain, found benefits for adult ADHD. In the small study, almost half of the adults had a significant treatment response with magnesium threonate supplementation.

Interestingly, the most recent trial of magnesium for ADHD combined it with vitamin D. Over eight weeks, children with ADHD had significant improvements in both emotional and conduct problems, peer interactions, socialization, and total difficulties.

Alzheimer's Disease and Cognitive Aging

Alzheimer's disease is a devastating illness. As Alzheimer's progresses, it slowly strips away an individual's memory and ability to function. Unfortunately, current medications do not slow disease progression. As such, some research is turning to early treatment and prevention.

While the research is still in its infancy, there are already suggestions that magnesium could help prevent dementia. Early research suggests that magnesium may help clear brain toxins and decrease brain inflammation, both implicated in dementia progression.

Even more directly, animal studies suggest that magnesium may help ameliorate the underlying pathological signatures of Alzheimer's disease. In Alzheimer's, brain plaques and tangles build up over time, killing brain cells and disrupting normal brain function. Magnesium appears to help block the formation of both plaques and tangles when present in high enough quantities.

Although human research is limited, an open-label study in 15 patients with mild to moderate dementia found benefits from magnesium. In the study, patients were given magnesium threonate for four months. Throughout treatment, brain metabolism and overall cognitive function significantly improved.

While more human studies are needed to better understand the utility of magnesium for preventing dementia and cognitive decline, the initial basic research is promising. Combined with the safety of magnesium supplementation and the high rate of magnesium deficiency in the population, magnesium may be a useful tool for helping to promote "brain longevity."

Magnesium Deficiency

Low magnesium results in poor antioxidant status and low-level chronic inflammation when deficient. Research suggests that maintaining adequate levels could play a significant role in long-term health. Some researchers have even hypothesized that low magnesium may contribute to aging, suggesting that adequate magnesium could have "anti-aging effects."

Considering that, in some populations, less than half of individuals meet their basic intake requirements of magnesium from food, supplementing magnesium could be a helpful strategy. Generally, when supplementing magnesium, forms that are better absorbed should be used, including magnesium citrate, magnesium glycinate, and magnesium chloride.

For brain health, some initial studies suggest that magnesium threonate may even be more effective at crossing into the brain. As such, magnesium threonate could have some additional advantages over other forms, although more research is needed to know for sure.


Magnesium is an important mineral with numerous effects throughout the body. Due to several mechanisms, the mineral is also essential for supporting and maintaining brain health. Evidence is beginning to suggest that for some mental health conditions and for helping to prevent dementia, supplementation may have a role to play. Hopefully, with further research, we can get an even better understanding of the utility of magnesium for mental health.


  1. Bagis S, Karabiber M, As I, Tamer L, Erdogan C, Atalay A. Is magnesium citrate treatment effective on pain, clinical parameters and functional status in patients with fibromyalgia?. Rheumatol Int. 2013;33(1):167-172. doi:10.1007/s00296-011-2334-8
  2. Bambling M, Edwards SC, Hall S, Vitetta L. A combination of probiotics and magnesium orotate attenuate depression in a small SSRI resistant cohort: an intestinal anti-inflammatory response is suggested. Inflammopharmacology. 2017;25(2):271-274. doi:10.1007/s10787-017-0311-x
  3. Barbagallo M, Dominguez LJ. Magnesium role in health and longevity, Healthy ageing and longevity, vol. 8. Cham: Springer; 2018.
  4. Barbagallo M, Veronese N, Dominguez LJ. Magnesium in Aging, Health and Diseases. Nutrients. 2021;13(2):463. Published 2021 Jan 30. doi:10.3390/nu13020463
  5. Barragán-Rodríguez L, Rodríguez-Morán M, Guerrero-Romero F. Efficacy and safety of oral magnesium supplementation in the treatment of depression in the elderly with type 2 diabetes: a randomized, equivalent trial. Magnes Res. 2008;21(4):218-223.
  6. Botturi A, Ciappolino V, Delvecchio G, Boscutti A, Viscardi B, Brambilla P. The Role and the Effect of Magnesium in Mental Disorders: A Systematic Review. Nutrients. 2020;12(6):1661. Published 2020 Jun 3. doi:10.3390/nu12061661
  7. Boyle NB, Lawton C, Dye L. The Effects of Magnesium Supplementation on Subjective Anxiety and Stress-A Systematic Review. Nutrients. 2017;9(5):429. Published 2017 Apr 26. doi:10.3390/nu9050429
  8. Bremner JD, Moazzami K, Wittbrodt MT, et al. Diet, Stress and Mental Health. Nutrients. 2020;12(8):2428. Published 2020 Aug 13. doi:10.3390/nu12082428
  9. Cheungpasitporn W, Thongprayoon C, Mao MA, et al. Hypomagnesaemia linked to depression: a systematic review and meta-analysis. Intern Med J. 2015;45(4):436-440. doi:10.1111/imj.12682
  10. Chollat C, Sentilhes L, Marret S. Fetal Neuroprotection by Magnesium Sulfate: From Translational Research to Clinical Application. Front Neurol. 2018;9:247. Published 2018 Apr 16. doi:10.3389/fneur.2018.00247
  11. DiNicolantonio JJ, O'Keefe JH, Wilson W. Subclinical magnesium deficiency: a principal driver of cardiovascular disease and a public health crisis [published correction appears in Open Heart. 2018 Apr 5;5(1):e000668corr1]. Open Heart. 2018;5(1):e000668. Published 2018 Jan 13. doi:10.1136/openhrt-2017-000668
  12. Ebrahimi-Monfared M, Sharafkhah M, Abdolrazaghnejad A, Mohammadbeigi A, Faraji F. Use of melatonin versus valproic acid in prophylaxis of migraine patients: A double-blind randomized clinical trial. Restor Neurol Neurosci. 2017;35(4):385-393. doi:10.3233/RNN-160704
  13. Eby GA 3rd, Eby KL. Magnesium for treatment-resistant depression: a review and hypothesis. Med Hypotheses. 2010;74(4):649-660. doi:10.1016/j.mehy.2009.10.051
  14. Effatpanah M, Rezaei M, Effatpanah H, et al. Magnesium status and attention deficit hyperactivity disorder (ADHD): A meta-analysis. Psychiatry Res. 2019;274:228-234. doi:10.1016/j.psychres.2019.02.043
  15. Eksp Klin Farmakol. 2006;69(1):74-77.
  16. Gigante AD, Bond DJ, Lafer B, Lam RW, Young LT, Yatham LN. Brain glutamate levels measured by magnetic resonance spectroscopy in patients with bipolar disorder: a meta-analysis. Bipolar Disord. 2012;14(5):478-487. doi:10.1111/j.1399-5618.2012.01033.x
  17. Gröber U, Schmidt J, Kisters K. Magnesium in Prevention and Therapy. Nutrients. 2015;7(9):8199-8226. Published 2015 Sep 23. doi:10.3390/nu7095388
  18. Hemamy M, Pahlavani N, Amanollahi A, et al. The effect of vitamin D and magnesium supplementation on the mental health status of attention-deficit hyperactive children: a randomized controlled trial [published correction appears in BMC Pediatr. 2021 May 12;21(1):230]. BMC Pediatr. 2021;21(1):178. Published 2021 Apr 17. doi:10.1186/s12887-021-02631-1
  19. Lim SY, Kim EJ, Kim A, Lee HJ, Choi HJ, Yang SJ. Nutritional Factors Affecting Mental Health. Clin Nutr Res. 2016;5(3):143-152. doi:10.7762/cnr.2016.5.3.143
  20. Liu M, Dudley SC Jr. Magnesium, Oxidative Stress, Inflammation, and Cardiovascular Disease. Antioxidants (Basel). 2020;9(10):907. Published 2020 Sep 23. doi:10.3390/antiox9100907
  21. Mehdi SM, Atlas SE, Qadir S, et al. Double-blind, randomized crossover study of intravenous infusion of magnesium sulfate versus 5% dextrose on depressive symptoms in adults with treatment-resistant depression. Psychiatry Clin Neurosci. 2017;71(3):204-211. doi:10.1111/pcn.12480
  22. Moghaddam B, Javitt D. From revolution to evolution: the glutamate hypothesis of schizophrenia and its implication for treatment. Neuropsychopharmacology. 2012;37(1):4-15. doi:10.1038/npp.2011.181
  23. National Institutes of Health. Magnesium. Updated June 2, 2022. Accessed June 27, 2022.
  24. Nielsen FH. Effects of magnesium depletion on inflammation in chronic disease. Curr Opin Clin Nutr Metab Care. 2014;17(6):525-530. doi:10.1097/MCO.0000000000000093
  25. Nogovitsina OR, Levitina EV. [Effect of MAGNE-B6 on the clinical and biochemical manifestations of the syndrome of attention deficit and hyperactivity in children]
  26. Pouteau E, Kabir-Ahmadi M, Noah L, et al. Superiority of magnesium and vitamin B6 over magnesium alone on severe stress in healthy adults with low magnesemia: A randomized, single-blind clinical trial. PLoS One. 2018;13(12):e0208454. Published 2018 Dec 18. doi:10.1371/journal.pone.0208454
  27. Rajizadeh A, Mozaffari-Khosravi H, Yassini-Ardakani M, Dehghani A. Effect of magnesium supplementation on depression status in depressed patients with magnesium deficiency: A randomized, double-blind, placebo-controlled trial. Nutrition. 2017;35:56-60. doi:10.1016/j.nut.2016.10.014
  28. Razzaque MS. Magnesium: Are We Consuming Enough? Nutrients. 2018 Dec 2;10(12):1863. doi: 10.3390/nu10121863. PMID: 30513803; PMCID: PMC6316205.
  29. Riaza Bermudo-Soriano C, Perez-Rodriguez MM, Vaquero-Lorenzo C, Baca-Garcia E. New perspectives in glutamate and anxiety. Pharmacol Biochem Behav. 2012;100(4):752-774. doi:10.1016/j.pbb.2011.04.010
  30. Sanacora G, Treccani G, Popoli M. Towards a glutamate hypothesis of depression: an emerging frontier of neuropsychopharmacology for mood disorders. Neuropharmacology. 2012;62(1):63-77. doi:10.1016/j.neuropharm.2011.07.036
  31. Sharma P, Chung C, Vizcaychipi M. Magnesium: The Neglected Electrolyte? A Clinical Review. Pharmacol & Pharm. 2014;5(7):762-72.
  32. Starcevic V. Review: worldwide lifetime prevalence of anxiety disorders is 16.6%, with considerable heterogeneity between studies. Evid Based Ment Health. 2006;9(4):115. doi:10.1136/ebmh.9.4.115
  33. Starobrat-Hermelin B, Kozielec T. The effects of magnesium physiological supplementation on hyperactivity in children with attention deficit hyperactivity disorder (ADHD). Positive response to magnesium oral loading test. Magnes Res. 1997;10(2):149-156.
  34. Sun-Edelstein C, Mauskop A. Foods and supplements in the management of migraine headaches. Clin J Pain. 2009;25(5):446-452. doi:10.1097/AJP.0b013e31819a6f65
  35. Surman C, Vaudreuil C, Boland H, Rhodewalt L, DiSalvo M, Biederman J. L-Threonic Acid Magnesium Salt Supplementation in ADHD: An Open-Label Pilot Study. J Diet Suppl. 2021;18(2):119-131. doi:10.1080/19390211.2020.1731044
  36. Tarleton EK, Littenberg B, MacLean CD, Kennedy AG, Daley C. Role of magnesium supplementation in the treatment of depression: A randomized clinical trial. PLoS One. 2017;12(6):e0180067. Published 2017 Jun 27. doi:10.1371/journal.pone.0180067
  37. Toffa DH, Magnerou MA, Kassab A, Hassane Djibo F, Sow AD. Can magnesium reduce central neurodegeneration in Alzheimer's disease? Basic evidences and research needs. Neurochem Int. 2019;126:195-202. doi:10.1016/j.neuint.2019.03.014
  38. Traynelis SF, Wollmuth LP, McBain CJ, et al. Glutamate receptor ion channels: structure, regulation, and function [published correction appears in Pharmacol Rev. 2014 Oct;66(4):1141]. Pharmacol Rev. 2010;62(3):405-496. doi:10.1124/pr.109.002451
  39. Vink R, Nechifor M. Magnesium in the Central Nervous System. University of Adelaide; 2011.
  40. Vink R. Magnesium in the CNS: recent advances and developments. Magnes Res. 2016;29(3):95-101. doi:10.1684/mrh.2016.0408
  41. Wu K, Hanna GL, Rosenberg DR, Arnold PD. The role of glutamate signaling in the pathogenesis and treatment of obsessive-compulsive disorder. Pharmacol Biochem Behav. 2012;100(4):726-735. doi:10.1016/j.pbb.2011.10.007
  42. You HJ, Cho SE, Kang SG, Cho SJ, Na KS. Decreased serum magnesium levels in depression: a systematic review and meta-analysis. Nord J Psychiatry. 2018;72(7):534-541. doi:10.1080/08039488.2018.1538388