You cannot know from symptoms alone. The only way to confirm an H. pylori infection is a validated test: either a stool antigen test, a urea breath test, or a biopsy taken during endoscopy. Blood antibody tests cannot distinguish an active infection from a past one, so they are not recommended for diagnosis. If you have persistent upper abdominal pain, bloating, or unexplained iron deficiency, ask a clinician which active-infection test fits your situation.
H. pylori (Helicobacter pylori) is a spiral-shaped bacterium that colonizes the stomach lining of roughly half the world's population. Most carriers never develop symptoms or disease. That single fact drives every diagnostic decision: because the bacterium is so common and so often harmless, testing is only useful when the result will change what happens next. This explainer covers how the infection is detected, why each test works the way it does, where the thresholds come from, and which situations make a result unreliable.
How H. pylori survives and why it damages tissue
H. pylori is one of the few organisms that thrive in stomach acid. It produces an enzyme called urease, which splits urea into ammonia and carbon dioxide. The ammonia neutralizes acid in the immediate microenvironment around the bacterium, letting it burrow into the mucus layer that protects the stomach lining. There it attaches to surface cells and injects proteins, including one called CagA, into them. Strains carrying the cagA gene are associated with stronger inflammatory responses and higher risks of ulcer and gastric cancer.
The immune system responds but cannot clear the infection. Neutrophils and lymphocytes accumulate in the stomach lining, producing chronic gastritis in essentially everyone who is colonized. In most people this inflammation stays silent for decades. In a minority, it progresses to peptic ulcer disease, gastric atrophy, or malignancy. The World Health Organization classifies H. pylori as a group 1 carcinogen, meaning it is a confirmed cause of cancer in humans, specifically gastric adenocarcinoma.
This mechanism explains why the diagnostic tests work. Urease activity is what breath and stool tests detect. The bacterium's location in the mucus layer and its patchy distribution explain why biopsy sampling can miss it. And the persistence of antibodies after clearance explains why blood tests stay positive for years.
What the numbers say about prevalence and risk
Globally, roughly 4.4 billion people carry H. pylori, with prevalence highest in Africa, Latin America, and parts of Asia, often exceeding 70 percent in adults. In the United States, prevalence has fallen steadily and now sits near 30 percent in adults, with higher rates in older cohorts and in Hispanic and Black populations. Most of those carriers, on the order of 80 to 90 percent, never develop a clinically significant complication.
The absolute risk figures matter for deciding whether to test. Lifetime risk of peptic ulcer disease among infected people is roughly 10 to 15 percent. Gastric cancer risk is lower, on the order of 1 to 3 percent over a lifetime in high-income countries, higher where strains and host genetics differ. Compare that with the background rate of dyspepsia in the general population: most people with upper abdominal symptoms do not have H. pylori, and most people with H. pylori do not have symptoms.
That asymmetry is why guidelines from the American College of Gastroenterology recommend testing only in specific scenarios rather than screening everyone. The pretest probability changes the meaning of a result. A positive test in a person with active ulcer symptoms carries far more weight than a positive test in someone with no symptoms at all.
Which test to use, and when
Four test types dominate clinical practice, and they are not interchangeable. The choice depends on whether you need to detect an active infection, whether you are taking acid-suppressing medication, and whether you have already been treated.
| Test | What it detects | Best use | Key limitation |
|---|---|---|---|
| Stool antigen (monoclonal) | Bacterial proteins in stool | Active infection; test-of-cure | Less reliable with diarrhea or recent antibiotics |
| Urea breath test | Urease activity via labeled CO2 | Active infection; test-of-cure | False negatives with PPIs or bismuth |
| Endoscopic biopsy (histology, rapid urease, culture) | Bacteria in gastric tissue | When endoscopy is indicated anyway | Sampling error; invasive; patchy distribution |
| Blood antibody (IgG) | Immune response | Rarely useful | Cannot distinguish active from past infection |
The stool antigen test using a monoclonal antibody has sensitivity and specificity both above 90 percent in most studies, and it is the simplest active-infection test for most patients. The urea breath test performs comparably. Both are recommended as first-line noninvasive options by the American College of Gastroenterology and by European consensus groups.
The counterintuitive detail worth flagging: a positive blood test may mean nothing actionable. Antibodies persist for months to years after successful eradication, and they can be positive in people who were infected and cleared it without treatment. Professional societies explicitly advise against using serology to diagnose active infection or to confirm cure. If a clinician offers only a blood test, that is a reason to ask for a stool or breath test instead.
Edge cases that make results unreliable
Several common situations produce false negatives or false positives, and knowing them prevents misdiagnosis.
Proton pump inhibitors (omeprazole, pantoprazole, and similar) suppress H. pylori urease activity and can cause false-negative breath and stool tests. Stop them 1 to 2 weeks before testing if the clinician agrees. Antibiotics and bismuth compounds within 4 weeks of testing likewise reduce bacterial load and can yield false negatives. Active gastrointestinal bleeding can dilute or inhibit detection in stool and breath tests. Partial gastrectomy, gastric atrophy, and intestinal metaplasia reduce bacterial colonization and lower sensitivity of all tests. Recent treatment for H. pylori requires waiting at least 4 weeks after completion before test-of-cure.
One more edge case deserves its own sentence. In children, and in people with severe comorbidities, the balance of benefits shifts, and testing decisions should be individualized rather than driven by symptom lists. Guidelines from pediatric societies caution against widespread testing in children without specific indications.
Common misconceptions about H. pylori
The most persistent misconception is that symptoms can identify the infection. Dyspepsia, bloating, belching, and nausea overlap heavily with functional dyspepsia, gastroesophageal reflux, and irritable bowel syndrome, none of which require H. pylori testing to diagnose. Symptom-based diagnosis has poor sensitivity and specificity, which is precisely why testing exists.
A second misconception is that a positive test always requires treatment. In patients with active ulcer disease, gastric MALT lymphoma, or early gastric cancer, eradication is clearly indicated. In asymptomatic carriers without risk factors, the benefit is smaller and the decision is shared with a clinician, weighing antibiotic exposure, resistance rates, and patient preference. The American College of Gastroenterology supports testing and treating in dyspepsia and in those at elevated gastric cancer risk, but not universal screening.
A third misconception is that eradication is permanent. Reinfection rates in adults in high-income countries are low, generally under 5 percent per year, but they are higher where prevalence is high and sanitation is limited. A positive test years after treatment could represent reinfection, relapse, or a false positive, and retesting with an active-infection test rather than serology is the correct next step.
Practical steps if you suspect infection
The path from suspicion to answer is short if you sequence it correctly.
Document your symptoms and duration. Note upper abdominal pain, relation to meals, nausea, unexplained weight loss, and any iron deficiency. See a clinician rather than ordering tests yourself. Direct-to-consumer antibody tests are widely available but cannot establish active infection. Ask for a stool antigen or urea breath test if you have dyspepsia, a history of ulcer, or unexplained iron deficiency. Follow the preparation rules: hold PPIs for 1 to 2 weeks, avoid antibiotics and bismuth for 4 weeks, and fast as instructed before a breath test. If a test is positive and treatment is chosen, complete the full course and plan a test-of-cure at least 4 weeks after finishing, using stool antigen or breath testing, not serology. If symptoms persist after a negative test, discuss endoscopy and alternative diagnoses rather than repeating the same test.
Red-flag symptoms warrant urgent evaluation rather than routine testing. These include vomiting blood or coffee-ground material, black tarry stools, unintentional weight loss, difficulty swallowing, and severe or persistent pain. In those cases, endoscopy with biopsy is the appropriate first step, and H. pylori testing happens as part of that evaluation.
Cost is a secondary consideration and varies by setting. Noninvasive stool and breath tests are generally inexpensive compared with endoscopy, which is part of why guidelines favor them when alarm features are absent. Prices change and insurance coverage varies, so confirm locally rather than relying on any single figure.
Limits of testing and what a result cannot tell you
No test is perfect, and a single negative result does not always exclude infection. Sensitivity for stool antigen and breath tests sits around 90 to 95 percent in ideal conditions and drops with the interfering factors listed above. When clinical suspicion remains high after a negative test, repeating the test after correcting preparation, or moving to endoscopy, is reasonable.
A positive result also does not tell you how severe the disease is. It does not distinguish a harmless carrier state from ulcer disease, and it does not predict cancer risk on its own. Those judgments require symptoms, endoscopic findings, and histology. The test answers one question, whether the organism is present, and clinicians use that answer alongside everything else.
Finally, guideline recommendations evolve as antibiotic resistance patterns shift. Treatment regimens and retesting intervals are best confirmed with a clinician familiar with current local guidance, because resistance rates vary substantially by region and change over time. Testing tells you whether you have an active H. pylori infection. What to do about it is a conversation, not a lookup.