Can you take Gaviscon or Nexium before an H. pylori test?
Medically reviewed by Dr Paul Frank, Gastroenterologist, on .
Written by the
HpyloriTest.com editorial team. Updated on .
Key facts
- Gaviscon: yes, you can keep taking it. Nexium: ask your GP about stopping it 2 weeks before.
- Nexium and other PPIs, such as Somac, can hide H. pylori from the test.
- Antibiotics and bismuth need a 4-week gap before you test.
Why do some medicines affect the test?
Some stomach medicines and antibiotics can interfere with a test's ability to find H. pylori (Pathology Tests Explained).
Which medicines need a break before the test?
Australian GP guidance gives these times (AJGP 2025):
| Medicine (Australian brands) | Before your test |
|---|---|
| PPIs: Nexium, Somac, Losec, Pariet, Zoton | Ask your GP. If they agree, stop 2 weeks before |
| Sucralfate: Carafate | Ask your GP. If they agree, stop 2 weeks before |
| Antibiotics | Test at least 4 weeks after your last dose |
| Bismuth, in some H. pylori treatments | Test at least 4 weeks after your last dose |
PPIs you buy from a pharmacy for heartburn count too. Never cut a course of antibiotics short.
Which antacids are fine?
Antacids such as Gaviscon, Mylanta and Quick-Eze, and H2 blockers such as famotidine, don't need to be stopped weeks before an H. pylori test the way PPIs do (AJGP 2025).
Reading your result
- C and T lines: H. pylori detected. Take your result to your GP 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 GP instead
See your GP straight 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 poo, call 000.

Test at home today
One faecal antigen test with everything you need. Your result in 10 minutes, delivered anywhere in Australia.
Sources
- Pathology Tests Explained. Helicobacter pylori. Last updated September 2025. pathologytestsexplained.org.au/learning/test-index/hpylori
- Hopkins Z, Diab J, Obeyesekera K, Tse T, Wu B. Helicobacter pylori: rise of the resistance. Australian Journal of General Practice. 2025;54(10). www1.racgp.org.au/ajgp/2025/october/helicobacter-pylori-rise-of-the-resistance
- Healthdirect Australia. Helicobacter pylori. Last reviewed December 2025. www.healthdirect.gov.au/helicobacter-pylori
- Healthdirect Australia. Vomiting. Last reviewed February 2024. www.healthdirect.gov.au/vomiting
First published November 2026.