Compared
H. pylori breath test vs gastroscopy
The urea breath test detects active Helicobacter pylori infection with a simple breath sample and is the usual first test in people with indigestion and no alarm features. Gastroscopy looks directly at the stomach, finds ulcers and cancers, and takes biopsies, but is reserved for people with alarm symptoms or those whose symptoms persist. The two answer different questions.
Last checked: 2026-10-03
Key facts
At a glance.
-
What breath test finds
Active H. pylori infection, by detecting carbon-labelled carbon dioxide produced when the bacteria break down urea.
-
What gastroscopy finds
Ulcers, inflammation, hiatus hernia, narrowing and cancer, with biopsies possible for H. pylori and other conditions.
-
Medicines matter
Acid-suppressing tablets and recent antibiotics can cause a false negative breath test, so you may be asked to stop them for a set period first.
-
Alarm features
Difficulty swallowing, vomiting blood, black stools, unexplained weight loss, anaemia or persistent vomiting need urgent specialist assessment, not breath testing alone.
-
Treatment
H. pylori is treated with a course of acid suppression plus antibiotics, prescribed after a positive test.
What problem each test is solving
The breath test answers a narrow question: is H. pylori present in the stomach? This bacterium can cause gastritis and ulcers and is linked to stomach cancer. In people with indigestion, a "test and treat" approach can resolve symptoms in some and prevent ulcers.
Gastroscopy answers a broader question: what does the stomach and upper gut look like, and is there an ulcer, tumour or other structural problem? It is more invasive, so it is reserved for those who need that level of answer.
How the breath test works
You swallow a drink or tablet containing urea labelled with a harmless carbon isotope. If H. pylori is present, its enzyme splits the urea, releasing labelled carbon dioxide that appears in your breath, which you blow into a bag or tube. It takes a short time and involves no radiation or needles.
It must be done after proper preparation, because stomach-acid-reducing medicines such as proton pump inhibitors and some antibiotics can suppress the bacteria and cause a false negative. You will be told how long to stop them, and you should not do this without medical guidance if you rely on them for serious conditions.
How gastroscopy compares
Gastroscopy requires fasting, throat spray or sedation, and a camera passed through the mouth. It lets the doctor see ulcers and cancers, take biopsies and test them for H. pylori at the same time, and sometimes treat bleeding. Its downsides are invasiveness, small risks and limited capacity.
It is often performed within urgent pathways for people with alarm symptoms, or when symptoms continue despite treatment, rather than as a first test for simple indigestion.
Comparison
| Feature | Breath test | Gastroscopy |
|---|---|---|
| Invasiveness | Non-invasive | Camera through the mouth |
| Main purpose | Detect active H. pylori | Examine stomach and upper gut; biopsy |
| Finds ulcers or cancer | No | Yes |
| Medicine restrictions | Acid suppressants and antibiotics must usually be paused first | Fasting; some blood thinners need planning |
| Sedation | None | Spray or sedation |
| Typical user | Indigestion without alarm features | Alarm symptoms, persistent symptoms, older people with new symptoms |
| Result | Positive or negative for infection | Visual findings and biopsy results |
What clinicians usually decide and why
NICE guidance on dyspepsia and gastro-oesophageal reflux (CG184) recommends testing for H. pylori in people with dyspepsia and treating if positive, and offering endoscopy to people with alarm signs. NICE suspected cancer guidance (NG12) sets out which upper gut symptoms need urgent endoscopy referral, including difficulty swallowing at any age.
The reasoning is proportionality: most indigestion is benign and responds to a non-invasive approach, while the minority with alarm features need direct examination without delay.
How to decide
-
Recurrent indigestion with no alarm features: discuss H. pylori testing with your GP, who will advise on medicines before the test.
-
Difficulty swallowing, vomiting blood, black or tarry stools, unexplained weight loss or anaemia: urgent assessment; gastroscopy is likely. Vomiting blood or black stools may need 999 or A&E.
-
Persistent symptoms after H. pylori treatment: gastroscopy may be considered.
-
Planned gastroscopy for another reason: biopsies can test for H. pylori at the same time.
-
Need for proof of eradication after treatment: a breath test is commonly used, at least a few weeks after treatment finishes.
Common misconceptions
A negative breath test does not exclude all stomach problems; it only says active H. pylori was not detected. A positive test does not mean cancer; it means treatment is indicated.
It is also not true that stomach ulcers are caused only by stress or spicy food. H. pylori and anti-inflammatory painkillers are common causes.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
Can I do a breath test instead of gastroscopy?
For simple indigestion, a breath test is the usual first step. If you have alarm symptoms, gastroscopy is needed instead.
-
Do I need to stop my acid reflux tablets for the test?
Often for a couple of weeks before the breath test, but follow the instructions from your GP or the testing service and ask before stopping.
-
Is the breath test accurate?
It is reliable when done correctly after the right preparation. Medicines can cause false negatives.
-
How is H. pylori treated?
With a short course of two antibiotics and an acid suppressant, prescribed by a clinician. Follow-up testing confirms clearance.
-
Can H. pylori cause cancer?
It is a recognised risk factor for stomach cancer, which is one reason treatment is advised if it is found.
-
Is a stool test an alternative?
Yes, a stool antigen test is another non-invasive option, with the same medication restrictions.
-
Does the breath test involve radiation?
The carbon label used in the standard test is harmless and non-radioactive in most settings.
-
Who needs a gastroscopy first?
People with alarm symptoms or older people with new persistent upper abdominal symptoms, as determined by a clinician.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-03, next review 2027-10-03.
-
NHS website (nhs.uk) patient information pages on the tests and procedures discussed, consulted October 2026
-
NICE guideline CG184: Gastro-oesophageal reflux disease and dyspepsia in adults (nice.org.uk/guidance/cg184), consulted October 2026
-
NICE guideline NG12: Suspected cancer, recognition and referral (nice.org.uk/guidance/ng12), consulted October 2026