PHAR-342 · Lesson 7 of 12 · 21 min

Helicobacter pylori eradication and NSAID-associated ulcers

▶ Video coming soon A video version of this lesson is on the way.

In September 2026, a hypothetical 58-year-old bookkeeper named Haruto Valdivia-Mbeki brings a prescription to Larchmere Community Pharmacy for a 14-day regimen of omeprazole, bismuth subsalicylate, tetracycline and metronidazole. He had a duodenal ulcer found on endoscopy after weeks of epigastric pain, and biopsies were positive for Helicobacter pylori. He also takes naproxen most days for knee osteoarthritis and low-dose aspirin that he started himself after reading about heart health. He is worried about "all these pills" and asks if he can skip the tetracycline because he heard it upsets the stomach. This lesson covers how to test for and eradicate H. pylori and how to prevent ulcers caused by NSAIDs and aspirin, the two leading causes of peptic ulcer disease.

Helicobacter pylori

H. pylori is a spiral, flagellated gram-negative bacterium that colonizes the gastric mucosa. It survives acid by producing urease, which converts urea to ammonia and buffers its surroundings. Infection is usually acquired in childhood and persists for life unless treated. It causes chronic gastritis in everyone infected and, in a minority, duodenal and gastric ulcers, gastric adenocarcinoma and mucosa-associated lymphoid tissue (MALT) lymphoma. It is classified as a human carcinogen. It is also linked with iron deficiency anemia and immune thrombocytopenia.

Prevalence has fallen in Canada and the United States but remains high among older adults, people who immigrated from regions with high prevalence, and some Indigenous communities. Community-driven research in northern Canada, including Arctic communities in the Northwest Territories and Yukon, and among Alaska Native people in the United States, has documented high rates of infection and of antibiotic resistance, as well as community concern about stomach cancer. These programs show the value of partnerships in which communities lead decisions about testing and treatment.

Who should be tested

If testing is done, treatment should follow. Current guidance supports testing people with:

  • Active or past peptic ulcer disease, unless cure was documented.
  • Uninvestigated dyspepsia without alarm features (the "test-and-treat" strategy, used in younger people in both countries).
  • Gastric MALT lymphoma, or after resection of early gastric cancer.
  • A family history of gastric cancer, or origin in a high-incidence region.
  • Unexplained iron deficiency anemia or immune thrombocytopenia.
  • People starting long-term NSAIDs or low-dose aspirin who have a history of ulcers.

Testing and the pharmacist's role

Non-invasive tests for active infection are the urea breath test and the stool antigen test; endoscopic biopsies are used when endoscopy is done. Serology shows past exposure and cannot confirm current infection or cure. PPIs, bismuth and antibiotics suppress the bacteria and cause false-negative results, so PPIs should be stopped about two weeks before breath or stool testing, and antibiotics and bismuth about four weeks before. H2 receptor antagonists and antacids can be used for symptom control during this window. Pharmacists often catch the problem of a person still taking a PPI on the morning of a breath test.

Choosing an eradication regimen

Eradication rates have fallen worldwide because of antibiotic resistance, especially to clarithromycin, metronidazole and levofloxacin. Resistance to amoxicillin, tetracycline and rifabutin remains low. Two principles now dominate guidance: avoid clarithromycin-based triple therapy unless the strain is known to be susceptible, and treat for 14 days.

Canada: the Toronto Consensus

The Toronto Consensus for the treatment of H. pylori infection in adults, published in 2016 with the Canadian Association of Gastroenterology, recommends 14 days for all regimens. It restricts PPI-clarithromycin triple therapy to areas with documented low clarithromycin resistance or high proven eradication rates, which in practice means it is rarely chosen. It recommends bismuth quadruple therapy (PPI, bismuth, metronidazole and tetracycline) or non-bismuth concomitant quadruple therapy (PPI, amoxicillin, metronidazole and clarithromycin) as first-line options, with levofloxacin-containing regimens and rifabutin regimens reserved for rescue therapy.

United States: the ACG 2024 guideline

