7 JCI-accredited hospitals · 45+ hospitals & clinics · 90+ countries served · 24/7 multilingual support
Screening & Prevention

H. pylori Testing: Breath, Stool and Blood Options Compared

19 min read
H. pylori Testing: Breath, Stool and Blood Options Compared

Key Takeaways

  • The urea breath test and stool antigen test both detect active H. pylori infection with roughly 95 percent accuracy; the blood antibody test cannot distinguish a current infection from one cleared years ago.
  • Acid-suppressing medicines should typically be paused for about two weeks, and antibiotics finished at least four weeks, before breath or stool testing, or a real infection can test falsely negative.
  • Roughly half the world's population carries H. pylori, but only about 10 percent of carriers ever develop a peptic ulcer, and the large majority never develop cancer.
  • Uncomplicated H. pylori does not change what bowel movements look like; black, tarry, sticky stool signals a bleeding ulcer and is a medical emergency, not a testing question.
  • A follow-up breath or stool test at least four weeks after finishing treatment is essential, because first-round treatment fails in roughly one in five people, and blood tests can never confirm cure.
  • The classic symptom pattern is gnawing upper-abdominal pain that flares on an empty stomach and eases after eating, often with bloating and nausea, though most carriers have no symptoms at all.
Quick Answer

Three noninvasive tests can detect H. pylori. The urea breath test and the stool antigen test both identify an active infection with roughly 95 percent accuracy, while the blood antibody test only shows past exposure and cannot confirm the bacteria are still present. Most medical guidelines favor breath or stool testing first, typically after pausing acid-suppressing medicines for about two weeks.

In 1984, an Australian physician named Barry Marshall did something no ethics board would approve today: he drank a flask of cloudy broth teeming with a spiral-shaped bacterium his colleagues insisted could not survive stomach acid. Within a week he was vomiting, his stomach lining inflamed. He had proved his point, and two decades later, a Nobel Prize confirmed it.

That bacterium was Helicobacter pylori, now recognized as the cause of most peptic ulcers and one of the most common chronic infections on the planet. Roughly half of all people carry it, most without ever knowing.

Which is exactly why the testing question matters. If your stomach has been burning, gnawing, or bloating for weeks, your doctor may suggest an H. pylori test, and you will likely be offered a breath, stool, or blood version. They are not interchangeable, and the differences are worth ten minutes of your attention.

Why do doctors test for H. pylori in the first place?

H. pylori is a bacterium that colonizes the stomach lining, usually in childhood, and settles in for decades. It survives where almost nothing else can by producing an enzyme called urease, which converts urea into ammonia and neutralizes the acid immediately around it. That chemical trick is not just fascinating biology: it is the entire basis of the breath test, as you will see shortly.

Most carriers never feel a thing. But in a meaningful minority, the chronic inflammation the bacterium provokes erodes the protective mucus layer of the stomach or duodenum. The result can be gastritis, a peptic ulcer, or, rarely, over many years, changes in the stomach lining that raise cancer risk. According to the Cleveland Clinic, about 10 percent of people infected with H. pylori eventually develop an ulcer.

Before Marshall and Warren’s discovery, ulcers were blamed on stress and spicy food, and patients cycled through bland diets and antacids for years. The modern approach is far more satisfying: find the bacterium, confirm it is active, treat it, and confirm it is gone. Testing is the hinge on which that whole strategy swings, which is why choosing the right test, prepared for correctly, matters more than most people realize.

How does the urea breath test actually work?

The breath test is a small piece of clinical elegance. You swallow a capsule, tablet, or drink containing urea tagged with a special form of carbon, usually carbon-13, which is completely non-radioactive, or occasionally carbon-14 in a trace amount. Then you wait 10 to 30 minutes and exhale into a collection bag or tube.

Here is the logic. If H. pylori is living in your stomach, its urease enzyme splits that labeled urea into ammonia and carbon dioxide. The tagged carbon dioxide passes into your bloodstream, travels to your lungs, and shows up in your breath, where an analyzer detects it. No bacteria, no urease, no tagged carbon in your exhale. The test measures the infection doing its own metabolism in real time.

That real-time quality is the breath test’s great strength: it detects only active infection, with sensitivity and specificity generally reported around 95 percent. It is painless, takes under an hour, and works equally well as a first diagnosis and as proof of cure after treatment.

The trade-offs are practical rather than medical. It usually requires a visit to a lab or clinic, brief fasting beforehand, and careful timing around certain medications, get the preparation wrong and a genuinely infected stomach can quietly test negative.

What does the stool antigen test look for?

