What are Helicobacter pylori (H. pylori) tests?
Helicobacter pylori (H. pylori) tests check for H. pylori, a common type of bacteria that infects the lining of the stomach and the first part of the small intestine. Most people with an H. pylori infection never have symptoms. But in some people, the bacteria can cause:
- Gastritis (inflammation and irritation of the stomach lining)
- Peptic ulcers (sores that form mainly in the stomach and upper part of the small intestine)
Without treatment, H. pylori gastritis can increase the chance of developing stomach cancer.
H. pylori may be spread from person to person through contact with vomit, stool (poop), or saliva (spit) from an infected person. It may also spread through contaminated food and water. Anyone who is exposed to H. pylori, especially children, can develop an infection.
The most common way to test for an H. pylori infection is with a sample of your breath or stool. However, a health care provider may also test for an infection using a sample of blood, plasma (the liquid part of your blood), or saliva. In certain cases, tests are done on a tissue sample collected from your stomach lining.
Other names: H. pylori stool antigen, H. pylori breath tests, urea breath test, rapid urease test (RUT) for H. pylori, H. pylori culture, H pylori antibody testing
What are H. pylori tests used for?
H. pylori tests are used to find out if:
- An H. pylori infection is the cause of gastritis or other conditions that cause ongoing digestive symptoms, such as indigestion
- Treatment has cured an H. pylori infection
Because there are many possible causes of digestive symptoms, providers often order tests for other digestive disorders along with an H. pylori test.
Why do I need an H. pylori test?
You may need an H. pylori test if you have symptoms of gastritis. These symptoms may include:
- Pain in your upper abdomen (belly)
- Bloating (a feeling of fullness or swelling in your belly)
- Feeling full after eating only a small amount of food
- Nausea and vomiting
- Burping
- Loss of appetite
- Unexplained weight loss
Gastritis can lead to an ulcer, which is a more serious condition. The symptoms of an ulcer can be similar to those of gastritis. However, they can also become severe if you develop complications. Get medical help right away if you have:
- Signs of stomach bleeding which include black or tarry stool, blood in vomit, or vomit that looks like coffee grounds
- Sudden, sharp or severe belly pain that doesn't go away
- Dizziness or fainting
- A rapid pulse (heartbeat) or other symptoms of shock
- Symptoms that change or get worse if you've been diagnosed with an ulcer
If you've been treated for an H. pylori infection, you may need testing to see if treatment worked to get rid of all the bacteria. If H. pylori remain in your body, they can grow and cause symptoms again.
What happens during an H. pylori test?
There are different ways to test for H. pylori. Your provider may order one or more of the following tests:
- A breath test
- A stool test
- A blood test
- A saliva test
- An endoscopy
A breath test (also called a urea breath test) generally includes the following steps:
- You will breathe into a container to provide a sample of your breath.
- You will then swallow a pill or liquid that contains urea. Urea is a normal waste product found in blood. The urea used for the test contains special carbon atoms. If you have H. pylori, the bacteria will change the urea into carbon dioxide that includes these carbon atoms. Your body will get rid of the carbon dioxide in the air you exhale (breathe out).
- A few minutes after swallowing the urea, you'll provide another sample of your breath.
- The two breath samples will be tested and compared to each other. If you have H. pylori bacteria in your stomach, the special carbon atoms in the urea will show up in the second sample of your breath. The second breath sample will also contain more carbon dioxide than the first.
For a stool sample, your provider will probably give you a container or kit with instructions on how to collect the sample. There are different ways to do this, so follow the instructions carefully. In general, you'll need to:
- Label the container with your name, the collection date, and time.
- Collect a stool sample as instructed. This usually involves using a clean, dry container, or special paper or plastic wrap placed over the toilet to catch the stool.
- Make sure the stool doesn't mix with any urine, toilet paper, or water from the toilet.
- Close the container tightly.
- Wash your hands well with soap and water.
- Return the container according to the instructions.
If you're collecting a sample from diapers, you'll get special instructions for using plastic wrap inside of a clean diaper. In certain cases, a provider may use a swab to take a stool sample from the rectum.
Once the sample is collected, providers can check the sample for H. pylori using:
- Antigen tests, which check your sample for antigens (harmful foreign substances) that come from H. pylori. This is the most commonly used type.
- PCR tests, which check your sample for genetic material from H. pylori.
For an endoscopy, your provider will use a scope to look at your esophagus (the muscular tube that carries food and liquids from your mouth to the stomach), the lining of your stomach, and part of your small intestine. Scopes have a tiny camera attached to a long, thin tube. During the procedure:
- You will lie down on an exam table.
- You'll be given medicine to help you relax and to numb your throat so you won't feel pain.
- Your provider will insert a thin tube (an endoscope) through your mouth and into your stomach. The tube has a light and camera to let your provider examine the lining of your stomach.
- Your provider may take a biopsy to remove small samples of tissue. The tissue will be sent to a lab to test for H. pylori and other conditions that may be causing symptoms.
- After the procedure, you'll rest for an hour or two while the medicine wears off.
A provider will often order an endoscopy if other tests don't provide enough information for a diagnosis.
In rare cases, a provider will use a blood test to look for certain proteins (antibodies) that your immune system makes to fight off H. pylori. These tests aren't commonly used because they can't show whether the antibodies are from an active H. pylori infection or from an infection you had in the past.
If a provider does use a blood test, a health care professional will take a sample from a vein in your arm, using a small needle. After the needle is inserted, a small amount of blood will be collected into a test tube or vial. You may feel a little sting when the needle goes in or out. This usually takes less than five minutes.
For a saliva test, a provider will either ask you to spit into a container or use a cotton pad to soak up some saliva.
Will I need to do anything to prepare for an H pylori test?
Before you have an H. pylori test, you may need to stop taking certain medicines for two weeks to a month. This includes many medicines you may be taking for your symptoms. Be sure to talk with your provider about all medicines you are currently taking.
You may also need to fast (not eat or drink) for several hours before an H. pylori breath test and an endoscopy.
You may be drowsy after an endoscopy, so plan to have someone bring you home.
A half hour before a saliva test, you may need to stop eating, drinking, or smoking.
Certain medicines and foods may affect the results of a stool test. Ask your provider if you need to avoid any specific things before the test.
Are there any risks to testing?
There is no known risk to having breath or stool tests.
During an endoscopy, you may feel some discomfort when the scope is inserted, but serious complications are rare. There's a very small risk of a tear in your intestine. If you have a biopsy, there's a small risk of bleeding where the sample was removed. But it usually stops on its own.
There is very little risk to a blood test. You may have slight pain or bruising at the spot where the needle was put in, but most symptoms go away quickly.
There are no risks to providing a saliva sample.
What do the results mean?
A negative (normal) H. pylori test result means that you probably don't have an H. pylori infection. Your provider may order more tests to find out the cause of your symptoms. If you had an H. pylori blood test and your results show that you don't have any H. pylori antibodies, it usually means that you didn't have an infection when your blood sample was taken.
A positive (abnormal) H. pylori test result usually means that you have an H. pylori infection. A positive antibody blood test, however, does not always mean you have a current infection.
If you do have an H. pylori infection, your provider will usually prescribe one or more antibiotics to treat the infection. Your provider may also prescribe other medicines to relieve your symptoms and help heal your stomach. These include:
- Proton pump inhibitors (PPIs), which stop stomach acid from being made in the stomach
- Bismuth subsalicylates, which coat an ulcer and protect it from stomach acid
After you finish your treatment, your provider may order repeat tests to make sure all the H. pylori bacteria are gone.
Learn more about laboratory tests, reference ranges, and understanding results.
References
- American Gastroenterological Association [Internet]. Bethesda (MD): American Gastroenterological Association; c2026. Peptic ulcer disease; [cited 2026 Sep 21]; [about 8 screens]. Available from: https://patient.gastro.org/peptic-ulcer-disease/
- Cleveland Clinic: Health Library: Diagnostics & Testing [Internet]. Cleveland (OH): Cleveland Clinic; c2026. H. Pylori Infection; [reviewed 2025 May 13; cited 2026 Sep 21]; [about 5 screens]. Available from: https://my.clevelandclinic.org/health/diseases/21463-h-pylori-infection
- Mayo Clinic [Internet]. Mayo Foundation for Medical Education and Research; c1998–2026. Helicobacter pylori (H. pylori) infection: Symptoms and Causes; [updated 2025 Dec 16; cited 2026 Sep 21]; [about 11 screens]. Available from: https://www.mayoclinic.org/diseases-conditions/h-pylori/symptoms-causes/syc-20356171
- Mayo Clinic [Internet]. Mayo Foundation for Medical Education and Research; c1998–2026. Helicobacter pylori (H. pylori) infection: Diagnosis and treatment; [updated 2025 Dec 16; cited 2026 Sep 21]; [about 13 screens]. Available from: https://www.mayoclinic.org/diseases-conditions/h-pylori/diagnosis-treatment/drc-20356177
- Mayo Clinic [Internet]. Mayo Foundation for Medical Education and Research; c1998–2026. Upper endoscopy: About; [updated 2024 Jul 2; cited 2026 Sep 21]; [about 13 screens]. Available from: https://www.mayoclinic.org/tests-procedures/endoscopy/about/pac-20395197
- Mayo Clinic: Mayo Medical Laboratories [Internet]. Mayo Foundation for Medical Education and Research; c1995–2026. Test ID: HELIS: Helicobacter pylori Culture with Antimicrobial Susceptibilities, Varies; [cited 2026 Sep 21]; [about 3 screens]. Available from: https://www.mayocliniclabs.com/test-catalog/Overview/62769#clinical-and-interpretive
- Merck Manual Consumer Version [Internet]. Kenilworth (NJ): Merck & Co., Inc.; c2026. Helicobacter pylori Infection; [reviewed2025 Jan; cited 2026 Sep 21]; [about 3 screens]. Available from: https://www.merckmanuals.com/home/digestive-disorders/gastritis-and-peptic-ulcer-disease/helicobacter-pylori-infection
- National Institute of Diabetes and Digestive and Kidney Diseases [Internet]. Bethesda (MD): U.S. Department of Health and Human Services; Diagnosis of Gastritis &Gastropathy; [updated 2019 Aug; cited 2026 Sep 21]; [about 2 screens]. Available from: https://www.niddk.nih.gov/health-information/digestive-diseases/gastritis-gastropathy/diagnosis
- National Institute of Diabetes and Digestive and Kidney Diseases [Internet]. Bethesda (MD): U.S. Department of Health and Human Services; Diagnosis of GI Bleeding; [updated 2024 Jul; cited 2026 Sep 21]; [about 5 screens]. Available from: https://www.niddk.nih.gov/health-information/digestive-diseases/gastrointestinal-bleeding/diagnosis
- National Institute of Diabetes and Digestive and Kidney Diseases [Internet]. Bethesda (MD): U.S. Department of Health and Human Services; Diagnosis of Indigestion; [updated 2025 Mar; cited 2026 Sep 21]; [about 4 screens]. Available from: https://www.niddk.nih.gov/health-information/digestive-diseases/indigestion-dyspepsia/diagnosis
- National Institute of Diabetes and Digestive and Kidney Diseases [Internet]. Bethesda (MD): U.S. Department of Health and Human Services; Diagnosis of Peptic Ulcers (Stomach or Duodenal Ulcers); [updated 2022 Sep; cited 2026 Sep 21]; [about 3 screens]. Available from: https://www.niddk.nih.gov/health-information/digestive-diseases/peptic-ulcers-stomach-ulcers/diagnosis
- Nemours KidsHealth [Internet]. Jacksonville (FL): The Nemours Foundation; c1995–2026. Helicobacter pylori Infections; [reviewed 2021 Jan; cited 2026 Sep 21]; [about 6 screens]. Available from: https://kidshealth.org/en/parents/h-pylori.html
- Parikh NS, Ahlawat R. Helicobacter Pylori. [Updated 2026 Jun 19; cited 2026 Sep 21]. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2026 Jan-. Available from: https://www.ncbi.nlm.nih.gov/books/NBK534233/
- Testing.com [Internet]. Seattle (WA): OneCare Media; c2026. H. Pylori Breath Test (Helicobacter Pylori); [modified 2021 Nov 9; cited 2026 Sep 21]; [about 16 screens]. Available from: https://www.testing.com/tests/helicobacter-pylori-h-pylori-testing/
The information on this site should not be used as a substitute for professional medical care or advice. Contact a health care provider if you have questions about your health.