14 min read
5.0
0

Magnesium for anxiety: does it work, which kind, and how to tell if it's helping

Magnesium may ease mild anxiety for some people, but the evidence is modest. Who is most likely to benefit, which form and dose, how long to wait, and how it compares with ashwagandha, omega-3, saffron and L-theanine.

Jane Smorodnikova
Founder & CEO
Tatsiana Yashyna
Deputy COO
Soft blue clouds drift over dark rolling hills under a deep night sky with a few faint stars.
Reviews the evidence on magnesium for anxiety. Explains proposed mechanisms (NMDA receptor regulation, GABA support, stress hormone system) and why observational links are hard to interpret. Summarises a 2017 systematic review of 18 studies (possible benefit in mild and premenstrual anxiety; poor study quality), related sleep evidence (2026 review: low certainty; 2024 magnesium L-threonate trial: better wearable-measured sleep and daytime mood). Covers whether magnesium deficiency causes anxiety and who is at risk, forms (glycinate, L-threonate, citrate, taurate, oxide) and elemental magnesium, dose (NIH upper limit 350 mg a day from supplements; check with a doctor or pharmacist with medicines, pregnancy or kidney disease), timing and a four-to-six-week trial. Compares magnesium with ashwagandha, omega-3, saffron, L-theanine, lavender, B-complex and kava, and stresses that CBT, medication, sleep and cutting caffeine and alcohol have stronger evidence. Includes a self-test plan, questions people ask next (SSRIs and what the NIH lists as interactions, panic attacks, daily use, over-the-counter options), when to seek help (988 for thoughts of self-harm; 911 for a racing heart with chest pain, shortness of breath, dizziness or fainting) and how Welltory can record stress episodes, sleep, Battery and HRV trends. Welltory does not diagnose or treat anxiety.

Short answer

Magnesium may help some people feel less anxious, but the evidence is modest and of low quality. A 2017 systematic review of 18 studies concluded that magnesium may benefit people with mild anxiety or anxiety linked to premenstrual symptoms, but most studies were small, short and poorly designed, so firm conclusions were not possible (1). There is no good evidence that magnesium treats anxiety disorders such as generalised anxiety disorder or panic disorder on its own.

Magnesium is most likely to help if you have a reason to be low: long-term acid-reducing medicines or diuretics, type 2 diabetes, a gut condition, heavy alcohol use, or a diet low in nuts, seeds, beans and whole grains (2). If you try it, magnesium glycinate is usually the gentlest on the stomach, and four to six weeks is a fair trial. The NIH upper limit for magnesium from supplements is 350 mg a day for adults (2). Ask a doctor or pharmacist before starting if you take prescription medicines, are pregnant or have kidney disease, where magnesium can build up to harmful levels.

Anxiety is real, it is common, and it is not weakness or a character flaw. Magnesium can be one small, low-risk experiment, but if anxiety affects your sleep, work or relationships, therapy and, where needed, medication have much stronger evidence.

Note: this article is for general education and is not medical advice. If you have thoughts of harming yourself, call or text 988 (in the US) or your local emergency number. Call 911 if a racing heart comes with chest pain, shortness of breath, dizziness or fainting. Magnesium interacts with some medicines and can build up to harmful levels with kidney disease.

Why magnesium is linked to anxiety

Magnesium is involved in how nerve cells fire and calm down. In the brain, it sits inside NMDA receptors, which respond to the excitatory messenger glutamate, and helps keep them from over-firing. It also supports the calming GABA system and is involved in regulating the body's stress hormone system, the HPA axis (2).

In animal studies, magnesium deficiency increases anxiety-like behaviour, and restoring magnesium reverses it. In people, the picture is less clear. Low magnesium intake is associated with higher anxiety and depression scores in some surveys, but people who are anxious may also eat differently, sleep less and drink more coffee or alcohol, which makes cause and effect hard to separate.

There is also a proposed two-way loop: stress may increase magnesium loss in urine, and lower magnesium may increase sensitivity to stress. It is a plausible idea, but it has not been proven to matter for most healthy people.

What the studies actually show

The 2017 systematic review by Boyle and colleagues is still the main summary of magnesium for anxiety (1):

  • 18 studies were included, covering people with mild anxiety, premenstrual syndrome, postpartum and menopausal symptoms, high blood pressure and anxiety disorders.

  • In mildly anxious people and in premenstrual anxiety, several studies suggested a benefit on self-reported anxiety.

  • Study quality was poor overall: small samples, short durations, different forms and doses, and in several studies magnesium was combined with other ingredients such as vitamin B6, making it impossible to know what helped.

  • The authors called for better trials before magnesium could be recommended for anxiety.

Related evidence points in a similar direction. A 2026 review of magnesium and sleep found low or very low certainty evidence, with possible benefit mainly in people with low intake (3). A small 2024 trial of magnesium L-threonate in adults with poor sleep found better wearable-measured sleep and better daytime mood and energy after three weeks compared with placebo (4). Because anxiety and poor sleep feed each other, part of any calming effect may come through better sleep.

Bottom line: magnesium is a reasonable, low-risk thing to try for mild, everyday anxiety, especially if you have a reason to be low. It is not a substitute for anxiety treatment.

Can magnesium deficiency cause anxiety?

Can magnesium deficiency cause anxiety? Severe magnesium deficiency causes irritability, personality changes, muscle spasms, tremor and abnormal heart rhythms, which can feel like or worsen anxiety (2). True deficiency is uncommon in healthy people, but mild shortfalls in intake are common.

Groups more likely to be low include people who take proton pump inhibitors or diuretics long term, people with type 2 diabetes, coeliac or Crohn's disease, people who drink heavily, and older adults. If you are in one of these groups and have anxiety along with muscle twitching, cramps or palpitations, ask your doctor about a magnesium test, keeping in mind that blood levels can look normal even when body stores are low.

Best magnesium for anxiety: glycinate, threonate or another form?

No head-to-head trial shows that one form of magnesium works better for anxiety. The choice comes down to absorption and how your gut reacts (2):

FormWhy people choose it for anxietyDrawbacks
Glycinate / bisglycinateWell absorbed, gentle on the stomach; glycine itself has mild calming and sleep effectsMore expensive than oxide
L-threonateDesigned to raise brain magnesium; small trial showed better sleep and daytime mood (4)Low elemental magnesium per dose; costly; limited evidence
CitrateWell absorbed, inexpensiveCan loosen stools
TaurateTaurine may have calming effects in animal studiesLittle human data
OxideCheapPoorly absorbed; mostly a laxative

Magnesium glycinate for anxiety is the most common choice in practice, mainly because it is easy to tolerate when taken daily for weeks.

Check the label for elemental magnesium, the actual amount of magnesium in each dose. A capsule labelled "magnesium glycinate 500 mg" may contain only about 50–100 mg of magnesium.

How much magnesium for anxiety, and when to take it

Studies of magnesium for anxiety have used a wide range of doses, often between about 75 and 360 mg of elemental magnesium a day. A practical starting point is 100–200 mg in the evening, increasing to no more than 350 mg a day from supplements, which is the upper limit for adults (2). Food magnesium does not count towards that limit. Agree the dose with your doctor or pharmacist if you take medicines, are pregnant or breastfeeding, or have kidney disease: the risk of magnesium toxicity rises when the kidneys do not clear it well (2).

  • Evening dosing suits people whose anxiety shows up as racing thoughts at bedtime or broken sleep.

  • Split doses (morning and evening) suit people who want steady levels and notice stomach upset with one larger dose.

  • With food reduces the chance of diarrhoea.

How long does it take for magnesium to work for anxiety? Most studies ran for a few weeks to three months. Give it four to six weeks of consistent use before deciding. If nothing changes in that time, it is reasonable to stop.

Magnesium compared with other supplements for anxiety

People searching for magnesium for anxiety are often comparing several options. Here is how the evidence stacks up for the most common ones:

