You should stop taking a proton pump inhibitor (PPI) at least two weeks before an H. pylori test. This applies to all common PPIs, including omeprazole (Prilosec), esomeprazole (Nexium), lansoprazole (Prevacid), and pantoprazole (Protonix). The two-week rule holds whether you’re getting a breath test, a stool antigen test, or a biopsy-based test during an endoscopy.
Why Two Weeks Is the Standard
PPIs don’t just reduce stomach acid. They also suppress the bacteria themselves, reducing how densely H. pylori colonizes the stomach lining and how much urease (the enzyme the bacteria produce) is active at any given time. Both the breath test and the stool antigen test rely on detecting signs of that bacterial activity. When a PPI has tamped it down, the test can come back negative even though the infection is still there.
Research suggests that three days off a PPI is the bare minimum to avoid a false negative on a breath test, but 14 days is the preferred and widely recommended window. The American College of Gastroenterology guidelines specify at least two weeks off PPIs before testing. For endoscopy-based testing, studies use the same two-week cutoff when screening patients.
Other Medications That Affect Results
PPIs aren’t the only drugs that can mask an H. pylori infection. You’ll also need to stop:
- Antibiotics: Wait at least four weeks after finishing any antibiotic course before testing. Antibiotics can partially suppress the bacteria without fully clearing the infection, leading to a false negative.
- Bismuth subsalicylate (Pepto-Bismol): Stop at least two to four weeks before testing. Bismuth has its own antibacterial properties against H. pylori.
- H2 blockers (famotidine, ranitidine alternatives): Some testing protocols ask you to stop these two weeks before testing as well, though guidelines vary on this point.
- Antacids (Tums, Maalox, Mylanta): Some testing centers, including Stanford Health Care, advise avoiding even simple antacids for two weeks before a breath test, since they can also produce false negatives.
Managing Symptoms During the Washout
Two weeks without a PPI can be rough if you’re dealing with significant acid reflux or ulcer symptoms. The good news is that the ACG guidelines note you can bridge the gap with H2 receptor antagonists (like famotidine) and standard antacids during your PPI washout, as long as your testing center’s protocol allows it. However, some facilities ask you to stop H2 blockers and antacids before the test too, so confirm the specific instructions with whoever ordered your test.
Alginate-based products (like Gaviscon Advance) work differently from acid-suppressing drugs. They form a physical barrier that floats on top of stomach contents and reduces reflux without significantly changing acid levels or bacterial behavior. These can be a practical option for managing heartburn in the days leading up to testing, though again, check with your provider first.
What Happens if You Test Too Soon
The main risk of testing while still on a PPI is a false negative result. You go through the test, it comes back clean, and everyone assumes you don’t have H. pylori, when in reality the infection is still there. This matters because untreated H. pylori can cause chronic gastritis, peptic ulcers, and over time increases the risk of stomach cancer.
If you were unable to stop your PPI before a stool antigen test and the result comes back positive, that result is trustworthy. A positive test on a PPI is considered a true positive. But a negative result in that scenario is unreliable and should be repeated two weeks after stopping the medication.
Breath Test vs. Stool Test Preparation
The preparation rules are nearly identical for both the urea breath test and the stool antigen test: two weeks off PPIs, four weeks off antibiotics, and two to four weeks off bismuth. The breath test has one extra requirement. You need to fast for at least one hour before the test. This means no food or drink (other than small sips of water) in the hour leading up to it.
If you’re being tested after completing H. pylori treatment to confirm the infection is gone, the same washout periods apply. Most guidelines recommend waiting at least four weeks after finishing your antibiotic regimen and at least two weeks off PPIs before doing a confirmation test. Testing too early is one of the most common reasons for inaccurate follow-up results.

