At a Glance

Why Get Tested?

To diagnose an infection with Helicobacter pylori (H. pylori), the bacteria that can cause a peptic ulcer, which is a sore on the lining of the stomach, small intestine or esophagus; to determine whether treatment has cured the infection

When To Get Tested?

When you have symptoms of an ulcer, such as ongoing indigestion, gastrointestinal pain that comes and goes, unexplained weight loss, nausea and/or vomiting; about 4-6 weeks after completing treatment for the infection

Sample Required?

A stool sample, a breath sample, or a tissue biopsy of the stomach lining

Test Preparation Needed?

You may need to avoid certain medications; follow any instructions you are given.

What is being tested?

Helicobacter pylori is a type of bacteria that is known to be a major cause of peptic ulcers, which are sores on the lining of the esophagus, stomach or small intestine.  H. pylori testing detects an infection of the digestive tract caused by the bacteria to help diagnose the cause of symptoms and/or ulcers.

H. pylori infections of the digestive tract are very common, with as many as half of the world’s population infected. However, most people with H. pylori never have any symptoms. Still, H. pylori infection increases the risk of developing ulcers (peptic ulcer disease), persistent stomach inflammation (gastritis), and gastric (stomach) cancer. The bacteria decrease the stomach’s ability to produce mucus, making the stomach prone to damage from digestive acid and peptic ulcers.

A few different types of H. pylori testing are available, such as a stool antigen test and a breath test. Some are less invasive than others.

How is the sample collected for testing?

The sample collected depends on the test ordered:

  • For the urea breath test, a health care professional collects an initial sample of your breath by having you breathe into a bag. You are given a liquid to drink containing a substance called urea. Another breath sample is collected after a specific amount of time has elapsed.
  • For the stool antigen test, a stool sample is collected in a clean container.

A more invasive test will require a procedure called an endoscopy, which involves putting a thin tube with a tiny camera on the end down the throat into the stomach. This allows your health care practitioner to view the stomach lining and take a small piece of tissue (a biopsy) from the lining for examination.

Is any test preparation needed to ensure the quality of the sample?

For the breath test, you may be instructed to refrain from taking certain medications:

  • Four weeks before the test, do not take any antibiotics or oral bismuth subsalicylate (Pepto Bismol®).
  • Two weeks before the test, do not take any prescription or over-the-counter proton pump inhibitors, such as omeprazole, lansoprazole, or esomeprazole.
  • One hour before the test, do not eat or drink anything (including water).

If submitting a stool sample or having a tissue biopsy collected, it may be necessary to refrain from taking any antibiotics, antacids, or bismuth treatments for 14 days prior to the test.

If undergoing endoscopy, fasting, usually overnight, may be required. Only water may be permitted.

Common Questions

How is the test used?

H. pylori testing is used to detect the bacteria in the digestive tract, diagnose the infection, and to evaluate whether treatment has cured the infection.

There are several different types of H. pylori testing that can be performed. The following tables summarize these tests:

Without Endoscopy

With Endoscopy: tissue biopsy sample obtained; good tests but ordered less often because invasive

The stool antigen test and urea breath test are recommended for the diagnosis of an H. pylori infection and for the evaluation of the effectiveness of treatment. These tests are the most frequently performed because they are fast and noninvasive. (The urea breath test is not typically recommended for young children. In children, the preferred test would be the stool antigen test.) Endoscopy-related tests may also be performed to diagnose and evaluate H. pylori but are less frequently performed because they are invasive.

The testing recommendations come from guidelines by the American Gastroenterology Association (AGA), the American College of Gastroenterologists (ACG), and the Infectious Diseases Society of America (IDSA) / the American Society for Microbiology (ASM).

When is it ordered?

Testing may be ordered when you have pain in your digestive tract and other signs and symptoms of an ulcer. Examples include:

  • Abdominal pain that comes and goes over time
  • Unexplained weight loss
  • Indigestion
  • Feeling of fullness or bloating
  • Nausea
  • Belching

Some people may have more serious signs and symptoms that require immediate medical attention, including sharp, sudden, persistent stomach pain, bloody or black stools, or bloody vomit or vomit that looks like coffee grounds.

H. pylori testing may also be ordered about 4 to 6 weeks after you have finished taking the prescribed antibiotics to confirm that the infection is cured. A follow-up test is not performed on every person, however.

What does the test result mean?

A positive H. pylori stool antigen, breath test, or biopsy indicates that your signs and symptoms are likely caused by a peptic ulcer due to these bacteria. Treatment with a combination of antibiotics and other medications will be prescribed to kill the bacteria and stop the pain and the ulceration.

A negative test result means that it is unlikely that you have an H. pylori infection and your signs and symptoms may be due to another cause. However, if symptoms persist, additional testing may be done, including the more invasive tissue biopsy, to more conclusively rule out infection.

Is there anything else I should know?

People can have digestive tract pain for many reasons; an ulcer caused by H. pylori is only one of them.

If you use antacids within the week prior to testing, the rapid urease test may be falsely negative. Antimicrobials, proton pump inhibitors, and bismuth preparations may interfere with test results.

What is the treatment of peptic ulcer caused by H. pylori?

Treatment usually involves a combination of antibiotics and drugs to reduce the amount of stomach acid produced, such as proton pump inhibitors and histamine receptor blockers, as well as a bismuth preparation, such as Pepto-Bismol®, taken for several weeks.

Does everyone with H. pylori get ulcers?

No, many people have evidence of infection but have no symptoms of ulcerative disease. The reason why some people with H. pylori infections develop peptic ulcers and others do not is not yet understood.

Should everyone be tested for H. pylori?

Since the infection is very common and most people do not ever get ulcers, testing is generally only recommended for those who have signs and symptoms.

How did I get infected with H. pylori?

The bacteria are believed to be transmitted by eating food or drinking water that has been contaminated with human stool, or possibly through contact with the stool, vomit, or saliva of an infected person. Exposure to family members with H. pylori seems to be the most likely opportunity for transmission.

Does everyone treated for H. pylori get better?

The majority of people who successfully complete the combination antibiotic therapy get rid of these bacteria from their digestive tract. However, resistance to some of the antibiotics may occur and, therefore, the bacteria may continue to multiply despite appropriate therapy.

If I am treated and the infection goes away, can I get another H. pylori infection?

Treatment does not make a person immune, so there is always the potential for becoming infected again.

Why is the blood test for H. pylori antibodies no longer recommended?

The American Gastroenterology Association, the American College of Gastroenterologists, the Infectious Diseases Society of America and the American Society for Microbiology do not recommend the antibody blood test for routine use in diagnosing an H. pylori infection or evaluating its treatment as the test cannot distinguish between a present and previous infection. A few healthcare practitioners still order this test, but many laboratories have stopped offering it. If performed and the blood test is negative, then it is unlikely that the person has had an H. pylori infection. If it is positive, then the presence of a current H. pylori infection should be confirmed with a stool antigen or breath test.


See More

Ask a Laboratory Scientist

Ask A Laboratory Scientist

This form enables patients to ask specific questions about lab tests. Your questions will be answered by a laboratory scientist as part of a voluntary service provided by one of our partners, American Society for Clinical Laboratory Science. Please allow 2-3 business days for an email response from one of the volunteers on the Consumer Information Response Team.

Send Us Your Question