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.
| Test | How it is done | What it is for |
|---|---|---|
| Urea breath test | You breathe into a tube or bag, drink a solution and breathe into it again after a set time | Diagnosis and confirmation of eradication |
| Stool antigen | You collect a small stool sample at home | Diagnosis and confirmation of eradication |
| Serology (blood antibodies) | Standard blood sample | Shows 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.
| Medicine | Usual interval before the test | Note |
|---|---|---|
| Proton pump inhibitors | Around 2 weeks | Only stop if your doctor advises it |
| Antibiotics | Around 4 weeks | Do not interrupt an ongoing course |
| Medicines containing bismuth | Around 4 weeks | Tell the doctor |
| Simple antacids | May generally be used | Check 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
| When | What to do |
|---|---|
| When you receive the request | Confirm which test you are having and ask the laboratory for instructions |
| 4 weeks beforehand | Tell your doctor if you have taken or are going to take antibiotics |
| 2 weeks beforehand | Ask your doctor whether to stop your stomach-protecting medicine |
| On the day | Fast (breath test) or collect the sample (stool test) as instructed |
| On arrival | Tell 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
- 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.
- Chey WD, Howden CW, Moss SF, et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. Am J Gastroenterol. 2024;119(9):1730-1753.





