Requests

Laboratory tests

Tests for Helicobacter pylori

When a doctor suspects a Helicobacter pylori infection, there are several ways to confirm it, and they do not all serve the same purpose.

Clínica Alegre practitioner 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 team10-minute read

In this article

The best-known test is the urea breath test, but there are also stool tests, blood antibody tests and tests on stomach tissue samples taken during an endoscopy. Each method has its own advantages, limitations and preparation requirements, and the choice depends on the clinical situation.

This article explains in general terms how each test works, what the results mean and which factors can lead to a false result. It does not interpret individual results: a positive or negative result only becomes meaningful when the doctor who requested the test considers it alongside the symptoms, medicines and medical history. The preparation instructions described here are general; you should follow those provided by the laboratory where your test will be carried out.

Why are there so many different tests?

Tests for Helicobacter pylori fall into two main groups. Non-invasive tests do not require an endoscopy: they include the breath test, stool antigen test and serology (a blood test for antibodies). Invasive tests require an upper gastrointestinal endoscopy, during which small samples of the stomach lining (biopsies) are taken for analysis.

The reason for this range is simple: the clinical questions differ. In a young person with digestive discomfort and no red-flag symptoms, the aim is simply to find out whether the bacterium is present. In someone with weight loss or anaemia, the stomach needs to be examined directly. After treatment, the aim is to find out whether the bacterium has gone, and some tests are unsuitable for this. The European Maastricht VI consensus guidelines and US guidelines describe in detail when each test should be used.

TestTypeWhat it detectsDoes it indicate active infection?
Urea breath testNon-invasiveActivity of the bacterium's ureaseYes
Stool antigen (monoclonal)Non-invasiveProteins from the bacterium in the stoolYes
Serology (IgG antibodies)Non-invasiveImmune response to the bacteriumNot necessarily
Rapid urease test on a biopsyInvasiveUrease in stomach tissueYes
HistologyInvasiveBacteria and damage to the lining under a microscopeYes
Culture and molecular testsInvasive (sometimes also performed on stool)Bacteria and antibiotic resistanceYes

The urea breath test

This test uses the bacterium's ability to produce urease. The patient breathes into a tube or bag to provide an initial air sample, drinks a solution containing urea labelled with a carbon isotope (usually non-radioactive carbon-13) and, after the waiting period specified in the protocol, breathes into the tube or bag again. If the bacterium is present, it breaks down the urea and the labelled carbon appears in the exhaled air as carbon dioxide.

This is a simple, well-tolerated and highly accurate test. Guidelines consider it one of the best options both for diagnosing the infection and confirming that it has been eliminated after treatment. It usually requires fasting for a few hours and should not be performed while taking medicines that suppress the bacterium. In rare situations, such as previous stomach surgery, it may be less reliable and the doctor may prefer another method.

The stool antigen test

The stool antigen test looks for specific Helicobacter pylori proteins in a small sample. Guidelines recommend laboratory tests that use monoclonal antibodies, which perform better than rapid visual tests. When carried out correctly, it is as accurate as the breath test, both for diagnosis and for confirming eradication.

The sample is collected at home in a suitable container, following the laboratory's instructions on the amount required, storage and delivery time. Very watery stools can reduce reliability, so it may be better to postpone the test during an episode of diarrhoea. It is useful for people who find the breath test difficult and for children when their paediatrician considers testing appropriate.

Practical considerationBreath testStool antigen
Where it is doneAt the laboratoryCollected at home and delivered to the laboratory
FastingUsually requiredUsually not needed
Affected by proton pump inhibitorsYesYes
Affected by antibiotics and bismuthYesYes
Can confirm eradicationYesYes (laboratory monoclonal test)
Common limitationsPrevious gastric surgeryDiarrhoea, or incorrect collection or storage

Serology: what it can and cannot tell us

Serology is a blood test that measures IgG antibodies against Helicobacter pylori. A positive result shows that the body has been in contact with the bacterium, but cannot tell us whether the infection is still present because antibodies may remain for months or years after it has been cured. It therefore cannot confirm eradication, and in populations where the infection is less common, an isolated positive result is less informative.

It does, however, have a specific role. Unlike the other tests, it is not affected by proton pump inhibitors or recent antibiotics. It can also be useful in gastrointestinal bleeding, atrophy of the stomach lining or gastric lymphoma, where tests that depend on the amount of bacteria may give false-negative results. In these cases, the Maastricht VI consensus allows the use of validated serology tests. The result should always be interpreted by a doctor.

Endoscopy with biopsy

