Stomach & gut

Does Gaviscon Affect an H. pylori Test?

Stomach & Gut

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.

By Dr. Ema HudsonUpdated: October 20263 min read

Illustration: Gaviscon and H. pylori tests – Canfora Medicine Guide

The short answer

  • Gaviscon, Mylanta, Rennie, Tums: generally fine before a breath or stool test; many labs ask you not to take anything in the hour before the test itself.
  • Stop beforehand: PPIs (omeprazole, esomeprazole, pantoprazole, lansoprazole, rabeprazole) for 2 weeks; antibiotics and bismuth (Pepto-Bismol, De-Nol) for 4 weeks (some labs say 2).
  • H2 blockers (famotidine): some labs ask you to stop them for up to 2 weeks, others allow them. Follow your test instructions.

Why some medicines spoil the test

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.

What to stop and when

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.

What is in Gaviscon?

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.

On the day of the test

  • Fast as instructed, often for 1–6 hours depending on the lab, with water allowed.
  • Don’t smoke beforehand if the lab asks you not to.
  • Bring a list of everything you’ve taken in the past month, including antibiotics for other reasons.
  • For a stool test, follow the kit instructions for collection and delivery time.

Frequently asked questions

Can I take Gaviscon the day before an H. pylori breath test?

Usually yes. Antacids and alginates don’t appear to affect the test. Follow your lab’s fasting rules on the day itself.

Can I take famotidine before an H. pylori test?

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.

Does Nexium affect the H. pylori test?

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.

Do probiotics affect the breath test?

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.

Back to the stomach & gut guide