The ACG clinical guideline on treatment of H. pylori infection, published in 2024, recommends:

  • Optimized bismuth quadruple therapy for 14 days as the preferred regimen for treatment-naive people when antibiotic susceptibility is unknown, and the recommended regimen for people with penicillin allergy.
  • Rifabutin triple therapy (a combination capsule containing omeprazole, amoxicillin and rifabutin) or vonoprazan-amoxicillin dual therapy as empirical alternatives for people without penicillin allergy.
  • No routine use of clarithromycin triple therapy without susceptibility testing; a vonoprazan-clarithromycin triple regimen is suggested over PPI-clarithromycin triple therapy, but only when the strain is known to be susceptible.
  • Confirmation of eradication in everyone, at least four weeks after treatment ends, using a urea breath test, stool antigen test or biopsy.
  • Salvage therapy chosen according to previous regimens: optimized bismuth quadruple therapy if not already used, rifabutin triple therapy after bismuth quadruple failure, and levofloxacin-based therapy only with confirmed susceptibility.
  • Formal penicillin allergy evaluation where appropriate, since most reported penicillin allergies are not true allergies and removing an incorrect allergy label widens options.

The ACG also noted recurring shortages of tetracycline and advised against substituting doxycycline, which has lower efficacy in these regimens.

A flowchart of H. pylori treatment. Confirm active infection by breath test, stool antigen or biopsy, after stopping PPI for 2 weeks and antibiotics or bismuth for 4 weeks. Treatment-naive and susceptibility unknown: bismuth quadruple therapy for 14 days preferred; alternatives without penicillin allergy are rifabutin triple or vonoprazan-amoxicillin dual where available. Clarithromycin triple only if the strain is known to be susceptible. Test of cure at least 4 weeks after treatment and 2 weeks off PPI. If persistent: bismuth quadruple if not used; rifabutin triple after bismuth failure; levofloxacin regimen only if susceptible; consider susceptibility testing and penicillin allergy evaluation.
Figure 1. A simplified H. pylori treatment pathway drawing on the ACG 2024 guideline and the Toronto Consensus. Regimen availability differs between Canada and the United States.

Regimen components, adverse effects and counseling

Each drug has a role and a set of counseling points:

  • PPI or P-CAB raises gastric pH, which increases the activity and stability of amoxicillin and clarithromycin and helps heal the ulcer. Higher, twice-daily PPI doses improve eradication. Vonoprazan gives more potent acid suppression and is used in US regimens; it is not marketed in Canada at the time of writing.
  • Bismuth has direct antibacterial effects. It turns the tongue and stools black, which is harmless but can be mistaken for bleeding. Bismuth subsalicylate contains salicylate, which matters for people with salicylate allergy, those taking anticoagulants, and the risk of salicylate toxicity with high doses.
  • Tetracycline is chelated by calcium, magnesium, aluminum and iron, so it is taken apart from dairy products, antacids and supplements. It can cause photosensitivity and esophageal irritation and is avoided in pregnancy.
  • Metronidazole causes a metallic taste, nausea and, rarely, peripheral neuropathy with prolonged use. Avoiding alcohol during treatment and for a few days afterward is traditionally advised. It increases the effect of warfarin.
  • Amoxicillin can cause diarrhea and rash; a true penicillin allergy excludes it.
  • Clarithromycin inhibits CYP3A4 and P-glycoprotein, interacting with simvastatin, lovastatin, some calcium channel blockers, colchicine and direct oral anticoagulants, and can prolong the QT interval.
  • Rifabutin colors body fluids orange, can cause neutropenia, and induces CYP3A4, reducing the effect of hormonal contraceptives and many other drugs.
  • Any regimen may cause diarrhea, and rarely Clostridioides difficile infection (Lesson 11).

Adherence is the most important factor under the person's control, and these regimens are complex. Blister packs, combination capsules, written schedules and phone follow-up at a few days all help. For Mr. Valdivia-Mbeki, the pharmacist explains that tetracycline is a key part of the regimen, that taking it with a full glass of water and staying upright helps, and that black stools are expected from bismuth. She asks him to stop taking his self-started aspirin until he has spoken with his physician, because he has no clear cardiovascular indication and he now has an ulcer.

Worked problem

Counting units in a four-drug regimen

A hypothetical 14-day regimen contains Drug V one capsule twice daily, Drug W two tablets four times daily, Drug X one tablet four times daily and Drug Y one tablet three times daily. How many units of each are needed, and how many are taken each day?

Show solution
  1. Drug V: 1 × 2 × 14 = 28 capsules.
  2. Drug W: 2 × 4 × 14 = 112 tablets.
  3. Drug X: 1 × 4 × 14 = 56 tablets.
  4. Drug Y: 1 × 3 × 14 = 42 tablets.
  5. Units a day = 2 + 8 + 4 + 3 = 17; total = 238 units over 14 days.
  6. Counseling implication: a written schedule aligned with meals and bedtime, or a blister pack, improves adherence.

Answer: 28, 112, 56 and 42 units respectively; 17 units a day and 238 in total, which explains why adherence support matters.

Why treatment fails

About one in five to one in ten people still have H. pylori after a first course, depending on regimen and local resistance. The main reasons are antibiotic resistance, poor adherence, insufficient acid suppression and short duration. Previous exposure to an antibiotic for any reason, such as a macrolide for a chest infection or metronidazole for a dental or gynecological infection, predicts resistance to that drug, so a careful antibiotic history is part of choosing a regimen. Repeating a regimen that has already failed, especially one containing clarithromycin or levofloxacin, is unlikely to work.

Antibiotic susceptibility testing has become more practical. Culture of gastric biopsies has long been possible but is slow and not widely available. Molecular tests that detect resistance mutations to clarithromycin and levofloxacin in biopsies, and increasingly in stool, are now offered by some laboratories in the United States and in parts of Canada. The ACG suggests susceptibility-guided therapy when it would change management, such as after a failed course, while acknowledging that its benefit over well-chosen empirical therapy as a first-line strategy is not fully defined.

Adjuncts and things that do not help

Probiotics have been studied as adjuncts to reduce antibiotic adverse effects, with inconsistent results; they are not part of guideline regimens, and the decision rests on the person's preference and cost. Higher PPI doses and twice-daily dosing improve outcomes; once-daily standard doses are suboptimal in eradication regimens. Food-based remedies such as cranberry, broccoli sprouts or mastic gum are not substitutes for antibiotics. Treating household members without testing is not recommended, although testing family members who have symptoms or other indications is reasonable.

Dyspepsia and gastric cancer prevention

Dyspepsia means predominant epigastric pain or burning, early satiety or postprandial fullness. For younger adults without alarm features, a test-and-treat strategy for H. pylori is used, followed by a PPI trial if symptoms persist or the test is negative. Persisting symptoms after both steps often reflect functional dyspepsia, which may respond to low-dose tricyclic antidepressants or prokinetic strategies under medical supervision. Eradicating H. pylori lowers the risk of gastric cancer, which is why some high-incidence countries screen and treat whole populations, and why people with a family history of gastric cancer or origin in high-incidence regions are tested in Canada and the United States.

NSAID- and ASA-associated ulcers

NSAIDs inhibit cyclooxygenase-1 in the gastric mucosa, reducing protective prostaglandins, and also cause direct topical injury. Low-dose aspirin irreversibly inhibits COX-1 and platelets, increasing the risk of ulcers and bleeding even at cardioprotective doses. Many NSAID ulcers are painless until they bleed. Risk is multiplicative, rising with:

  • A history of peptic ulcer, especially a complicated (bleeding or perforated) ulcer, which is the strongest risk factor.
  • Age over about 65.
  • High NSAID doses, multiple NSAIDs, or NSAIDs combined with low-dose aspirin.
  • Concurrent anticoagulants, antiplatelet drugs, corticosteroids or SSRIs.
  • H. pylori infection and serious comorbid illness.

Prevention strategies

  • Avoid or minimize. Use acetaminophen, topical NSAIDs for knee and hand osteoarthritis, exercise and weight loss first; if an oral NSAID is necessary, use the lowest effective dose for the shortest time.
  • Test and treat H. pylori in people with an ulcer history before starting long-term NSAIDs or aspirin.
  • COX-2 selective inhibitors such as celecoxib cause fewer ulcers than nonselective NSAIDs. The protective effect is lost when combined with aspirin.
  • PPI co-therapy reduces NSAID and low-dose aspirin ulcers and is the most common strategy. H2 receptor antagonists at standard doses do not protect adequately against gastric ulcers.
  • Misoprostol, a prostaglandin E1 analog, reduces ulcer complications but causes diarrhea and cramps, and it is contraindicated in pregnancy because it can cause miscarriage.
  • Highest-risk people, such as those with a previous ulcer bleed who must take an anti-inflammatory, are best served by a COX-2 inhibitor plus a PPI, or by avoiding NSAIDs altogether.

Cardiovascular risk must be weighed alongside GI risk. All NSAIDs except low-dose aspirin increase the risk of myocardial infarction, stroke, heart failure and kidney injury and raise blood pressure. The PRECISION trial found moderate-dose celecoxib noninferior to naproxen and ibuprofen for cardiovascular safety, with fewer GI events. Naproxen interferes with the antiplatelet effect of aspirin if taken before it, as does ibuprofen.

Antiplatelet therapy and gastroprotection

People taking dual antiplatelet therapy, or an antiplatelet with an anticoagulant, are at high risk of GI bleeding, and cardiology guidelines in both countries recommend a PPI for those with GI risk factors. Pharmacotherapy I: Cardiovascular (PHAR-241) discusses antithrombotic choices. When a PPI is needed with clopidogrel, pantoprazole is often chosen to limit the CYP2C19 interaction described in Lesson 6.

Bringing it together for Mr. Valdivia-Mbeki

After discussion with his physician, the plan is to complete 14 days of bismuth quadruple therapy, continue the PPI for a total of eight weeks to heal the ulcer, stop naproxen and switch to acetaminophen and a topical NSAID for his knees, stop the self-started aspirin, and arrange a urea breath test at least four weeks after antibiotics end and two weeks after stopping the PPI. The pharmacist documents the counseling and schedules a call on day four to check adherence and adverse effects.

Common mistakes

  • MistakeUsing clarithromycin triple therapy empirically for 7 days.

    InsteadClarithromycin resistance is common; use 14-day bismuth quadruple or other recommended regimens.

  • MistakeDoing a breath test while the person is still taking a PPI.

    InsteadStop PPIs about two weeks and antibiotics or bismuth about four weeks before testing.

  • MistakeSkipping the test of cure.

    InsteadConfirm eradication at least four weeks after treatment ends.

  • MistakeSubstituting doxycycline for tetracycline in bismuth quadruple therapy.

    InsteadDoxycycline is less effective; seek tetracycline or choose another recommended regimen.

  • MistakeRelying on standard-dose H2 antagonists for NSAID gastroprotection.

    InsteadUse a PPI, misoprostol or a COX-2 inhibitor strategy according to risk.

Summary and key terms

  • H. pylori causes peptic ulcers, gastric cancer and MALT lymphoma; if testing is done, treatment should follow.
  • Use urea breath, stool antigen or biopsy tests for active infection; stop PPIs two weeks and antibiotics or bismuth four weeks before testing.
  • Avoid empirical clarithromycin triple therapy; 14-day bismuth quadruple therapy is preferred when susceptibility is unknown (ACG 2024; Toronto Consensus).
  • Rifabutin triple and vonoprazan-amoxicillin dual therapy are ACG alternatives without penicillin allergy; confirm cure in everyone.
  • NSAID ulcer risk rises with ulcer history, age, high doses, anticoagulants, antiplatelets, corticosteroids and SSRIs.
  • Prevent NSAID ulcers by avoiding NSAIDs, eradicating H. pylori, and using PPI co-therapy, misoprostol or a COX-2 inhibitor; combine COX-2 and PPI for the highest risk.
Urease
An H. pylori enzyme that converts urea to ammonia, the basis of the urea breath test.
Bismuth quadruple therapy
PPI, bismuth, metronidazole and tetracycline, usually for 14 days.
Test of cure
Testing for H. pylori at least four weeks after treatment to confirm eradication.
Concomitant therapy
A non-bismuth quadruple regimen of PPI, amoxicillin, metronidazole and clarithromycin.
Gastroprotection
Strategies such as PPIs or misoprostol that reduce NSAID or antiplatelet ulcer risk.
COX-2 selective inhibitor
An NSAID that spares COX-1, reducing GI injury, such as celecoxib.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Why is serology not used to confirm H. pylori cure?

    Show answer

    Antibodies persist after eradication.

  2. How long should PPIs be stopped before a urea breath test?

    Show answer

    About two weeks.

  3. Which regimen does the ACG recommend for people with penicillin allergy?

    Show answer

    Optimized bismuth quadruple therapy.

  4. Which drug in H. pylori regimens colors body fluids orange?

    Show answer

    Rifabutin.

  5. Why is misoprostol contraindicated in pregnancy?

    Show answer

    It can cause uterine contractions and miscarriage.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz