1. Home
  2. US
  3. Testing

Can you test and treat H. pylori while breastfeeding?

Written by the HpyloriTest.com editorial team. Updated on .

Key facts

  • Yes, you can test. A stool test takes a sample and puts nothing into your body.
  • For treatment, each medicine is checked on its own. Amoxicillin is considered acceptable while nursing (LactMed).
  • You can check for H. pylori at home with a stool antigen test, with a result in 10 minutes.

Is the test safe while breastfeeding?

Yes. Stool tests have no known risks (MedlinePlus). You collect a small sample at home and read the result in 10 minutes.

Can you take the treatment?

H. pylori treatment is several medicines together, and each one has its own breastfeeding advice. Amoxicillin passes into milk at low levels and is considered acceptable in nursing mothers (LactMed). Others are different. Tell your doctor you're breastfeeding and how old your baby is, so they can choose.

Do you have to stop breastfeeding?

Not automatically. It depends on the medicines chosen. Ask before you start the course, not after.

How to do the home test

  1. Catch a stool sample and dip the end of the sampling stick into it.
  2. Put the stick back in the tube, then stir and turn it for about 10 seconds.
  3. Squeeze 2 drops into the round sample hole on the test.
  4. 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

Should my baby be tested?

Children are tested differently from adults. See H. pylori in children.

Test at home today

One stool antigen test with everything you need. Your result in 10 minutes, delivered to your door in the US.

$49.00

Sources

  1. Drugs and Lactation Database (LactMed), National Institute of Child Health and Human Development. Amoxicillin. www.ncbi.nlm.nih.gov/books/NBK500887/
  2. MedlinePlus, US National Library of Medicine. Helicobacter pylori (H. pylori) tests. Updated November 2, 2026. medlineplus.gov/lab-tests/helicobacter-pylori-h-pylori-tests/
  3. 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
  4. NIDDK. Symptoms and causes of indigestion. Last reviewed March 2025. www.niddk.nih.gov/health-information/digestive-diseases/indigestion-dyspepsia/symptoms-causes
  5. MedlinePlus Medical Encyclopedia. Gastrointestinal bleeding. Reviewed January 24, 2025. medlineplus.gov/ency/article/003133.htm

First published November 2026.

How to test for H. pylori at home (39 sec)