An upper gastrointestinal endoscopy allows the oesophagus, stomach and duodenum to be examined directly and biopsies to be taken. Several tests can be performed on these samples: a rapid urease test, which provides a result quickly; histology, which can show the bacterium and assess inflammation, atrophy or intestinal metaplasia; and culture or molecular tests, which identify resistance to antibiotics such as clarithromycin.

Most people do not need an endoscopy to diagnose the infection. It is indicated when there are red-flag symptoms such as vomiting blood, black stools, unexplained weight loss, difficulty swallowing or anaemia, and in older people or those at increased risk of stomach cancer, where it is important to examine the lining. It is also used to assess the bacterium's sensitivity to antibiotics, particularly after unsuccessful treatments.

When the doctor is likely to prefer itUsual test
Indigestion in a young person with no red-flag symptomsBreath test or stool antigen test
Red-flag symptoms or older ageEndoscopy with biopsy
Proton pump inhibitors that cannot be stoppedValidated serology or endoscopy, depending on the case
Recent gastrointestinal bleedingBiopsy and, if negative, additional tests
After two unsuccessful treatmentsEndoscopy with susceptibility testing
Confirmation of cureBreath test or stool antigen test

Medicines that affect the results

Several medicines reduce the number of bacteria in the stomach without eliminating them, which can lead to a false-negative result. The most important are proton pump inhibitors, widely used for heartburn and to protect the stomach, antibiotics and bismuth compounds. As a general rule, European guidelines advise stopping proton pump inhibitors around two weeks before breath, stool and biopsy tests, and antibiotics and bismuth around four weeks beforehand.

Always agree with your doctor before stopping any medicine. Some people take these medicines for important reasons, such as a history of bleeding, and should not stop them on their own. During the break, the doctor may suggest alternatives to control heartburn, such as simple antacids, which generally do not affect the test. If the medicine cannot be stopped, it is essential to tell the laboratory because this changes how the result is interpreted.

MedicineEffect on the testGeneral guidance
Proton pump inhibitorsPossible false negativesUsually stopped around 2 weeks beforehand, only on medical advice
AntibioticsPossible false negativesWait around 4 weeks after finishing
Bismuth compoundsPossible false negativesWait around 4 weeks after finishing
Simple antacidsGenerally no significant effectMay be used unless advised otherwise

How to read the report

The breath test result usually appears as a numerical value accompanied by “positive” or “negative”, according to a cut-off value set for the method. Results very close to this value may be considered indeterminate, and the doctor may request a repeat or a different test. The stool antigen result is usually reported as positive, negative or equivocal. Serology may appear as a numerical value with a reference range or as a qualitative result. Cut-off values and units vary between laboratories and methods, so always use those on your own report and do not compare figures from different laboratories. A negative result while taking medicines that affect the test does not rule out infection, and a positive antibody result does not prove that the infection is active. In every case, the doctor who requested the test considers the result alongside the symptoms and medical history.

After the result

If the test is positive for active infection, the next step is to speak to your doctor about treatment. Current regimens use combinations of several prescription medicines for a set period and should be chosen with antibiotic resistance, allergies and previous treatments in mind. This subject is covered in another article in this series.

If the test is negative and symptoms persist, the doctor may investigate other causes. If red-flag symptoms develop, such as vomiting blood, black stools, unexplained weight loss or difficulty swallowing, urgent assessment is needed regardless of any test result.

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

What is the best test for Helicobacter pylori?

It depends on the situation. The breath test and stool antigen test are the most reliable for detecting an active infection without an endoscopy; the doctor will choose the most suitable one.

Does a positive blood test mean I have the bacterium?

Not necessarily. Antibodies can remain after the infection has been cured, so the result must be interpreted by a doctor.

Do I need to fast?

For the breath test, usually yes. Always follow the laboratory's instructions.

Can I take my stomach-protection medicine before the test?

Proton pump inhibitors can cause false-negative results. Speak to your doctor before stopping them; never do so on your own.

Is the breath test radioactive?

Most tests use carbon-13, a non-radioactive isotope. If in doubt, ask the laboratory.

Can I do the stool test if I have diarrhoea?

Very watery stools can reduce reliability. It may be better to postpone it; check with the laboratory.

Can pregnant women have these tests?

Non-invasive tests are generally considered safe, but the decision to test during pregnancy should be made with a doctor.

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-62.
  2. Chey WD, Howden CW, Moss SF, et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. Am J Gastroenterol. 2024;119(9):1730-53.
Article information
Written by
Clínica Alegre team
Clinical review
Dr Fernando Alegre, Clinical Director · OMD, registration no. 9688
Published
2 Dec 2026
Last updated
2 Dec 2026
Topic
Laboratory tests
Reading time
10 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.