Why Do I Have Anxiety? A Functional Medicine Investigation of Root Causes
Discover the functional medicine root causes of anxiety — from gut health and blood sugar to thyroid, hormones, and nutrient deficiencies.
Dr. William Marrocco, MD · Medical Doctor · · 13 min read
Reviewed by Jacob H. Hill, DO
Key Takeaways
- ✓Anxiety has physiological root causes that are routinely missed — including gut dysfunction, blood sugar instability, thyroid imbalance, and nutrient deficiencies.
- ✓The gut produces 95% of serotonin and 50% of dopamine — gut inflammation directly impairs neurotransmitter production.
- ✓Blood sugar crashes trigger adrenaline and cortisol surges that are physiologically identical to panic attacks.
- ✓Magnesium, B6, zinc, iron, and vitamin D deficiencies are all independently associated with anxiety disorders.
- ✓Addressing root causes can reduce or eliminate anxiety without lifelong dependence on SSRIs or benzodiazepines.
The Conventional Approach (and Why It Falls Short)
Walk into most primary care offices or psychiatrist appointments with anxiety and you'll leave with one of two things: an SSRI prescription or a referral to cognitive behavioral therapy. Sometimes both. These can be helpful — but they rarely ask why the anxiety started in the first place.
The standard workup for new-onset anxiety typically includes: a symptom questionnaire (GAD-7), possibly a basic metabolic panel, and maybe a TSH if you're lucky. That's it. No one checks your magnesium, your insulin, your gut, your iron stores, or your cortisol rhythm.
The result: millions of patients are medicated for a symptom while the underlying physiological driver continues unchecked.
Root Causes We Investigate
Gut-Brain Axis Dysfunction
Sarah, 34, had escalating anxiety for two years. Three SSRIs hadn't helped. Her GI-MAP revealed severe dysbiosis with Klebsiella overgrowth and low Lactobacillus species. After 12 weeks of gut restoration, her GAD-7 score dropped from 18 to 4.
The enteric nervous system — your "second brain" — contains 500 million neurons and produces 95% of your body's serotonin and 50% of its dopamine. When the gut microbiome is disrupted, neurotransmitter production tanks. Gut inflammation also activates vagal afferent pathways that signal threat directly to the amygdala.
Key markers: GI-MAP for microbial imbalance, calprotectin for gut inflammation, zonulin for intestinal permeability.
Blood Sugar Instability
This is probably the most underappreciated cause of anxiety in clinical practice. The typical modern eating pattern — cereal or toast for breakfast, sandwich for lunch, snacking on crackers — creates a roller coaster of glucose spikes and crashes throughout the day.
Each crash triggers an adrenaline and cortisol surge to restore blood sugar. The subjective experience? Racing heart, sweating, trembling, sense of dread. A panic attack — triggered by a bowl of cereal three hours ago.
Continuous glucose monitor (CGM) data consistently shows that anxious patients have significantly more glucose variability than non-anxious controls. Stabilizing blood sugar with protein-forward meals often produces dramatic anxiety reduction within days.
Nutrient Deficiencies
Several nutrients are directly involved in neurotransmitter synthesis and nervous system regulation:
| Nutrient | Role in Anxiety | Optimal Level |
|---|---|---|
| Magnesium | Activates GABA receptors, regulates HPA axis | RBC Mg >5.0 mg/dL |
| Vitamin B6 (P5P) | Cofactor for serotonin and GABA synthesis | Plasma B6 >20 ng/mL |
| Zinc | Modulates glutamate/GABA balance | Serum zinc >90 µg/dL |
| Iron (ferritin) | Required for dopamine synthesis | Ferritin >50 ng/mL (ideally >70) |
| Vitamin D | Regulates brain inflammation, serotonin gene expression | 25-OH D: 50–70 ng/mL |
| Omega-3 (EPA) | Reduces neuroinflammation | Omega-3 Index >8% |
Thyroid Imbalance
Both overt and subclinical thyroid dysfunction can manifest primarily as anxiety. Hashimoto's thyroiditis, in particular, can cause anxiety during "thyrotoxic" phases when damaged thyroid cells release stored hormone into the bloodstream. This pattern — anxiety alternating with fatigue — is a classic Hashimoto's presentation that is frequently misdiagnosed as bipolar disorder or generalized anxiety.
HPA Axis Dysregulation
Chronic stress reprograms the HPA axis, leading to cortisol patterns that perpetuate anxiety: elevated evening cortisol (causing nighttime anxiety and insomnia), flattened cortisol curve (causing both fatigue and an inability to manage stress), or exaggerated cortisol responses to minor stressors.
Hormonal Changes
Progesterone has natural anxiolytic (anxiety-reducing) effects through GABA receptor modulation. Low progesterone — common in perimenopause, PCOS, and luteal phase deficiency — removes this calming influence. Many women notice anxiety worsening in the week before their period or during perimenopause when progesterone drops significantly.
Functional Lab Testing Protocol
A comprehensive anxiety root-cause workup includes:
- Comprehensive metabolic panel (baseline)
- Full thyroid panel: TSH, Free T4, Free T3, TPO antibodies, TgAb
- Nutrient panel: RBC magnesium, zinc, ferritin, vitamin D, B6, B12, folate
- Fasting insulin + glucose (or CGM for 2 weeks)
- 4-point salivary cortisol + DHEA-S
- GI-MAP (stool test for gut microbiome, pathogens, inflammation)
- Hormones (women): Estradiol, progesterone (day 19–22 of cycle), testosterone
Step-by-Step Treatment Protocol
Phase 1: Stabilize (Weeks 1–4)
- Blood sugar first: 30g protein at breakfast, protein at every meal, eliminate refined carbs and sugar. This alone can reduce anxiety by 40–60% in blood-sugar-reactive patients.
- Magnesium glycinate: 400mg at bedtime. Fast-acting, calming, and addresses the most common deficiency.
- Nervous system regulation: Box breathing (4-4-4-4), cold water face immersion (activates dive reflex to calm vagus nerve), 10-minute morning walk in sunlight.
Phase 2: Address Root Causes (Weeks 4–12)
- Targeted supplementation based on lab findings (B6, zinc, iron, vitamin D as needed).
- Gut protocol if dysbiosis identified: antimicrobials or targeted probiotics, then gut repair (L-glutamine, zinc carno