Doctors Note Logo

Published on: 7/9/2026

H. pylori: The Stomach Bug Doctors Test for in Chronic Indigestion

Helicobacter pylori (H. pylori) is a common spiral-shaped bacterium that infects the stomach lining and can cause chronic indigestion, peptic ulcers, and other digestive complications. Doctors diagnose H. pylori using urea breath tests, stool antigen tests, blood antibody tests, or endoscopy. Treatment typically combines antibiotics with acid-blocking medications to fully eradicate the infection.

Key factors that affect outcomes include proper testing preparation, strict treatment adherence, retesting to confirm eradication, and supportive lifestyle measures. See below for complete details that could influence your next steps in managing your digestive health.

If you're experiencing persistent stomach pain, bloating, nausea, or indigestion, don't guess what's behind your symptoms. A free, instant, online symptom check from Ubie Health uses AI built with physicians to help you understand possible causes—including H. pylori—and guide your next steps. It takes only 3 minutes, requires no sign-up, and could save you time, worry, and unnecessary trips to the doctor. Your gut deserves clarity—start your check today.

Reviewed for medical accuracy: 06/18/2026

answer background

Explanation

H. pylori: The Stomach Bug Doctors Test for in Chronic Indigestion

Helicobacter pylori (H. pylori) is a common bacterium that can live in the stomach lining. While many people carry it without any issues, in some cases it leads to chronic indigestion, ulcers, or even more serious complications if left untreated. Understanding the symptoms, testing methods, and treatments can help you feel more in control of your digestive health.

What Is H. pylori?

  • H. pylori is a spiral-shaped bacterium found in the stomach.
  • It was first discovered in 1982 and is now known to be linked to gastritis (stomach inflammation) and peptic ulcers.
  • Infection often occurs in childhood and may persist for decades.

Common H. pylori Infection Symptoms

Not everyone with H. pylori has symptoms. When they do occur, they often overlap with general digestive issues, which is why testing is important. Typical symptoms include:

  • Persistent discomfort or burning in the upper abdomen (often described as indigestion)
  • Frequent burping and bloating
  • Early satiety (feeling full after eating a small amount)
  • Nausea or mild vomiting
  • Unexplained weight loss (more common in advanced cases)
  • Loss of appetite
  • Dark or tarry stools (a sign of bleeding ulcer)

If you experience several of these symptoms for more than two weeks, it may be worth checking for H. pylori.

Who Should Be Tested?

Doctors typically recommend testing when you have:

  • Chronic or recurrent indigestion unresponsive to over-the-counter remedies
  • A history of peptic ulcers or ulcers that keep coming back
  • Iron-deficiency anemia without an obvious cause
  • A family history of stomach cancer or ulcer disease
  • Symptoms that suggest internal bleeding (black stools or vomiting blood)

How Doctors Test for H. pylori

Several accurate, non-invasive and invasive tests are available. Your doctor will choose based on your symptoms, age, and medical history.

1. Urea Breath Test

  • You swallow a capsule or drink a solution containing a harmless, labeled substance.
  • If H. pylori is present, it breaks down the substance and releases carbon dioxide.
  • A breath sample is collected and analyzed for that labeled carbon dioxide, confirming infection.

Pros:

  • Quick (about 30 minutes)
  • Non-invasive

Cons:

  • Requires you to fast beforehand
  • Acid-blocking medications need to be paused days in advance

2. Stool Antigen Test

  • A small stool sample is collected at home or in a clinic.
  • The lab checks for H. pylori proteins (antigens).

Pros:

  • Non-invasive
  • Can confirm eradication after treatment

Cons:

  • Less convenient if collection kits aren't readily available
  • Accuracy slightly lower if you've taken antibiotics or proton pump inhibitors (PPIs) recently

3. Blood Antibody Test

  • Measures antibodies against H. pylori in your blood.
  • Simple blood draw in your doctor's office.

Pros:

  • Widely available
  • No fasting required

Cons:

  • Cannot distinguish between past and current infection
  • Not useful for confirming eradication

4. Endoscopy with Biopsy

  • A thin tube with a camera (endoscope) is passed through your mouth into the stomach.
  • Small tissue samples (biopsies) are taken for lab analysis.

Pros:

  • Direct visualization of ulcers or inflammation
  • Can test for other conditions at the same time

Cons:

  • Invasive, requires sedation
  • Higher cost and some recovery time

