H. Pylori Testing and Treatment: A Practical Guide

ImproveGutHealth Team • 2026-07-07 • updated Tue Jul 07 • 7 min

How to test for H. pylori (stool antigen, breath, blood, biopsy), which treatment works, and how to prevent reinfection or recurrence.

H. Pylori Testing and Treatment: A Practical Guide

Meta:


  • Category: Testing & Diagnosis

  • Author: ImproveGutHealth Team
  • Date: July 7, 2026
  • Read Time: 8 min
  • Tags: [H. Pylori, Helicobacter, Testing, Treatment, Reflux, Gastritis, Stomach]

Disclaimer

This content is for informational purposes only and is not medical advice. H. pylori treatment requires prescription medications. Always work with a qualified clinician for diagnosis and treatment.

The quick answer

H. pylori is a bacterial infection of the stomach lining that affects roughly half the world's population. Most infected people have no symptoms, but H. pylori can cause chronic gastritis, peptic ulcers, and is the leading risk factor for stomach cancer.

Testing options (best to worst):

  1. Stool antigen test — best non-invasive option, ~95% accurate
  2. Urea breath test — also excellent, ~95% accurate, more expensive
  3. Biopsy during endoscopy — gold standard, but invasive
  4. Blood antibody test — only tells you if you've been exposed (not active infection)

Treatment: triple or quadruple therapy for 10–14 days (PPI + 2–3 antibiotics). Retest 4+ weeks after treatment to confirm eradication.

What H. pylori is

Helicobacter pylori is a spiral-shaped bacterium that colonizes the stomach lining. It's one of the most common chronic bacterial infections in humans — present in roughly 50% of the world's population, lower in developed countries (10–30%) and higher in developing regions.

