What tests are used to diagnose gastritis or stomach ulcer (endoscopy, scan, H. pylori test)? 

The diagnostic process for gastritis and stomach ulcers in the United Kingdom is structured to identify tissue inflammation, structural damage, or underlying bacterial infections. Because symptoms such as upper abdominal pain and indigestion can overlap with various other conditions, healthcare professionals utilise a combination of non-invasive laboratory tests and direct visual examinations. In the UK, the clinical pathway typically begins in primary care with a detailed symptom review and specific tests for common bacterial triggers. If symptoms are persistent or if specific warning signs are present, more specialised investigations are conducted in a hospital setting. Understanding these diagnostic tools is essential for patients to prepare for their assessments and ensure that the correct medical management is implemented to allow the gastric lining to heal effectively. 

What We’ll Discuss in This Article 

  • Initial clinical assessment and symptom history 
  • Testing for Helicobacter pylori (H. pylori) bacteria 
  • The role of gastroscopy in direct visual diagnosis 
  • When imaging scans such as CT or ultrasound are used 
  • Utilising blood tests to screen for secondary complications 
  • Understanding the biopsy process during an endoscopy 

Doctors use a combination of bacterial testing, blood analysis, and direct visual examinations to diagnose gastric conditions 

The primary objective of diagnostic testing for gastritis and ulcers is to confirm the presence of inflammation or sores and to identify the specific cause. A blood test is the first step used to help diagnose coeliac disease and identify nutritional deficiencies, which may present with similar symptoms. However, for gastric specific issues, clinicians prioritised identifying the presence of Helicobacter pylori bacteria or investigating physical damage via a camera test. These investigations allow for a clear distinction between general irritation and a localised peptic ulcer, which ensures that the patient receives the appropriate prescription treatment, such as targeted antibiotics or acid suppressing medications. 

Testing for Helicobacter pylori (H. pylori) 

In the UK, testing for the H. pylori bacterium is a fundamental part of investigating persistent gastric pain or suspected ulcers. This bacteria is a leading cause of stomach lining damage and requires specific treatment to clear. There are three common methods used to detect the infection: a urea breath test, where the patient drinks a special liquid and provides a breath sample. A stool antigen test, which looks for proteins related to the bacteria in a bowel movement. A blood test can also be used, though it is less common as it cannot always distinguish between a current or past infection. According to the National Institute for Health and Care Excellence, clinicians should offer H. pylori testing to patients with persistent dyspepsia as a first-line diagnostic step. 

Direct visual examination via gastroscopy 

For many patients with persistent or severe symptoms, a gastroscopy, also known as an upper gastrointestinal endoscopy, is the most definitive diagnostic tool. This procedure involves a specialist doctor or nurse inserting a thin, flexible tube with a camera at the end through the mouth and down into the stomach. A gastroscopy is a procedure where an endoscope is used to look inside your body to identify signs of inflammation (gastritis), open sores (ulcers), or other tissue changes. During the procedure, the clinician may also take a small tissue sample, known as a biopsy, to be examined under a microscope. This allows for the confirmation of a diagnosis and the exclusion of more serious conditions such as gastric cancer. 

Imaging scans and secondary blood tests 

While endoscopy is the gold standard, other imaging techniques and laboratory tests provide supplementary information about a patient’s health status. Ultrasound or CT scans are not typically used to diagnose gastritis or ulcers directly, but they are vital for ruling out other causes of abdominal pain, such as gallstones or issues with the pancreas. Additionally, doctors often perform a full blood count to check for signs of anaemia. Stomach ulcers are open sores that develop on the lining of the stomach and can cause slow, internal bleeding that leads to a drop in red blood cell levels. Identifying these systemic signs helps clinicians determine the urgency of the condition and the need for more intensive medical monitoring. 

Conclusion 

The diagnosis of gastritis and stomach ulcers in the UK involves a structured approach using H. pylori testing, blood analysis, and often a gastroscopy. These tests are essential for identifying the biological cause of abdominal pain and assessing the severity of any tissue damage. By following these clinical pathways, healthcare professionals can ensure that patients receive the most effective treatment to promote full recovery. If you experience severe, sudden, or worsening symptoms, call 999 immediately. 

Do I have to stop my medication before an H. pylori test? 

Yes, you usually need to stop taking proton pump inhibitors (PPIs) for at least two weeks before a breath or stool test to ensure the results are accurate.

Is a gastroscopy painful?

The procedure can be uncomfortable, but patients are typically offered a throat spray to numb the area or a mild sedative to help them relax.

Can a simple blood test find an ulcer?

A blood test cannot see an ulcer directly, but it can identify anaemia or the presence of antibodies that suggest an infection.

How long do H. pylori breath test results take? 

Results are usually available within a few days to a week, depending on the specific laboratory and the GP practice.

Will I need a scan if I have a stomach ulcer?

Scans like an ultrasound are usually only performed if your doctor needs to rule out other problems in your abdomen, such as gallstones.

Is a biopsy always taken during an endoscopy? 

Not always; a biopsy is only taken if the clinician sees an area of inflammation or a sore that needs closer microscopic examination.

Can children have these diagnostic tests?

Yes, though the approach is often more conservative, and procedures like endoscopy are performed by paediatric specialists in a hospital setting.

Authority Snapshot (E-E-A-T Block) 

This article was developed by the Medical Content Team to provide clear education on the diagnostic procedures for gastric health in the UK. The content has been reviewed by Dr. Stefan Petrov, a UK-trained physician with extensive experience in general medicine and emergency care, to ensure absolute alignment with NHS and NICE clinical guidance. Our purpose is to support patient understanding of clinical pathways through factual and restrained reporting. 

Reviewed by

Dr. Stefan Petrov, MBBS
Dr. Stefan Petrov, MBBS

Dr. Stefan Petrov is a UK-trained physician with an MBBS and postgraduate certifications including Basic Life Support (BLS), Advanced Cardiac Life Support (ACLS), and the UK Medical Licensing Assessment (PLAB 1 & 2). He has hands-on experience in general medicine, surgery, anaesthesia, ophthalmology, and emergency care. Dr. Petrov has worked in both hospital wards and intensive care units, performing diagnostic and therapeutic procedures, and has contributed to medical education by creating patient-focused health content and teaching clinical skills to junior doctors.

All qualifications and professional experience stated above are authentic and verified by our editorial team. However, pseudonym and image likeness are used to protect the reviewer's privacy.