SupplementEvidence for anxietyMain cautions
MagnesiumWeak; possible benefit in mild and premenstrual anxiety (1)Diarrhoea; avoid in kidney disease
AshwagandhaModerate; trials show lower stress and anxiety scores over about 8 weeks, mostly short and smallRare liver injury; thyroid; pregnancy (5)
Omega-3 (fish oil)Moderate; a meta-analysis found reduced anxiety symptoms, strongest at 2 g a day or more and in people with clinical conditions (6)Bleeding risk with blood thinners; possible atrial fibrillation risk at high doses
SaffronModerate but uncertain; a meta-analysis of 23 trials found large effects on depression and anxiety, with signs of publication bias (7)Interactions with antidepressants should be checked
L-theanineWeak to moderate; small trials show calmer feelings under stressGenerally well tolerated
Lavender oil capsulesSome trials in anxiety; evidence quality varies (8)Stomach upset; interactions possible
B-complexA small effect on perceived stress, not on anxiety (9)Watch high-dose B6
KavaMixed; no benefit in a recent trial in generalised anxiety disorderLiver risk

Ashwagandha or magnesium for anxiety? Ashwagandha has more trial evidence for stress and anxiety scores, but also more safety caveats, including rare liver injury and thyroid effects. Magnesium has weaker evidence but fewer risks for most people. Whichever you try, try one at a time so you can tell what made a difference.

Magnesium, anxiety and the menstrual cycle

Several of the more positive studies in the 2017 review were in women with premenstrual symptoms, where anxiety, irritability and tension rise in the days before a period (1). Some of those studies combined magnesium with vitamin B6, so it is not possible to say which ingredient helped. If your anxiety clearly follows your cycle, it is worth noting the pattern for a couple of months before trying magnesium, so you can compare like with like: the same cycle days before and after.

In perimenopause, anxiety can appear for the first time or get worse, often together with poor sleep and night sweats. Magnesium may help sleep a little for some women, but hormonal changes are usually the main driver, and effective treatments exist. If anxiety is new in your 40s, mention perimenopause to your doctor.

What helps anxiety more than any supplement

The evidence for non-supplement approaches is much stronger:

  • Cognitive behavioural therapy (CBT) is a first-line treatment for anxiety disorders, with lasting effects.

  • Medication, such as SSRIs, is effective for generalised anxiety and panic disorder when needed.

  • Sleep: anxiety and poor sleep feed each other; protecting sleep is one of the most effective self-care steps.

  • Caffeine and alcohol: caffeine can trigger anxiety and palpitations, and alcohol often worsens anxiety the next day. Our article on caffeine and the wired-and-tired loop explains the pattern.

  • Regular movement, slow breathing and time outdoors reduce physical symptoms of stress.

If your anxiety often shows up at night, our guide to feeling anxious at night for no reason covers why it happens and what helps. For the "fine on the outside, tense inside" pattern, see high-functioning anxiety and HRV.

How to test magnesium for anxiety on yourself

  1. Get a baseline for one to two weeks. Rate anxiety morning and evening on a 0–10 scale, note sleep, caffeine, alcohol and any big stressors.

  2. Start one product: magnesium glycinate, 100–200 mg elemental magnesium in the evening.

  3. Keep other things steady where you can, especially caffeine and bedtime.

  4. Continue for four to six weeks.

  5. Compare the averages, not individual days. Anxiety varies with events, the menstrual cycle and sleep.

  6. Decide honestly. A clear, lasting change means it may be helping. "Maybe a little" usually means it isn't.

Living with anxiety and supplements: the questions people ask next

Can I take magnesium with anxiety medication?

The NIH magnesium fact sheet does not list SSRIs or other common anxiety medicines among the drugs magnesium interacts with (2). That is not the same as proof that the combination is right for you, so tell your doctor or pharmacist before adding it. Magnesium does reduce absorption of some antibiotics (tetracyclines and quinolones) and bisphosphonates, which need to be taken hours apart from it (2), and MedlinePlus lists antacids, which often contain magnesium, among products that can interact with levothyroxine (12). If you take benzodiazepines or other sedatives, ask before adding several calming supplements at once. Do not stop or change prescribed anxiety medication without your doctor.

Is magnesium glycinate good for panic attacks?

There is no good evidence that magnesium prevents or stops panic attacks. Panic disorder responds well to CBT and, when needed, medication. Magnesium might slightly help overall tension or sleep, but it should not replace treatment. During a panic attack, slow breathing and grounding techniques are more useful than any supplement.

Can magnesium make anxiety worse?

Magnesium rarely worsens anxiety. Some people get stomach upset or diarrhoea, which can be uncomfortable and stressful. Very high doses, mainly from laxatives or antacids, can cause low blood pressure, weakness and an irregular heartbeat, especially with kidney problems. If you feel worse after starting magnesium, stop it and talk to your doctor.

