H. pylori infection
H. pylori infection is a common, long-lasting stomach infection with Helicobacter pylori bacteria that can cause gastritis, stomach and duodenal ulcers and, rarely, stomach cancer.
Clinician view: includes diagnostic criteria, management and safety detail.

Overview
H. pylori infection happens when a type of bacteria (germ) called Helicobacter pylori lives in the lining of your stomach. The medical name for this group of infections is Helicobacter infections, and in people the cause is almost always H. pylori. It is one of the most common infections in the world. More than 4 in 10 people worldwide carry it, though it is less common in Canada and the USA than in many other parts of the world.
Most people pick up H. pylori in childhood and carry it for life unless it is treated. The germ has a spiral shape and makes a substance that lowers the acid around it, which lets it survive in the stomach. Over time it causes long-lasting inflammation (irritation and swelling) of the stomach lining, called gastritis.
Many people with H. pylori never have any symptoms. But in some people it leads to peptic ulcers (open sores in the stomach or the first part of the small intestine, called the duodenum). Over many years it also raises the risk of stomach cancer. The good news is that the infection can be found with simple tests and, in most cases, cured with a course of medicines.
Symptoms
Most people with H. pylori feel completely well. When symptoms do happen, they are usually caused by gastritis or an ulcer. They can include:
- A burning or gnawing pain in the upper belly, often between meals or at night
- Pain that eases for a while after eating or after taking an antacid
- Bloating, burping or feeling full quickly
- Nausea (feeling sick to your stomach)
- Loss of appetite
These symptoms are common and have many other causes, so they do not prove you have H. pylori. Some signs point to a more serious problem, such as a bleeding ulcer, and need quick medical care. These include black or tarry stools, vomiting blood or material that looks like coffee grounds, sudden severe belly pain, trouble swallowing, losing weight without trying, and feeling very tired or short of breath from anemia (a low red blood cell count).
Causes and how it spreads
H. pylori passes from person to person. Experts are not completely sure how, but it most likely spreads through saliva, vomit or stool, often within families. Children may catch it from a parent or brother or sister. In places without clean drinking water or good sanitation, it may also spread through contaminated water or food.
Once in the stomach, the bacteria burrow into the protective mucus layer. They damage the stomach lining and change how much acid the stomach makes. This is how they lead to gastritis and ulcers. Only some people who carry the germ develop problems. This depends on the strain of bacteria, your genes and other factors such as smoking and the use of certain pain medicines.
Risk factors
You are more likely to have H. pylori if you:
- Grew up in a crowded home or shared a bed with family members as a child
- Lived in, or were born in, a region where the infection is common, such as parts of Asia, Africa, Latin America and Eastern Europe
- Live with someone who has H. pylori
- Grew up without reliable clean water or sanitation
In Canada and the USA, infection is also more common in Indigenous communities and in some immigrant communities. Taking anti-inflammatory pain medicines such as ibuprofen, naproxen or aspirin does not cause the infection, but taking them while you have it adds to your risk of getting an ulcer.
Diagnosis
Your doctor may test you for H. pylori if you have ulcer-type symptoms or indigestion, a past or current ulcer, low iron without a clear cause, a close family member with stomach cancer, or if you need to take aspirin or anti-inflammatory medicines for a long time.
Common tests
- Urea breath test: you drink a special liquid and breathe into a bag or tube. If H. pylori is present, it breaks down the liquid and releases a gas that shows up in your breath. It is quick and painless.
- Stool antigen test: a small sample of your stool (poop) is checked for pieces of the bacteria.
- Endoscopy with biopsy: a doctor passes a thin, flexible tube with a camera through your mouth into your stomach, often while you are sedated. They look for ulcers and take tiny tissue samples (biopsies) to test. This is used when you have warning signs or need a closer look.
Blood tests for antibodies are less useful, because they can stay positive long after the infection is gone.
Getting ready for testing
Some medicines can hide the infection and give a false negative result. Your clinician may ask you to stop acid-lowering medicines called proton pump inhibitors for about two weeks, and to avoid antibiotics and bismuth for about four weeks, before a breath or stool test. Only do this with their advice.
Treatment
If you test positive, treatment is usually recommended, even if you have no symptoms. The aim is to get rid of the bacteria completely, which helps ulcers heal, stops them coming back and lowers the risk of stomach cancer.
Treatment combines several medicines taken together, usually for 14 days:
- An acid-lowering medicine, usually a proton pump inhibitor such as omeprazole, esomeprazole, lansoprazole, pantoprazole or rabeprazole. Lowering stomach acid helps the antibiotics work and helps the lining heal.
- Antibiotics, usually two, such as amoxicillin, clarithromycin, metronidazole or tetracycline. Using more than one medicine against the bacteria makes it harder for them to survive.
- Bismuth, such as bismuth subcitrate or bismuth subsalicylate, which is often added because it helps kill the bacteria.
The exact combination depends on which antibiotics you have taken before, any allergies (especially to penicillin), and how well each antibiotic works in your area. H. pylori has become resistant to some antibiotics, especially clarithromycin, so doctors often choose a four-medicine combination.
Taking your medicines
- Take every dose for the full course, even if you feel better. Missing doses is a common reason treatment fails.
- Side effects can include a metallic taste, nausea, loose stools and, with bismuth, dark or black stools and a dark tongue. Dark stools from bismuth are harmless, but tell your clinician if you are unsure.
- Avoid alcohol while taking metronidazole and for a few days after, as it can make you very sick.
- Tell your clinician about all your other medicines, and if you are pregnant or breastfeeding.
Checking that it worked
Your clinician should test you again at least four weeks after you finish treatment, usually with a breath or stool test. If the infection is still there, a different combination of medicines is used. Sometimes the bacteria are tested to see which antibiotics will work.
Living with H. pylori
While you are being treated and while an ulcer heals, these steps can help:
- Ask your clinician before taking ibuprofen, naproxen or aspirin. Acetaminophen is often a gentler choice for pain, but check first.
- Stop smoking, which slows ulcer healing.
- Limit alcohol.
- Eat regular meals and avoid foods that clearly make your symptoms worse. No special diet is needed to cure the infection.
If someone in your home has been diagnosed, ask your clinician whether other household members should be tested.
Complications
Most people with H. pylori never have complications, but over years it can lead to:
- Peptic ulcers, which can bleed or, rarely, make a hole through the stomach or bowel wall
- Iron deficiency anemia, from slow blood loss or poor iron absorption
- Stomach cancer, which is uncommon but more likely with long-lasting infection
- MALT lymphoma, a rare cancer of immune cells in the stomach lining that often improves once the infection is treated
Outlook
With today's treatments, most people are cured with the first or second course of medicines. Once the bacteria are gone, ulcers usually heal and are much less likely to return. Catching the infection again is uncommon in adults in Canada and the USA. Treating H. pylori also lowers the risk of stomach cancer, especially when done before serious changes develop in the stomach lining.
Prevention
There is no vaccine for H. pylori. You can lower the chance of spreading it by washing your hands well after using the toilet and before eating or preparing food, and drinking clean, safe water. If you have a family history of stomach cancer, talk to your clinician about testing.
In Canada
The Canadian Association of Gastroenterology Toronto Consensus guides treatment in Canada. Infection rates are notably higher in some Indigenous and northern communities, where local programs may offer testing and follow-up. Some combination products may not be stocked or covered everywhere, so your clinician or pharmacist may use separate bismuth and antibiotic products.
Diagnosis
Who to test: active or past peptic ulcer disease, gastric MALT lymphoma, uninvestigated dyspepsia without alarm features (test-and-treat, generally in patients under about 60), long-term low-dose aspirin or NSAID use, unexplained iron deficiency anemia, idiopathic thrombocytopenic purpura, first-degree relatives of people with gastric cancer, and, per ACG 2024, household members of infected patients. Patients with alarm features or older age warrant endoscopy.
Tests: urea breath test or monoclonal stool antigen test for non-invasive diagnosis and test of cure; at endoscopy, histology, rapid urease test, culture or molecular testing (PCR) for clarithromycin and levofloxacin resistance. Serology does not distinguish current from past infection and is not used for test of cure. Hold PPIs for 2 weeks and antibiotics and bismuth for 4 weeks before testing to avoid false negatives.
Management
Guidelines: ACG 2024, Toronto Consensus (CAG, 2016) and Maastricht VI/Florence (2022). Treat all confirmed infections. Duration is 14 days. Clarithromycin resistance is common in North America, so empiric clarithromycin triple therapy is no longer favoured unless susceptibility is known.
- First line, susceptibility unknown: bismuth quadruple therapy (PPI twice daily, bismuth, tetracycline and metronidazole) for 14 days. Toronto also accepts concomitant non-bismuth quadruple therapy (PPI, amoxicillin, clarithromycin, metronidazole). ACG lists rifabutin triple therapy and vonoprazan-amoxicillin dual therapy as alternatives in patients without penicillin allergy.
- Rescue: use a regimen without previously used clarithromycin or levofloxacin; options include bismuth quadruple, levofloxacin-based or rifabutin-based therapy, guided by susceptibility testing where available.
- Penicillin allergy: bismuth quadruple therapy; consider formal allergy evaluation, as most labelled patients tolerate amoxicillin.
Cautions: disulfiram-like reaction with metronidazole and alcohol; clarithromycin QT prolongation and CYP3A4 interactions (e.g. statins, some anticoagulants); tetracycline contraindicated in pregnancy and in children under 8; bismuth subsalicylate contains salicylate (avoid with aspirin allergy, caution with anticoagulants); fluoroquinolone tendon, aortic and CNS risks.
Monitoring and prognosis
Confirm eradication in all treated patients at least 4 weeks after therapy, off PPI for 2 weeks, using urea breath test, stool antigen or biopsy. Repeat endoscopy for gastric ulcers to confirm healing and exclude malignancy. Red flags: GI bleeding, anemia, weight loss, dysphagia, persistent vomiting, palpable mass. Eradication rates with modern 14-day regimens generally exceed 85 to 90 percent; adult reinfection in high-income countries is low. Eradication reduces ulcer recurrence and gastric cancer risk, and induces regression of most low-grade gastric MALT lymphomas.
When to get medical help
See your doctor or nurse practitioner if you have:
- Upper belly pain or indigestion that keeps coming back or lasts more than a couple of weeks
- Losing weight without trying, or a poor appetite
- Trouble swallowing or food getting stuck
- Feeling unusually tired, pale or short of breath, which may be signs of anemia
- Side effects from your treatment that make it hard to finish the course
Go to the emergency department or call emergency services right away if you:
- Vomit blood or material that looks like coffee grounds
- Have black, sticky or tarry stools (unless you are taking bismuth and feel otherwise well) or bright red blood in your stool
- Have sudden, severe belly pain that does not go away
- Feel faint, dizzy or confused, or your heart is racing
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Helicobacter Infections. meshb.nlm.nih.gov
- MedlinePlus: Helicobacter pylori infections. medlineplus.gov/helicobacterpyloriinfections.html
- Chey WD et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection (2024). doi.org/10.14309/ajg.0000000000002968
- Fallone CA et al. The Toronto Consensus for the Treatment of Helicobacter pylori Infection in Adults (2016). doi.org/10.1053/j.gastro.2016.04.006
- Malfertheiner P et al. Management of Helicobacter pylori infection: the Maastricht VI/Florence consensus report (2022). doi.org/10.1136/gutjnl-2022-327745