What Is H. Pylori? Symptoms, Causes, Diagnosis, Treatment, and Prevention

Helicobacter pylori (H. pylori) is a type of bacteria that can cause an infection in your stomach.
If you develop an H. pylori infection, you may not have any signs or symptoms. But it can lead to peptic ulcers, gastritis, and even certain types of stomach cancer.
Signs and Symptoms of H. Pylori
- Nausea
- Stomachache or burning in the stomach
- Abdominal pain that’s worse when your stomach is empty
- Burping
- Loss of appetite
- Bloating
- Weight loss
Causes and Risk Factors of H. Pylori
Doctors aren’t exactly sure how H. pylori infection is passed from person to person. Research shows that you can become infected with the bacteria by consuming contaminated food or water. H. pylori may also spread through contact with an infected person’s saliva, vomit, or fecal matter.
- Sharing a crowded living space
- Living in a developing country
- Not having access to clean water
- Living with someone who has H. pylori
How Is H. Pylori Diagnosed?
It’s a good idea to visit your doctor any time you have unusual stomach pains or complaints, especially if they are persistent or recurrent.
See a healthcare provider right away if you experience the following symptoms:
- Severe stomach or other abdominal pain
- Stomach or abdominal pain that doesn’t go away
- Difficulty swallowing
- Bloody, black, or tarry stools
- Vomit that’s bloody or looks like coffee grounds
First, your doctor will probably perform a physical exam and ask about your medical history. Then they might recommend one or more of these tests to identify the bacteria.
Blood Test
Breath Test
Breath tests are often difficult to do in young kids, and you can’t take certain medicines, such as proton pump inhibitors, antibiotics, or Pepto-Bismol (bismuth subsalicylate), for a week or two prior to having the test.
Stool Test
Upper Endoscopy
During an upper endoscopy, your doctor will first give you a light sedative, then thread a long tube with a tiny camera on the end down your throat, past your esophagus, and into your stomach. This will allow your physician to see inside your digestive track and remove small pieces of tissue (known as biopsy samples) if necessary.
Should You Get Screened for H. Pylori?
In places where the risk of getting H. pylori is high, doctors test healthy people for the bacteria even if they have no signs or symptoms, which is known as medical screening. But there’s a debate in the medical community over whether this degree of screening is beneficial.
Prognosis of H. Pylori
Many people with H. pylori don’t experience any symptoms of the illness and never even know they have the infection.
If you do have symptoms or develop complications, treatment is usually successful. H. pylori infection can often be cured with treatment consisting of antibiotics and acid-reducing medications.
Duration of H. Pylori
Treatment and Medication Options for H. Pylori
If you have an H. pylori infection but don’t have any bothersome symptoms or develop an ulcer, you might not need to take any medications.
Medication Options
Antibiotics
Usually, you’ll need two or more antibiotics at once to treat the infection. This helps prevent the bacteria from becoming resistant to one drug.
Some antibiotics are commonly prescribed for H. pylori:
- Amoxicillin (Amoxil, Larotid, Moxtag)
- Metronidazole (Flagyl)
- Clarithromycin (Biaxin)
- Rifabutin (Mycobutin)
- Tetracycline (Achromycin)
Acid-Reducing Drugs
These medicines may reduce the amount of acid in your stomach:
- Proton pump inhibitors work by blocking the production of stomach acid. They include Prilosec (omeprazole), Nexium (esomeprazole), Prevacid (lansoprazole), and Protonix (pantoprazole).
- Histamine (H2) blockers target a substance in your body called histamine, which can trigger stomach acid production. Pepcid (famotidine) and Zantac (ranitidine) are two commonly used H2 blockers.
- Better known as Pepto-Bismol, bismuth subsalicylate works by coating stomach ulcers, which protects them from acid.
Alternative and Complementary Therapies
There are some foods or supplements with antibacterial or antiviral properties that have been investigated for improving H. pylori infections or the ulcers that can sometimes result. These include garlic, honey, broccoli, green tea, and red wine.
It’s recommended that any alternative therapy be discussed with your doctor and should only be used along with traditional H. pylori eradication medication.
At-Home Care
You can help relieve stomach pain and other symptoms of H. pylori infection by following a consistent meal schedule that doesn’t require your stomach to be empty for too long. That may mean you’ll have to eat five or six small meals each day rather than three moderate to large meals.
- Avoid spicy or greasy foods
- Avoid caffeinated drinks such as coffee, tea, or soda if they bother your stomach
- Limit alcohol intake
- Practice good hand-washing hygiene
Follow-Up Doctor’s Visits
After you’ve been treated for H. pylori, your doctor might suggest that you get tested again for the infection four weeks later. If you still have the infection, you may need to take another round of treatment with different antibiotics.
Prevention of H. Pylori
There’s currently no vaccine to protect against H. pylori infection. Researchers aren’t sure exactly what causes the infection or how it spreads, so there aren’t standard prevention guidelines.
- Wash your hands frequently and thoroughly
- Drink water from a safe and trusted source
- Don't eat contaminated food
Complications of H. Pylori
H. pylori can lead to complications, including ulcers, gastritis, and stomach cancer.
Ulcers
Ulcers themselves can lead to serious complications as well:
- Internal Bleeding This happens when stomach acid or an ulcer tears into a blood vessel.
- Obstruction An ulcer can block food from leaving your stomach.
- Perforation An ulcer can grow deep and break through the stomach or intestinal wall.
- Peritonitis Inflammation of the peritoneum (the lining of the abdominal cavity) can happen when infection or inflammation develops as a result of an ulcer.
Gastritis
Gastritis is inflammation of the lining of your stomach. People with H. pylori are at an increased risk of having this condition.
Stomach Cancer
Research and Statistics: Who Has H. Pylori?
Black and Hispanic Communities and H. Pylori
Related Conditions of H. Pylori
Resources We Love
The Mayo Clinic's website provides comprehensive, up-to-date medical info. Its coverage of H. pylori infections — from symptoms and treatment to what questions to ask your doctor — is thoroughly accessible and helpful.
This site, from the American Academy of Family Physicians, has a wealth of educational materials and medical info for adults and kids, including a page on ulcers caused by H. pylori.
This health system based in Winston Salem, North Carolina, covers the basics of H. pylori infections in children in an easy-to-understand way for parents and caregivers.
MedlinePlus is a service of the National Library of Medicine, the world’s largest medical library, and part of the National Institutes of Health. With health and wellness information in both English and Spanish, it's a trusted source on a variety of conditions, including H. pylori infections.
Additional reporting by Becky Upham.
Editorial Sources and Fact-Checking
References
- Helicobacter Pylori (H. Pylori) Infection: Symptoms and Causes. Mayo Clinic. April 8, 2020.
- Helicobacter Pylori Infections. MedlinePlus. December 16, 2019.
- Helicobacter Pylori (H. Pylori) Tests. MedlinePlus. July 31, 2020.
- Helicobacter Pylori (H. Pylori) Infection: Diagnosis and Treatment. Mayo Clinic. April 8, 2020.
- Helicobacter Pylori. Wake Forest Baptist Health: Brenner Children’s. July 14, 2015.
- Abadi ATB, Ieradi E, Lee YY. Why Do We Still Have Helicobacter Pylori in Our Stomachs. The Malaysian Journal of Medical Science. September 2015.
- Helicobacter Pylori Infection. Merck Manual. January 2020.
- Ayala G, Escobedo-Hinojosa WI, De la Cruz-Herrera CF, Romero I. Exploring Alternative Treatments for Helicobacter Pylori. World Journal of Gastroenterology. February 2014.
- H. Pylori Bacterial Infection: Care Instructions. Kaiser Permanente. April 15, 2020.
- Definition and Facts for Peptic Ulcers (Stomach Ulcers). National Institute of Diabetes and Digestive and Kidney Diseases. November 2014.
- Helicobacter Pylori and Cancer. National Cancer Institute. September 5, 2013.
- Trindade LMDF, De Oliveira Menezes LB, De Souza Neta AM, et al. Prevalence of Helicobacter Pylori Infection in Samples of Gastric Biopsies. Gastroenterology Research. February 2017.
- Chey WD, Leontiadis G, Howden C, Moss S. ACG Clinical Guideline: Treatment of Helicobacter Pylori. The American Journal of Gastroenterology. February 2017.
- Florea A, Brown HE, Harris RB, Oren E. Ethnic Disparities in Gastric Cancer Presentation and Screening Practice in the United States: Analysis of 1997–2010 Surveillance, Epidemiology, and End Results-Medicare Data. Cancer Epidemiology, Biomarkers & Prevention. April 2019.
- H. Pylori Gastritis. Ohio State University Wexner Medical Center.
- Bacteria That Can Lead to Cancer. American Cancer Society. July 11, 2016.
- Lazaridou E, Korfitis C, Kemanetzi C, et al. Rosacea and Helicobacter Pylori: Links and Risks. Clinical, Cosmetic, and Investigational Dermatology. August 10, 2017.
- Yang X. Relationship Between Helicobacter Pylori and Rosacea: Review and Discussion. BMC Infectious Diseases. July 11, 2018.