Where the breath test catches the bacterium in the act, the stool antigen test looks for the evidence it leaves behind. H. pylori sheds proteins, antigens, that travel through the digestive tract and appear in stool. A laboratory immunoassay detects those proteins in a small sample you collect at home in a clean container and return to the lab.

Performance is nearly on par with the breath test: sensitivity around 94 percent and specificity around 97 percent in laboratory-based versions, per the evidence summarized by MedlinePlus and Mayo Clinic. Like the breath test, it detects current infection, and it is equally valid for confirming eradication after treatment.

The stool test has a few quiet advantages worth knowing:

  • No fasting, no appointment for the test itself, collection happens at home on your schedule.
  • It is often the preferred option for young children, who struggle with the timed breathing the breath test requires.
  • It typically costs less than breath testing in many settings.

The main drawback is human, not technical: some people simply dislike collecting a stool sample, and delays or improper storage can degrade the antigens. The same medication rules apply as for the breath test, acid-suppressing medicines and recent antibiotics can push an active infection below the detection threshold.

Why has the blood test fallen out of favor?

The blood test looks for antibodies: your immune system’s memory of H. pylori, rather than the bacterium itself. And that distinction is exactly the problem. Antibodies can linger in the bloodstream for months or years after an infection has been cleared, whether it resolved on its own or was treated successfully long ago.

A positive antibody result therefore answers only one question: has this person ever been exposed? It cannot tell you whether the bacteria are alive in the stomach right now, which is the question that actually determines whether treatment makes sense. Accuracy numbers reflect this: sensitivity hovers around 85 percent, and specificity is lower still, meaningfully weaker than breath or stool testing.

Major references including Mayo Clinic and MedlinePlus now describe antibody testing as a secondary option, and it is never appropriate for confirming that treatment worked, since antibodies remain positive regardless of outcome.

Does the blood test have any remaining role? A modest one. It is quick, requires no preparation, is unaffected by acid-suppressing medicines, and can be bundled with other bloodwork. In someone who has never been treated for H. pylori, a negative antibody result is reasonably reassuring. But if you are offered a choice, the honest reading of the evidence is straightforward: breath or stool first, blood only when the others are impractical.

Which H. pylori test is most accurate? A side-by-side comparison

Accuracy is not the only axis that matters, what a test can and cannot tell you is just as important. Here is how the three noninvasive options genuinely stack up, based on figures reported by MedlinePlus, Mayo Clinic, and the Cleveland Clinic.

Feature Urea breath test Stool antigen test Blood antibody test
What it detects Active infection (bacterial enzyme activity) Active infection (bacterial proteins) Past or present exposure (antibodies)
Approximate sensitivity ~95% ~94% ~85%
Approximate specificity ~95% ~97% ~75–85%
Confirms cure after treatment? Yes Yes No
Preparation needed Fasting; pause certain medicines Pause certain medicines None
Practical notes Clinic visit; results same day to a few days Home collection; lab processing Simple blood draw

Read across the rows and a clear hierarchy emerges. Breath and stool testing are effectively tied on accuracy, and both answer the clinically useful question, is the infection active now? The blood test trails on both accuracy and usefulness. In my view, the fairest summary is this: the breath test wins on speed and precision, the stool test wins on convenience and cost, and the blood test wins only when the other two are off the table.

When is an endoscopy the right call instead?

Sometimes the question is bigger than whether H. pylori is present. If a doctor needs to see the stomach lining directly, to look for an ulcer, a source of bleeding, or tissue changes, an upper endoscopy becomes the tool of choice, with H. pylori testing folded into it.

During the procedure, done under sedation, a thin flexible tube with a camera passes down the throat into the stomach and the first stretch of the small intestine. Tiny tissue samples, or biopsies, can be taken painlessly. Those samples can be checked for H. pylori three ways: a rapid urease test that gives a result within hours, microscopic examination of the tissue, and, less commonly, culturing the bacterium to see which antibiotics it responds to, increasingly valuable when treatment has failed more than once.

Endoscopy is generally reserved for situations where noninvasive testing is not enough, such as:

  • New or persistent indigestion beginning around age 60 or later
  • Warning signs like unintentional weight loss, trouble swallowing, vomiting, anemia, or evidence of bleeding
  • Symptoms that continue despite successful H. pylori treatment

For everyone else, guidelines summarized by Mayo Clinic and the NHS point the same direction: start with breath or stool testing, and reserve the camera for when the answer genuinely requires a look inside.

How do you prepare for an H. pylori test?

Preparation is where accurate tests quietly become inaccurate ones. Both the breath test and the stool antigen test measure a living, active infection, so anything that temporarily suppresses the bacteria can produce a false negative, telling you the coast is clear when it is not.

