Guides
Canfora
Gaviscon and ordinary antacids are not known to affect H. pylori breath or stool tests, so they are usually the medicines you’re allowed to use for symptom relief while preparing for a test. What does cause false-negative results are proton pump inhibitors (stop 2 weeks before), antibiotics and bismuth (usually 4 weeks before), and, at some labs, H2 blockers such as famotidine.

The short answer
The urea breath test and the stool antigen test both detect live, active Helicobacter pylori. The bacterium makes an enzyme (urease) that breaks down the labelled urea you swallow in the breath test, and it sheds antigens into stool. Anything that suppresses the bacteria without eradicating them makes it temporarily less active or less numerous, so the test reads negative even though the infection is still there. That’s what PPIs, antibiotics and bismuth do. Blood antibody tests aren’t affected by these medicines, but they stay positive after successful treatment, so they aren’t used to confirm a cure.
| Medicine | Examples | Before the test |
|---|---|---|
| Proton pump inhibitors | Omeprazole (Losec, Prilosec), esomeprazole (Nexium), pantoprazole (Somac), lansoprazole, rabeprazole | Stop 2 weeks before |
| Antibiotics | Any course, including for other infections | 4 weeks (some labs: 2 weeks) |
| Bismuth | Pepto-Bismol, De-Nol | 2–4 weeks, per lab |
| H2 blockers | Famotidine (Pepcid) | Depends on the lab: from 1–2 days up to 2 weeks |
| Antacids and alginates | Gaviscon, Mylanta, Rennie, Tums, Quick-Eze | Usually allowed; avoid in the last hour or as instructed |
| Sucralfate | Carafate | Not reported to interfere; check with the lab |
Getting through two weeks without a PPI: use Gaviscon after meals and at bedtime, avoid late large meals, raise the head of the bed, and cut down alcohol, coffee and spicy food for a while. If symptoms are severe, ask your doctor; occasionally the test plan is changed.
If the test is checking whether treatment worked, it should be done at least 4 weeks after finishing the antibiotics and at least 2 weeks after stopping the PPI.
Gaviscon combines an alginate (sodium alginate) with a small amount of antacid (sodium bicarbonate and calcium carbonate; potassium bicarbonate in Gaviscon Advance). In the stomach it forms a foam “raft” that floats on the contents and blocks reflux. It neutralises some acid, but it doesn’t switch off acid production and has no antibacterial effect, which is why it isn’t expected to interfere with H. pylori testing. More on the different stomach medicines is in the stomach medicines guide.
Gaviscon contains sodium (and potassium in Advance). If you’re on a low-salt diet for heart failure or kidney disease, ask your pharmacist which antacid suits you.
Usually yes. Antacids and alginates don’t appear to affect the test. Follow your lab’s fasting rules on the day itself.
It depends on the lab. Some allow it; others ask you to stop H2 blockers for a day or two, or up to 2 weeks, because they can slightly reduce test sensitivity. Check your test instructions.
Yes. Esomeprazole (Nexium) is a PPI and can cause a false-negative result. Stop it 2 weeks before the test, unless your doctor advises otherwise.
Evidence is limited. Some labs ask you to pause probiotics for a couple of weeks to be safe; follow your instructions.
More on this topic: how antacids, alginates and acid reducers differ is explained in Stomach and Gut Medicines: Antacids, Acid Reducers, Laxatives and Anti-diarrhoeals.
Medical disclaimer: this article is general information, not a diagnosis or a personal recommendation. Check with your doctor or pharmacist before starting, stopping or combining medicines. Read the full disclaimer.