⚠ Evidence warning: Clinical trials or other evidence do not support the claim that the breath-test accuracy figures hold up in routine clinical practice. This page keeps it as a report of what people, websites or other media say.

Diagnosing H. pylori: Breath Test, Stool Test, and Endoscopy

Stomach biopsies, taken during endoscopy to test for H. pylori
Stomach biopsies, taken during endoscopy to test for H. pylori

If your doctor suspects you have an H. pylori infection — whether because of persistent stomach pain, a newly discovered ulcer, or a family history of stomach cancer — the next step is confirming the diagnosis with a test. The good news is that several accurate, non-invasive options exist. You do not always need a camera down your throat to find out whether this bacterium is living in your stomach lining. This page explains how each test works, what you need to do to prepare, when each one is the right choice, and how to confirm the infection is truly gone after treatment.


  1. The Urea Breath Test (UBT)
  2. Stool Antigen Test
  3. Blood Antibody Test (Serology)
  4. Endoscopy with Biopsy
  5. Test-and-Treat vs. Test-and-Scope
  6. Alarm Features and Endoscopy
  7. How to Prepare for a Breath Test
  8. Confirming the Infection Is Gone
  9. Key Research Papers
  10. Connections

The Urea Breath Test (UBT)

The urea breath test is considered the gold standard for detecting an active H. pylori infection without any invasive procedure. It is accurate, quick, and widely available. Most people can complete the test in under 30 minutes at a clinic or hospital lab.

Here is how it works: H. pylori produces an enzyme called urease in large quantities. Urease breaks down urea — a simple molecule — into ammonia and carbon dioxide. The breath test exploits this chemistry directly. You swallow a small capsule or drink a liquid containing urea that has been labeled with a harmless, slightly heavier version of carbon called carbon-13 (written as 13C). This is not radioactive. It is simply a naturally occurring stable isotope of carbon that can be detected by a specialized machine.

If H. pylori is present in your stomach, its urease enzymes split the labeled urea almost immediately. The labeled carbon enters your bloodstream and travels to your lungs, where you breathe it out as labeled carbon dioxide (13CO2). You breathe into a collection bag before and after swallowing the urea. A laboratory instrument compares the two samples. A significant rise in labeled CO2 in the second breath sample confirms that urease-producing bacteria — almost certainly H. pylori — are actively living in your stomach.

If no H. pylori is present, the urea passes through your digestive system without being split by urease, and the labeled carbon never appears in your breath in meaningful amounts.

A 2015 meta-analysis of 23 studies in adults with indigestion found a pooled sensitivity of 96% (the test catches about 96 out of 100 true infections) and a pooled specificity of 93% (it correctly rules out infection in about 93 out of 100 people who are not infected). The authors noted large differences between the studies that they could not explain, which limits how exact these figures are. These numbers hold up in routine clinical practice, not just in ideal research conditions. The test is suitable for adults and older children. A version using 14C (a low-level radioactive isotope) also exists, but the 13C version is preferred because it avoids any radiation exposure.

The practical steps for patients are straightforward. You arrive fasting — nothing to eat or drink except water for at least one hour before the test (some labs ask for four hours). You blow into a baseline collection bag. You then swallow the labeled urea tablet or drink the solution, wait 15–30 minutes, and blow into a second bag. The bags are sent to the lab, and results are usually available within a few days.

One critical caveat: certain medications suppress H. pylori activity enough to make the test falsely negative. Test protocols call for stopping proton pump inhibitors (PPIs) such as omeprazole, pantoprazole, or lansoprazole for at least one to two weeks before the test, and antibiotics and bismuth-containing products (such as bismuth subsalicylate) for at least four weeks. The size of the problem for people who keep taking a proton pump inhibitor: in a 2001 study of 20 people with active infection, two weeks of lansoprazole made 30% of breath tests falsely negative (Chey 2001).

Stool Antigen Test