The standard preparation, echoed by Mayo Clinic and the Cleveland Clinic, looks like this:

  • Acid-suppressing medicines: a widely used class called proton pump inhibitors should typically be paused for about two weeks before testing, because they reduce bacterial activity enough to mask an infection. Milder acid reducers may need a shorter pause; simple antacids are usually fine. Never stop a prescribed medicine without checking with your clinician first.
  • Antibiotics and bismuth-containing stomach remedies: these should generally be finished at least four weeks before the test, since they can partially suppress H. pylori without eradicating it.
  • Fasting: the breath test usually requires no food or drink for at least an hour beforehand, and some labs ask for longer, follow your specific instructions.

The stool test skips the fasting but keeps the medication rules. The blood test needs no preparation at all, which sounds convenient until you remember it also delivers the least useful answer.

One practical tip: when your test is scheduled, ask explicitly which of your current medicines to pause and when to restart them. That two-minute conversation prevents the most common cause of misleading results.

What does it mean if you test positive for H. pylori?

The answer depends on which test delivered the result. A positive breath or stool test means the bacteria are alive in your stomach right now: an active infection. A positive blood test means only that your immune system has met H. pylori at some point; the infection may be current, or it may have resolved years ago. If a blood test comes back positive and you have never been treated, most clinicians will confirm with a breath or stool test before acting.

A confirmed active infection is not an emergency, and it is not a diagnosis of ulcers or anything worse. It means chronic bacterial colonization of the stomach lining, which in most people causes low-grade inflammation and nothing more.

Even so, when H. pylori is found in someone who sought testing because of symptoms, treatment is generally recommended. The reasoning is solid: eradicating the bacterium allows most H. pylori-related ulcers to heal and dramatically lowers the chance they return, and it removes a long-term driver of stomach inflammation. Treatment typically involves a multi-week course combining antibiotics with acid-suppressing medicine; your clinician will choose the specific regimen based on your history and local resistance patterns.

The one thing a positive result should never trigger is panic. It should trigger a plan, treat, wait, retest, and that plan works for the large majority of people.

Is a positive H. pylori result serious?

Here is the honest, unfluffed answer: usually no, occasionally yes, and the difference is largely a matter of time and follow-through.

Consider the denominators. Roughly half the world’s population carries H. pylori, according to estimates cited by the WHO and Cleveland Clinic. Most carriers live full lives without a single symptom. About one in ten develops a peptic ulcer, genuinely unpleasant, but very treatable once the bacterium is cleared. A much smaller fraction, after decades of untreated inflammation, develops stomach cancer or a rare lymphoma of the stomach lining. The bacterium is classified as a carcinogen by the WHO’s cancer research agency, which sounds alarming until you hold it next to the numbers: the overwhelming majority of infected people never develop cancer.

What makes the classification meaningful is not individual risk but scale, with billions of carriers, even a small percentage translates into a significant share of stomach cancers worldwide. That is a public health statistic, not a personal prognosis.

For you as an individual, a positive result is best understood as a fixable problem. Eradication treatment succeeds in most people, ulcers heal, and the long-term risks associated with chronic infection fall once the bacterium is gone. The people who run into real trouble are typically those whose infections smolder untreated for decades, which is precisely what testing exists to prevent.

What are three symptoms of an H. pylori infection?

If you had to pick the three most characteristic symptoms, the evidence points to these: a gnawing or burning ache in the upper abdomen, bloating, and nausea. The stomach pain has a signature rhythm worth noticing: it often flares when the stomach is empty, between meals or in the small hours of the night, and eases temporarily after eating. That pattern reflects acid working on an irritated or ulcerated lining with no food to buffer it.

The fuller symptom list, drawn from Mayo Clinic and the NHS, includes:

  • Burning or gnawing upper abdominal pain, worse on an empty stomach
  • Bloating and a sensation of fullness after small amounts of food
  • Nausea, with or without vomiting
  • Frequent burping
  • Loss of appetite
  • Unintentional weight loss

Two caveats keep this list honest. First, most people with H. pylori have no symptoms at all: the bacterium is a quiet tenant far more often than a destructive one. Second, every symptom above overlaps heavily with other conditions: acid reflux, gallbladder disease, medication side effects, and functional dyspepsia, a common disorder of gut sensitivity with no infection involved. Symptoms alone cannot diagnose H. pylori, and their absence cannot rule it out. That is not a limitation of medicine so much as an argument for testing: a breath or stool test settles in an afternoon what symptom-watching never will.

What do bowel movements look like with H. pylori?