H. pylori has co-evolved with humans for at least 100,000 years. Most carriers are asymptomatic. But in a subset of people, H. pylori causes:

  • Chronic gastritis
  • Peptic ulcers (gastric and duodenal)
  • Increased stomach cancer risk (it's classified as a Class I carcinogen)
  • MALT lymphoma (rare)
  • Sometimes dyspepsia, reflux-like symptoms

Symptoms that should trigger H. pylori testing

  • Chronic epigastric (upper abdominal) pain or burning
  • Recurring peptic ulcers
  • Persistent reflux that doesn't respond to standard treatment
  • Unexplained nausea, early satiety
  • Family history of stomach cancer
  • Iron deficiency anemia without other cause (H. pylori impairs iron absorption)

Testing is also appropriate if you've been treated for H. pylori and want to confirm eradication.

Testing options

1. Stool antigen test (best non-invasive)

How it works: Detects H. pylori antigens in stool. Requires a stool sample.

Accuracy: ~95% sensitivity and specificity when properly performed.

When to use: First-line non-invasive test. Good for initial diagnosis AND for confirming eradication after treatment.

Important:

  • Avoid PPIs for 2 weeks before testing (they suppress H. pylori and can cause false negatives)
  • Avoid antibiotics for 4 weeks before testing
  • Avoid bismuth (Pepto-Bismol) for 2 weeks before testing

Cost: $50–150 typically

2. Urea breath test

How it works: You swallow a capsule or drink containing labeled urea. If H. pylori is present, the bacteria break down the urea, releasing labeled CO2 that you breathe out. The test measures the labeled CO2 in your breath.

Accuracy: ~95% sensitivity and specificity.

When to use: First-line non-invasive test, equivalent to stool antigen. Often preferred when a quick result is desired (results in 30 min vs 1–3 days for stool).

Important: Same pre-test restrictions as stool antigen (no PPIs 2 weeks, no antibiotics 4 weeks).

Cost: $150–300 typically

3. Endoscopy with biopsy

How it works: A gastroenterologist performs an upper endoscopy (you swallow a small camera), takes biopsies from the stomach lining, and tests for H. pylori directly.

Accuracy: Gold standard. ~99% when properly performed.

When to use:

  • Alarm features (bleeding, weight loss, severe pain, anemia)
  • Age >50 with new dyspepsia
  • Failed non-invasive testing
  • When other upper GI conditions need evaluation (ulcers, gastritis severity)

Cost: $1,000–3,000+ (procedure + sedation + pathology)

4. Blood antibody test

How it works: Measures antibodies against H. pylori in blood.

Accuracy: Cannot distinguish between current and past infection. Antibodies persist for months to years after eradication.

When to use: Limited utility. Sometimes used for epidemiological studies or when other tests are not feasible. NOT recommended for confirming eradication (will stay positive even after successful treatment).

Cost: $30–100 typically

Treatment options

Treatment requires prescription medication. Standard regimens:

Triple therapy (10–14 days)

  • PPI (omeprazole, pantoprazole, etc.) — twice daily
  • Clarithromycin — twice daily
  • Amoxicillin — twice daily (or metronidazole if penicillin allergic)

Efficacy: 70–85% in regions with low clarithromycin resistance

Quadruple therapy (10–14 days)

  • PPI — twice daily
  • Bismuth subsalicylate (Pepto-Bismol) — four times daily
  • Metronidazole — twice daily
  • Tetracycline — four times daily

Efficacy: 85–95%, often preferred when clarithromycin resistance is high

Concomitant therapy (10–14 days)

  • PPI — twice daily
  • Amoxicillin — twice daily
  • Clarithromycin — twice daily
  • Metronidazole — twice daily

Efficacy: 90%+

Levofloxacin-based salvage therapy

For treatment failures with the above regimens.

Important treatment notes

  • Compliance is critical. Skipping doses allows resistant bacteria to survive and proliferate.
  • Side effects are common. Nausea, diarrhea, metallic taste, dark stools (from bismuth), possible yeast infections from antibiotics. Most resolve after treatment.
  • Antibiotics kill your gut microbiome. Plan to support recovery: probiotic Saccharomyces boulardii during treatment, diversified diet after, retest gut microbiome 3+ months later.
  • Treat your close contacts? Generally not needed unless they have symptoms. Discuss with your clinician.

Confirming eradication

This step is often skipped but shouldn't be:

  • Retest 4+ weeks after completing treatment (8+ weeks for blood antibody, but use stool antigen or breath test)
  • Use the same test type you used initially for consistency
  • Stop PPIs 2 weeks before retest (same as initial test)

If still positive, you need a different antibiotic regimen — discuss with your gastroenterologist.

After H. pylori treatment: what to do

Restore your microbiome

H. pylori treatment wipes out a lot of gut bacteria along with the target. Recovery takes 3–6 months.

Helpful steps:

  • S. boulardii probiotic during and after treatment — well-supported for reducing antibiotic-associated diarrhea and supporting recovery
  • Diverse diet with 30+ plant foods per week when possible
  • Fermented foods if tolerated (sauerkraut, kefir, kimchi)
  • Resistant starch (cooked and cooled potatoes/rice, oats)
  • Avoid unnecessary future antibiotics

Address lingering symptoms

Some people have persistent symptoms even after successful H. pylori eradication:

  • Persistent dyspepsia may indicate functional dyspepsia or another cause
  • Reflux may worsen temporarily after treatment (the PPI stops, the stomach acid returns, and the lining is still inflamed)
  • Gastritis recovery takes 3–6 months

If symptoms persist 3+ months post-treatment with confirmed eradication, see intro to gut health for the next steps.

Reduce recurrence risk

  • Avoid unnecessary NSAIDs (ibuprofen, naproxen) — they damage stomach lining
  • Limit alcohol during recovery
  • Address stress — stress impairs mucosal healing
  • Don't smoke — major risk factor for ulcers and stomach cancer

Common myths

"I should just take mastic gum / Manuka honey / broccoli sprouts instead of antibiotics"

These have some in vitro activity against H. pylori but do not reliably eradicate the infection in humans. For active H. pylori infection, antibiotic treatment is the evidence-based approach. Natural supports can complement but not replace antibiotics.

"Once I treat it, it's gone forever"

Reinfection or recurrence can happen. Recurrence rates are roughly 2–4% per year in developed countries, higher in developing regions. Retesting if symptoms return is appropriate.

"If I don't have symptoms, I don't need to treat it"

This is debated. Some clinicians treat all H. pylori infections because of the cancer risk. Others only treat symptomatic cases. Current US guidelines favor treating active infection, especially in patients with risk factors. Discuss with your clinician.

"H. pylori is the cause of all my stomach problems"

Often yes, but not always. H. pylori can coexist with other conditions (functional dyspepsia, GERD, gastritis from other causes, ulcers from NSAIDs). Successful treatment doesn't always resolve all symptoms.

The bottom line

H. pylori is common and treatable. If you have symptoms suggestive of H. pylori infection, get a stool antigen or urea breath test. If positive, complete a full course of treatment and retest 4+ weeks later. After successful treatment, focus on microbiome recovery and reducing recurrence risk.

See also:

Citations

  1. ACG Clinical Guideline on H. pylori Infection
  2. Chey WD et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection