Menu

H. pylori and Peptic Ulcers: When Heartburn Is Not Just GERD
Dr. Michael Zimmer

Dr. Michael A. Zimmer

H. pylori and Peptic Ulcers: When Heartburn Is Not Just GERD

Medically reviewed by Michael A. Zimmer, MD, MACPBoard-Certified Internal Medicine, Medical Director
Post Summary

Helicobacter pylori causes most peptic ulcers and is a leading risk factor for stomach cancer. If your "reflux" is not responding to standard treatment, here is why your doctor may test for H. pylori — and what the treatment actually involves.

When Reflux Symptoms Do Not Add Up

You have been taking a proton pump inhibitor for months. The burning in your upper abdomen fades for a while, then comes back. You wake up at two in the morning feeling gnawing hunger-like pain, and antacids barely touch it. If this sounds familiar, your symptoms may not be ordinary gastroesophageal reflux disease at all. They may be pointing toward an infection that lives quietly in the stomach of nearly half the world's population: Helicobacter pylori.

At Zimmer Medical Group, we see patients every month whose stubborn dyspepsia turns out to be H. pylori related. Recognizing it — and treating it correctly the first time — can prevent years of unnecessary acid suppression and, more importantly, reduce the risk of gastric cancer.

What H. pylori Actually Is

H. pylori is a spiral-shaped, gram-negative bacterium that colonizes the stomach lining. It has adapted to survive the stomach's acidic environment by producing urease, an enzyme that neutralizes acid immediately around it. Global prevalence is estimated at around 40 percent, with higher rates in areas of crowded living conditions and limited early-life sanitation. Transmission is typically fecal-oral and usually happens in childhood, which means most people carrying the organism today acquired it decades ago without knowing.

Most infected people never develop symptoms. But a meaningful minority go on to develop chronic gastritis, duodenal ulcers, gastric ulcers, MALT lymphoma, or gastric adenocarcinoma. The CDC's overview of H. pylori underscores that the organism is responsible for the majority of peptic ulcer disease cases worldwide.

Who Should Be Tested

Not every person with heartburn needs an H. pylori test, but the indications are clearer than many patients realize. You should be tested if you have:

  • An active peptic ulcer or a documented history of one
  • MALT lymphoma
  • Uninvestigated dyspepsia, particularly if you are from a high-prevalence region
  • A long history of NSAID use combined with ulcer risk factors
  • Unexplained iron deficiency anemia
  • Immune thrombocytopenic purpura (ITP)
  • A first-degree relative with gastric cancer

If your chronic gastritis or reflux-like symptoms have not responded to appropriate acid suppression, testing is reasonable even if you do not meet one of the classic indications.

How We Test — and Why Preparation Matters

There are three practical ways to detect active infection: stool antigen testing, the urea breath test, and biopsy during upper endoscopy. Stool antigen and urea breath tests are the preferred non-invasive options because they confirm active infection, not just past exposure. Serology (blood antibody testing) remains positive long after eradication and is generally not useful for confirming current infection.

Preparation is where many patients and clinicians slip. Proton pump inhibitors like omeprazole and pantoprazole suppress the organism enough to produce false-negative results. You should be off a PPI for at least two weeks before testing, and off antibiotics and bismuth for four weeks. The NIDDK's patient resource on H. pylori and peptic ulcers reinforces the need to stop acid-suppressing medications before breath and stool testing.

What Treatment Actually Involves

Treatment has become more complex over the last decade because clarithromycin resistance has risen sharply. In 2026, first-line regimens in most of the United States are:

  • Bismuth quadruple therapy for 14 days: a PPI, bismuth subsalicylate, metronidazole, and tetracycline. This is now preferred in many regions because of resistance patterns.
  • Clarithromycin triple therapy for 14 days: a PPI, amoxicillin, and clarithromycin. This remains reasonable where local clarithromycin resistance is low and you have no prior macrolide exposure.

Whichever regimen you receive, finishing the full 14 days is essential. Stopping early is the single most common reason eradication fails.

Confirming the Infection Is Gone

You are not done when the pills run out. Eradication should be confirmed at least four weeks after completing antibiotics, and with PPIs held for two weeks before the confirmation test. A repeat stool antigen or urea breath test is the standard. If the first regimen fails, the second attempt should use different antibiotics — repeating the same regimen is rarely successful.