This question gets typed into search engines constantly, and the accurate answer is anticlimactic: in most people with H. pylori, bowel movements look completely normal. The bacterium lives in the stomach, not the intestines, and an uncomplicated infection does not reliably change stool color, consistency, or frequency. Anyone claiming you can spot H. pylori in the toilet is selling mythology, not medicine.

There is one crucial exception, and it deserves your full attention. If the infection has caused an ulcer that is bleeding, digested blood can turn stool black, tarry, and sticky, often with a distinctly foul odor. The medical term is melena, and it signals bleeding in the stomach or upper small intestine. Vomiting blood, or material that resembles coffee grounds, points to the same emergency. Either sign warrants immediate medical care: an emergency department, not a wait-and-see appointment next week.

A few sanity checks before you worry about stool color: certain foods and supplements can darken stool harmlessly. Iron supplements are a classic culprit, and so are some over-the-counter stomach remedies. Black licorice, blueberries, and beets can also play tricks. The distinguishing features of true melena are the tar-like sticky texture and the odor, usually accompanied by other symptoms such as pain, lightheadedness, or fatigue from blood loss. When in doubt, a same-day call to a clinician beats guessing.

Do you need a follow-up test after treatment?

Yes, and this step gets skipped far too often. Treatment for H. pylori fails in a meaningful share of cases, commonly estimated at around one in five first attempts, largely because antibiotic resistance has been rising worldwide. Feeling better is encouraging but not proof: symptoms can ease while bacteria persist, and an incompletely treated infection can quietly resume its work on the stomach lining.

The confirmation test, sometimes called a test of cure, has firm ground rules:

  • Use breath or stool, never blood. Antibodies stay positive long after successful treatment, so a blood test after therapy is uninterpretable.
  • Wait at least four weeks after finishing the treatment course. Testing sooner risks a false negative from residual antibiotic effect.
  • Pause acid-suppressing medicines again, typically for about two weeks before the retest, for the same reasons as the original test. Confirm timing with your clinician.

If the retest is negative, the infection is cleared, and reinfection in adults in developed countries is uncommon, generally reported at only a few percent per year or less. If it is positive, your clinician will select a different treatment combination, and after repeated failures, endoscopy with bacterial culture can identify exactly which medicines the strain will respond to. Persistence pays: cumulative success rates across sequential regimens are high.

Who should be tested, and who probably should not?

Testing everyone would find millions of harmless colonizations and trigger vast amounts of unnecessary treatment, so guidelines aim the tests where they change decisions. Testing is clearly worthwhile if you have:

  • A current peptic ulcer, or a documented history of one that was never tested for H. pylori
  • Persistent indigestion, the medical term is dyspepsia, particularly under age 60 without warning signs, where a test-and-treat approach is standard
  • Unexplained iron-deficiency anemia after other causes have been considered
  • A first-degree relative with stomach cancer, which shifts the risk calculus toward testing
  • Long-term regular use of certain common pain relievers that irritate the stomach lining, in situations where your clinician judges ulcer risk to be elevated

On the other side of the ledger: routine screening of people with no symptoms and no risk factors is not recommended in the United States. The bacterium is too common, the harm in most carriers too rare, and the downstream cascade of treatment too costly in side effects and antibiotic exposure to justify it.

Where does that leave the home test kits sold online? Treat them with caution. Many are antibody-based, inheriting every limitation of the blood test, and quality varies. A laboratory breath or stool test ordered through a clinician remains the standard the evidence supports.

When should you see a doctor?

Some symptoms deserve an appointment; a few deserve an ambulance. Knowing which is which is arguably the most useful thing this article can leave you with.

Seek emergency care immediately if you experience any of the following, which can signal a bleeding or perforated ulcer:

  • Black, tarry, sticky stools
  • Vomiting blood, or vomit resembling coffee grounds
  • Sudden, severe abdominal pain that does not ease
  • Lightheadedness, fainting, or a racing heartbeat alongside stomach symptoms

Book a prompt, non-emergency appointment if you notice:

  • Upper abdominal pain or indigestion lasting more than two weeks
  • Difficulty or pain when swallowing
  • Unintentional weight loss
  • Persistent nausea, vomiting, or loss of appetite
  • Symptoms that return after previous H. pylori treatment
  • Fatigue or paleness suggesting anemia

A useful rule of thumb from the NHS and Mayo Clinic guidance: occasional indigestion after a heavy meal is life; indigestion that becomes a recurring character in your week is a reason to be evaluated. And if you have already tested positive, the follow-through matters as much as the diagnosis, complete the treatment, schedule the confirmation test, and report symptoms that persist afterward. H. pylori is one of the more solvable problems in medicine, but only for people who close the loop.

