Doctors Note Logo

Published on: 6/15/2026

H. pylori: How a Stomach Bacteria Causes Ulcers, and What Gastroenterologists Prescribe to Eradicate It

What is H. pylori and how is it treated?

H. pylori (Helicobacter pylori) is a spiral-shaped bacterium that colonizes the stomach lining by neutralizing stomach acid, causing inflammation that erodes the protective mucus barrier and leads to peptic ulcers. Standard treatment involves combination therapy prescribed by a gastroenterologist: a proton pump inhibitor (PPI) paired with two or more antibiotics, delivered as triple or quadruple regimens tailored to local antibiotic resistance patterns and individual patient factors.

Key considerations for H. pylori treatment include:

  • Diagnostic methods (breath test, stool antigen, endoscopy)
  • Antibiotic resistance patterns
  • Side effect management
  • Lifestyle modifications
  • Follow-up testing to confirm eradication

Because H. pylori symptoms—burning stomach pain, bloating, nausea, and indigestion—overlap with many other digestive conditions, self-diagnosis is unreliable and delaying care can allow ulcers to worsen. The fastest way to clarify whether your symptoms point to H. pylori or something else is to take a free, instant, online symptom check, which can help you understand your condition and decide on the right next steps.

Reviewed for medical accuracy: 06/15/2026

answer background

Explanation

H. pylori Infection: How a Stomach Bacteria Causes Ulcers and How Gastroenterologists Eradicate It

Helicobacter pylori (H. pylori) is a spiral-shaped bacterium that lives in the stomach lining of about half the world's population. While many people carry it without issues, H. pylori infection can lead to chronic inflammation (gastritis) and peptic ulcers—open sores in the stomach or upper small intestine.

This guide explains:

  • How H. pylori causes damage
  • Common symptoms and diagnosis
  • Standard treatments prescribed by gastroenterologists
  • Lifestyle tips to support healing

How H. pylori Causes Ulcers

  1. Colonization of the stomach lining
    H. pylori has a unique corkscrew shape and produces an enzyme called urease. Urease breaks down urea (naturally present in your stomach) into ammonia and carbon dioxide. Ammonia neutralizes stomach acid around the bacteria, creating a small, less acidic bubble where H. pylori can survive.

  2. Mucosal damage
    While H. pylori itself isn't directly corrosive, its presence triggers your immune system. Inflammation attempts to clear the infection but also damages the protective mucus layer that coats the stomach lining.

  3. Acid exposure
    Once the mucus barrier is weakened, stomach acid and digestive enzymes can erode the underlying tissue, forming an ulcer. Over time, these ulcers can cause bleeding, pain, and complications if left untreated.

Symptoms Suggestive of H. pylori Infection

Many people with H. pylori have no symptoms. When symptoms occur, they often include:

  • Dull or burning stomach pain
  • Bloating and early fullness after meals
  • Nausea or occasional vomiting
  • Belching, acid reflux or heartburn
  • Unintentional weight loss

If you're experiencing any combination of these symptoms and want to understand whether they could be related to H. pylori or another condition, you can use a Medically approved LLM Symptom Checker Chat Bot to get personalized guidance on your next steps before scheduling a doctor's appointment.

Diagnosing H. pylori Infection

Gastroenterologists use several reliable tests:

  • Urea breath test
    You swallow a capsule or liquid containing a harmless carbon-labeled substance. H. pylori breaks it down, releasing labeled carbon dioxide you exhale. Specialized equipment measures the label to confirm infection.

  • Stool antigen test
    This checks for H. pylori proteins (antigens) in a stool sample. It's noninvasive, accurate, and useful both before and after treatment to confirm eradication.

  • Blood antibody test
    Detects antibodies against H. pylori. It can indicate past or present infection, but antibodies may remain positive for months after successful treatment, so it's less reliable for confirming cure.

  • Endoscopy with biopsy
    A small camera (endoscope) is passed into your stomach to look for ulcers or inflammation. A tiny tissue sample (biopsy) is then tested for H. pylori, either by special staining, rapid urease test, or culture. Reserved for people with alarming symptoms (e.g., severe pain, bleeding, weight loss, or difficulty swallowing).

Standard Treatment Regimens

Because H. pylori infection can lead to serious complications if not treated, gastroenterologists typically prescribe combination therapy. This approach increases the chance of eradication and reduces antibiotic resistance.

1. Triple Therapy (First-line in many regions)

  • Proton pump inhibitor (PPI)
    Medications like omeprazole, lansoprazole, or esomeprazole reduce acid production, helping antibiotics work better and allowing ulcers to heal.

  • Clarithromycin
    An antibiotic that inhibits bacterial protein synthesis.

  • Amoxicillin (or metronidazole if you're allergic to penicillin)
    Amoxicillin disrupts bacterial cell walls; metronidazole interferes with bacterial DNA.

Duration: 10–14 days

Success rates vary (70–85%) depending on local antibiotic resistance. If clarithromycin resistance is known to be high in your area, other regimens are preferred.

2. Bismuth Quadruple Therapy

Used when initial therapy fails or if clarithromycin resistance exceeds 15–20%. It combines four medications:

  • Bismuth subsalicylate (Pepto-Bismol–type)
    Coats the ulcer and has mild antibacterial effects.

  • PPI (as above)

  • Tetracycline
    A broad-spectrum antibiotic.

  • Metronidazole

Duration: 10–14 days

Quadruple therapy often reaches eradication rates above 85–90%.

3. Concomitant Therapy

A non-bismuth alternative with four drugs given simultaneously:

  • PPI
  • Clarithromycin
  • Amoxicillin
  • Metronidazole

Duration: 10–14 days

Similar success rates to quadruple therapy, but drug availability and patient tolerance vary.

4. Salvage (Rescue) Therapy

If both first- and second-line treatments fail, doctors may use:

  • Levofloxacin-based triple therapy
  • Rifabutin-containing regimens

These rely on antibiotics used less frequently for H. pylori, helping overcome resistance.

Tips for Treatment Success

  • Take all medications exactly as prescribed.
  • Avoid missing doses—completing the full course is key.
  • Inform your doctor about all other medications and supplements you're taking.
  • Report side effects (nausea, diarrhea, taste changes) promptly; adjustments can often be made.

Lifestyle Measures to Support Healing

While antibiotics and acid blockers are essential, simple habits can help you feel better:

  • Eat smaller, more frequent meals.
  • Avoid spicy or acidic foods if they trigger discomfort.
  • Limit caffeine, alcohol, and smoking, which can irritate your stomach lining.
  • Manage stress through relaxation techniques—stress doesn't cause ulcers but can worsen symptoms.
  • Stay hydrated; water helps dilute stomach acid and supports healing.

After Treatment: Confirming Eradication

At least four weeks after finishing therapy, your doctor may recommend a follow-up test—usually a urea breath test or stool antigen test—to confirm the bacteria are gone. If the test is positive, a different regimen will be prescribed.

When to Seek Immediate Medical Attention

Although H. pylori often causes mild symptoms, serious complications can occur if ulcers deepen or bleed. Contact a healthcare provider right away if you experience:

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

If you're noticing persistent digestive symptoms but aren't sure whether they require urgent care, try using a Medically approved LLM Symptom Checker Chat Bot to help determine the appropriate level of medical attention for your situation.

Final Thoughts

H. pylori infection is common but treatable. Early diagnosis and the right combination of medications can eradicate the bacteria, heal ulcers, and prevent complications. Don't hesitate to discuss any worrying symptoms with your healthcare provider.

If you suspect H. pylori infection or have persistent stomach pain, speak to a doctor—especially for anything that could be life threatening or serious. A tailored treatment plan and follow-up testing will give you the best chance for a full recovery.

(References)

  • * Malfertheiner P, Megraud F, O'Morain C, et al. Helicobacter pylori Infection and Gastroduodenal Diseases: Pathophysiology and Clinical Updates. *Gastroenterol Res Pract*. 2021;2021:6654944. Published 2021 May 29. doi:10.1155/2021/6654944

  • * Malfertheiner P, Megraud F, Rokkas T, et al. Management of Helicobacter pylori infection - the Maastricht VI/Florence Consensus Report. *Gut*. 2022;71(9):1756-1782. doi:10.1136/gutjnl-2022-327794

  • * Salama A, Hassanien S, Sayed S, et al. Helicobacter pylori and gastrointestinal diseases: From aetiology to treatment. *Helicobacter*. 2023;28(2):e12959. doi:10.1111/hel.12959

  • * Su H, Chen Y, Wang M, et al. Helicobacter pylori: current knowledge of its role in gastric carcinogenesis and other gastrointestinal diseases. *Front Cell Dev Biol*. 2023;11:1159850. Published 2023 Apr 19. doi:10.3389/fcell.2023.1159850

  • * Shah SC, Zakeri N. Helicobacter pylori infection: current challenges in diagnosis and treatment. *Curr Opin Gastroenterol*. 2024;40(1):15-22. doi:10.1097/MOG.0000000000000994

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.