ConditionDigestive system
Helicobacter Pylori Infection: Testing and Treatment
Helicobacter pylori infection is diagnosed with a urea breath test, a stool antigen test or a stomach biopsy, and treated with a combination of antibiotics plus a strong acid-reducing medicine, usually for 14 days. The most widely recommended first treatment in the US is bismuth quadruple therapy. Because antibiotic resistance is common, everyone should have a repeat test at least 4 weeks after finishing treatment to confirm the bacteria are gone. If the first treatment fails, a different combination is used.
Also called: H. pylori infection, H. pylori eradication therapy, H. pylori treatment, Helicobacter pylori
At a glance
- Best tests for active infection
- Urea breath test, stool antigen test, or biopsy during endoscopy.
- Blood antibody tests
- Not recommended, because they stay positive after cure.
- First-line treatment (US)
- Bismuth quadruple therapy for 14 days; vonoprazan-based regimens are an alternative.
- Confirm cure
- Retest at least 4 weeks after antibiotics and 2 weeks after stopping PPIs.
- Success rate
- Most people are cured with the first course when taken correctly.
When to get help
Call 911 or go to the ER
- Vomiting blood, black tarry stools, or fainting during or after treatment
- Signs of a severe allergic reaction to an antibiotic: swelling of the face or throat, trouble breathing or a widespread rash with blisters
See a doctor within a day or two
- Severe or bloody diarrhea, fever or belly cramps during or after antibiotics (possible C. difficile infection)
- Vomiting that stops you taking your medicines
Book a routine appointment
- Side effects making it hard to finish the course; call before stopping
- Symptoms that persist after treatment
- A positive follow-up test after treatment
Testing for H. pylori
| Test | How it works | Notes |
|---|---|---|
| Urea breath test | You drink a solution with labeled urea; if H. pylori is present, its urease releases labeled carbon dioxide in your breath | Accurate; used for diagnosis and confirming cure |
| Stool antigen test | Detects H. pylori proteins in a stool sample | Accurate; convenient; used for diagnosis and confirming cure |
| Endoscopy with biopsy | Tissue samples tested by rapid urease test, microscopy, culture or molecular testing | Used when endoscopy is needed anyway; allows antibiotic resistance testing |
| Blood antibody (serology) | Detects antibodies | Not recommended: cannot tell current from past infection |
Preparing for a breath or stool test
To avoid false-negative results:
- stop proton pump inhibitors (such as omeprazole) for 2 weeks before testing, if your doctor agrees; H2 blockers or antacids can be used instead
- stop antibiotics and bismuth (Pepto-Bismol) for 4 weeks before testing
Treatment regimens
Treatment always combines acid suppression with two or more antibiotics, because single antibiotics fail. Choice depends on local resistance, previous antibiotic use (especially clarithromycin or metronidazole), allergies and any susceptibility testing.
| Regimen | Components | Duration | Notes |
|---|---|---|---|
| Bismuth quadruple therapy | PPI, bismuth, tetracycline, metronidazole | 14 days | Preferred first-line in the US when resistance is unknown; works even with clarithromycin resistance |
| Vonoprazan dual therapy | Vonoprazan, amoxicillin | 14 days | Option for people without penicillin allergy |
| Vonoprazan triple therapy | Vonoprazan, amoxicillin, clarithromycin | 14 days | Only when clarithromycin susceptibility is known or likely |
| Clarithromycin triple therapy | PPI, amoxicillin, clarithromycin | 14 days | No longer recommended without susceptibility testing because of high resistance |
| Rifabutin triple therapy | PPI, amoxicillin, rifabutin | 14 days | Mainly after failed treatment |
Your doctor will prescribe exact doses. Do not substitute or skip components.
Tips for success
- Take every dose for the full 14 days, even if you feel better. Missing doses is a major cause of failure.
- Set phone reminders; some regimens involve many pills several times a day.
- Take PPIs 30 to 60 minutes before meals.
- Avoid alcohol during and for 3 days after metronidazole, which can cause a severe reaction.
- Tell your doctor about other medicines; clarithromycin interacts with many drugs, including some statins and blood thinners.
Common side effects
- metallic or bitter taste (metronidazole, clarithromycin)
- nausea, stomach upset and diarrhea (antibiotic-associated diarrhea)
- dark or black stools and a dark tongue from bismuth (harmless; different from the sticky black stools of bleeding)
- yeast infections
- sensitivity to sunlight (tetracycline)
Probiotics may reduce side effects such as diarrhea in some people, but they do not replace antibiotics.
Confirming the cure
A test of cure is recommended for everyone treated:
- at least 4 weeks after finishing antibiotics
- at least 2 weeks after stopping PPIs
- using a urea breath test, stool antigen test or biopsy (not a blood test)
If treatment fails
If the follow-up test is still positive:
- A different regimen is chosen, avoiding antibiotics already used where possible (particularly clarithromycin and levofloxacin).
- Bismuth quadruple therapy or rifabutin-based therapy are common second-line options.
- Endoscopy with culture or molecular resistance testing may guide treatment after two failures.
- Penicillin allergy testing can open up amoxicillin-based options for people with a reported allergy.
After successful treatment
- Peptic ulcers heal and recurrence becomes much less likely.
- Stomach cancer risk falls, particularly when treated before precancerous changes.
- Reinfection is uncommon in adults in the US, though more common in regions with high prevalence.
- Some people still have indigestion after cure, which may be functional dyspepsia.
For background on how H. pylori spreads, its symptoms and complications, see H. pylori infection overview.
Frequently asked questions
What is the best test for H. pylori?
The urea breath test and stool antigen test are the best non-invasive tests for active infection. During an endoscopy, biopsies can be tested. Blood antibody tests are not recommended, because they can stay positive long after the infection is gone.
What is the treatment for H. pylori?
Treatment combines an acid-reducing medicine with two or more antibiotics, usually for 14 days. In the US, bismuth quadruple therapy (PPI, bismuth, tetracycline and metronidazole) is a preferred first choice. Vonoprazan with amoxicillin is an alternative.
How long after H. pylori treatment should I retest?
Retest at least 4 weeks after finishing antibiotics and at least 2 weeks after stopping proton pump inhibitors. Use a breath test, stool antigen test or biopsy. Testing too early can give a falsely negative result.
What if H. pylori treatment does not work?
Your doctor will choose a different antibiotic combination, avoiding the ones already used. Common second-line options include bismuth quadruple therapy or rifabutin-based therapy. After repeated failures, an endoscopy with antibiotic resistance testing helps choose treatment.
Can I drink alcohol while being treated for H. pylori?
Avoid alcohol during treatment and for at least 3 days after finishing if your regimen contains metronidazole, because the combination can cause severe nausea, vomiting, flushing and palpitations. Alcohol can also irritate the stomach lining while it heals.
Why does bismuth turn my stool black?
Bismuth reacts with sulfur in the gut to form a black compound, making stools and sometimes the tongue dark. This is harmless. Sticky, tarry, foul-smelling black stools with dizziness, however, may mean bleeding and need urgent care.
Sources
This guide was written from current patient and clinical guidance, including:
- American College of Gastroenterology: Clinical guideline - Treatment of Helicobacter pylori infection (2024)
- American Gastroenterological Association: Clinical practice update on the management of refractory H. pylori infection
- Maastricht VI/Florence consensus report on management of H. pylori infection
- NIDDK: Diagnosis of peptic ulcers
- MedlinePlus: H. pylori tests