Frequently asked questions

What does it mean if you test positive for H. pylori?

It depends on the test. A positive breath or stool test means the bacteria are actively living in your stomach now, and treatment is usually recommended if you have symptoms. A positive blood test only shows past exposure, the infection may already be gone, so clinicians typically confirm with a breath or stool test before treating. A positive result is not a diagnosis of ulcers or cancer; it is a treatable bacterial infection.

What are three symptoms of an H. pylori infection?

The three most characteristic symptoms are a gnawing or burning pain in the upper abdomen, bloating, and nausea. The pain often worsens when the stomach is empty and improves briefly after eating. Other possible signs include frequent burping, loss of appetite, and unintentional weight loss. That said, most people who carry H. pylori have no symptoms at all, and these complaints overlap with many other digestive conditions, only testing can confirm the infection.

What do bowel movements look like with H. pylori?

Usually completely normal. H. pylori lives in the stomach, and an uncomplicated infection does not reliably change stool color or consistency. The important exception is black, tarry, sticky stool with a foul odor, which can indicate a bleeding ulcer and requires emergency care. Keep in mind that iron supplements, some over-the-counter stomach remedies, and foods like blueberries or black licorice can darken stool harmlessly, true melena is distinctly tar-like and sticky.

Is H. pylori positive serious?

For most people, no: it is a common and very treatable infection. About half the world carries H. pylori, roughly one in ten carriers develops an ulcer, and only a small minority ever face serious complications like stomach cancer after decades of untreated inflammation. The sensible response to a positive result is treatment followed by a confirmation test, which resolves the infection in the large majority of cases and removes the long-term risks.

Which H. pylori test is the most accurate?

The urea breath test and the laboratory stool antigen test are essentially tied, each detecting active infection with roughly 94 to 95 percent sensitivity and similar or better specificity. The blood antibody test is meaningfully less accurate and cannot tell current infection from past exposure. Biopsy-based tests done during endoscopy are also highly accurate but are reserved for people who need the procedure for other reasons, such as warning symptoms or suspected complications.

Can you do an H. pylori test at home?

Partially. The stool antigen test involves collecting a sample at home, but the analysis happens in a laboratory, which is where its accuracy comes from. Fully self-contained home kits sold online are often antibody-based, meaning they share the blood test’s core weakness: they cannot distinguish an active infection from one cleared long ago. For a result you can act on, a clinician-ordered breath or stool test remains the evidence-supported choice.

How long do you need to stop acid reducers before an H. pylori test?

Typically about two weeks for the strongest class of acid-suppressing medicines, because they reduce bacterial activity enough to cause false-negative breath and stool results. Antibiotics and bismuth-containing stomach remedies generally need a four-week gap. Simple antacids are usually acceptable closer to the test. Always confirm the exact timing with your clinician or the testing lab before stopping any prescribed medicine, and ask when it is safe to restart.

Can H. pylori come back after successful treatment?

It can, but it rarely does in adults in developed countries, recurrence rates are generally reported at only a few percent per year or lower. What looks like a comeback is more often the original infection that was never fully cleared, which is why the follow-up test at least four weeks after treatment matters so much. If a confirmed cure is later followed by returning symptoms, retesting is reasonable before assuming reinfection.

Does everyone with H. pylori get an ulcer?

No, most carriers never do. Roughly half the global population harbors H. pylori, and about 90 percent of those people never develop a peptic ulcer. Why the bacterium harms some stomachs and coexists peacefully with others is not fully understood; differences in bacterial strains, individual genetics, smoking, and use of stomach-irritating pain relievers all appear to play a role. Testing and treatment focus on people with symptoms or specific risk factors.

Is the urea breath test safe?

Yes. Most modern breath tests use carbon-13, a naturally occurring, completely non-radioactive form of carbon that is safe for children and, per test-specific guidance, generally acceptable in pregnancy. Some older versions use carbon-14, which involves a radiation dose so small it is often compared to a fraction of a day’s natural background exposure. The test itself is painless: you swallow a labeled substance, wait briefly, and breathe into a collection device.

References

This article is for general information only and is not a substitute for professional medical advice. Please consult a qualified doctor about your individual situation.

Dr. Şule Eren
Dr. Şule Eren, MD
Author
View profile →
Published October 2, 2026
Keep Reading

More from the Blog

We’re With You at Every Step

How can we help you today?

We value your privacy We use essential cookies to run this site and, with your consent, analytics cookies to understand how it is used and improve it. You can accept, reject, or choose what to allow. See our Cookie Policy.