Evidence-based diagnostic approach to suspected peptic ulcer disease
Peptic ulcer disease (PUD) cannot be diagnosed reliably from pain timing alone. The approach is to first identify urgent complications, then decide whether the person needs immediate upper endoscopy or can have noninvasive Helicobacter pylori testing.
1. First, identify emergencies
Send for urgent emergency assessment if there is:
- Hematemesis, coffee-ground vomit, melena, syncope, hypotension, or tachycardia: possible upper GI bleeding
- Sudden severe generalized abdominal pain, guarding, rigidity, fever, or shock: possible perforation
- Persistent vomiting, dehydration, early satiety with weight loss: possible gastric outlet obstruction
For suspected perforation, use urgent CT abdomen/pelvis if the patient is stable. Do not perform routine endoscopy where perforation is suspected, because insufflation can worsen a sealed perforation. Sleisenger and Fordtran's Gastrointestinal and Liver Disease, p. 11.7.
For suspected upper GI bleeding, obtain CBC, urea/electrolytes, liver tests, coagulation studies, blood group and screen or crossmatch as clinically indicated, assess hemodynamic stability, and arrange early endoscopy after resuscitation.
2. Establish the pretest probability
Take a focused history and examination.
Symptoms compatible with PUD
- Epigastric burning, gnawing, or aching pain
- Nocturnal pain or pain related to meals
- Nausea or bloating
- A past ulcer or H. pylori infection
However, these symptoms overlap strongly with functional dyspepsia, GERD, biliary disease, pancreatic disease, and sometimes cardiac ischemia. In a 2023 systematic review, peptic ulcer was found in only about
4.4% of unselected adults undergoing endoscopy, and over 85% of endoscopies were normal. This supports selective rather than routine endoscopy in low-risk dyspepsia.
Nasseri-Moghaddam et al., 2023, PMID 35738355
Ask specifically about
- NSAIDs, including over-the-counter ibuprofen, naproxen, diclofenac, and high-dose aspirin
- Antiplatelet agents, anticoagulants, corticosteroids, SSRIs, bisphosphonates
- Prior H. pylori treatment or eradication testing
- Smoking, alcohol, cocaine or other ulcerogenic exposures
- Family history of gastric cancer
- Prior gastric surgery
- Immunosuppression
Examine for
- Epigastric tenderness
- Pallor, orthostatic hypotension or tachycardia
- Weight loss, lymphadenopathy, abdominal mass
- Peritoneal signs
3. Decide: endoscopy now or noninvasive testing first?
A. Upper endoscopy with biopsy is preferred when there is high risk
Perform or refer for esophagogastroduodenoscopy (EGD) promptly when any of the following apply:
- Overt GI bleeding or iron-deficiency anemia
- Persistent vomiting or suspected obstruction
- Unintentional weight loss
- Dysphagia or odynophagia
- Palpable mass, lymphadenopathy, or concerning systemic features
- New dyspepsia in an older adult, commonly age 60 years or above in North American guidance
- Increased gastric-cancer risk, such as a first-degree family history or immigration from a high-incidence region
- Persistent symptoms despite appropriate initial management
- Long-term NSAID use, especially with additional bleeding risks
During EGD:
- Confirm ulcer location, size, depth, bleeding stigmata, and obstruction.
- Take gastric biopsies from a gastric ulcer and suspicious mucosa to exclude malignancy.
- Obtain gastric biopsies for H. pylori testing, typically with histology and/or rapid urease testing.
A gastric ulcer is not automatically benign. Biopsy and healing confirmation are generally required because gastric cancer can ulcerate. Schwartz's Principles of Surgery, p. 1123.
B. Noninvasive “test-and-treat” is appropriate for lower-risk dyspepsia
For dyspepsia in adults younger than 60 years with no alarm features and no special cancer risk, test for active
H. pylori infection first. ACG guidance supports non-endoscopic testing in this group, while recommending endoscopy with biopsies when alarm features are present. See the
ACG diagnostic summary.
A systematic review and network meta-analysis of 15 randomized trials involving 6,162 adults found that
H. pylori test-and-treat had similar symptom outcomes to prompt endoscopy while substantially reducing endoscopy use.
Eusebi et al., 2019, PMID 31826881
4. Test for H. pylori correctly
For an untreated patient not undergoing endoscopy, use one of these tests for active infection:
| Preferred test | Role |
|---|
| Urea breath test | Excellent noninvasive test for active infection and eradication confirmation |
| Stool antigen test using a validated monoclonal assay | Appropriate alternative for active infection and eradication confirmation |
| Endoscopic biopsy tests | Use when EGD is clinically indicated: histology, rapid urease test, culture or molecular testing when available |
Do not rely on antibody serology to diagnose current infection or prove cure, because antibodies may remain positive after eradication.
Avoid false-negative tests
Before a urea breath test, stool antigen test, or biopsy-based test:
- Stop PPIs or potassium-competitive acid blockers for 2 weeks if clinically safe.
- Stop antibiotics and bismuth for at least 4 weeks.
- H2 blockers may sometimes be used temporarily, but local testing instructions should be followed.
The 2024 ACG update also recommends a universal test of cure after treatment, at least 4 weeks after antibiotics, with PPI/PCAB withheld for 2 weeks. See the
ACG 2024 highlights.
5. If an ulcer is found
Determine the cause in every patient:
- Test for H. pylori.
- Review NSAID, aspirin, and other relevant drug exposure.
- If both are absent, confirm true negativity, including whether PPIs, antibiotics, or bismuth could have caused a false-negative result.
- Consider uncommon etiologies in refractory, multiple, distal, recurrent, or atypical ulcers:
- Hypersecretory state such as Zollinger-Ellison syndrome
- Crohn disease
- Malignancy
- CMV or other infection in immunocompromised people
- Ischemia or substance-related injury
Follow-up endoscopy
- Gastric ulcer: repeat EGD is generally used to document healing and exclude missed malignancy, especially if biopsy was limited, symptoms persist, the ulcer appears suspicious, or risk is high.
- Uncomplicated duodenal ulcer: routine repeat endoscopy is usually unnecessary if symptoms resolve and H. pylori eradication is documented, unless symptoms, bleeding, obstruction, or diagnostic uncertainty persists.
Practical algorithm
Suspected PUD / dyspepsia
|
|-- Bleeding, perforation, obstruction, instability?
| |-- Yes: resuscitate + urgent imaging/endoscopy or surgery as appropriate
| '-- No
|
|-- Alarm features, age ≥60, high gastric-cancer risk, persistent/refractory symptoms?
| |-- Yes: EGD + gastric and ulcer biopsies + H. pylori testing
| '-- No
|
'-- Age <60, no alarm features:
Urea breath test or stool antigen test
|
|-- Positive: diagnose active H. pylori infection, treat, confirm eradication
'-- Negative: assess NSAID exposure and alternative diagnoses;
consider PPI trial or EGD if symptoms persist
Recent evidence does not alter this core diagnostic pathway. Relevant reviews include
Li et al., 2024, PMID 38307489, which evaluated guideline recommendations for
H. pylori diagnosis and treatment, and
Wang et al., 2026, PMID 42476738, a systematic review of endoscopic biopsy strategies for gastric ulcers.