Has your doctor recommended an H. pylori test, leaving you unsure whether you need a breath test, stool test, or blood test? Do you need to fast before testing, and what does a positive or negative result actually mean?
There are several ways to detect Helicobacter pylori infection, but not all tests serve the same purpose. Some identify an active infection, while others may remain positive because of a previous infection, even after successful treatment.
This guide explains the differences between the urea breath test, stool antigen test, and blood antibody testing; when endoscopy may be needed; how to prepare for accurate results; and when testing should be repeated after treatment.
Seek emergency medical care if you vomit blood or material resembling coffee grounds, pass black tarry stools, develop sudden severe persistent abdominal pain, or faint with suspected gastrointestinal bleeding. Do not delay urgent assessment while waiting for an H. pylori test. [7]
Not everyone with occasional bloating or stomach discomfort needs an H. pylori test.
Testing decisions depend on the person's symptoms, age, medical history, risk factors, and whether another investigation may be more appropriate.
Testing may be recommended in situations such as:
ACG and ACG/CAG guidance emphasizes selecting appropriate patients for testing while considering risk factors and whether endoscopy or other investigations are needed. [1] [5]
If you are unsure whether your symptoms suggest H. pylori, read H. pylori Symptoms: When Should You Get Tested? to understand common symptoms and important warning signs.
H. pylori can be investigated using noninvasive tests, such as breath and stool tests, or tests performed on tissue collected during an upper gastrointestinal endoscopy.
Blood antibody tests are also available, but they cannot reliably distinguish active infection from previous exposure.
The most important question when choosing a test is what the test needs to establish: whether the bacteria are currently present, whether treatment has eradicated the infection, or whether the stomach lining needs direct examination for another reason.
The urea breath test (UBT) is an important noninvasive method for detecting active H. pylori infection.
It takes advantage of the bacterium's ability to produce urease, an enzyme that breaks down urea and generates compounds including carbon dioxide.
When the patient receives urea labeled with a specific carbon isotope, the resulting labeled carbon dioxide can be measured in exhaled breath.
The exact procedure and waiting time depend on the testing system and laboratory protocol. [2] [3]
Some breath testing systems require patients to avoid food and drinks for several hours beforehand.
However, fasting requirements vary by test system and laboratory. You should follow the instructions provided for your specific appointment, including guidance about water, smoking, and medications.
An H. pylori stool antigen test detects proteins or antigens associated with the bacteria in a stool sample.
When performed using an appropriate validated laboratory test, it can identify active infection and confirm eradication after treatment.
Storage conditions and acceptable delivery times vary between laboratories and testing systems, so follow the instructions for your specific test.
Both can be reliable methods for detecting active H. pylori infection.
Accuracy depends on the specific assay, laboratory quality, medication preparation, and timing.
Validated laboratory-based stool antigen tests, particularly appropriate monoclonal antibody assays, can achieve high diagnostic performance.
Rather than choosing a test based on a universal claim that one is always more accurate, the clinician should consider the patient's needs and available validated tests. [2] [6]
Rapid and home-use tests may have different performance characteristics from established laboratory assays.
Do not assume all home tests have equivalent accuracy or rely on a home result alone to choose antibiotics or confirm eradication without appropriate clinical evaluation.
Blood antibody tests measure the immune system's response to H. pylori rather than detecting the bacteria directly.
Antibodies, including IgG, may remain detectable long after an infection has been successfully treated.
Consequently:
This distinction explains why different H. pylori tests are not interchangeable. [3]
Most patients who are suitable for noninvasive testing do not need endoscopy solely to check for H. pylori.
However, upper endoscopy may be appropriate when clinicians need to examine the esophagus, stomach, or duodenum directly, or investigate possible bleeding, a complicated ulcer, or another concerning condition.
During endoscopy, the clinician may collect biopsies for histology, rapid urease testing, or other investigations depending on the patient's needs.
Biopsies allow direct examination of tissue and can support H. pylori diagnosis, but they are not necessary for everyone.
Some biopsy-based tests may also be affected by medications that suppress bacterial activity or reduce bacterial density.
Endoscopy should be selected according to the overall clinical indication, not accuracy comparisons alone. [2] [4]
Some molecular tests, including polymerase chain reaction (PCR), can detect bacterial genetic material.
Certain assays can also identify genetic changes associated with resistance to specific antibiotics.
However, test availability, performance, specimen requirements, and resistance detection vary. PCR is not a routine requirement for every person with suspected H. pylori infection.
| Test | Detects active infection? | Useful for confirming eradication? | Important consideration |
|---|---|---|---|
| Urea breath test | Yes | Yes | Requires appropriate medication preparation |
| Stool antigen test | Yes, using an appropriate validated assay | Yes | Assay quality and sample handling matter |
| Blood antibody test | Cannot reliably distinguish current from previous infection | No | May remain positive after treatment |
| Endoscopic biopsy-based tests | Yes, depending on the test and conditions | May be used when endoscopy is independently indicated | Invasive and selected for specific clinical reasons |
| Appropriate PCR tests | May detect infection depending on the assay and specimen | Not generally the routine first choice for test of cure | Some assays can help identify antibiotic resistance |
Test selection should reflect the clinical purpose, timing, and medication history—not simply convenience or price.
Correct preparation is essential for reliable results, especially with breath and stool testing.
Ask your testing center about fasting, water intake, smoking, chewing gum, and any medication restrictions.
Tell the healthcare team about recent antibiotics, bismuth products, proton pump inhibitors, and other acid-suppressing medications.
Follow the sample collection and storage instructions and confirm when the sample should be returned.
Tell your clinician about medications that may reduce test sensitivity.
Preparation may include fasting, anesthesia assessment, and individualized medication instructions.
Your healthcare team will provide specific guidance based on the procedure and your health.
Some medicines temporarily suppress H. pylori or reduce bacterial activity, potentially producing a negative result even when infection remains present.
Professional guidelines therefore recommend appropriate intervals before breath or stool testing, whether for initial diagnosis or eradication confirmation.
| Medication | Usual interval before testing | Reason |
|---|---|---|
| Proton pump inhibitors (PPIs), such as omeprazole, esomeprazole, and pantoprazole | Withheld for at least 2 weeks under medical guidance | May cause false-negative results |
| Potassium-competitive acid blockers (PCABs), such as vonoprazan | Withheld for at least 2 weeks under medical guidance | May interfere with infection detection |
| Antibiotics | At least 4 weeks since relevant antibiotic exposure | May temporarily suppress the bacteria |
| Bismuth-containing medicines | At least 4 weeks | May reduce test sensitivity |
During the PPI washout period, your clinician may recommend temporary alternatives such as H2 receptor antagonists or antacids, subject to the requirements of the selected test. [1] [2]
Do not stop prescribed medication on your own just to undergo testing. If withholding treatment is not appropriate, your clinician may change the test date or consider an alternative diagnostic approach.
Results are reported differently according to the method and laboratory.
Some are qualitative, such as Positive or Negative, while others include measurements interpreted using method-specific reference limits.
A positive result from an appropriately performed urea breath test or stool antigen test generally indicates an active infection.
A positive blood antibody result, however, may reflect previous exposure rather than ongoing infection.
A negative result from a reliable test performed after appropriate preparation makes active infection less likely.
However, it may not be dependable if the test was performed soon after antibiotics or bismuth, or while using certain acid-suppressing medications.
If clinical suspicion remains, the clinician may recommend repeating testing after correct preparation or investigating other possible causes.
There is no single numerical cutoff that applies to every H. pylori test.
Breath tests may report values interpreted against a system-specific threshold. Stool antigen tests may provide qualitative or assay-dependent results, while antibody tests use different measurements.
A value such as 20 or 50 therefore cannot be interpreted without knowing the test method, units, and laboratory reference range.
Not necessarily.
H. pylori infection can coexist with functional dyspepsia, reflux, or another condition.
Your clinician may need to evaluate whether the infection explains your symptoms and whether further investigations are indicated.
The 2024 ACG guideline recommends confirming H. pylori eradication in all patients who receive treatment, even when symptoms disappear.
A urea breath test or appropriate stool antigen test is commonly used. Blood antibody testing is not suitable for confirming eradication.
These intervals help reduce false-negative results. They do not establish whether treatment succeeded without the actual follow-up test. [1]
Not necessarily. Symptoms may persist because of functional dyspepsia, acid reflux, or another condition even after successful eradication.
Likewise, symptoms may improve despite persistent infection.
Confirmation should therefore rely on an appropriately timed and performed test rather than symptoms alone.
For more about treatment selection, antibiotic resistance, and what happens if the infection persists, read H. pylori Treatment: Choosing Therapy and Confirming Eradication.
Yes. Indications for testing, diagnostic approaches, and follow-up recommendations differ between children and adults.
ESPGHAN/NASPGHAN guidelines advise against routinely using a test-and-treat strategy for children with functional abdominal pain alone.
Children with gastric or duodenal ulcers or erosions may require appropriate evaluation for H. pylori under pediatric guidance.
When confirming eradication in children, the guidelines generally recommend testing 6 to 8 weeks after completing treatment, using an appropriate urea breath test or validated laboratory-based stool antigen test with correct medication preparation. [6]
Children should not be tested or have results interpreted solely according to adult protocols without appropriate clinical assessment.
If you have persistent indigestion, a history of peptic ulcers, or H. pylori results that need interpretation, a gastroenterology assessment may help determine whether a breath test, stool antigen test, or endoscopy is suitable for your condition.
Explore the Gastroenterology and Endoscopy Department at Mouwasat Hospital, including H. pylori assessment and treatment. Availability of individual tests may vary by hospital location and clinical requirements.
Both can reliably detect active infection and confirm eradication when validated tests are used with proper preparation. The choice depends on the patient's needs and test availability.
Urea breath testing may require several hours of fasting, depending on the laboratory protocol. Stool antigen testing has different preparation requirements. Follow the instructions for the specific test.
This depends on the test system and laboratory instructions. Do not assume water is always allowed or always prohibited before breath testing.
It can detect antibodies, but it cannot reliably distinguish active from previous infection and should not be used to confirm eradication.
A positive breath or suitable stool antigen test generally indicates active infection. A positive antibody test may also reflect previous exposure.
Not in every situation. A properly performed negative test makes active infection less likely, but certain medications may cause false-negative results.
No single range applies to every test. Results must be interpreted according to the assay, units, and reference limits reported by the laboratory.
Omeprazole and other PPIs can affect breath and stool testing. A two-week period without PPIs is generally recommended before testing, under medical guidance. Do not stop prescribed medication without consulting your clinician.
In adults, testing is generally performed at least four weeks after antibiotics are completed, with appropriate medication washout intervals.
Not necessarily. Symptoms can improve despite persistent infection, which is why eradication should be confirmed with a suitable test.
No. Breath or stool antigen testing may be appropriate without endoscopy. Endoscopy is used when direct examination of the upper digestive tract is indicated.
Performance can vary between home, rapid, and laboratory tests. Equivalent accuracy should not be assumed without evidence for the specific assay.
Turnaround time varies by test method and laboratory. Ask the testing facility when your results are expected.
Recent guidance includes testing adult household contacts of people with confirmed H. pylori infection using active infection tests, with clinical assessment. Antibiotics should not be given to everyone without appropriate diagnosis.
H. pylori testing is not a single procedure. Breath and stool antigen tests can identify active infection, while blood antibody results cannot reliably establish whether infection is current or treatment has worked.
Medication use, test timing, and preparation affect result accuracy. Some patients may need repeat testing or broader medical assessment.
For a wider overview of the infection, read H. pylori Infection: Causes, Diagnosis, Treatment and Warning Signs. If you need help selecting a test or interpreting your results, explore the Gastroenterology and Endoscopy Department at Mouwasat Hospital.
Medical disclaimer: This article provides general health education and does not replace individualized medical assessment. Do not stop prescribed medication or begin antibiotics based on an uninterpreted result. Seek emergency care for signs of gastrointestinal bleeding or sudden severe abdominal pain.