H. pylori is a common bacteria found in the gastrointestinal (GI) system that can sometimes lead to inflammation of the stomach lining and ulcers in the stomach and intestine.
The most common way to diagnose H. pylori is with a stool or breath test, although there is also a blood test. Your provider can help you decide if you should be tested based on your symptoms and risk factors.
Treatment for H. pylori involves taking a combination of at least two different antibiotics, a proton pump inhibitor (PPI), and sometimes additional medications.
Helicobacter pylori — or H. pylori for short — is a spiral-shaped bacteria that thrives in acidic environments. It is common and affects approximately 50% of the world’s population. Most often, it lives in the stomach and small intestine and doesn’t cause any symptoms. But it is associated with an increased risk of ulcers in the stomach and the duodenum (the first part of the small intestine). And it can also lead to inflammation of the lining of the stomach, called gastritis.
Here, we’ll discuss the potential symptoms, diagnosis, and treatment of H. pylori.
While H. pylori is a bacteria that lives in the gut, it acts differently than a typical bacterial infection does. In fact, most people who have H. pylori don’t have any symptoms. But when H. pylori leads to inflammation or ulcers in the stomach lining, these conditions can cause symptoms such as:
Burning or dull pain in the upper portion of the abdomen
Pain that’s worse on an empty stomach or a few hours after eating, but improves with food or antacids
Burping or an acidic taste in the mouth
Nausea
Bloating
Discomfort after eating and decreased appetite, which can cause weight loss
Ulcers caused by H. pylori can also cause gastrointestinal (GI) bleeding. When an ulcer bleeds, it can lead to:
Dark, tarry stool
Vomiting bright-red or clotted blood (sometimes appearing like coffee grounds)
Low blood cell counts
Increased fatigue or shortness of breath
Although H. pylori is fairly common, experts recommend that only people who meet certain criteria are tested. Testing for H. pylori is recommended for people who have or have a history of:
Symptoms of H. pylori
Stomach cancer
Long-term use of nonsteroidal anti-inflammatory drugs (NSAIDs) or aspirin
Unexplained iron-deficiency anemia (a shortage of iron leading to low blood cell counts)
Immune thrombocytopenia (a platelet disorder that can be associated with H. pylori)
Testing is also recommended for first-generation immigrants from areas with a high prevalence of H. pylori, which includes many African countries, China, Japan, and Eastern European countries.
H. pylori transmission is still the subject of ongoing research. But experts think that it’s most likely spread:
Through contaminated food and water
Directly from person to person, via transmission in saliva or feces (eating food that was handled by someone with H. pylori who didn’t wash their hands after using the bathroom)
People who grow up in low-income or developing countries are especially at risk due to differences in sanitation. Most people who grow up in these environments and acquire the infection do so as children. In the US, by contrast, most people who acquire the infection do so as adults.
There are three main tests that can be used to diagnose H. pylori, and each one has some pros and cons:
The urea breath test: This involves drinking a solution that contains a compound called urea, followed by breathing into a bag. H. pylori is detected by the way it breaks down the urea. This test is the most accurate, but it’s also the most expensive. And it requires that you don’t take any antibiotics or proton pump inhibitors (PPIs) for a few weeks prior to testing.
The fecal antigen test: This is a stool test that looks for signs of H. pylori. This test is almost as accurate as the urea breath test, and it’s much less expensive. It also requires that you don’t take any antibiotics or PPIs for a few weeks before the test.
A serologic blood test: This checks for antibodies to H. pylori in the blood. This test is not usually recommended because it’s difficult to tell if someone has an active infection or if they were only exposed in the past. But it is the only test that does not require someone to be off all antibiotics and PPIs for several weeks prior.
Most people don’t need an endoscopy to diagnose and treat H. pylori. But if there are indications that you need an endoscopy, your provider can diagnose H. pylori by taking a biopsy sample during the procedure.
Treatment for H. pylori involves taking multiple medications, usually for 10 to 14 days total. There are several different regimens and medication combinations that can be used. But they typically include:
A PPI, such as pantoprazole or omeprazole
Two or three different antibiotics, which may involve a combination of clarithromycin, amoxicillin, metronidazole, tetracycline, or levofloxacin
Bismuth subsalicylate (more commonly known as Pepto-Bismol)
The decision about which antibiotics are included in a regimen depends on what treatments have been tried before (if any), the presence of any allergies, and what the local H. pylori bacteria in your region are susceptible to.
The reason that multiple antibiotics are needed is because H. pylori is good at guarding itself against treatment and is usually resistant to one or two medications. That’s why it’s important to complete the full course of treatment, even if your symptoms improve after a few days. Otherwise, some H. pylori bacteria may remain and grow after you stop the treatment.
Even if you complete the full treatment course, H. pylori can still come back. So your provider will usually recommend that you get retested a few weeks after you complete the treatment to make sure that it worked.
If the treatment is not initially successful, your provider will recommend a different regimen that may work better against the specific H. pylori bacteria causing your infection.
Untreated H. pylori is a risk factor for ulcers in the stomach and duodenum. In fact, H. pylori is one of the main causes of these ulcers. And it can also cause inflammation of the stomach lining, called gastritis.
When someone has H. pylori living in their digestive for a long period of time, it can increase their risk for developing two different, rare types of stomach cancer:
Gastric adenocarcinoma
Gastric mucosa-associated lymphoid tissue (MALT) lymphoma
It’s important to treat H. pylori infection before it can cause any complications.
H. pylori is a common cause of gastrointestinal conditions such as ulcers, stomach lining inflammation, and sometimes, though rarely, stomach cancer. People can have H. pylori without having any symptoms. But if you are experiencing digestive symptoms or abdominal pain, consider talking to your provider about getting tested. Luckily, H. pylori can be easily diagnosed with a few different types of tests. And a short course of three or four medications usually treats the infection effectively.
Chey, W. D., et al. (2017). ACG clinical guideline: Treatment of Helicobacter pylori infection. The American Journal of Gastroenterology.
Crowe, S. E. (2019). Helicobacter pylori infection. The New England Journal of Medicine.
El-Serag, H. B., et al. (2018). Houston Consensus Conference on testing for Helicobacter pylori infection in the United States. Clinical Gastroenterology and Hepatology.
Kamboj, A. K., et al. (2017). Helicobacter pylori: The past, present, and future in management. Mayo Clinic Proceedings.
MedlinePlus. (2021). Helicobacter pylori (H. pylori) tests.
MedlinePlus. (2021). Helicobacter pylori infections.
Mitchell, H. M. (1999). The epidemiology of Helicobacter pylori. Current Topics in Microbiology and Immunology.
Moayyedi, P., et al. (2017). ACG and CAG clinical guideline: Management of dyspepsia. The American Journal of Gastroenterology.
Mungazi, S.G., et al. (2018). Prevalence of Helicobacter pylori in asymptomatic patients at surgical outpatient department: Harare hospitals. Annals of Medicine and Surgery.
National Cancer Institute. (2013). Helicobacter pylori and cancer.
National Institute of Diabetes and Digestive and Kidney Diseases. (2016). Symptoms & causes of GI bleeding.
Pounder, R. E., et al. (1995). The prevalence of Helicobacter pylori infection in different countries. Alimentary Pharmacology & Therapeutics.
The University of Arizona. (2011). H. pylori transmission and spread of infection.