# Bidirectional Associations Between Anxiety and Gastrointestinal Disorders: A Retrospective Cohort Study Using the TriNetX Database

**Authors:** Zachary Li, Leah Morgan, Taylor M Gong, Manasa Mula, Eduardo Espiridion

PMC · DOI: 10.7759/cureus.102747 · Cureus · 2026-01-31

## TL;DR

This study finds that anxiety and irritable bowel syndrome are strongly linked in both directions, but the same isn't true for anxiety and inflammatory bowel disease.

## Contribution

Quantifies bidirectional associations between anxiety and GI disorders using a large real-world dataset.

## Key findings

- Anxiety increases IBS risk by 2.7-fold and IBD risk by 1.6-fold.
- IBS increases anxiety risk by 2.2-fold, but IBD does not significantly increase anxiety risk.
- Strong gut-brain axis and neuroimmune interactions are implicated in anxiety and IBS.

## Abstract

Introduction: Irritable bowel syndrome (IBS) and inflammatory bowel disease (IBD) are common gastrointestinal (GI) disorders often linked with anxiety and depression. IBS is defined by recurrent abdominal pain and altered bowel habits without a detectable organic disease, whereas IBD involves chronic, relapsing intestinal inflammation. Bidirectional communication through the gut-brain axis, gut dysbiosis, neuroimmune interactions, and shared genetic susceptibility may underlie these associations. This study aims to quantify and compare the bidirectional associations between anxiety and IBS or IBD using a large, real-world multicenter dataset.

Methods: A retrospective cohort study was conducted using TriNetX, a global network of de-identified electronic health records from over 100 healthcare organizations. Adults diagnosed with anxiety disorders, IBS, and IBD between January 1, 2021, and January 1, 2024, were identified along with matched controls. Patients with prior psychiatric disorders, GI conditions, recent GI infections, or relevant medication use were excluded. Propensity score matching balanced cohorts by age, sex, race, ethnicity, smoking status, and history of depression. Outcomes included incident IBS or IBD following anxiety and incident anxiety following IBS or IBD assessed over a follow-up period of five years post-index. Risk ratios, risk differences, and odds ratios with 95% confidence intervals were calculated.

Results: Among matched cohorts, 6,724 individuals (1.1%) with anxiety developed IBS compared with 2,457 (0.4%) in controls (RR 2.737, 95% CI 2.613-2.866; p < 0.001). For IBD, 1,412 patients (0.2%) with anxiety developed the condition versus 908 (0.2%) in controls (RR 1.555, 95% CI 1.431-1.690; p < 0.001). Reciprocally, 8,334 patients (6.6%) with IBS developed anxiety compared with 3,770 (3.0%) in controls (RR 2.211, 95% CI 2.129-2.295; p < 0.001). Among patients with IBD, 2,354 (2.6%) developed anxiety versus 2,383 (2.7%) in controls (RR 0.988, 95% CI 0.934-1.045; p = 0.669).

Conclusion: Anxiety and IBS exhibit strong bidirectional associations, whereas links between anxiety and IBD are weaker and inconsistent. These findings highlight the roles of the gut-brain axis and neuroimmune pathways in these conditions. Screening for psychiatric comorbidities and integrating GI and mental health care, including gut-brain-targeted interventions, may improve outcomes for patients suffering from these conditions.

## Linked entities

- **Diseases:** anxiety (MONDO:0005618), irritable bowel syndrome (MONDO:0005052), inflammatory bowel disease (MONDO:0005265)

## Full-text entities

- **Genes:** CADM2 (cell adhesion molecule 2) [NCBI Gene 253559] {aka IGSF4D, NECL3, Necl-3, SynCAM 2, SynCAM-2, synCAM2}, NCAM1 (neural cell adhesion molecule 1) [NCBI Gene 4684] {aka CD56, MSK39, NCAM}
- **Diseases:** fatigue (MESH:D005221), diarrhea (MESH:D003967), dysmotility (MESH:D015154), schizotypal disorder (MESH:D012569), anxiety disorder (MESH:D001008), celiac disease (MESH:D002446), pain (MESH:D010146), headaches (MESH:D006261), inflammation (MESH:D007249), GI symptoms (MESH:D012817), abdominal pain (MESH:D015746), schizophrenia (MESH:D012559), Anxiety (MESH:D001007), neuropsychiatric conditions (MESH:D001523), malignant neoplasm (MESH:D009369), bipolar disorder (MESH:D001714), visceral hypersensitivity (MESH:D004342), constipation (MESH:D003248), IBS (MESH:D043183), organic disease (MESH:D000092124), depression (MESH:D003866), IBD (MESH:D015212), ulcerative colitis (MESH:D003093), infectious disease (MESH:D003141), bloating (MESH:C535647), delusional disorder (MESH:D012563), intestinal (MESH:D007410), colorectal cancer (MESH:D015179), symptoms (MESH:D012816), Crohn's disease (MESH:D003424), GI and psychiatric disorders (MESH:D005767), neuropsychiatric comorbidities (MESH:C000631768), psychotic disorders (MESH:D011618)
- **Chemicals:** benzodiazepine (MESH:D001569), aminosalicylates (MESH:D010131), TCAs (MESH:D014238)
- **Species:** gut metagenome (species) [taxon 749906], Homo sapiens (human, species) [taxon 9606]
- **Mutations:** N05A

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12953041/full.md

## References

26 references — full list in the complete paper: https://tomesphere.com/paper/PMC12953041/full.md

---
Source: https://tomesphere.com/paper/PMC12953041