
Jun 22, 2026
A patient comes to therapy reporting a knot in their stomach that never fully releases. Another describes chronic bloating and cramping that worsens before important meetings, or a persistent gnawing sensation in the abdomen that has been investigated by multiple specialists with no clear findings. These patients may not initially present with a request to discuss their abdominal symptoms—they come for anxiety, depression, or stress. But their bodies are telling a story that the mind alone cannot articulate.
The ICD-10 code for unspecified abdominal pain, R10.9, is one of the most frequently used symptom codes in clinical practice. It describes "a sensation of marked discomfort in the abdominal region," generally associated with functional disorders, tissue injuries, or diseases. It is a billable/specific code, effective for the 2026 fiscal year, and is used when the specific cause or location of the pain is not identified.
But for the mental health clinician, this code is often a starting point, not an endpoint. It flags a symptom that may be driven by psychological factors, and it opens a critical conversation about the bidirectional relationship between emotional distress and gastrointestinal dysfunction. This article explores the scientific basis of the gut-brain connection, the psychiatric conditions commonly associated with abdominal discomfort, and the clinical and coding implications for mental health practice.
The Gut-Brain Axis – A Bidirectional Highway
The gut-brain axis is not a metaphor. It is a complex, bidirectional communication system linking the central nervous system (the brain and spinal cord) with the enteric nervous system (the intrinsic nervous system of the gastrointestinal tract). This system integrates neural, hormonal, and immunological signals that constantly inform the brain about the state of the gut and, conversely, transmit the brain's emotional and cognitive states to the gut.
The Biology of the Connection
The brain and gut are connected through multiple pathways:
The autonomic nervous system, particularly the sympathetic (fight-or-flight) and parasympathetic (rest-and-digest) branches, transmits signals that influence gut motility, secretion, and blood flow. When we experience stress, anxiety, or depression, the brain sends "alarm signals" to the gut via the autonomic nervous system.
The hypothalamic-pituitary-adrenal (HPA) axis regulates the body's stress response. Chronic stress and anxiety can significantly exacerbate gastrointestinal symptoms through the upregulation of cortisol secretion, disrupting the gut microbiome and elevating visceral sensitivity—the heightened perception of pain from the gut.
The gut microbiome maintains the integrity of the gut-brain axis and the intestinal barrier. Decreases in its diversity heighten susceptibility to intestinal inflammation. Stress can alter the composition of the gut microbiota, which in turn affects mood and anxiety through the production of neurotransmitters and inflammatory mediators.
The enteric nervous system, sometimes called the "second brain," contains approximately 100 million neurons and can operate independently of the central nervous system. It communicates directly with the brain via the vagus nerve, creating a continuous feedback loop.
The Bidirectional Nature of the Connection
The gut-brain connection is not a one-way street. Psychological distress can cause gastrointestinal symptoms, but gastrointestinal symptoms can also cause or worsen psychological distress. This bidirectional relationship has significant implications for mental health treatment. Disorders of gut-brain interaction (DGBI) are associated with a significantly increased risk of anxiety and depression. Among individuals with DGBI, abdominal pain correlates with increased healthcare-seeking and analgesic use.
A 2023 study involving more than 1.2 million IBS patients found that 38% had anxiety and approximately 27% were diagnosed with depression. These figures underscore the clinical reality that abdominal symptoms and mental health conditions are not coincidental—they are deeply intertwined.
The Psychiatric Conditions That Drive Abdominal Discomfort
When a patient presents with abdominal discomfort in the context of mental health treatment, several psychiatric conditions may be driving or exacerbating the symptom. Each has distinct clinical features and coding implications.
Anxiety Disorders (F40-F41)
Anxiety is one of the most common psychological drivers of abdominal symptoms. The first study found that anxiety indirectly influenced abdominal pain severity in children with irritable bowel syndrome. The pathogenesis of functional gastrointestinal disorders (FGID) and irritable bowel syndrome (IBS) are not yet clearly understood, but a relationship between anxiety and FGID has been consistently documented.
Clinical presentation: Patients with anxiety-related abdominal discomfort often describe a "knot" or "tightness" in the stomach, nausea, bloating, or cramping that worsens during periods of stress. Symptoms may be triggered by anticipation of social situations, performance demands, or other anxiety-provoking events. The abdominal discomfort may be accompanied by other somatic symptoms such as palpitations, sweating, or shortness of breath.
Relevant ICD-10 codes:
F41.1 – Generalized anxiety disorder
F40.10 – Social phobia, unspecified
F41.0 – Panic disorder
Major Depressive Disorder (F32.x, F33.x)
Depression frequently co-occurs with gastrointestinal symptoms. Depression can alter appetite, digestion, and gut motility. Among individuals with DGBI, higher depression scores are consistently associated with worse symptom severity and poorer quality of life.
Clinical presentation: Patients with depression-related abdominal discomfort may describe a "heavy" or "empty" feeling in the stomach, changes in appetite (either loss of appetite or overeating), nausea, or vague abdominal pain that does not follow a clear pattern. The abdominal symptoms often worsen during depressive episodes and improve with effective treatment of the depression.
Relevant ICD-10 codes:
F32.9 – Major depressive disorder, single episode, unspecified
F33.9 – Major depressive disorder, recurrent, unspecified