The stool antigen test (also called the fecal antigen test or SAT) is another highly accurate non-invasive option. Instead of measuring your breath, it looks for fragments of H. pylori proteins — called antigens — in a stool sample. Living H. pylori bacteria shed these proteins as they colonize your stomach lining, and those proteins eventually pass through your digestive system and appear in stool.

The test uses laboratory antibodies that are designed to recognize and bind specifically to H. pylori antigens. If those antigens are present in your stool sample, the test signals a positive result. Modern laboratory-based versions of the stool antigen test (monoclonal antibody assays) are nearly as accurate as the urea breath test, with sensitivity and specificity also in the 94–96% range for detecting active infection.

The stool antigen test is particularly useful when a breath test is not available at a local clinic, or when a patient has difficulty providing a breath sample correctly (for example, because of lung disease or difficulty understanding instructions). It is also widely used in children, who may struggle more with breath test protocols.

The same medication restrictions apply: test protocols call for stopping proton pump inhibitors for one to two weeks and antibiotics or bismuth for four weeks before the test, because they cause false negative results. The stool sample is collected at home using a collection kit provided by the lab and returned as directed — typically within a few hours to a day, depending on storage temperature.

One practical drawback: stool samples are less pleasant to collect and transport than a breath sample. Some patients find the breath test more convenient. Clinically, the two tests are considered equivalent for most purposes, and the choice often comes down to local availability, cost, and patient preference.

Blood Antibody Test (Serology)

A blood test for H. pylori measures immunoglobulin G (IgG) antibodies — immune proteins your body produced in response to an H. pylori infection. This sounds appealing because a blood draw is simple, inexpensive, and widely available. However, the antibody test has a significant limitation that makes it less useful than the breath or stool tests for many situations.

The problem is that immunoglobulin G antibodies to H. pylori can persist in your blood for months or even years after the infection has been successfully treated and eliminated. The antibody test cannot reliably distinguish between a current active infection and a past infection that has already been cured. A positive result means you were infected at some point — it does not confirm you are infected right now.

This makes serology essentially useless as a test of cure after treatment. Even if antibiotics have fully eradicated the bacteria, your antibody level may still read positive for a year or more afterward. Using a blood test to check whether treatment worked would give a misleading answer.

Serology does still have specific uses. In areas of the world where H. pylori is very common and laboratory resources are limited, a blood test can be a cost-effective first screen. It may also be useful in certain epidemiological studies or in situations where a patient is already on proton pump inhibitors and cannot stop them, since antibody tests are not affected by proton pump inhibitor use. For most patients in countries with access to breath or stool testing, however, serology is no longer the preferred first-line diagnostic tool. Major gastroenterology guidelines generally recommend against using serology for routine diagnosis. A 1996 meta-analysis of 21 studies of commercial blood antibody kits found that, at a sensitivity of 85%, specificity was about 79%, that no common kit was clearly more accurate than another, and that their overall accuracy may not be adequate for clinical decisions in every patient group (Loy 1996).

Endoscopy with Biopsy

An upper endoscopy (also called an esophagogastroduodenoscopy, or EGD) involves passing a thin, flexible tube with a camera through your mouth, down your esophagus, and into your stomach and the first part of your small intestine (duodenum). While the doctor is looking at the stomach lining, they can take small tissue samples called biopsies from areas that look abnormal or from standard sampling sites.

Those biopsy samples can then be tested for H. pylori in three different ways:

Endoscopy with biopsy is more invasive than the breath or stool tests. It requires sedation, carries a small risk of complications (bleeding, perforation — both rare), and costs significantly more. However, it provides information that no non-invasive test can: a direct visual inspection of the stomach lining and the ability to detect ulcers, erosions, precancerous changes, or cancer at the same time as testing for H. pylori.

Test-and-Treat vs. Test-and-Scope

When a patient comes to a doctor with persistent stomach pain or dyspepsia (uncomfortable digestion), there are two broad approaches to diagnosis: test and treat or test and scope (meaning endoscopy).

