Most people with H. pylori never know they have it. The bacterium infects the stomach lining and can live there for years without causing any noticeable problems. When symptoms do appear, they usually point to irritation of the stomach lining or a developing ulcer, and the only way to confirm the infection is through specific diagnostic tests.
Symptoms That May Point to H. Pylori
The majority of H. pylori infections are completely silent. When symptoms show up, they tend to center on the upper stomach area and include:
- A burning or aching pain in the stomach, often worse on an empty stomach
- Frequent bloating and burping
- Nausea or a general upset stomach
- Loss of appetite
- Unexplained weight loss
The hallmark pattern is stomach pain that flares when you haven’t eaten and eases after a meal or an antacid. This happens because the bacteria damage the protective mucus layer of the stomach, leaving the tissue exposed to digestive acid. That burning, gnawing feeling between meals or in the middle of the night is what often drives people to seek testing.
These symptoms overlap heavily with acid reflux, functional dyspepsia, and other digestive conditions, so you can’t diagnose H. pylori from symptoms alone. If you’ve had persistent stomach pain, bloating, or nausea for more than a couple of weeks, testing is the only way to rule it in or out.
Who Should Get Tested
Testing makes the most sense if you have ongoing upper stomach symptoms that haven’t responded to basic lifestyle changes, or if you’ve been diagnosed with a peptic ulcer. Current guidelines from the American College of Gastroenterology also recommend testing for people at increased risk of stomach cancer, those with changes to the stomach lining (such as atrophic gastritis or intestinal metaplasia), and household members of someone with a confirmed H. pylori infection.
If you fall into any of those categories, your doctor will likely order one of the non-invasive tests described below rather than jumping straight to an endoscopy.
The Breath Test
The urea breath test is one of the most accurate non-invasive options. You swallow a small capsule or drink a solution containing a special form of urea. If H. pylori is present in your stomach, the bacteria break down the urea and release carbon dioxide, which you then exhale. A breath sample collected a few minutes later detects that carbon dioxide.
This test catches about 92 to 94% of true infections and correctly identifies about 90% of people who don’t have it. The false-negative rate is low, roughly 30 to 42 missed cases per 1,000 people tested. It takes only about 15 to 20 minutes in the office, and results typically come back within one to three days.
The Stool Antigen Test
A stool antigen test looks for proteins from the H. pylori bacterium in a stool sample. It’s similarly accurate to the breath test and is often the go-to option when a breath test isn’t available or practical. You collect a small sample at home or at the clinic, send it to a lab, and get results within a few days. This test is also used after treatment to confirm the infection has been cleared.
Why Blood Tests Fall Short
Blood tests for H. pylori detect antibodies your immune system produced in response to the infection. The problem is that these antibodies can linger in your blood for months or even years after the bacteria are gone. A positive blood test tells you that you were exposed to H. pylori at some point, but it can’t distinguish a current, active infection from one your body (or a past course of treatment) already eliminated. For this reason, blood tests are generally not recommended when the goal is to confirm an active infection or verify that treatment worked.
When Endoscopy Is Needed
If you have alarm symptoms like vomiting blood, black or tarry stools, severe abdominal pain, or significant unexplained weight loss, your doctor may skip straight to an upper endoscopy. During this procedure, a thin flexible camera is passed through the mouth into the stomach, and small tissue samples are taken from the stomach lining. Those samples can be tested on the spot with a rapid urease test, which changes color within minutes if the bacteria are present, or sent to a lab for a closer look under a microscope.
Endoscopy isn’t the first-line approach for most people. It’s reserved for situations where the doctor needs to visually inspect the stomach for ulcers, bleeding, or other structural problems, or when non-invasive test results have been inconclusive.
Medications That Can Skew Your Results
Both the breath test and the stool antigen test can produce false negatives if certain medications are still in your system. You need to stop taking the following at least two weeks before testing:
- Proton pump inhibitors (PPIs) such as omeprazole, pantoprazole, lansoprazole, and esomeprazole. These are common over-the-counter and prescription heartburn medications.
- Antibiotics of any kind.
- Bismuth products like Pepto-Bismol.
These medications suppress the bacteria’s activity without fully killing it, which can make the test appear negative even though the infection is still there. If you’re currently taking any of these, let your doctor know before scheduling a test so you can plan the appropriate washout period. Over-the-counter antacids like calcium carbonate (Tums) are generally fine and don’t need to be stopped.
What Happens After a Positive Test
If your test confirms H. pylori, treatment typically involves a combination of antibiotics and an acid-reducing medication taken together for about two weeks. The antibiotics target the bacteria directly, while the acid reducer creates a less hospitable environment in the stomach and helps damaged tissue heal.
After finishing treatment, most doctors will retest you at least four weeks later, usually with a breath test or stool antigen test, to make sure the infection is actually gone. This step matters because antibiotic resistance can occasionally cause treatment to fail on the first round, and a persistent infection raises the long-term risk of ulcers and stomach cancer. If the first regimen doesn’t work, a different antibiotic combination is used for the second attempt.