Testing for H. pylori: Breath, Stool, and Biopsy Compared
SaveH. pylori testing splits along one line: tests that detect a living infection, and a blood antibody test that reflects an encounter with the bacterium rather than a current one. That difference decides which test can confirm the infection is gone after treatment — and the guideline expects that confirmation, because first-line therapy does not always work. Here is what each test measures, and what decides which one you are offered.
Last updated: July 2026
Which H. pylori test you get depends on why you're being tested
The choice is usually made before anyone compares the tests against each other. For someone under 60 with indigestion and no alarm features, the ACG and CAG dyspepsia guideline supports a non-invasive test-and-treat approach — find H. pylori with a breath or stool test, treat it if it is there — or a trial of acid suppression instead. For someone 60 or older, or anyone with alarm features such as unintentional weight loss, gastrointestinal bleeding, or difficulty swallowing, the same guideline points to upper endoscopy 1Ref 1Moayyedi P, Lacy BE, Andrews CN, Enns RA, Howden CW, Vakil N (2017).ACG and CAG Clinical Guideline: Management of Dyspepsia.That patients under 60 with dyspepsia and no alarm features are managed with H. pylori test-and-treat and/or empiric acid suppression, while patients 60 and over or with alarm features — weight loss, bleeding, dysphagia — warrant upper endoscopy..
That is why "which test is most accurate" is usually the wrong question to arrive with. If you are having an endoscopy anyway, the biopsy is taken while the scope is already there and costs you nothing in extra appointments. If you are not having an endoscopy, nobody is going to schedule one purely to look for a bacterium that a breath test can find without sedation. The test follows the plan; the plan does not follow the test.
The alarm features in that guideline deserve to be read slowly rather than skimmed past. Unintentional weight loss, bleeding, and trouble swallowing do not mean "test for the bacteria more urgently." They mean the stomach itself needs to be looked at, because those symptoms have explanations that a breath test cannot find and cannot exclude 1Ref 1Moayyedi P, Lacy BE, Andrews CN, Enns RA, Howden CW, Vakil N (2017).ACG and CAG Clinical Guideline: Management of Dyspepsia.That patients under 60 with dyspepsia and no alarm features are managed with H. pylori test-and-treat and/or empiric acid suppression, while patients 60 and over or with alarm features — weight loss, bleeding, dysphagia — warrant upper endoscopy.. A negative H. pylori test in someone who is losing weight without trying has answered one question and left the important one open.
Test-and-treat is worth naming as a strategy, because it explains an experience patients often find strange: being treated with antibiotics for a stomach bacterium without anyone ever looking inside the stomach. That is not a shortcut. In someone young with dyspepsia and no alarm features, it is the recommended path 1Ref 1Moayyedi P, Lacy BE, Andrews CN, Enns RA, Howden CW, Vakil N (2017).ACG and CAG Clinical Guideline: Management of Dyspepsia.That patients under 60 with dyspepsia and no alarm features are managed with H. pylori test-and-treat and/or empiric acid suppression, while patients 60 and over or with alarm features — weight loss, bleeding, dysphagia — warrant upper endoscopy..
The urea breath test
The urea breath test works by a trick of chemistry, and understanding the trick explains everything else about it. H. pylori survives stomach acid by producing large amounts of an enzyme called urease, which splits urea into ammonia and carbon dioxide. You swallow a drink of urea labelled with a traceable carbon atom, wait, and then breathe into a collection bag. If the labelled carbon comes back out in your breath as carbon dioxide, something in your stomach split that urea.
Urease is the enzyme H. pylori uses to neutralise stomach acid in the space immediately around itself. Every breath test for the bacterium is really a test for its urease.
Two properties follow directly from that mechanism. First, the test detects an organism that is alive and metabolically active — a bacterium that is not there, or not working, makes no urease and produces no signal. That is what makes the breath test usable at both ends of the process: to find the infection, and later to check whether it is gone. Second, because it is detecting activity rather than history, the test is sensitive to what else has been happening in your stomach recently.
Practically, the appointment is undramatic. There is no sedation, no scope, and nothing to recover from. What it asks of you is preparation: the clinician ordering it will give instructions about eating and about medications beforehand, and those instructions are the part that determines whether the result means anything. A urea breath test taken without following them is not a more convenient test. It is a test that may need repeating.
The stool antigen test
The stool antigen test looks for H. pylori proteins — antigens — being shed in stool. Like the breath test, it is detecting an organism that is currently present rather than an immune memory of one, which puts it in the same category and gives it the same two-sided usefulness: it can find the infection in the first place, and it can be used afterward to check whether treatment worked. It requires a sample collected at home and returned to a lab.
The two non-invasive tests are close enough in what they do that the choice between them is often practical rather than clinical — what your clinic uses, what your lab runs, what your insurance covers, and, honestly, which one you are more likely to actually complete. A breath test requires an appointment. A stool test requires collecting a stool sample at home, which a meaningful number of people quietly never get around to. The best test is frequently the one that gets done.
One piece of vocabulary is worth clearing up here, because "stool test" does an enormous amount of work in medicine and means almost nothing on its own. A stool antigen test looks for H. pylori proteins. The fit test looks for human blood in stool, as part of colorectal cancer screening. A stool DNA test looks for tumour-associated markers. These three share a specimen type and nothing else — different targets, different diseases, different reasons for ordering. A patient told "we'll do a stool test" and a patient reading about stool tests online are often not discussing the same thing at all.
Biopsy during an upper endoscopy
When an endoscopy is happening anyway, H. pylori testing rides along on it. The scope passes into the stomach, small tissue samples are taken from the lining, and those samples can be tested in more than one way: a rapid urease test run on the spot in the endoscopy room, histology examined under a microscope, and in some circumstances culture or molecular testing that reports which antibiotics the organism is resistant to.
That last capability has become more valuable than it used to be. The 2024 ACG guideline favours bismuth quadruple therapy as first-line treatment specifically because clarithromycin resistance has been rising — the older clarithromycin-based approach is losing ground to the organism itself 2Ref 2Chey WD, Howden CW, Moss SF, Morgan DR, Greer KB, Grover S, Shah SC (2024).ACG Clinical Guideline: Treatment of Helicobacter pylori Infection.That H. pylori causes dyspepsia, gastritis, peptic ulcer disease and gastric cancer; that bismuth quadruple therapy is favoured as first-line given rising clarithromycin resistance; and that eradication should be confirmed after treatment.. When treatment fails, knowing what a particular person's bacteria are resistant to stops being an academic detail and starts being the difference between a second course that works and a third one that does not.
The biopsy's real advantage is not accuracy in the abstract. It is that it answers several questions at once. Someone having an endoscopy because of their age or an alarm feature 1Ref 1Moayyedi P, Lacy BE, Andrews CN, Enns RA, Howden CW, Vakil N (2017).ACG and CAG Clinical Guideline: Management of Dyspepsia.That patients under 60 with dyspepsia and no alarm features are managed with H. pylori test-and-treat and/or empiric acid suppression, while patients 60 and over or with alarm features — weight loss, bleeding, dysphagia — warrant upper endoscopy. is being scoped to look for ulcers, inflammation, and other explanations for their symptoms — and while the scope is there, the H. pylori question gets settled as a by-product rather than as a separate errand on a separate day.
The trade-off is the obvious one. An endoscopy involves preparation, sedation, and someone to take you home. Nobody accepts that for a bacterium a breath test could find. The biopsy is the right test when the endoscopy is already the right procedure — and not otherwise.
What makes an H. pylori test read negative when it shouldn't
The breath test, the stool antigen test, and the biopsy all share a design assumption: that there is a living, active organism there to be found. That assumption is exactly what makes them useful, and it is also their weak point. A bacterial population that has been knocked down — but not eliminated — is a smaller target than an untreated one, and the timing of a test relative to whatever else you have recently taken is therefore part of the test.
This is why the clinician ordering the test will ask what medications you have been on and when you stopped, and may set a waiting interval before the test is done. This page does not print an interval, because it depends on what you were taking and on why the test is being ordered. What is worth doing is straightforward: mention everything, including anything bought over the counter for heartburn, and anything left over from a recent course of antibiotics prescribed for something unrelated. That is the detail most likely to go unmentioned and most likely to matter.
A test carrying a precondition is not unusual, and H. pylori is not the strangest example. Celiac testing carries one in the opposite direction: the antibody blood tests and the small-intestine biopsy are only accurate while the person is still eating gluten, because they measure a reaction gluten is currently causing 3Ref 3National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) (2020).Diagnosis of Celiac Disease.That celiac disease is diagnosed with blood antibody tests followed by a small-intestine biopsy, and that a person must be eating gluten for those tests to be accurate — used here as the contrasting example of a diagnostic test with a dietary precondition.. One test needs the trigger removed to be read cleanly; the other needs it present. Both fail silently — as a normal-looking result — when the condition is not met.
A negative result from a test taken under the wrong conditions is not a negative result. It looks identical to one, which is the entire problem, and it is the reason the preparation instructions are not administrative fine print.
Confirming the infection is actually gone
Treatment for H. pylori does not end when the tablets do. The 2024 ACG guideline treats confirmation of eradication as part of treating the infection rather than an optional extra 2Ref 2Chey WD, Howden CW, Moss SF, Morgan DR, Greer KB, Grover S, Shah SC (2024).ACG Clinical Guideline: Treatment of Helicobacter pylori Infection.That H. pylori causes dyspepsia, gastritis, peptic ulcer disease and gastric cancer; that bismuth quadruple therapy is favoured as first-line given rising clarithromycin resistance; and that eradication should be confirmed after treatment., and the reason is unglamorous: first-line therapy does not always succeed, and there is no symptom that reliably announces success or failure. Feeling better after a course of treatment is compatible with the bacterium still being there.
This is where the split between the tests stops being academic. Confirming eradication requires a test that detects a live organism, which means a breath test, a stool antigen test, or a biopsy. A blood antibody test cannot do this job. Antibodies record that the immune system encountered the bacterium; they are not a live-status readout, and they do not disappear at the moment the organism does. A positive antibody result after treatment mostly tells you what you already knew — that you had H. pylori at some point.
| Test | What it detects | Can it confirm eradication? |
|---|---|---|
| Urea breath test | Urease activity from a living organism | Yes |
| Stool antigen test | H. pylori proteins currently being shed | Yes |
| Biopsy at endoscopy | The organism and the state of the stomach lining | Yes |
| Blood antibody test | An immune response to the bacterium | No |
When the confirmation test comes back positive, that is h. pylori treatment failure — a recognised outcome with its own next steps, not a sign that something went wrong on your end. It is common enough that the guideline restructured first-line therapy around resistance patterns 2Ref 2Chey WD, Howden CW, Moss SF, Morgan DR, Greer KB, Grover S, Shah SC (2024).ACG Clinical Guideline: Treatment of Helicobacter pylori Infection.That H. pylori causes dyspepsia, gastritis, peptic ulcer disease and gastric cancer; that bismuth quadruple therapy is favoured as first-line given rising clarithromycin resistance; and that eradication should be confirmed after treatment.. What happens when h. pylori won't clear is a genuine clinical question with real answers, and it starts with having tested for it rather than assuming.
What H. pylori causes, and why clearing it is worth the trouble
The reason anyone goes through this is what the bacterium does when left alone. The 2024 ACG guideline names the range directly: H. pylori causes dyspepsia, gastritis, peptic ulcer disease, and gastric cancer 2Ref 2Chey WD, Howden CW, Moss SF, Morgan DR, Greer KB, Grover S, Shah SC (2024).ACG Clinical Guideline: Treatment of Helicobacter pylori Infection.That H. pylori causes dyspepsia, gastritis, peptic ulcer disease and gastric cancer; that bismuth quadruple therapy is favoured as first-line given rising clarithromycin resistance; and that eradication should be confirmed after treatment.. That last item is why H. pylori is treated when it is found rather than watched — it is an infection with a long-term consequence attached, and treating it is a decision made once rather than a symptom managed indefinitely.
The NIDDK puts the same bacterium at the top of a shorter list: H. pylori infection is the most common cause of gastritis, alongside NSAID- and alcohol-related reactive gastropathy, autoimmune gastritis, and stress-related erosive gastropathy 4Ref 4National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) (2019).Symptoms & Causes of Gastritis & Gastropathy.That H. pylori infection is the most common cause of gastritis, and that the other main causes are NSAID- and alcohol-related reactive gastropathy, autoimmune gastritis, and stress-related erosive gastropathy.. That list is worth carrying into the appointment, because it maps the alternatives. An inflamed stomach lining has more than one explanation, and a negative H. pylori test does not leave you with nothing — it moves the question to the rest of the list.
Gastritis is inflammation of the stomach lining. It is a description of what the lining is doing, not an explanation of why — the cause still has to be identified separately 4Ref 4National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) (2019).Symptoms & Causes of Gastritis & Gastropathy.That H. pylori infection is the most common cause of gastritis, and that the other main causes are NSAID- and alcohol-related reactive gastropathy, autoimmune gastritis, and stress-related erosive gastropathy..
How you get h. pylori is a separate question with its own answer, and it is one people usually ask immediately after a positive result, often with a note of alarm about their household. It is a reasonable question. It is also not the question the test was ordered to settle, and it does not change what happens next for the person who tested positive.
Not every breath test is an H. pylori test
"Breath test" is a method, not a diagnosis, and several unrelated conditions are investigated with one. This matters because people arrive at an appointment having read about breath tests generally and leave confused about what theirs measured. The urea breath test looks for H. pylori's urease. A different breath test is used in the workup of small intestinal bacterial overgrowth, and it measures gases produced by bacterial fermentation, not urease at all.
Those sibo breath test limits are worth knowing about precisely because they are not the H. pylori story. The ACG's SIBO guideline addresses breath-test diagnosis for that condition and is explicit that the method has limitations 5Ref 5Pimentel M, Saad RJ, Long MD, Rao SSC (2020).ACG Clinical Guideline: Small Intestinal Bacterial Overgrowth.That breath-test diagnosis of small intestinal bacterial overgrowth carries recognised limitations — cited here to distinguish the SIBO breath test from the urea breath test used for H. pylori. — a caveat that belongs to SIBO testing and does not transfer to the urea breath test, which is asking a narrower and more mechanically direct question. Two tests can use the same equipment and have entirely different footing.
A lactose intolerance test is a third use of the same apparatus again, asking whether a specific sugar is being fermented rather than digested. And the broader marketplace of tests sold to test for food intolerance is a separate subject with a separate literature and separate claims, which this page is not the place to adjudicate.
The practical takeaway is small but it saves confusion: if you are told you are having a breath test, the useful follow-up question is what it is looking for. The answer determines the preparation, what a positive result means, and whether it can be used to check that treatment worked.
Common questions
Related
Digestive health
H. pylori Infection: Symptoms, Testing, and TreatmentDigestive health
Getting a Celiac Test After You've Already Cut GlutenDigestive health
IBS or Celiac, and Why the Test Comes First
Say it back
How would you explain this to someone you love?
Two or three sentences, just as you’d say it. Gale reflects back what you focused on — a mirror, not a quiz.
Symptoms that change the plan from testing to being seen
- —Unintentional weight loss you did not plan for, alongside indigestion or stomach pain
- —Vomiting blood, or vomiting material that looks like coffee grounds
- —Black, tarry stools, or visible blood in the stool
- —Food sticking or difficulty swallowing, or stomach pain severe enough that you cannot stay upright
Vomiting blood or coffee-ground material, or passing black tarry stools, is an emergency department visit or 911 now — not a reason to book an H. pylori test and wait for the result.
This page explains how H. pylori testing works and what each test measures. It is general education, not medical advice, and it cannot tell you which test is right for you, how to prepare for one, or what your result means. Those decisions belong with the clinician who knows your history and your medications.
References
- 1.Moayyedi P, Lacy BE, Andrews CN, Enns RA, Howden CW, Vakil N (2017). ACG and CAG Clinical Guideline: Management of Dyspepsia. American Journal of Gastroenterology. doi:10.1038/ajg.2017.154 ✓That patients under 60 with dyspepsia and no alarm features are managed with H. pylori test-and-treat and/or empiric acid suppression, while patients 60 and over or with alarm features — weight loss, bleeding, dysphagia — warrant upper endoscopy.
- 2.Chey WD, Howden CW, Moss SF, Morgan DR, Greer KB, Grover S, Shah SC (2024). ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. American Journal of Gastroenterology. doi:10.14309/ajg.0000000000002968 ✓That H. pylori causes dyspepsia, gastritis, peptic ulcer disease and gastric cancer; that bismuth quadruple therapy is favoured as first-line given rising clarithromycin resistance; and that eradication should be confirmed after treatment.
- 3.National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) (2020). Diagnosis of Celiac Disease. NIDDK, National Institutes of Health. link ✓That celiac disease is diagnosed with blood antibody tests followed by a small-intestine biopsy, and that a person must be eating gluten for those tests to be accurate — used here as the contrasting example of a diagnostic test with a dietary precondition.
- 4.National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) (2019). Symptoms & Causes of Gastritis & Gastropathy. NIDDK, National Institutes of Health. link ✓That H. pylori infection is the most common cause of gastritis, and that the other main causes are NSAID- and alcohol-related reactive gastropathy, autoimmune gastritis, and stress-related erosive gastropathy.
- 5.Pimentel M, Saad RJ, Long MD, Rao SSC (2020). ACG Clinical Guideline: Small Intestinal Bacterial Overgrowth. American Journal of Gastroenterology. doi:10.14309/ajg.0000000000000501 ✓That breath-test diagnosis of small intestinal bacterial overgrowth carries recognised limitations — cited here to distinguish the SIBO breath test from the urea breath test used for H. pylori.
5 sources, numbered by first appearance. General health information, not medical advice. AI-assisted editorial content — every citation independently verified. Editorial policy