Should I take magnesium every day for anxiety?

If you decide to try it, daily use for four to six weeks is the fair way to test it, at a dose up to 350 mg of elemental magnesium from supplements. If it clearly helps, many people continue. If it does not, there is no reason to keep taking it. People with kidney disease should not take magnesium daily without medical advice.

What vitamins help with anxiety?

No vitamin is a proven treatment for anxiety. Correcting a real deficiency can help: low vitamin D and B12 are associated with low mood and anxiety, and iron deficiency can cause a fast heartbeat that feels like anxiety. B-complex vitamins showed a small effect on perceived stress, not anxiety. A blood test is more useful than a guess.

What can I take over the counter for anxiety?

Over-the-counter supplements with some evidence for mild anxiety or stress include magnesium, ashwagandha, omega-3, saffron, L-theanine and lavender oil capsules, but none are as well supported as therapy or prescribed medication. Check interactions with your pharmacist, try one at a time, and see a doctor if anxiety interferes with daily life.

Before you blame yourself

People who look up magnesium for anxiety have often been told to "just relax" or "stop overthinking". Anxiety is not a failure of willpower. It is a nervous system that has learned to stay on alert, often after months of stress, poor sleep or big life changes.

A supplement can be part of how you look after that system, but the bigger levers are usually sleep, caffeine, support and, when needed, proper treatment. You deserve help that actually works, not just another bottle.

When to see a doctor

See a doctor if anxiety lasts more than a few weeks, affects work, sleep or relationships, comes with panic attacks, or if you are using alcohol or other substances to cope. Also see a doctor before taking magnesium if you have kidney disease or take interacting medicines.

Seek urgent help. If you have thoughts of harming yourself, call or text 988 (in the US) or your local emergency number (10). Call 911 if a racing heart comes with chest pain, shortness of breath, dizziness or fainting (11).

How to bring this up with your doctor

What to ask for, by name. "Could we talk about treatment options for anxiety, including CBT?" If you have risk factors: "Could we check my magnesium, along with thyroid function, iron and B12?"

What to bring. Two to four weeks of notes on anxiety levels, sleep, caffeine and alcohol, any panic attacks, and all supplements and medicines you take.

What to say, out loud. "I've been anxious most days for [N] weeks. It's affecting [sleep / work / relationships]. I've tried [magnesium / other] without much change. What would you recommend?"

If you're told it's just stress. Ask: "Even if it is stress, what treatment would help, and is there anything physical we should rule out?"

How long until you notice a difference? Most supplements take weeks, not days. See how long supplements take to work, and how to tell if one is working.

Start understanding your body

Learn what affects your energy, stress, sleep, and daily state. Get the app.

How Welltory helps — and what it cannot do

The limits first. Welltory is a general wellness product, not a medical device. It does not diagnose or treat anxiety, measure magnesium, or tell you whether a supplement works. If anxiety is affecting your life, a clinician is the right next step.

What it can do is show your body's stress load over time, so you have your own record to look at while you try a change like magnesium. It is an observation of your data, not a measurement of whether a supplement works.

Stress and recovery through the day. Welltory marks stress and rest episodes based on your heart rate data. On iOS with Apple Watch or Oura, when it asks "What happened?", tap, type or talk: "work deadline", "third coffee", "argument", "started magnesium", "anxious before bed". Over weeks, My Patterns shows which tags tend to come with stress and which with recovery; some sections need a paid plan.

Sleep and morning state. Sleep Analysis uses Apple Watch or Oura data on iOS and syncs sleep from Samsung Health, Fitbit or Garmin Connect through Health Connect on Android (Sleep Analysis for Android). On iOS, Battery starts each morning from your resting heart rate on waking and your sleep (Today screen).

HRV as a trend, not a verdict. Anxiety and chronic stress often come with lower heart rate variability. If you take morning HRV measurements, take them at the same time after waking, before coffee, in the same position (accurate HRV measurements), and compare weeks rather than days.

A record for your doctor. From the web app you can export a CSV (Dashboard → choose a chart → Export) (export guide). Patterns are associations to discuss with your doctor, not proof that magnesium helped.

How we made it