When to involve a gastroenterologist: persistent symptoms after two treatment attempts, alarm features such as unintended weight loss, iron deficiency anemia, dysphagia, new symptoms after age 60, or any suspicion of a bleeding ulcer. Distinguishing ulcer pain from cardiac symptoms also matters — our guide to GERD vs. heart attack walks through the key differences.

What Treatment Feels Like, and What to Watch For

Two weeks of four medications is a real commitment, and knowing what is normal keeps people from quitting on day five.

Expected side effects of the regimens

Bismuth turns stool and sometimes the tongue black; that is harmless and clears within days of finishing. Metronidazole leaves a metallic taste and must not be mixed with alcohol, including the beer at the end of a boat day, because the combination causes flushing, vomiting, and a pounding headache. Tetracycline and doxycycline make sun-exposed skin burn fast, which on our beaches means sunscreen, a hat, and shade for the whole course. Nausea and loose stools are common with all of these. NIDDK's guide to peptic ulcers covers the medications in more detail. Call rather than stop if a side effect is intolerable; sometimes a timing change or an anti-nausea medication rescues the course.

The other half of ulcer prevention

H. pylori and anti-inflammatory drugs are the two big causes of ulcers, and they multiply each other. Daily ibuprofen or naproxen for arthritis, or low-dose aspirin for the heart, needs a conversation before, during, and after eradication. Some people need to keep the aspirin and add stomach protection; others can switch pain control entirely. Long-term acid suppression has its own trade-offs, which our article on long-term PPI use covers, so once the infection is gone we try to bring the PPI down rather than leave it running by default.

Bleeding, anemia, and the cancer question

Slow bleeding from an ulcer usually shows up as unexplained iron deficiency anemia rather than visible blood, which is why iron studies are part of the workup. Bismuth makes stool black too, so the tell for bleeding is the sticky, foul, tar-like quality along with dizziness or a racing pulse. Black tarry stools, vomiting blood or material that looks like coffee grounds, sudden severe upper abdominal pain, or feeling faint are emergency signs and mean the ER, not a portal message. On cancer: the National Cancer Institute classifies H. pylori as a cause of stomach cancer, and eradication lowers that risk. It does not erase it in people who already have precancerous changes, which is why anyone with those findings on endoscopy stays under gastroenterology surveillance.

The Bigger Picture

H. pylori is one of the few chronic infections we can genuinely cure, and curing it often resolves symptoms that have been misattributed to reflux for years. It also meaningfully lowers the long-term risk of gastric cancer. If your heartburn keeps coming back despite appropriate treatment, that deserves a real workup — not another refill.

If you have been cycling through acid reducers with no lasting relief, schedule a visit with Dr. Zimmer. We will take a careful history, test appropriately, and if H. pylori is the culprit, we will treat it thoroughly the first time.

Frequently Asked Questions

Wait at least four weeks after the last antibiotic dose, and stop any proton pump inhibitor for two weeks before the test, or the result can be falsely negative. A stool antigen test or urea breath test is used; a blood antibody test is not, because it stays positive for years after the infection is gone. If the test is still positive, the next regimen uses different antibiotics rather than repeating the first one.
Not automatically. Most transmission happens in childhood within households, so adult partners often already share the same status, but routine testing of symptom-free family members is not standard practice in the United States. I do test household members who have their own dyspepsia, a history of ulcers, unexplained iron deficiency, or a first-degree relative with stomach cancer. Reinfection of a treated adult from a partner is uncommon.
No. Metronidazole, which is part of bismuth quadruple therapy, reacts with alcohol to cause flushing, nausea, vomiting, and a severe headache, and the reaction can occur with even a small amount. Avoid alcohol for the full two weeks and for a few days after the last dose. The other components do not have that reaction, but alcohol also irritates an ulcer, so the course is a reasonable time to skip it entirely.
Bismuth subsalicylate, one of the four medications in the standard regimen, reacts with sulfur in the gut and turns stool dark or black. It can also darken the tongue. This is harmless and resolves within a few days of finishing the course. The bleeding you need to worry about looks different: sticky, tar-like, foul-smelling stool, often with dizziness, weakness, or a fast heartbeat. That combination is an emergency and should be seen the same day.