How is Helicobacter pylori infection diagnosed?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: November 26, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

Diagnosis of Helicobacter pylori Infection

For initial diagnosis of H. pylori infection, use either a validated laboratory-based monoclonal stool antigen test (SAT) or urea breath test (UBT), as both have equivalent diagnostic accuracy and are the preferred non-invasive methods 1, 2.

Diagnostic Test Selection Algorithm

First-Line Non-Invasive Tests (Preferred)

Urea Breath Test (UBT)

  • Remains the gold standard non-invasive test with highest accuracy 1
  • Easy to perform with excellent sensitivity and specificity
  • Critical caveat: Stop PPIs for 2 weeks before testing (antibiotics and bismuth also interfere) 2
  • H2-receptor antagonists do NOT affect results and can substitute for PPIs during the washout period 2
  • A positive result can be trusted even without medication washout, but negative results may be false negatives 2

Stool Antigen Test (SAT)

  • Must use validated laboratory-based ELISA format with monoclonal antibodies 1
  • Equivalent accuracy to UBT when proper format is used 1
  • Rapid in-office immunochromatographic tests have LIMITED accuracy and should be avoided 1
  • Same medication interference issues as UBT 2

When to Use Serology (Limited Role)

IgG serology is acceptable ONLY in specific situations 1:

  • Recent use of antimicrobials, antisecretory drugs, or active ulcer bleeding (when UBT/SAT would be falsely negative)
  • Presence of atrophic gastritis or gastric malignancies
  • Very high pretest probability (e.g., active duodenal ulcer) 2

Critical limitations of serology:

  • Only FDA-approved IgG tests should be used; avoid IgA and IgM tests (low specificity/sensitivity) 2
  • Remains positive long after eradication (serologic "scar") 2
  • Cannot distinguish active from past infection
  • If serology is positive, confirm active infection with UBT or SAT before treatment 2
  • Commercial test accuracy varies markedly; only use validated tests with >90% accuracy 1

Invasive Tests (When Endoscopy is Performed)

When endoscopy is clinically indicated for other reasons:

Rapid Urease Test

  • High specificity for active infection
  • Affected by medications that reduce bacterial load 2

Histology

  • Most accurate when using immunohistochemistry with H. pylori-specific antibodies 2
  • Can assess for atrophic gastritis and intestinal metaplasia
  • Organisms typically plentiful and easily recognized 2

Culture

  • Highest specificity 3
  • Allows antibiotic susceptibility testing (increasingly important with rising resistance) 4

Molecular Testing (PCR)

  • Can detect H. pylori and clarithromycin resistance mutations simultaneously 5, 4
  • Useful for tailored therapy decisions 4

Common Pitfalls to Avoid

  1. Using rapid in-office stool tests - These have poor accuracy compared to laboratory-based monoclonal antibody tests 1

  2. Inadequate PPI washout - Leads to false negative UBT and SAT results; ensure 2-week discontinuation 2

  3. Relying on serology alone for treatment decisions - Always confirm active infection with UBT or SAT if using serology 2

  4. Using non-FDA approved or in-house laboratory tests - Commercial labs often preferentially use unvalidated tests; specifically request FDA-approved tests 2

  5. Ordering IgA/IgM panels - These provide no added benefit and have unclear diagnostic value 2

Practical Clinical Approach

  • Test-and-treat setting: UBT or validated laboratory SAT (monoclonal antibody ELISA format)
  • Patient on PPIs who cannot stop: Use validated IgG serology, then confirm with UBT/SAT if positive
  • Endoscopy already planned: Obtain biopsies for rapid urease test and histology; consider culture for antibiotic susceptibility given rising resistance rates 4
  • Post-treatment confirmation: UBT or SAT (not serology, which remains positive)

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.