Epigastric Pain with Constipation and Gas Retention: Mechanical Obstruction Evaluation
Your symptoms of epigastric pain that worsens with constipation and difficulty passing gas suggest a mechanical bowel issue rather than gastritis, and you need urgent evaluation to exclude bowel obstruction or other structural pathology.
Critical Distinction: Mechanical vs. Functional
The key differentiating feature here is that symptoms relieved by evacuation of feces or gas should NOT be considered part of dyspepsia 1. This is explicitly stated in the British Society of Gastroenterology guidelines on functional dyspepsia—if your pain improves with passing gas or stool, this points away from upper GI pathology and toward a lower GI mechanical problem.
Immediate Red Flags Requiring Urgent Evaluation
You need urgent imaging if:
- Age ≥60 years with abdominal pain and weight loss → urgent CT scan 1
- Severe, progressive pain with inability to pass gas or stool
- Abdominal distension
- Vomiting (especially if persistent or bilious)
Common pitfall: Constipation presenting as "epigastric" pain can actually represent proximal bowel distension from distal obstruction. Don't assume upper location = upper GI cause 2.
Diagnostic Approach
Step 1: Physical Examination Focus
- Abdominal distension (suggests obstruction)
- Tympany on percussion (gas-filled loops)
- High-pitched bowel sounds or absence of sounds (obstruction vs. ileus)
- Digital rectal exam: Check for impaction, masses, or pelvic floor dysfunction 3
Step 2: Initial Imaging
Plain abdominal X-rays (supine and upright) are the first-line test when mechanical obstruction is suspected:
- Look for dilated bowel loops
- Air-fluid levels
- Absence of gas in rectum
CT abdomen/pelvis with oral contrast if X-rays are equivocal or if you need to identify the cause and level of obstruction 4, 5.
Step 3: Laboratory Tests
- Complete blood count: Leukocytosis suggests ischemia or perforation 3
- Metabolic panel: Electrolyte abnormalities from vomiting/obstruction
- Lactate: Elevated in bowel ischemia
Management Algorithm
If imaging confirms mechanical obstruction:
- NPO (nothing by mouth)
- Nasogastric tube decompression
- IV fluids and electrolyte correction
- Surgical consultation immediately—do not delay
If no obstruction but severe constipation with fecal impaction:
- Manual disimpaction if needed
- Aggressive bowel regimen:
If functional constipation without obstruction:
- This would be IBS with constipation (IBS-C) if pain is related to defecation 6
- Treatment: Polyethylene glycol, then consider antispasmodics or peppermint oil for pain 6
What This Is NOT
Your presentation does NOT fit functional dyspepsia because 1:
- Pain relieved by gas/stool evacuation excludes dyspepsia by definition
- Constipation as a dominant feature points to lower GI pathology
- "Mechanical" quality suggests structural rather than functional disorder
Critical Next Step
Do not treat empirically with acid suppression or prokinetics—this delays diagnosis of potentially serious mechanical pathology. The priority is structural evaluation with imaging to exclude obstruction, volvulus, or other surgical emergencies that present with epigastric pain and constipation 2, 5.
If you're over 60, have weight loss, or have progressive symptoms, this requires same-day evaluation with imaging. Constipation can present as a surgical emergency 2, and the combination of epigastric pain with inability to pass gas warrants urgent assessment rather than outpatient management.