Can an Endoscopy Detect H. Pylori?

Doctor analysing the results of a patient exam.

Helicobacter pylori (H. pylori) is a type of bacteria that infects the stomach lining and is a common cause of gastritis, peptic ulcers, and even stomach cancer in some cases. If you’re experiencing persistent stomach pain, nausea, bloating, or other digestive symptoms, your doctor may recommend a diagnostic procedure. One of the questions patients often ask is: Can an endoscopy detect H. pylori?

The short answer is yes, but there’s more to the story. While endoscopy plays a key role in diagnosing H. pylori, it often works alongside other testing methods to confirm the infection. This article will explain how endoscopy helps detect H. pylori, what to expect during the procedure, and how results are confirmed.

What Is an Endoscopy?

An endoscopy is a medical procedure that allows doctors to view the inside of the digestive tract using a thin, flexible tube called an endoscope. The device has a light and a camera that projects images onto a screen, allowing the physician to closely examine the esophagus, stomach, and upper part of the small intestine.

This procedure is typically done to evaluate symptoms like chronic stomach pain, difficulty swallowing, nausea, or gastrointestinal bleeding. It’s also useful for diagnosing ulcers, inflammation, tumors, and infections—like those caused by H. pylori.

How H. Pylori Infects the Stomach

  1. pylori bacteria can survive in the acidic environment of the stomach by producing an enzyme called urease, which neutralizes stomach acid around the bacteria. This ability allows them to colonize the stomach lining, causing inflammation and damaging the protective mucosal barrier.

Over time, this damage can lead to conditions such as:

  • Chronic gastritis
  • Duodenal or gastric ulcers
  • MALT lymphoma
  • Increased risk of gastric cancer

Detecting the presence of H. pylori is important because, once identified, the infection can be treated effectively with antibiotics and acid-suppressing medications.

Role of Endoscopy in Detecting H. Pylori

An endoscopy can help detect H. pylori, but not in the same way that a blood test or breath test might. During the procedure, your doctor will use the endoscope to visually inspect the stomach lining for signs of inflammation, ulcers, or other abnormalities that could suggest an H. pylori infection.

However, H. pylori bacteria are not visible through the camera alone. To confirm their presence, the doctor typically takes a biopsy, which means collecting small samples of tissue from the stomach lining during the endoscopy procedure.

These tissue samples are then sent to a laboratory for analysis using one or more of the following tests:

  • Rapid urease test (CLO test)
  • Histology (microscopic examination of cells)
  • Culture (growing the bacteria in a lab)
  • Polymerase chain reaction (PCR) for detecting bacterial DNA

These biopsy-based tests are some of the most accurate ways to detect H. pylori.

The Rapid Urease Test

One of the most common methods used during upper endoscopy to detect H. pylori is the rapid urease test. When the bacteria are present in the biopsy sample, their urease enzyme breaks down urea into ammonia and carbon dioxide, which changes the pH of the surrounding environment.

This change in pH causes the color of a special test gel to shift—typically from yellow to pink or red—within a few minutes to a few hours. A color change indicates a positive result for H. pylori. This test is quick, relatively inexpensive, and often provides same-day results.

Histological Examination

Another way to confirm H. pylori during a gastrointestinal endoscopy is through histological examination of the stomach tissue. A pathologist uses special stains to highlight the bacteria under a microscope. This method not only confirms the presence of H. pylori but also allows the doctor to assess the degree of inflammation, cell changes, or tissue damage caused by the infection.

Histology is considered highly accurate, though it takes longer to receive the results compared to the rapid urease test.

Advantages of Using Endoscopy for H. Pylori Detection

While non-invasive tests like breath or stool tests are often used for detecting H. pylori, diagnostic endoscopy offers several advantages, particularly in more complex or concerning cases:

  • Direct visualization of ulcers, bleeding, or suspicious lesions
  • Targeted biopsies from affected areas
  • Detection of complications such as cancer or structural abnormalities
  • Ability to combine diagnosis and treatment in the same procedure (e.g., cauterizing bleeding ulcers)

This makes endoscopy especially useful for patients who have alarming symptoms like weight loss, vomiting, anemia, or GI bleeding, or who have failed previous H. pylori treatments.

When Is Endoscopy Recommended?

Not every patient with possible H. pylori infection needs an endoscopy. Doctors often start with less invasive options like the urea breath test, stool antigen test, or blood test to detect antibodies.

However, endoscopy is usually recommended when:

  • Symptoms are severe or persistent
  • There’s a history of ulcers or stomach cancer
  • There’s concern about upper GI bleeding
  • Previous H. pylori tests were inconclusive
  • There’s a need to assess treatment failure or recurrent infection

If a patient is over 50 and experiencing new digestive symptoms, an endoscopy may also be part of the initial evaluation.

What to Expect During an Endoscopy

If your doctor recommends an endoscopy to evaluate for H. pylori, the procedure is typically done in an outpatient setting and takes about 15–30 minutes. You’ll be asked to fast for several hours before the procedure. Sedation is usually given through an IV to help you relax and stay comfortable.

During the procedure:

  • The endoscope is gently inserted through the mouth
  • The doctor examines the esophagus, stomach, and duodenum
  • Tissue samples (biopsies) are taken if necessary
  • The endoscope is then removed, and you’ll be monitored during recovery

Most patients go home the same day and can resume normal activities after a short rest.

Limitations of Endoscopy for H. Pylori

While endoscopy with biopsy is highly accurate, there are a few limitations to consider:

  • False negatives may occur if the patient has recently taken antibiotics, proton pump inhibitors (PPIs), or bismuth-containing medications
  • Discomfort or anxiety about the procedure may discourage some patients
  • Higher cost compared to non-invasive tests
  • Requires specialized facilities and trained personnel

Despite these limitations, endoscopy remains an important tool in diagnosing H. pylori, especially when symptoms are more serious or other conditions are suspected.

Conclusion

So, can an endoscopy detect H. pylori? Absolutely—especially when combined with biopsy and lab testing. While the bacteria themselves can’t be seen through the camera, the tissue samples collected during an endoscopy can provide reliable confirmation of an infection.

For patients with persistent stomach issues, ulcers, or signs of gastrointestinal bleeding, endoscopy is often the best method for both diagnosing H. pylori and assessing the overall health of the stomach lining.

If you’re experiencing symptoms that may be related to H. pylori, speak with your doctor about whether an endoscopy is right for you. Early detection and treatment of this infection can relieve symptoms, prevent complications, and protect your long-term digestive health.

Introducing Curasia Endoscopy Centre

Our host, Jerald Foo, will be taking you to our first centre at Jurong East.

Make An Enquiry

Leave us your details and we’ll get back to you shortly.
Prefer to talk? Call our clinic directly to make an enquiry at +65 6679 1229

or Whatsapp us at +65 9750 8783

We are available 24 hours

Let's Get in Touch!

Clinic Details

Other Related Articles