Requests

Laboratory tests

Helicobacter pylori test: how to prepare

Helicobacter pylori is a bacterium that can live in the stomach for years and is associated with gastritis, peptic ulcers and, in the long term, a higher risk of stomach cancer.

Clínica Alegre professional pipetting a sample into a test tube beside sample collection tubes

Reviewed by Dr. Fernando Alegre

Clinical Director · OMD, registration no. 9688

Written by the Clínica Alegre team6 min read

In this article

Preparing for a Helicobacter pylori test is simple, but there is one point many people do not know: some commonly used medicines can cause a false-negative result. Always follow the laboratory's specific instructions.

Which test are you having?

There are three common ways to test for the bacterium without an endoscopy. Your doctor will choose the most suitable one for you.

TestHow it is doneWhat it is for
Urea breath testYou breathe into a tube or bag, drink a solution and breathe into it again after a set timeDiagnosis and confirmation of eradication
Stool antigenYou collect a small stool sample at homeDiagnosis and confirmation of eradication
Serology (blood antibodies)Standard blood sampleShows exposure to the bacterium but does not distinguish current from past infection

The European Maastricht VI/Florence consensus recommends the breath test or stool antigen test as the first-choice non-invasive tests. Serology has a more limited role and cannot confirm whether the infection has been eradicated because antibodies can remain for a long time.

The breath test uses a non-radioactive form of carbon. Even so, always say if you are pregnant or breastfeeding.

What to tell your doctor before the test

Bring an up-to-date list of everything you take, including non-prescription medicines and supplements. Tell your doctor:

If you take stomach-protecting medicines (proton pump inhibitors, such as

  • omeprazole or pantoprazole). They reduce the number of bacteria in the stomach and can make the test falsely negative.

If you have taken antibiotics in recent weeks, for any reason (dental, urinary

  • or respiratory infection).

If you have taken medicines containing bismuth. If you have previously had treatment for Helicobacter pylori and when it ended. If you have warning symptoms such as unexplained weight loss, difficulty

  • swallowing, persistent vomiting, black stools or anaemia. In these cases, your doctor may prefer an endoscopy.

If you are pregnant, breastfeeding or have a long-term condition (for example,

  • liver or kidney disease).

Medicines that can interfere

Guidelines (Maastricht VI/Florence and the American College of Gastroenterology) give approximate periods for avoiding these medicines before a breath or stool antigen test. The laboratory and your doctor will confirm the timing for you.

MedicineUsual interval before the testNote
Proton pump inhibitorsAround 2 weeksOnly stop if your doctor advises it
AntibioticsAround 4 weeksDo not interrupt an ongoing course
Medicines containing bismuthAround 4 weeksTell the doctor
Simple antacidsMay generally be usedCheck with the laboratory

Many people take stomach-protecting medicines for good reasons (ulcers, severe reflux or stomach protection). Stopping without advice may carry risks: tell your doctor, who will decide whether you can stop or whether another test is preferable.

Anticoagulants, antiplatelet medicines and other regular medication do not interfere with these tests and should not be stopped.

Fasting and preparation on the day

Breath test:

  • You will usually be asked to fast for several hours (often around 6 hours). Confirm the exact period with the laboratory. You may be asked not to smoke or chew gum before the test. The test usually takes around half an hour. Take essential medication with a little water if the laboratory allows it.

Stool antigen test:

  • You do not need to fast. Ask the laboratory for the correct container and read the instructions before starting. Collect the stool in a clean container or on paper, without letting it touch urine or toilet water. Use the spatula in the lid to take the specified amount; do not fill the pot. Label it with your name and the date and deliver it within the specified time. If you cannot deliver it straight away, follow the storage instructions (often in the fridge).

Serology: you do not usually need to fast, but check whether you are having other tests from the same sample.

Checklist before the test

WhenWhat to do
When you receive the requestConfirm which test you are having and ask the laboratory for instructions
4 weeks beforehandTell your doctor if you have taken or are going to take antibiotics
2 weeks beforehandAsk your doctor whether to stop your stomach-protecting medicine
On the dayFast (breath test) or collect the sample (stool test) as instructed
On arrivalTell the technician which medicines you have taken in recent weeks

Warning signs: when to contact the clinic or go to the emergency department

While waiting for the test, contact your doctor or SNS 24 (808 24 24 24) if:

  • Your stomach symptoms worsen after stopping your stomach-protecting medicine on medical advice. You have persistent vomiting, difficulty swallowing or unexplained weight loss. You feel extremely tired or look pale, which may indicate anaemia.

Call 112 if:

  • You vomit blood or dark fluid resembling coffee grounds. You have black, sticky, very foul-smelling stools, or pass a large amount of blood. You develop sudden, very severe abdominal pain or faint.

At Clínica Alegre in Setúbal and Seixal, you can have laboratory tests and ask our team any questions about the results.

Frequently asked questions

Can I take my stomach-protecting medicine on the morning of the test?

Only if your doctor advises it. These medicines generally need to be stopped around 2 weeks beforehand, but this is always a medical decision.

Does the breath test involve radiation?

No. The carbon used is non-radioactive.

I took an antibiotic for a dental infection two weeks ago. Can I have the test?

Tell your doctor. It is generally recommended to wait around 4 weeks after finishing the antibiotic.

Did you enjoy this article?

Scientific references2
  1. Malfertheiner P, Megraud F, Rokkas T, et al. Management of Helicobacter pylori infection: the Maastricht VI/Florence consensus report. Gut. 2022;71(9):1724–1762.
  2. Chey WD, Howden CW, Moss SF, et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. Am J Gastroenterol. 2024;119(9):1730-1753.
Article information
Written by
Clínica Alegre team
Clinical review
Dr Fernando Alegre, Clinical Director · OMD, registration no. 9688
Published
3 Dec 2026
Last updated
3 Dec 2026
Topic
Laboratory tests
Reading time
6 min

See also

Related treatments

Want to know what is right for you?

Contact us on WhatsApp or book an assessment, in person or online.

Book an appointment

Book your assessment.

Choose Setúbal or Seixal. We reply within opening hours.

Newsletter

Get the latest news from the Clínica Alegre.

Blog articles and clinic news, delivered to your inbox. Unsubscribe at any time.