Summary: Researchers analyzed data from over 40,000 Swedish patients diagnosed with inflammatory bowel disease (IBD) between 2007 and 2023. Comparing IBD patients against nearly 180,000 general population controls and 26,000 IBD-free full siblings, the study demonstrated that IBD patients face a significantly higher risk of developing psychiatric disorders.
The elevated psychiatric risk begins two to three years prior to a formal IBD diagnosis, surges to a 50% increase within the first six months post-diagnosis, and remains elevated by 19% a decade later.
Key Facts
- Prodromal Risk Window: Psychiatric illness risk begins escalating two to three years before a patient receives an official IBD diagnosis.
- Post-Diagnosis Peak: The relative risk of developing a psychiatric disorder peaks within the first six months following IBD diagnosis, showing a 50% increase compared to non-IBD controls.
- Decade-Long Elevation: A decade after diagnosis, IBD patients maintain a 19% higher risk of psychiatric illness compared to age-matched population controls.
- Prescription Biomarker Patterns: Prescriptions for psychiatric medications (antidepressants and anxiolytics) increase a full year before IBD diagnosis and stay elevated for at least five years post-diagnosis.
- High-Risk Vulnerabilities: While risks were consistent across Crohn’s disease, ulcerative colitis, and unclassified IBD, absolute risks were highest in patients with childhood-onset IBD and those with a positive family history of psychiatric conditions.
Source: AGA
Patients with inflammatory bowel disease (IBD) face a significantly higher risk of psychiatric disorders starting two to three years before diagnosis and lasting up to a decade after, according to a nationwide study to be published in Clinical Gastroenterology and Hepatology.
Researchers analyzed more than 40,000 Swedish IBD patients between 2007 and 2023, comparing them against nearly 180,000 general population and 26,000 IBD-free full siblings. Notably, mental health risks peaked shortly after diagnosis and remained elevated long-term.
This held even when compared directly to patients’ IBD-free full siblings, indicating that shared family genetics or early environmental factors alone do not explain the link.
IBD — which includes Crohn’s disease and ulcerative colitis — is a lifelong condition that causes chronic inflammation in the digestive tract. Because it affects daily physical comfort and social functioning, its impact extends beyond gut health. Scientists suspect the connection may involve protracted disease course, disrupted gut-brain axis communication, reduced social functioning, impaired quality of life, and shared genetic factors.
“It is time to actively manage psychiatric conditions in patients with IBD,” said lead author Jiangwei Sun, PhD.
Key takeaways:
- Timeline of risk: Risk of psychiatric illness rises two–three years before IBD diagnosis, peaks within the first six months (a 50% increase), and stays elevated at 10 years (a 19% increase).
- Main conditions: The risk increase was largely driven by major depressive disorder, anxiety disorders, and substance misuse.
- Drug prescriptions: Prescriptions for antidepressants and anxiolytics increased a year before diagnosis and remained elevated for at least five years post-diagnosis.
- Impact across subtypes: Results were consistent across Crohn’s disease, ulcerative colitis, and unclassified IBD, with absolute risks highest in patients with childhood-onset IBD and those with a family history of psychiatric conditions.
While anxiety and depression are recognized as the most common mental health challenges in IBD patients, previous research focused almost exclusively on the years following diagnosis.
By highlighting the critical, previously understudied years leading up to an IBD diagnosis, this new study shows how unaddressed mental health issues can complicate medical management, worsen flare-ups, and lower quality of life.
Researchers urge health care providers to screen for psychiatric symptoms early — starting during the initial GI evaluation — and call for integrating psychological care directly into routine IBD management.
Key Questions Answered:
A: The study directly compared IBD patients against 26,000 of their own IBD-free full siblings who shared identical family backgrounds and overlapping genetics. Because IBD patients still exhibited significantly higher rates of psychiatric disorders compared to their unaffected siblings, researchers concluded that IBD itself and its physiological or psychosocial impacts drive the elevated risk.
A: Early subclinical gut inflammation and disrupted gut-brain axis communication can alter neurochemical signaling and trigger systemic inflammation long before physical gastrointestinal symptoms become severe enough to yield a formal IBD diagnosis. Additionally, the stress of dealing with unexplained chronic physical discomfort likely contributes to early anxiety and depression.
A: The authors urge healthcare providers to initiate mental health screenings early, starting during a patient’s initial gastroenterology evaluation. They advocate for incorporating psychological care directly into routine, long-term IBD management to prevent psychiatric complications that can worsen disease flare-ups and impair quality of life.
Editorial Notes:
- This article was edited by a Neuroscience News editor.
- Journal paper reviewed in full.
- Additional context added by our staff.
About this mental health and IBD research news
Author: Annie Mehl
Source: AGA
Contact: Annie Mehl – AGA
Image: The image is credited to Neuroscience News
Original Research: Open access.
“Psychiatric disorders before and after inflammatory bowel disease diagnosis: a nationwide cohort study in Sweden 2007-2023” by Jiangwei Sun, Lin Li, Zheng Chang, Agnieszka Butwicka, David Bergman, Shihua Sun, Carole A. Marxer, Jonas Halfvarson, Ola Olén, Jonas F. Ludvigsson. Clinical Gastroenterology and Hepatology
DOI:10.1016/j.cgh.2026.05.034
Abstract
Psychiatric disorders before and after inflammatory bowel disease diagnosis: a nationwide cohort study in Sweden 2007-2023
Background & Aims
Evidence suggests that patients with inflammatory bowel disease are at higher risk of psychiatric disorders, yet temporal pattern of risk elevation before/after inflammatory bowel disease diagnosis and role of familial factors remain unclear.
Methods
Swedish patients with inflammatory bowel disease diagnosed between 2007 and 2023 were compared with reference individuals in a matched population-based cohort and compared with inflammatory bowel disease–free full siblings in a sibling-controlled cohort.
Primary outcome was any psychiatric disorder, whereas secondary outcomes included psychotic disorders, mood disorders, anxiety disorders, eating disorders, substance misuse, personality disorders, attention-deficit/hyperactivity disorder, and autism spectrum disorders. We estimated temporal patterns of hazard ratios from 5 years before to 10 years after inflammatory bowel disease diagnosis by using flexible parametric survival models.
Results
The study included 43,862 patients with inflammatory bowel disease (mean age at diagnosis, 41.6 years; 47.3% female) and 178,821 reference individuals. The hazard ratio of any psychiatric disorder started to increase from 2 to 3 years before inflammatory bowel disease diagnosis (eg, hazard ratio, 1.15; 95% confidence interval, 1.09–1.21 at −2 years), peaked immediately after inflammatory bowel disease diagnosis (hazard ratio, 1.50; 95% confidence interval, 1.41–1.59 at 0.5 year), and decreased rapidly thereafter but remained increased even at 10 years after diagnosis (hazard ratio, 1.19; 95% confidence interval, 1.13–1.24).
The increased hazard ratio was mainly driven by major depressive disorder, anxiety disorders, and substance misuse. No increase was observed for psychotic disorders, personality disorders, and attention-deficit/hyperactivity disorder, although patients with inflammatory bowel disease were more likely to have autism spectrum disorders shortly after diagnosis and eating disorders from ≥5 years onwards.
Similar temporal hazard ratio patterns were observed across all subtypes of inflammatory bowel disease: Crohn’s disease, ulcerative colitis, and inflammatory bowel disease–unclassified. Similar risk increases for psychiatric disorders were observed in the sibling-controlled cohort.
Conclusions
Patients with inflammatory bowel disease were at an increased risk of several psychiatric disorders from 2 to 3 years before diagnosis through up to 10 years after, and this risk increase cannot be fully explained by shared familial factors.

