How to test for H. pylori
Medically reviewed by Dr Paul Frank, Gastroenterologist, on .
Written by the
HpyloriTest.com editorial team. Updated on .
Key facts
- The simplest way to test for H. pylori is at home, with a stool antigen test. It takes about 15 minutes.
- You don't need a doctor's order to test at home.
- Ask your doctor about stopping a PPI such as Prilosec or Nexium 2 weeks before you test.
How do you get tested for H. pylori?
The usual route is a doctor's visit, then a stool kit with instructions on where to send or take it for testing (NIDDK), then a wait for your result.
With a home test, you order a stool antigen test online, it's delivered to your door, and you do the test yourself. It looks for antigens from H. pylori in your stool (MedlinePlus), and you read the result at home.
Step 1: Check your medicines
Some medicines can hide H. pylori and give a false negative (ACG):
- PPIs such as Prilosec, Nexium, Prevacid and Protonix: ask your doctor first. If they agree, stop 2 weeks before you test.
- Antibiotics and bismuth (Pepto-Bismol): test at least 4 weeks after your last dose. Never cut a course of antibiotics short.
Step 2: Collect a stool sample
Catch the stool in a clean, dry container or on plastic wrap over the toilet. Don't let it mix with urine, toilet paper or toilet water (MedlinePlus). Dip the end of the kit's sampling stick into the stool. Our guide to the stool sample has more tips.
Step 3: Run the test
- Put the stick back in the tube, then stir and turn it for about 10 seconds.
- Squeeze 2 drops into the round sample hole on the test.
- Lay the test flat and wait 10 minutes.
The instructions and video show each stage.
Step 4: Read your result
- C and T lines: H. pylori detected. Take your result to your doctor to talk about treatment.
- C line only: not detected.
- No C line: the test didn't work. Use a new test.
Our page on what your result means explains each one.
When to see a doctor instead
See a doctor right away, instead of testing at home, if you have:
- trouble swallowing
- weight loss you can't explain
- vomiting that keeps coming back
If you're vomiting blood or passing black, tarry stools, call 911.
Frequently asked questions
Can I test again after treatment?
Yes. Our page on test of cure explains when.

Test at home today
One stool antigen test with everything you need. Your result in 10 minutes, delivered to your door in the US.
Sources
- NIDDK. Diagnosis of peptic ulcers. Last reviewed September 2022. www.niddk.nih.gov/health-information/digestive-diseases/peptic-ulcers-stomach-ulcers/diagnosis
- MedlinePlus, US National Library of Medicine. Helicobacter pylori (H. pylori) tests. Updated November 2, 2026. medlineplus.gov/lab-tests/helicobacter-pylori-h-pylori-tests/
- Chey WD, et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. Am J Gastroenterol. 2024. Guideline highlights, American College of Gastroenterology. mediacdn.gi.org/giorgcdn/wp-content/uploads/2025/01/ACG-Hpylori-Guidelines-Highlights-2024-FINAL.pdf.pdf
- NIDDK. Symptoms and causes of indigestion. Last reviewed March 2025. www.niddk.nih.gov/health-information/digestive-diseases/indigestion-dyspepsia/symptoms-causes
- MedlinePlus Medical Encyclopedia. Gastrointestinal bleeding. Reviewed January 24, 2025. medlineplus.gov/ency/article/003133.htm
First published November 2026.