We based this article on a systematic review of magnesium for anxiety and stress (Boyle and colleagues, Nutrients 2017), the NIH Office of Dietary Supplements magnesium fact sheet, a 2026 review of magnesium and sleep, a 2024 trial of magnesium L-threonate, and meta-analyses and fact sheets on ashwagandha, omega-3, saffron, lavender and B vitamins. Urgent-help guidance follows the 988 Suicide & Crisis Lifeline and MedlinePlus; medicine interactions follow the NIH and MedlinePlus. Search questions came from what people in the United States most often ask about magnesium and anxiety. For the product section, we checked every function against the Welltory Help Center on October 21, 2026.

Made with AI tools, then edited and fact-checked by the Welltory team. See our Editorial & AI policy.

Jane Smorodnikova, co-founder of Welltory, built the methodology behind how we read physiological data.

Written by Tatsiana Yashyna.

Discounts for blog readers: up to 36% off

See what affects your energy, stress, sleep, and daily state with Welltory

This article is for educational purposes only and is not medical advice. Supplements can interact with medicines and are not right for everyone; talk to your doctor or pharmacist before starting, stopping or combining them, especially if you are pregnant, breastfeeding, have kidney or liver disease or take prescription medicines. If you have thoughts of harming yourself, call or text 988 (in the US) or your local emergency number. Call 911 if a racing heart comes with chest pain, shortness of breath, dizziness or fainting. Welltory is a general wellness product and does not diagnose, treat or prevent any condition. Sources were retrieved on October 21, 2026.

Was this helpful?

Ask AI for a summary of page

ChatGPTGeminiClaudePerplexityGrok

Written by Jane Smorodnikova

The founder and CEO of Welltory. A recognized tech leader with two Master's degrees and experience at MIT, she has scaled Welltory to over 17 million users.

Written by Tatsiana Yashyna

Deputy COO at Welltory. With a background in medicine and years of working with health data, she translates research and real physiological signals — sleep, stress, heart rate, and hormones — into clear, evidence-based explanations that help people understand what their bodies are telling them.

References

  1. Boyle NB, Lawton C, Dye L. The effects of magnesium supplementation on subjective anxiety and stress: a systematic review. Nutrients 2017;9(5):429. https://www.mdpi.com/2072-6643/9/5/429
  2. National Institutes of Health, Office of Dietary Supplements. Magnesium: fact sheet for health professionals. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
  3. Lopresti A, et al. Magnesium supplementation and sleep: a systematic review. Journal of Dietary Supplements 2026 (report). https://www.nutraingredients.com/Article/2026/10/14/magnesium-and-sleep-what-does-the-science-say/
  4. Hausenblas HA, Lynch T, Hooper S, et al. Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: a randomized controlled trial. Sleep Medicine: X 2024. https://doaj.org/article/a6cbeef60d8e4e2a99a836849919cd24
  5. National Center for Complementary and Integrative Health. Ashwagandha. https://www.nccih.nih.gov/health/ashwagandha
  6. Su KP, Tseng PT, Lin PY, et al. Association of use of omega-3 polyunsaturated fatty acids with changes in severity of anxiety symptoms: a systematic review and meta-analysis. JAMA Network Open 2018;1(5):e182327. https://pmc.ncbi.nlm.nih.gov/articles/PMC6324500/
  7. Marx W, Lane M, Rocks T, et al. Effect of saffron supplementation on symptoms of depression and anxiety: a systematic review and meta-analysis. Nutrition Reviews 2019;77(8):557–571. https://research.bond.edu.au/en/publications/effect-of-saffron-supplementation-on-symptoms-of-depression-and-a/
  8. National Center for Complementary and Integrative Health. Lavender. https://www.nccih.nih.gov/health/lavender
  9. Young LM, Pipingas A, White DJ, Gauci S, Scholey A. A systematic review and meta-analysis of B vitamin supplementation on depressive symptoms, anxiety, and stress. Nutrients 2019;11(9):2232. https://www.mdpi.com/2072-6643/11/9/2232
  10. 988 Suicide & Crisis Lifeline. https://988lifeline.org/
  11. MedlinePlus. Heart palpitations. https://medlineplus.gov/ency/article/003081.htm
  12. MedlinePlus. Levothyroxine. https://medlineplus.gov/druginfo/meds/a682461.html

FAQ