Somatic Symptom Disorder and Somatoform Disorders (F45.x)
When abdominal pain is persistent, distressing, and not fully explained by a medical condition, somatoform disorders should be considered. Somatoform Disorder, Unspecified (F45.9) refers to a group of psychological disorders characterized by physical symptoms that cannot be explained by any underlying medical condition. These symptoms are real and can cause significant distress or impairment in daily functioning. Typical symptoms include unexplained pain, fatigue, neurological symptoms, or gastrointestinal complaints that persist despite normal results from diagnostic testing.
Clinical presentation: Patients with somatoform abdominal pain often have extensive medical workups with normal findings. They may be preoccupied with the seriousness of their symptoms and may have difficulty accepting a psychological explanation for their physical distress. The pain may be chronic and disabling, interfering with work, relationships, and daily activities.
Relevant ICD-10 codes:
F45.0 – Somatization disorder
F45.9 – Somatoform disorder, unspecified
F45.8 – Other somatoform disorders
F45.4 – Persistent somatoform pain disorder
Adjustment Disorders (F43.2x)
Adjustment disorders can also present with somatic symptoms, including abdominal discomfort. These conditions arise in response to identifiable psychosocial stressors and may manifest with physical complaints when emotional distress is not directly expressed.
Clinical presentation: Abdominal symptoms may develop in the context of a major life change, loss, or stressor. The symptoms typically improve as the patient adapts to the stressor.
Relevant ICD-10 codes:
F43.23 – Adjustment disorder with mixed anxiety and depressed mood
F43.22 – Adjustment disorder with anxiety
Irritable Bowel Syndrome (K58.0, K58.9) – A Bridge Disorder
Irritable bowel syndrome (IBS) is a prototype of the disorder arising from gut-brain axis dysfunction. It is an extremely common disorder, affecting 10% to 20% of the global population. IBS is diagnosed using the ROME IV diagnostic criteria and is characterized by abdominal pain, bloating, and alterations to bowel habits, negatively impacting quality of life.
Although IBS is classified as a gastrointestinal disorder (K58.0 for IBS with diarrhea, K58.9 for IBS without diarrhea), its strong association with psychiatric conditions makes it highly relevant to mental health practice. Disruptions to the gut-brain axis are hypothesised to be at the core of IBS, and dysfunction may be associated with stress and anxiety. Patients with IBS also demonstrate increased vulnerability to neurotransmitter imbalances.
Clinical presentation: Patients with IBS experience chronic abdominal pain, bloating, and changes in bowel habits (diarrhea, constipation, or both). Symptoms are often triggered by stress, anxiety, or specific foods. The condition can cause significant functional impairment and reduced quality of life.
Relevant ICD-10 codes:
K58.0 – Irritable bowel syndrome with diarrhea
K58.9 – Irritable bowel syndrome without diarrhea
The Role of Stress and Trauma in Abdominal Discomfort
Adverse childhood experiences (ACE) have a particularly strong association with gastrointestinal dysfunction. High ACE participants with IBS show increased depression and anxiety symptoms, GI-symptom related anxiety, perceived stress, somatic symptom severity, and poorer physical and mental health scores.
The mechanisms linking early-life stress to abdominal symptoms are increasingly well understood. High ACE participants with IBS have unique brain connectivity patterns and altered gut bacteria compared to those with low ACE scores or healthy controls. Differences in brain regions related to stress and pain processing, along with changes in gut bacteria linked to inflammation and digestion, highlight the complex interactions within the brain-gut-microbiome system.
For the mental health clinician, this research underscores the importance of trauma-informed care when patients present with abdominal symptoms. A history of childhood adversity may be a key driver of both the gastrointestinal symptoms and the associated psychological distress.
The Clinical Implications for Mental Health Practice
Assessment
When a patient presents with abdominal discomfort in the context of mental health treatment, the clinician should consider:
Has the patient had a medical evaluation? If not, referral to a primary care provider or gastroenterologist is essential to rule out organic causes.
What is the temporal relationship between stress and symptoms? Do abdominal symptoms worsen during periods of anxiety, depression, or stress? This can help distinguish psychologically driven symptoms from primary gastrointestinal pathology.
Are there other somatic symptoms? Abdominal discomfort that is part of a broader pattern of unexplained physical symptoms may suggest a somatoform disorder.
Is there a history of trauma or adverse childhood experiences? Trauma history is a significant risk factor for both gastrointestinal dysfunction and psychiatric disorders.
How does the patient understand their symptoms? Patients who are receptive to a gut-brain connection explanation may be more engaged in treatment.
Psychoeducation
Patients often find it validating to learn that their abdominal symptoms are not "all in their head," but rather a real physiological response to stress mediated by the gut-brain axis. Psychoeducation can reduce shame and increase engagement in treatment. Key points to communicate:
The brain and gut are connected through a bidirectional communication system
Stress, anxiety, and depression can directly affect gut function
Effective treatment of mental health conditions can improve gastrointestinal symptoms
Treatment of gastrointestinal symptoms can improve mental health
Treatment Approaches
Cognitive-Behavioral Therapy (CBT) : CBT can help patients identify and modify the thoughts and behaviors that maintain both psychological distress and gastrointestinal symptoms. It is effective in managing IBS and related conditions.
Stress Management Techniques: Stress management is a key intervention for alleviating IBS symptoms. Mindfulness, relaxation training, and paced breathing can reduce autonomic arousal and improve gut function.
Lifestyle Interventions: Dietary modifications (such as a low FODMAP diet) and probiotic supplementation may be helpful for some patients.
Medication: Antidepressants may help alleviate associated symptoms like depression or anxiety and may also have direct effects on gut motility and pain perception.
Documentation and Coding Considerations
For the mental health clinician, accurate coding of abdominal discomfort requires attention to the relationship between the gastrointestinal symptoms and the psychiatric diagnosis.
When to Use R10.9
R10.9 (Unspecified abdominal pain) is appropriate when:
The patient reports abdominal discomfort in the context of mental health treatment
The specific cause or location of the pain is not identified
The pain is documented as part of the symptom presentation
However, R10.9 should be used as a secondary diagnosis when the primary diagnosis is a mental health condition. The primary diagnosis should reflect the psychiatric condition driving the abdominal symptoms.
Related Codes
Code | Description | When to Use |
|---|---|---|
R10.9 | Unspecified abdominal pain | For abdominal discomfort without identified cause |
F45.9 | Somatoform disorder, unspecified | When physical symptoms cannot be explained by underlying medical condition |
F45.8 | Other somatoform disorders | For persistent unexplained physical symptoms |
K58.0 | Irritable bowel syndrome with diarrhea | For IBS diagnosed by a gastroenterologist |
K58.9 | Irritable bowel syndrome without diarrhea | For IBS diagnosed by a gastroenterologist |
Documentation Tips
To support accurate coding and medical necessity, clinical notes should:
Describe the abdominal symptoms specifically (location, quality, timing, triggers)
Link the symptoms to the psychiatric diagnosis (e.g., "abdominal discomfort worsens during periods of elevated anxiety")
Document that organic causes have been ruled out (or are being investigated)
Include a treatment plan that addresses both the psychological and somatic components
FAQ
What is the ICD-10 code for abdominal discomfort related to anxiety?
R10.9 (Unspecified abdominal pain) is the appropriate code when abdominal discomfort is present and the specific cause is not identified. However, the primary diagnosis should be the anxiety disorder (e.g., F41.1 for generalized anxiety disorder), with R10.9 as a secondary code to document the somatic symptom.
Can anxiety cause real abdominal pain?
Yes. Anxiety triggers the release of stress hormones that affect gut motility, increase visceral sensitivity, and alter digestive processes. The pain is real—it is not "imagined." It is a physiological response to psychological distress mediated by the gut-brain axis.
Should I refer a patient with abdominal pain to a medical provider before treating the psychological aspects?
Yes. It is essential to rule out organic causes of abdominal pain before attributing symptoms to psychological factors. Collaboration with primary care or gastroenterology is recommended, especially for patients with new or worsening symptoms.
What is the difference between R10.9 and F45.9 for abdominal pain?
R10.9 (Unspecified abdominal pain) is a symptom code used when the pain is documented but the cause is not specified. F45.9 (Somatoform disorder, unspecified) is a psychiatric diagnosis used when physical symptoms persist despite normal medical evaluation and are associated with psychological factors.
How do I document abdominal pain in a therapy note?
Document the nature of the pain, its relationship to stress or emotional states, any medical evaluations that have been conducted, and how the symptom is being addressed in treatment. For example: "Patient reports chronic abdominal discomfort that worsens during periods of elevated anxiety. Medical evaluation has ruled out organic causes. The symptom is being addressed through stress management techniques and cognitive-behavioral therapy."
References
If you’re ready to spend less time on documentation and more on therapy, get started with a free trial today
Not medical advice. For informational use only.
Outline
More articles





