Nervous Stomach: Why Anxiety Causes Stomach Problems
A "nervous stomach" isn't a real diagnosis, but the symptoms are real: cramping before a presentation, bathroom urgency the morning of an exam, nausea you can't shake during a stressful week. The mechanism is well-documented. Your gut has its own dense nervous system, it shares chemical messengers with your brain, and it responds to stress hormones in measurable ways.
Here is what's happening biologically when anxiety hits your stomach, what the research says about who is most affected, and which interventions actually move the needle.
- The gut contains over 100 million neurons (the enteric nervous system) and produces about 95% of the body's serotonin
- Anxiety triggers the HPA axis, which releases corticotropin-releasing hormone (CRH) and accelerates colonic motility - hence the urgency and loose stools
- Generalized anxiety disorder is roughly 5x more common in people with IBS, and ~39% of IBS patients have anxiety symptoms
- The vagus nerve is the main two-way line between brain and gut; slow diaphragmatic breathing can measurably increase vagal tone
- Cognitive behavioral therapy has a number-needed-to-treat of 3 for IBS - one of the strongest treatment effects in functional GI medicine
- Red flags (blood in stool, weight loss, nighttime symptoms, anemia) are not "just anxiety" and need a doctor
What "nervous stomach" actually is
The term covers a spectrum: butterflies before a date, a knotted feeling during conflict, full-blown diarrhea before a flight. Clinically, these symptoms usually fall under what gastroenterologists now call disorders of gut-brain interaction (DGBI), the umbrella that includes IBS, functional dyspepsia, and functional bloating. The Cleveland Clinic notes these conditions are defined by symptoms - pain, bloating, altered bowel habits - without visible damage on imaging or endoscopy. That is not "in your head." It means the wiring between brain and gut is misfiring, and that wiring is biological.
Functional GI disorders are extremely common. The Rome Foundation Global Study (2021) found that 40.3% of adults worldwide meet criteria for at least one DGBI. They overlap heavily with anxiety and depression.
Your gut has its own brain
The gut wall houses the enteric nervous system (ENS), a mesh of neurons stretched from esophagus to rectum. Johns Hopkins describes it as two thin layers containing more than 100 million nerve cells - more than the spinal cord. It can run digestion on its own. It also produces and uses most of the same neurotransmitters as the brain, including serotonin.
Roughly 95% of the body's serotonin is made and stored in the gut, where it regulates motility, secretion, and pain signaling (Johns Hopkins). That overlap is one reason the same SSRIs prescribed for depression and anxiety also influence bowel function - sometimes therapeutically, sometimes as a side effect. We covered the deeper anatomy in the gut-brain connection guide.
The vagus nerve: the cable between brain and gut
The vagus nerve is the longest cranial nerve in the body and the main highway between gut and brain. About 80 to 90% of its fibers are sensory, carrying signals from the gut to the brain - not the other way around (Bonaz et al., 2022). When you "feel" something in your stomach, that's literal. Distension, inflammation, microbial metabolites, and serotonin release from gut cells all generate vagal traffic that reaches brain regions involved in mood and threat perception.
The traffic goes both ways. The brain can also send signals down the vagus that change motility, secretion, and immune activity in the gut. This bidirectional loop is why a stressful thought can trigger a real cramp seconds later.
What stress hormones do to the gut
Acute anxiety activates the hypothalamic-pituitary-adrenal (HPA) axis. The hypothalamus releases corticotropin-releasing hormone (CRH), the pituitary releases ACTH, and the adrenal glands release cortisol. CRH does not stop at the brain. It binds CRF receptors in the gut directly, with two distinct effects (Taché and Bonaz, 2007):
- CRF1 receptor activation in the colon speeds up motility and increases mucosal permeability. This is why stress causes urgency and loose stools.
- CRF2 receptor activation in the upper GI tract slows gastric emptying. This is why anxiety causes nausea, fullness, and loss of appetite.
Inject CRH into a healthy animal and you can reproduce many of the cardinal features of IBS: visceral hypersensitivity, anxiety-like behavior, watery stools, and a leakier gut barrier (PMC review). In humans with IBS, brain imaging shows altered responses to CRH compared to healthy controls (Tanaka et al., 2017, Scientific Reports).
Cortisol itself has paradoxical effects. Acutely it can drive water and sodium absorption from the colon. But chronically elevated cortisol shifts the gut microbiome toward lower diversity, alters tight-junction proteins, and changes how immune cells in the gut wall respond to food antigens (J Appl Physiol, 2024).
Common symptoms of a nervous stomach
Anxiety expresses itself in the GI tract in fairly predictable ways. The most common patterns:
- Sudden urgency or diarrhea before stressful events - the classic CRF1-driven colonic acceleration
- Nausea and loss of appetite from delayed gastric emptying
- Cramping or knot-like pain, often peri-umbilical or lower abdominal
- Bloating and visible distension without an obvious dietary trigger - we cover the mechanisms in what causes bloating
- Heartburn or reflux, partly from altered esophageal motility, partly from increased acid sensitivity
- Constipation alternating with diarrhea, the IBS-M pattern
- "Butterflies" - vagal sensory firing without overt motility changes
If you also notice changes in stool color, our stool color chart covers what each color signals.
Anxiety and IBS: the numbers
The overlap between anxiety and functional GI disorders is striking. A 2019 systematic review and meta-analysis in Alimentary Pharmacology & Therapeutics pooled data from 73 studies and found:
- 39.1% of IBS patients have anxiety symptoms
- 23% meet criteria for an anxiety disorder
- 28.8% have depression symptoms; 23.3% have a depressive disorder
A community study of more than 4,000 adults found generalized anxiety disorder was roughly 5x more common among people with IBS than among people without, with the relationship running in both directions (Lee et al., 2009). Functional dyspepsia (the chronic upper-gut version of IBS) shows similar patterns - one meta-analysis put pooled anxiety prevalence at around 29%, roughly three times the rate in healthy controls (Aro et al., PMC).
Critically, the relationship is bidirectional. Longitudinal studies show that having anxiety predicts later-onset IBS, and having IBS predicts later-onset anxiety (Fond et al., 2014). Treating the gut alone or the brain alone misses half the loop.
Why some people are more affected
Three factors stand out in the literature:
Visceral hypersensitivity. People with IBS have a lower threshold for perceiving normal gut sensations as painful. A balloon distended in the rectum to a volume that feels neutral in healthy controls registers as cramping pain in many IBS patients. Anxiety amplifies this - gastrointestinal-specific anxiety (worry about gut sensations themselves) is the strongest predictor of IBS symptom severity in several studies (Labus et al., 2007).
Early life adversity. Childhood stress, trauma, and severe GI infections are all overrepresented in adult IBS populations. The mechanism appears to involve permanent calibration of the HPA axis and CRF signaling.
Microbiome differences. IBS and anxiety populations both show reduced gut microbial diversity and altered short-chain fatty acid production. Whether this is cause, consequence, or both is still being worked out.
What actually helps a nervous stomach
Cognitive behavioral therapy
If there is one intervention with the strongest evidence base for stress-driven gut symptoms, it's CBT - specifically GI-focused CBT. A meta-analysis published in Gastroenterology found a number-needed-to-treat of 3 for CBT in IBS (Kinsinger, 2017). For context, that's a stronger effect size than most pharmacologic IBS treatments. Effects persist at least 6 to 12 months after the therapy ends. Internet-delivered and app-delivered CBT show similar magnitude of benefit, which matters because access to GI psychologists is limited.
Gut-directed hypnotherapy
Less well-known, but with surprisingly good data. The UCLA Integrative Digestive Health program offers it, and a network meta-analysis ranked digital gut-directed hypnotherapy in the top three behavioral treatments for IBS. Sessions teach patients to use focused imagery to "reset" the brain-gut signaling involved in pain and motility.
Slow diaphragmatic breathing
Cheap, free, and supported by physiology. Slow nasal breathing at roughly 6 breaths per minute increases parasympathetic (vagal) tone, measurable as heart rate variability. A 2021 study in Scientific Reports showed even a single session of deep slow breathing increased vagal tone and reduced anxiety in healthy adults. The Laborde meta-analysis across 42 studies confirmed acute increases in HRV from slow breathing protocols (Gerritsen and Band, 2018). Practical application: 4 seconds in, 6 seconds out, 5 minutes, twice daily.
Regular exercise
Aerobic exercise improves IBS symptoms in randomized trials and is independently anxiolytic. The mechanism likely involves vagal tone, microbiome diversification, and HPA axis recalibration.
Sleep
Sleep deprivation amplifies visceral pain perception and worsens next-day GI symptoms in IBS patients. Treat sleep as part of GI care, not separately.
Diet, but not as a moralistic exercise
For people whose anxiety is fed by symptom unpredictability, identifying real food triggers reduces the load. The most reliable framework is the low FODMAP elimination-and-reintroduction protocol - we walked through it in the low FODMAP diet guide. Avoid the trap of restricting endlessly; the goal is to reintroduce the FODMAPs you tolerate.
Medications
Low-dose tricyclic antidepressants (amitriptyline, nortriptyline) are first-line for IBS pain in many gastroenterology guidelines, at doses below those used for depression. SSRIs help some patients, particularly those with constipation-predominant IBS or significant anxiety comorbidity. These should be prescribed and monitored by a clinician, not self-started.
When it is not just anxiety
Stress can mimic, trigger, and worsen GI symptoms - but it is not the explanation for everything. The Cleveland Clinic and Mayo Clinic list red flags that warrant prompt evaluation regardless of how anxious you feel:
- Blood in stool - bright red, dark, or tarry
- Unexplained weight loss
- Nighttime diarrhea that wakes you from sleep
- Iron-deficiency anemia on bloodwork
- Fever with abdominal pain
- New symptoms after age 50
- Family history of inflammatory bowel disease, celiac, or colorectal cancer
- Severe, persistent vomiting or signs of dehydration
These are not "anxiety symptoms" until proven otherwise. A workup typically includes blood tests, stool studies (calprotectin, infectious panel), celiac serology, and sometimes endoscopy or colonoscopy depending on age and presentation.
Why tracking is part of the treatment
Most GI psychologists ask new patients to keep a 2 to 4 week diary of symptoms, food, sleep, and stress. The reason is that subjective recall is unreliable - by the time you sit in the appointment, the bad day has been overweighted in memory and the dozen okay days have faded. Patterns that look obvious in a log ("Tuesday morning meetings, every time") rarely surface from memory alone.
That is the use case the Number Two app was built for: low-friction logging of stool form, frequency, food, and notes, so the patterns become visible without becoming a chore. Bristol type, color, and timing alongside what you ate and how stressed you felt - over a few weeks, that data set will tell you and your doctor more than any single visit.
Number Two helps you spot the connection between stress, food, and bowel changes - log in seconds and watch the patterns surface.
Download for iOS - Free