H. pylori or IBS: how do you tell them apart?
Written by the HpyloriTest.com editorial team. Updated on .
Key facts
- H. pylori is an infection in the stomach (MedlinePlus). IBS is a group of bowel symptoms: belly pain with diarrhea, constipation or both (NIDDK).
- Both cause bloating, which is why they get mixed up.
- You can check for H. pylori at home with a stool antigen test, with a result in 10 minutes.
How do the symptoms differ?
- H. pylori: pain or burning in the upper belly, nausea, burping, feeling full quickly (MedlinePlus).
- IBS: belly pain linked to bowel movements, and changes in how often you go or what your stool looks like (NIDDK).
Bloating can come with either.
Why test for H. pylori first?
H. pylori is something a simple test can find. No test shows IBS in the same way. Doctors diagnose IBS from your symptoms. Checking for H. pylori gives you one clear answer to start with.
Can you have both?
Yes. They're both common. If you test positive for H. pylori and treat it, any symptoms that stay are worth raising with your doctor.
How to do the home test
- Catch a stool sample and dip the end of the sampling stick into it.
- 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 read it at 10 minutes.
Our step-by-step instructions and video walk you through each stage.
Before you test
Ask your doctor before stopping a PPI such as Prilosec or Nexium. If they agree, stop it 2 weeks before you test. Test at least 4 weeks after your last dose of antibiotics or bismuth (Pepto-Bismol) (ACG), and never cut a course of antibiotics short.
What your result means
- 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.
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
Does H. pylori cause diarrhea like IBS?
Not usually. See does H. pylori cause diarrhea?

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
- MedlinePlus, US National Library of Medicine. Helicobacter pylori infections. Last updated August 24, 2025. medlineplus.gov/helicobacterpyloriinfections.html
- NIDDK. Symptoms and causes of irritable bowel syndrome. www.niddk.nih.gov/health-information/digestive-diseases/irritable-bowel-syndrome/symptoms-causes
- 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.