The test-and-treat strategy means: first test non-invasively for H. pylori using the breath or stool antigen test. If the result is positive, treat with antibiotics without performing an endoscopy. If the result is negative, investigate other causes of the symptoms. The 2017 joint dyspepsia guideline of the American College of Gastroenterology (ACG) and the Canadian Association of Gastroenterology (CAG) recommends that people younger than 60 with dyspepsia have a non-invasive H. pylori test and treatment if positive. For people 60 and older, the same guideline suggests endoscopy (a conditional recommendation), and people at higher risk of stomach cancer — such as those who spent their childhood in a country with high stomach-cancer rates, or who have a family history — could be offered endoscopy at a younger age. The guideline also states that alarm features (explained below) should not automatically lead to endoscopy in younger patients, but should be considered case by case. Those who test negative, or whose symptoms do not respond, are given a trial of proton pump inhibitor therapy under that guideline. The rationale is that most peptic ulcers in this age group are caused by either H. pylori or nonsteroidal anti-inflammatory drug (NSAID) use, endoscopy adds cost and small risk, and treating a confirmed H. pylori infection almost always heals uncomplicated ulcers without the need for a camera.

The test-and-scope strategy — going directly to endoscopy — is reserved for patients where there is a higher likelihood that something more serious than a simple ulcer or H. pylori gastritis is causing the symptoms. Age 60 or over (the threshold in the 2017 ACG/CAG guideline), with a younger age in people from populations with higher stomach cancer rates, is a key threshold. A family history of stomach cancer, symptoms that have changed recently or are rapidly worsening, or the presence of alarm symptoms all shift the decision toward endoscopy.

For younger adults with typical dyspepsia symptoms and no red flags, the guideline approach starts with a non-invasive breath or stool test, which is less expensive and less burdensome than endoscopy.

Alarm Features and Endoscopy

Certain symptoms are called "alarm features" or "red flag symptoms" because they may indicate a serious complication — such as a bleeding ulcer, a perforation, or stomach cancer — that a direct camera examination can find or rule out. The 2017 ACG/CAG dyspepsia guideline states that in people under 60 these features should not automatically lead to endoscopy, but should be considered case by case; vomiting blood and black, tarry stools are signs of bleeding that hospitals treat as urgent. The alarm features are:

In these situations, ruling out cancer or a serious complication is the reason endoscopy is considered ahead of a non-invasive test. Endoscopy can both diagnose H. pylori via biopsy and directly identify or treat any complication found at the same time.

How to Prepare for a Breath Test

Preparation for the urea breath test matters more than most patients realize, because certain medications can suppress H. pylori enough to cause a false negative result — meaning the test says no infection when one is actually present. A false negative can delay needed treatment and leave the bacterium continuing to damage your stomach lining.

The standard preparation rules are:

The same medication restrictions apply to the stool antigen test, though some labs use slightly different windows.

When stopping a proton pump inhibitor is medically unsafe because of severe reflux, Barrett's esophagus, or another condition, the options are to accept the risk of a false negative (30% on lansoprazole in the 2001 study above), to use a different testing approach, or to use endoscopy with biopsy where proton pump inhibitors have a smaller impact on accuracy.

Confirming the Infection Is Gone After Treatment

One of the most important — and most commonly skipped — steps in managing an H. pylori infection is confirming that treatment actually worked. H. pylori eradication rates with first-line triple therapy have fallen to around 70–85% in many parts of the world because of increasing antibiotic resistance. That means a significant minority of patients complete a full course of antibiotics and still have a living infection.

Without a test of cure, those patients may feel their stomach has improved slightly (because the proton pump inhibitor included in most treatment regimens reduces acid), but the bacteria are still there — continuing to damage the stomach lining, maintaining the risk of ulcer recurrence, and sustaining any elevated cancer risk.

Guidelines from the American College of Gastroenterology and the European Helicobacter Study Group recommend confirming eradication with a non-invasive test for all patients who complete treatment. The 2024 ACG treatment guideline again addresses the need for a test of cure after treatment for everyone. The tests used for confirmation are:

