Helicobacter pylori (H pylori) is the bacteria (germ) responsible for most stomach (gastric) and duodenal ulcers and many cases of stomach inflammation (chronic gastritis).
How the Test is Performed
There are several methods to test for H pylori infection.
Breath Test (Carbon Isotope-urea Breath Test, or UBT)
- Up to 2 weeks before the test, you need to stop taking antibiotics, bismuth medicines such as Pepto-Bismol, and proton pump inhibitors (PPIs).
- During the test, you swallow a special substance that has urea. Urea is a waste product the body produces as it breaks down protein. The urea used in the test has been made harmlessly radioactive.
- If H pylori are present, the bacteria convert the urea into carbon dioxide, which is detected and recorded in your exhaled breath after 10 minutes.
- This test can identify almost all people who have H pylori. It can also be used to check that the infection has been fully treated.
Blood Tests
- Blood tests are used to measure antibodies to H pylori. Antibodies are proteins made by the body's immune system when it detects harmful substances such as bacteria.
- Blood tests for H pylori can only tell if your body has H pylori antibodies. It cannot tell if you have a current infection or how long you have had it. This is because the test can be positive for years, even if the infection is cured. As a result, blood tests cannot be used to see if the infection has been cured after treatment.
Stool Test
- A stool test can detect traces of H pylori in the feces.
- This test can be used to diagnose the infection and confirm that it has been cured after treatment.
Biopsy
- A tissue sample, called a biopsy, is taken from the stomach lining. This is the most accurate way to tell if you have an H pylori infection.
- To remove the tissue sample, you have a procedure called esophagogastroduodenoscopy (EGD). The procedure is done in the hospital or outpatient center.
- Usually, a biopsy is done if EGD is needed for other reasons. Reasons include diagnosing the ulcer, treating bleeding, or making sure there is no cancer.
Normal Results
Normal results mean there is no sign that you have an H pylori infection.
What Abnormal Results Mean
Abnormal results mean that you have an H pylori infection. Your provider will discuss treatment with you.
Alternative Names
Peptic ulcer disease - H pylori; PUD - H pylori
References
Cover TL, Blaser MJ. Helicobacter pylori and other gastric Helicobacter species. In: Bennett JE, Dolin R, Blaser MJ, eds. Mandell, Douglas, and Bennett's Principles and Practice of Infectious Diseases. 9th ed. Philadelphia, PA: Elsevier; 2020:chap 217.
Siddiqi HA, Rabinowitz S, Axiotis CA. Laboratory diagnosis of gastrointestinal and pancreatic disorders. In: McPherson RA, Pincus MR, eds. Henry's Clinical Diagnosis and Management by Laboratory Methods. 24th ed. Philadelphia, PA: Elsevier; 2022:chap 23.
Review Date 8/7/2023
Updated by: Michael M. Phillips, MD, Emeritus Professor of Medicine, The George Washington University School of Medicine, Washington, DC. Also reviewed by David C. Dugdale, MD, Medical Director, Brenda Conaway, Editorial Director, and the A.D.A.M. Editorial team.