The Gut-Brain Connection: Why IBS Makes You Anxious (and Vice Versa)
IBS and anxiety feed each other through a physical, two-way communication system between the gut and the brain. A stressful week can flare gut symptoms. A bad flare can drive days of anxiety. Neither direction is imagined, and neither is a coincidence.
In IBS, this gut-brain axis tends to run hot in both directions.
IBS and anxiety show up together more than most people realize
A 2019 systematic review pulled together 73 studies on IBS and mental health. People with IBS had about three times the odds of experiencing anxiety or depression compared to people without IBS. Roughly 39% of IBS patients had anxiety symptoms, and around 29% had depressive symptoms.
Those are big numbers. If you've felt like everyone around you handles stress better, the reason usually isn't that you're bad at stress. Your nervous system is processing threat, discomfort, and unease differently.
"It's just anxiety, manage stress better" gets the causation wrong. Gut and brain talk to each other constantly, and in IBS that conversation is dysregulated at both ends.
What the gut-brain axis is
The gut-brain axis is a physical system, not a metaphor. It's a two-way communication network made of nerves, hormones, and immune signals. A few pieces of it matter most:
The vagus nerve. The main wire between the brain and the gut. It runs from the brainstem down through the neck and chest and branches across most of the digestive tract. About 80% of its fibers carry signals up to the brain, not down. The gut talks to the brain more than the brain talks to the gut.
Serotonin made in the gut. Enterochromaffin cells in the gut lining produce around 90% of the body's serotonin. That gut serotonin doesn't cross into the brain the way an SSRI would, but it regulates gut motility, secretion, and visceral sensitivity, and its signals are entangled with the enteric nervous system, sometimes called the "second brain."
The microbiome. The trillions of bacteria in the gut produce short-chain fatty acids, influence inflammation, and interact with vagal nerve endings. Research keeps showing that microbiome composition differs between people with IBS and healthy controls, and between people with and without mood disorders.
Visceral hypersensitivity. People with IBS feel normal gut activity more intensely than people without it. Gas that wouldn't register for someone else registers as pain. Those pain signals travel mostly through spinal nerves, get interpreted by the brain, and can trigger or amplify anxiety, especially the anticipatory kind that shows up before meals.
Together, these pieces form a closed loop. The gut sends distress signals up. The brain interprets them, gets anxious, and sends stress signals back down. Stress signals change gut motility and sensitivity. The flare gets worse. Repeat.
Why stress makes IBS worse (and why symptoms make you more stressed)
If you've ever had an important meeting and suddenly needed a bathroom 20 minutes before it starts, you've felt the loop in real time. Acute stress activates the HPA axis and the sympathetic nervous system. Both change gut motility, secretion, and sensitivity within minutes.
Going the other direction, chronic gut symptoms hijack attention. You start scanning for sensations. You plan outings around bathroom access. You cancel plans after a bad day. That hypervigilance is its own stressor, and over months it rewires how the brain processes threat in general. People describe it as "food anxiety" or "body anxiety," and it has measurable effects on quality of life.
Monash, the research team behind the low-FODMAP diet, frames this plainly: stress can worsen IBS symptoms, and IBS symptoms can worsen mental health, which is why integrated treatment often works better than treating either piece alone.
What low-FODMAP does for mood
A 2025 study from Haukeland University Hospital in Norway ran a 12-week strict low-FODMAP intervention on patients with moderate-to-severe IBS-D and IBS-M. Thirty-six people completed it. The trial was open-label with no comparison group, so the results are suggestive rather than definitive.
The researchers saw meaningful reductions in anxiety symptoms over the 12 weeks, along with improvements in depression, fatigue, and attention. Most participants who had been classified as anxiety cases at baseline were no longer classified as cases at the end.
One thing to flag: the authors didn't find a tight statistical link between how much people's GI symptoms improved and how much their mood improved. That suggests the mood benefit isn't purely "gut stopped hurting, so I felt better." Something else is going on. Possibly microbiome shifts, possibly reduced fermentation-driven inflammation, possibly the quieter day-to-day dread of eating. The mechanism isn't fully worked out yet.
The direction is promising, even if the evidence for mood benefit isn't as settled as the evidence for GI benefit. When you lower the FODMAP load that's driving fermentation and symptoms, gut symptoms tend to improve, and a meaningful subset of people see their anxiety and depression scores move with them. Monash notes that roughly 75% of people on low-FODMAP see meaningful GI symptom improvement, and quality-of-life scores tend to follow.
What this means for how you approach the diet
Gut symptoms usually shift before mood does. The standard elimination window is 2 to 6 weeks, and GI improvement can show up anywhere in that range. Mood changes are slower and subtler, so don't judge the diet by week-one mental health, and don't assume it's failed if GI symptoms haven't fully calmed by day 14. Give it the full elimination phase.
Tracking matters more when both systems are involved. When you're trying to tell apart "I ate something that triggered me" from "I had a rough week and my gut reacted," a food and symptom log is the only way to see the pattern. Tracking also takes some of the hypervigilance off, because you're not holding it all in your head. The FODMAP Tracker app is built around that workflow.
FODMAP stacking can look like an anxiety flare. A meal that sneaks over your threshold from multiple low-FODMAP foods adding up can produce gas, bloating, and the anxious edge that often rides with them. If mood dips correlate with meals, read up on FODMAP stacking before assuming it's unrelated.
Reintroduction is where the real information comes from. Elimination is diagnostic. Reintroduction identifies which FODMAP groups trigger symptoms, which lets you go back to a much wider diet without constant symptoms or constant second-guessing. See how to track FODMAP reintroduction for a step-by-step method.
What low-FODMAP isn't
Low-FODMAP is a tool for gut symptoms that sometimes helps mood indirectly. It's not a treatment for anxiety or depression. If you're on psychiatric medication, stay on it. If you have a therapist, keep going. If you don't and you're struggling, that's worth addressing directly with a provider, not with a diet.
The evidence for combining approaches is strong. Monash points to research showing that low-FODMAP plus gut-directed hypnotherapy produces bigger psychological improvements than either alone. CBT targeted at IBS has good evidence too. Diet, therapy, and medication are additive, not competing.
There's also a risk in the other direction. Getting too restrictive with food, or too hypervigilant about every symptom, can tip into disordered eating, especially for people already prone to anxiety. If the diet is making your relationship with food worse, that's a signal to bring in a FODMAP-trained dietitian rather than push harder alone.
The loop can get quieter
The gut-brain axis is bidirectional, which means addressing either end tends to help the other. Lowering gut symptoms through the diet gives the anxious loop less fuel. Addressing anxiety through therapy, movement, sleep, or medication tends to calm the gut. Both levers work; they don't have to be pulled at the same time.
For most people, the diet is the easier first lever. A measurable GI improvement in a few weeks takes pressure off the anxiety, which makes the mental-health work easier to focus on.
If you're starting from zero, what are FODMAPs is the fastest orientation. If you've already tried the diet and it didn't land, failed FODMAP challenge: what next walks through the most common reasons.
Track your symptoms and discover patterns with FODMAP Tracker. Includes a database of 1,000+ foods with FODMAP ratings.
For educational purposes only. Not medical advice. Consult a healthcare professional for personal guidance.
References
- Anxiety, IBS and the gut microbiome — Monash FODMAP
- Systematic review with meta-analysis: the prevalence of anxiety and depression in patients with irritable bowel syndrome — Zamani et al. (2019)
- A 12-Week Strict Low FODMAP Diet Reduces the Severity Levels of Fatigue, Depression, Anxiety, and Inattention in Patients with Irritable Bowel Syndrome — Lied et al. (2025)
- Gut feelings: the emerging biology of gut-brain communication — Mayer (2011), Nature Reviews Neuroscience
- Enterochromaffin Cells-Gut Microbiota Crosstalk: Underpinning the Symptoms, Pathogenesis, and Pharmacotherapy in Disorders of Gut-Brain Interaction — PMC (2022)
FODMAP Tracker