
Anxiety, muscle tension, fatigue, and difficulty sleeping can have several possible causes. One factor worth considering is magnesium, an essential mineral that supports normal nerve function, muscle activity, and numerous processes involved in maintaining overall health.
Can magnesium deficiency worsen anxiety? It may contribute to symptoms that overlap with anxiety, but the relationship is not fully understood. Research suggests magnesium supplementation may help some people experiencing stress or anxiety, particularly those with low magnesium levels. However, magnesium is not an established treatment for anxiety disorders, and not everyone experiencing anxiety has a nutritional deficiency.
Understanding the possible connection between magnesium and mental health can help you make informed decisions about nutrition, supplements, and psychiatric care.
How Does Magnesium Affect Mental Health?
Magnesium participates in more than 300 enzyme systems involved in processes such as energy production, nerve signaling, and muscle function. It also helps regulate the activity of neurotransmitter systems involved in communication between nerve cells.
Because the nervous system relies on these processes, inadequate magnesium may affect how the body functions. Researchers have investigated whether magnesium status influences the body’s response to stress and contributes to anxiety-related symptoms.
However, biological plausibility does not establish that low magnesium causes anxiety. Anxiety can develop through a combination of genetic, psychological, environmental, medical, and lifestyle factors.
Can Magnesium Deficiency Cause Anxiety Symptoms?
Magnesium deficiency can produce physical and neurological symptoms that may occur alongside anxiety. These can include:
Fatigue and weakness
Muscle cramps or involuntary muscle contractions
Numbness or tingling
Reduced appetite, nausea, or vomiting
Changes in mood or behavior in more severe cases
Some people with low magnesium levels also report difficulty relaxing or sleeping. However, these symptoms are nonspecific and can occur with many other conditions.
Anxiety alone is not a reliable sign of magnesium deficiency. Persistent worry, panic attacks, restlessness, and difficulty concentrating should not automatically be attributed to low magnesium.
The distinction matters because treating an underlying deficiency may support overall health, while an anxiety disorder may require its own assessment and treatment.
What Does Research Say About Magnesium for Anxiety and Stress?
Research into magnesium supplementation for anxiety is promising in some areas, but the evidence remains limited.
A 2017 systematic review published in Nutrients examined 18 studies investigating magnesium supplementation and subjective anxiety or stress. Some studies reported improvements in anxiety-related symptoms, particularly among participants already vulnerable to anxiety. However, the authors noted that the overall quality of evidence was poor and that better-designed clinical trials were needed.
A separate randomized controlled trial published in Stress and Health examined magnesium supplementation, with or without vitamin B6, in adults experiencing severe stress and low blood magnesium levels. An analysis of the trial found improvements in self-reported anxiety, depression, and quality of life over eight weeks in both treatment groups. Some findings suggested additional benefits from combining magnesium with vitamin B6 for certain participants.
These results are relevant, but they have important limitations. The participants were selected for specific stress levels and magnesium status, so the findings cannot automatically be applied to everyone experiencing anxiety. The study also does not establish magnesium as a replacement for evidence-based psychiatric treatment.
Overall, magnesium may be worth considering when a deficiency or inadequate intake is suspected. More research is needed to determine who benefits most and how reliably supplementation improves anxiety symptoms.
Who Is More Likely to Have Low Magnesium?
Healthy kidneys help the body conserve magnesium when dietary intake is low, so symptomatic deficiency is uncommon in otherwise healthy people. However, certain factors can increase the risk.
These include:
Low dietary intake: Regularly eating few magnesium-rich foods may make it harder to meet nutritional requirements.
Digestive conditions: Disorders such as celiac disease and Crohn’s disease can interfere with nutrient absorption.
Type 2 diabetes: Some people with diabetes experience increased magnesium losses.
Long-term heavy alcohol use: Alcohol can affect magnesium intake, absorption, and excretion.
Certain medications: Some diuretics and prolonged use of proton pump inhibitors can contribute to low magnesium levels.
If you have persistent fatigue, muscle cramps, gastrointestinal symptoms, or other concerns alongside anxiety, a healthcare professional can help determine whether magnesium deficiency or another medical issue warrants investigation.
Which Magnesium-Rich Foods May Support Mental Health?
For most people, getting magnesium through food is a sensible starting point. Magnesium-rich foods also provide other nutrients that support general health.
Good dietary sources include:
Pumpkin seeds: A concentrated source of magnesium that can be added to oatmeal, salads, or yogurt.
Almonds and cashews: Convenient options for snacks or meals.
Spinach: A leafy green that supplies magnesium alongside other nutrients.
Black beans and edamame: Plant-based sources that also provide protein and fiber.
Whole grains: Foods such as oats and brown rice contribute magnesium to everyday meals.
Avocados: Provide magnesium, fiber, and unsaturated fats.
Dark chocolate: Contains magnesium, although portions and added sugar are worth considering.
A varied, nutrient-dense eating pattern is generally more beneficial than relying on a single food or supplement. Adequate nutrition can support overall well-being, but it should not be presented as a standalone treatment for an anxiety disorder.
Should You Take Magnesium Supplements for Anxiety?
Not necessarily. Whether supplementation is appropriate depends on your diet, health history, medications, and likelihood of having a deficiency.
Magnesium supplements can cause diarrhea, nausea, and abdominal discomfort. Excessive intake can be dangerous, particularly for people with impaired kidney function, because the kidneys may not remove excess magnesium effectively.
For adults, the US National Institutes of Health sets an upper intake level of 350 mg per day for magnesium from supplements and medications, excluding magnesium naturally present in food. This limit does not apply to medically supervised treatment of a diagnosed deficiency. It is not a recommended anxiety-treatment dose.
Magnesium can also interfere with the absorption of certain antibiotics and other medications. Consult a healthcare professional before starting a supplement, especially if you take prescription medication or have an existing medical condition.
When Should You Seek Help for Anxiety?
If anxiety is persistent, disrupts sleep, affects relationships, or interferes with daily activities, it is worth seeking a professional assessment rather than assuming magnesium is the cause.
An individualized evaluation can consider physical health, nutrition, sleep, stress, medications, and psychological factors. Depending on your symptoms, treatment may include psychotherapy, medication, lifestyle changes, or appropriate evaluation of nutritional deficiencies.
At SKS Psychiatry, integrative psychiatric care considers how physical health, daily habits, and mental health may interact. For adults in Oregon and Washington experiencing ongoing anxiety or stress, a psychiatric evaluation can help clarify potential contributing factors and identify appropriate treatment options.
Frequently Asked Questions
Can low magnesium cause panic attacks?
There is not enough evidence to conclude that magnesium deficiency directly causes panic attacks. Low magnesium can affect normal neurological and muscular function, but panic attacks have multiple possible causes and deserve an appropriate clinical assessment.
What are the first signs of magnesium deficiency?
Early signs may include reduced appetite, nausea, fatigue, and weakness. More significant deficiency can cause muscle cramps, tingling, numbness, or abnormal heart rhythms. Symptoms alone cannot confirm a deficiency.
Does magnesium help with anxiety and sleep?
Some studies suggest potential benefits for anxiety-related symptoms, but the evidence is limited, and findings on sleep are not conclusive. Benefits may depend on factors such as baseline magnesium status and overall health.
How can I increase magnesium naturally?
Include foods such as pumpkin seeds, nuts, beans, spinach, whole grains, and edamame in a balanced diet. If you suspect a deficiency, discuss your symptoms and dietary intake with a healthcare professional.
Can Correcting Magnesium Deficiency Help With Anxiety?
Magnesium supports normal nervous system function, and a deficiency can contribute to a range of physical and neurological symptoms. Research suggests supplementation may help some people experiencing stress or anxiety, but it is not a proven solution for everyone and should not replace appropriate mental health care.
Rather than assuming anxiety is caused by a nutrient deficiency, consider the broader picture: physical health, nutrition, sleep, stress, and psychological well-being. Identifying the factors relevant to your situation can help guide a more appropriate treatment plan.
Sources
National Institutes of Health, Office of Dietary Supplements. Magnesium: Health Professional Fact Sheet.
Boyle, N. B., Lawton, C., & Dye, L. (2017). The effects of magnesium supplementation on subjective anxiety and stress: A systematic review. Nutrients, 9(5), 429. https://doi.org/10.3390/nu9050429.
Noah, L., et al. (2021). Effect of magnesium and vitamin B6 supplementation on mental health and quality of life in stressed healthy adults: Post-hoc analysis of a randomized controlled trial. Stress and Health, 37(5), 1000–1010. https://doi.org/10.1002/smi.3051.

Medically reviewed by
Stephanie Schabel, PMHNP-BC
Board-Certified Psychiatric Mental Health Nurse Practitioner
Stephanie began her career as a registered nurse, caring for surgical and cardiac patients at a leading hospital in Houston, Texas, and later worked as a travel nurse across Oregon during the COVID-19 pandemic. She completed her Psychiatric Nurse Practitioner education at Gonzaga University and is currently completing a fellowship with Psychiatry Redefined in functional and integrative psychiatry. At SKS Psychiatry, she combines evidence-based medication management with attention to sleep, nutrition, stress, and overall health, caring for adults by secure telehealth across Oregon and Washington.
Great read, thanks