Treatment for H. pylori

Once an active H. pylori infection is confirmed, treatment focuses on eradicating the bacteria and healing the stomach lining.

Common Regimens

  1. Triple Therapy (7–14 days)

    • Two antibiotics (e.g., clarithromycin + amoxicillin or metronidazole)
    • Proton pump inhibitor (PPI) to reduce stomach acid
  2. Quadruple Therapy (10–14 days)

    • Two antibiotics (tetracycline + metronidazole)
    • Bismuth subsalicylate (protects stomach lining)
    • PPI
  3. Sequential or Concomitant Therapies

    • Staged antibiotic regimens to improve eradication rates
    • Often used in areas with high antibiotic resistance

Tips for Successful Treatment

  • Take every dose as prescribed—even if you start feeling better.
  • Avoid alcohol during antibiotic treatment.
  • Finish the full course of acid-blocking medication.
  • Test again (using breath or stool antigen) at least four weeks after finishing therapy to ensure eradication.

Managing Chronic Indigestion While Testing and Treating

Even before your test results come back, there are steps you can take to ease discomfort:

  • Eat smaller, more frequent meals.
  • Avoid spicy, fatty, or acidic foods that trigger burning.
  • Limit caffeine, alcohol, and tobacco.
  • Stay upright for at least two hours after eating.
  • Use over-the-counter antacids or H2 blockers only as directed by your doctor.

Prevention and General Tips

While it's not always possible to prevent H. pylori, you can reduce your risk of infection:

  • Wash hands thoroughly with soap and water, especially before eating and after using the restroom.
  • Drink water from safe, treated sources.
  • Avoid eating food prepared in unsanitary conditions.
  • Practice good kitchen hygiene to prevent cross-contamination.

When to Seek Immediate Care

Most H. pylori infections respond well to treatment. However, seek immediate medical attention if you experience:

  • Severe abdominal pain
  • Vomiting blood or material that looks like coffee grounds
  • Black, tarry stools
  • Unexplained, rapid weight loss
  • Difficulty swallowing or persistent vomiting

These could be signs of a bleeding ulcer or other serious complication.

Check Your Symptoms Online

If you're experiencing stomach discomfort and want to understand whether your symptoms align with H. pylori or another digestive condition, you can check your symptoms with a free AI-powered symptom checker to get personalized insights and help determine if you should schedule an appointment with your doctor.

Final Thoughts

H. pylori infection symptoms often mimic general indigestion, which can delay diagnosis. Testing is straightforward, and treatments are highly effective. If you suspect an H. pylori infection or have persistent stomach discomfort:

  • Talk with your doctor about appropriate testing.
  • Follow your treatment plan fully.
  • Re-test after therapy to confirm eradication.
  • Maintain healthy lifestyle habits to support digestion.

Always remember: if you experience any life-threatening or serious symptoms, please speak to a doctor or go to the nearest emergency department. Your health is worth prioritizing.

(References)

  • * Malfertheiner P, Megraud F, Rokkas T, et al. Management of Helicobacter pylori infection—the Maastricht VI/Florence Consensus Report. Gut. 2022 Sep;71(9):1721-1762. doi: 10.1136/gutjnl-2022-327399. PMID: 35728800.

  • * Hooi JKY, Lai WY, Ng WK, et al. Helicobacter pylori: current knowledge in diagnosis and management. World J Gastroenterol. 2020 Oct 7;26(37):5607-5621. doi: 10.3748/wjg.v26.i37.5607. PMID: 33149725.

  • * Luo X, Lin C, Zhang B. Helicobacter pylori infection and functional dyspepsia. World J Gastroenterol. 2021 May 28;27(20):2613-2623. doi: 10.3748/wjg.v27.i20.2613. PMID: 34168434.

  • * Mohammadi M, Ghasemi A, Bahramiyan H, et al. Diagnosis and Treatment of Helicobacter pylori Infection: An Update. Arch Iran Med. 2020 Nov 1;23(11):798-809. doi: 10.34172/aim.2020.103. PMID: 33261642.

  • * Ford AC, Talley NJ, Walker MM, et al. Long-term effect of Helicobacter pylori eradication on dyspeptic symptoms and health-related quality of life: A systematic review and meta-analysis. J Gastroenterol Hepatol. 2020 Oct;35(10):1694-1707. doi: 10.1111/jgh.15112. PMID: 32378775.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.