How to Tell If You Have H. Pylori: Symptoms & Tests

Most people with H. pylori have no symptoms at all, which makes this one of those infections you can carry for years without knowing. Roughly 44% of adults worldwide are infected, and the majority never develop noticeable problems. When symptoms do appear, they typically point to irritation of the stomach lining or an ulcer that the bacteria has caused over time. The only way to know for certain is through testing, but there are specific signs worth paying attention to.

Symptoms That Suggest H. Pylori

When H. pylori does cause symptoms, they center on the upper abdomen. The most characteristic sign is a burning or aching pain in the stomach area, often between the breastbone and the navel. This pain tends to feel worse when your stomach is empty and may improve briefly after eating, only to return. It can wake you up at night.

Other common symptoms include:

  • Frequent burping that feels excessive or hard to control
  • Bloating after meals or throughout the day
  • Nausea or a general feeling of upset stomach
  • Loss of appetite that develops gradually
  • Unintentional weight loss

These symptoms overlap with many other digestive conditions, which is part of the challenge. Acid reflux, gallbladder problems, and functional dyspepsia can all feel similar. The pattern that should raise your suspicion is persistent upper stomach pain, especially the kind that worsens on an empty stomach, combined with bloating or nausea that doesn’t resolve on its own over a few weeks.

Why Many Infections Stay Silent

One study of 450 patients visiting a clinic for reasons completely unrelated to stomach problems found that nearly 68% tested positive for H. pylori. None of them had upper digestive symptoms. This is consistent with what researchers have long observed: the bacteria can live in the stomach lining for decades without triggering inflammation severe enough to cause noticeable discomfort. Some people’s immune systems tolerate it better than others, and the specific strain of bacteria also matters.

This means you could test positive even if you feel perfectly fine. It also means that if you do develop symptoms, the infection may have been present for a long time before it started causing trouble. H. pylori gradually weakens the protective mucus layer of the stomach, and symptoms typically emerge once that damage reaches a tipping point, often in the form of gastritis or an ulcer.

The Best Tests for Active Infection

Two non-invasive tests are considered the most reliable for detecting a current H. pylori infection: the urea breath test and the stool antigen test.

The urea breath test works by having you swallow a small capsule or drink 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 breathe out. A breath sample collected 15 to 30 minutes later can detect this. A large meta-analysis found that breath tests have a sensitivity around 88% and specificity around 85%, meaning they correctly identify most infections and rarely give false positives.

The stool antigen test looks for H. pylori proteins directly in a stool sample. It’s similarly accurate and is often the more practical option since it doesn’t require special equipment in the office. Both tests detect active, current infection, which is their key advantage.

Why Blood Tests Are Unreliable

Blood tests for H. pylori check for antibodies your immune system produces in response to the bacteria. The problem is that these antibodies can linger in your blood for years after the infection has been cleared. In one study, 65% of patients who had successfully been treated still tested positive on blood antibody tests a full year later. Another study found that six months after confirmed eradication, blood tests had a specificity of only 8% to 10% for active infection, meaning they were wrong about active infection roughly nine times out of ten.

People can also spontaneously clear H. pylori and later become reinfected, which makes a positive blood test even harder to interpret. If your doctor orders a blood antibody test, it’s worth asking about a breath or stool test instead, since those actually tell you whether the bacteria are present right now.

What Can Cause a False Negative

Even the best tests can miss an active infection if you’ve recently taken certain medications. Proton pump inhibitors (the heartburn drugs sold as omeprazole, lansoprazole, esomeprazole, and similar names), bismuth-containing products like Pepto-Bismol, and antibiotics can all suppress H. pylori enough to produce a false negative result without actually eliminating the infection.

The standard recommendation is to stop proton pump inhibitors and bismuth products at least two weeks before testing. Antibiotics should also be avoided for at least two weeks prior. If you’ve been taking any of these and get a negative result, that result may not be trustworthy. Let your doctor know what you’ve been taking so the test can be timed appropriately.

When Endoscopy Is Used Instead

A breath or stool test is the standard first step for most people. Endoscopy, where a thin flexible camera is passed through the mouth into the stomach, is more invasive and isn’t typically used just to diagnose H. pylori. It becomes relevant when there are signs that something more serious might be going on, such as persistent vomiting, difficulty swallowing, unexplained anemia, or significant weight loss.

During an endoscopy, the doctor can take small tissue samples from the stomach lining and send them to a lab to check for both H. pylori and any structural damage like ulcers, chronic inflammation, or precancerous changes. This gives a more complete picture than non-invasive tests alone. If you’re over 60 or have warning symptoms alongside your stomach pain, endoscopy is more likely to be recommended early on.

Who Should Get Tested

Testing makes sense if you have persistent upper abdominal symptoms, particularly the burning, empty-stomach pain pattern described above. It’s also recommended if you’ve been diagnosed with a peptic ulcer, since H. pylori causes the majority of ulcers not linked to pain medications.

The American College of Gastroenterology now recommends expanding testing to include people at increased risk of stomach cancer, those with changes to their stomach lining like atrophic gastritis or intestinal metaplasia, and household members of someone with a confirmed H. pylori infection. Living in close quarters with an infected person raises your risk because the bacteria spread through saliva, contaminated water, and close contact.

If you’ve been treated for H. pylori in the past, retesting at least four weeks after finishing treatment (and after the medication washout period) confirms whether the bacteria have actually been eliminated. Eradication doesn’t always work on the first attempt, and confirming clearance matters because persistent infection continues to damage the stomach lining over time.