Timing matters critically. The test of cure is performed at least 4 weeks after completing antibiotics and at least 1–2 weeks after stopping proton pump inhibitors. Testing too soon — for example, the week after finishing antibiotics — frequently gives a false negative because residual antibiotic activity in the gut continues to suppress the bacteria even after the last dose.

A blood antibody (serology) test is not used for the test of cure. As described earlier, immunoglobulin G antibodies persist long after eradication and cannot distinguish cured from active infection. The antibody level may not fall significantly for 6–12 months after successful treatment.

If the test of cure shows the infection is still present, a different antibiotic regimen is used — often quadruple therapy including bismuth, or a regimen based on antibiotic sensitivity testing from a biopsy culture. Confirmation of eradication is the step that closes the loop and shows whether the treatment actually succeeded.

Current treatment guidelines. The 2024 ACG guideline names 14 days of bismuth quadruple therapy as the preferred first treatment when the strain's antibiotic susceptibility is unknown, with 14 days of rifabutin triple therapy or potassium-competitive acid blocker dual therapy as suitable alternatives for people without a penicillin allergy. For people still infected after treatment, it prefers an “optimized” 14-day bismuth quadruple therapy if they have not had it before, and rifabutin triple therapy if they have; regimens containing clarithromycin or levofloxacin are reserved for strains confirmed to be susceptible. The 2022 Maastricht VI/Florence consensus of 41 experts from 29 countries states that, in principle, all infected people should receive treatment, and points to rising antibiotic resistance as the reason susceptibility testing is in demand.

Key Research Papers

  1. Gisbert JP, Pajares JM. Review article: 13C-urea breath test in the diagnosis of Helicobacter pylori infection — a critical review. Aliment Pharmacol Ther. 2004. — Search PubMed
  2. Malfertheiner P et al. Management of Helicobacter pylori infection — the Maastricht V/Florence Consensus Report. Gut. 2017;66(1):6-30. — PubMed PMID: 27707777
  3. 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. — PubMed PMID: 35944925
  4. Chey WD, Leontiadis GI, Howden CW, Moss SF. ACG clinical guideline: treatment of Helicobacter pylori infection. Am J Gastroenterol. 2017;112(2):212-239. — PubMed PMID: 28071659
  5. Chey WD, Howden CW, Moss SF, Morgan DR, Greer KB, Grover S, Shah SC. ACG clinical guideline: treatment of Helicobacter pylori infection. Am J Gastroenterol. 2024;119(9):1730-1753. — PubMed PMID: 39626064
  6. Moayyedi P, Lacy BE, Andrews CN, Enns RA, Howden CW, Vakil N. ACG and CAG clinical guideline: management of dyspepsia. Am J Gastroenterol. 2017;112(7):988-1013. — PubMed PMID: 28631728
  7. Ferwana M et al. Accuracy of urea breath test in Helicobacter pylori infection: meta-analysis. World J Gastroenterol. 2015;21(4):1305-1314. — PubMed PMID: 25632206
  8. Chey WD, Chathadi KV, Montague J, Ahmed F, Murthy U. Intragastric acidification reduces the occurrence of false-negative urea breath test results in patients taking a proton pump inhibitor. Am J Gastroenterol. 2001;96(4):1028-1032. — PubMed PMID: 11316142
  9. Loy CT, Irwig LM, Katelaris PH, Talley NJ. Do commercial serological kits for Helicobacter pylori infection differ in accuracy? A meta-analysis. Am J Gastroenterol. 1996;91(6):1138-1144. — PubMed PMID: 8651160
  10. Dixon MF et al. Classification and grading of gastritis. Am J Surg Pathol. 1996. — Search PubMed
  11. Makristathis A et al. Diagnosis of Helicobacter pylori infection. Helicobacter. 2004. — Search PubMed

Back to Table of Contents

Connections

Back to Table of Contents