Where to Get Tested for H. Pylori: Your Options

You can get tested for H. pylori at your primary care doctor’s office, a commercial lab like Labcorp or Quest Diagnostics, or a gastroenterologist’s office. Most testing requires a doctor’s order, but the tests themselves are quick, noninvasive, and widely available. The two most common options, a breath test and a stool test, can both be arranged through a standard office visit.

Types of H. Pylori Tests

There are three main ways to test for H. pylori, and the one your doctor orders will depend on your symptoms and whether they need to rule out other digestive problems.

The urea breath test is considered the gold standard for noninvasive detection. You swallow a small tablet containing urea, wait about 20 minutes, then blow into a plastic balloon for around five minutes. A machine analyzes your breath for carbon dioxide that H. pylori produces when it breaks down the urea. The whole process takes about 30 minutes. In adults, the breath test has roughly 96% sensitivity and 93% specificity, meaning it catches nearly all true infections and rarely gives a false positive.

The stool antigen test is the other highly accurate noninvasive option. You collect a stool sample at home using a kit from your doctor or lab and drop it off for analysis. This test performs nearly as well as the breath test, with about 94% sensitivity and 97% specificity. It’s often slightly cheaper and can be processed at any standard lab, which makes it the more accessible choice in many areas.

An upper endoscopy with biopsy is the most accurate test overall, but it’s also the most involved. A gastroenterologist passes a thin, flexible tube with a camera down your throat to examine your stomach lining and take small tissue samples. Doctors typically reserve this for patients who have alarm symptoms like unexplained weight loss, difficulty swallowing, or persistent vomiting, or when they need to check for ulcers or other structural problems beyond just confirming H. pylori.

Where Each Test Is Available

Your primary care doctor can order both the breath test and the stool antigen test. Many primary care offices perform the breath test on-site, while others will send you to a nearby lab. Commercial laboratories like Labcorp and Quest Diagnostics offer the urea breath test and process stool antigen samples with a doctor’s referral. Some urgent care clinics can order H. pylori testing as well, though availability varies by location.

If your doctor wants an endoscopy, you’ll be referred to a gastroenterologist who performs the procedure in a clinic or outpatient surgery center. This involves sedation and a bit more planning, but it’s still typically done as a same-day outpatient visit.

A doctor’s order is required for all of these tests. You generally can’t walk into a lab and request H. pylori testing on your own.

What About At-Home Tests?

Some companies sell H. pylori test kits online that let you collect a stool sample at home and mail it to a lab. These kits use the same stool antigen technology as lab-based tests, and their sensitivity is comparable at around 92% to 94%. The trade-off is specificity: home-based stool tests in some studies showed specificity around 61% to 70%, meaning they can produce more false positives than tests run under tighter lab conditions.

Blood-based tests (serology) that check for H. pylori antibodies are the least reliable option. One study found an overall accuracy of just 50%, barely better than a coin flip. Antibodies can linger in your blood long after an infection clears, so a positive result doesn’t tell you whether you have an active infection. Most guidelines no longer recommend serology for diagnosis.

How to Prepare for Testing

Certain medications suppress H. pylori enough to cause a false negative, so timing matters. You need to stop taking proton pump inhibitors (common heartburn drugs like omeprazole or pantoprazole) at least two weeks before testing. If you’ve recently taken antibiotics for any reason, wait at least four weeks. Bismuth-containing products like Pepto-Bismol also need to be stopped at least two weeks ahead of the test.

These washout periods apply to both the breath test and the stool antigen test. If you’re unsure about a medication you’re taking, ask your doctor before scheduling the test. Skipping this step is one of the most common reasons for inaccurate results.

Choosing Between Breath and Stool Tests

For most people, the choice comes down to convenience and cost. The breath test is slightly more accurate in adults and gives results quickly, sometimes the same day. But it requires an in-person visit to a location with the right equipment, and it tends to cost more. The stool antigen test lets you collect your sample at home, can be processed at virtually any lab, and is generally the cheaper option. Both tests have accuracy above 90%, so neither is a wrong choice for a straightforward diagnosis.

One situation where accuracy differs: children under six. The breath test is less reliable in young kids, with sensitivity and specificity ranging from 75% to 100%. Pediatricians often prefer the stool antigen test for this age group.

Follow-Up Testing After Treatment

If you test positive and complete a course of treatment (typically a combination of antibiotics and an acid-reducing medication), your doctor will want to confirm the infection is gone. The recommended wait time is at least four weeks after finishing antibiotics before retesting. If your treatment included bismuth or a proton pump inhibitor, you’ll also need to stop those at least two weeks before the follow-up test.

The same breath test or stool antigen test used for your initial diagnosis works well for confirming eradication. Blood antibody tests are not useful here because antibodies can remain positive for months or even years after a successful cure. Your doctor will likely use whichever noninvasive test is most accessible to you, and a negative result at the four-week mark is a reliable sign that treatment worked.