WhatsApp Skip to main content

Dr. Harsh J Shah

Stomach Pain: Is It an Ulcer? Signs and Tests

Last updated: 27-Oct-2026

Dr Harsh Shah, GI surgeon, Ahmedabad

Dr Harsh Shah
MS, MCh (Surgical Gastroenterology), DrNB (Surgical Gastroenterology)
Registered with Gujarat Medical Council, Reg. No. G-38738
Gastro & Cancer Surgeon
Apollo Hospital, Bhat, Gandhinagar · Gota OPD, Ahmedabad · 18 years of experience
★★★★★ Google: 4.89 from 216 reviews (Gota clinic) · 4.94 from 18 reviews (Apollo, Bhat)

In short

Ulcer pain is a burning ache in the upper belly, but the pattern is a poor guide. A test shows whether an ulcer is there.

Bleeding, weight loss, anaemia, repeated vomiting or new pain after middle age needs a scope soon. Do not wait or take acid tablets first.

Younger people with none of these signs can start with a simple H. pylori breath or stool test. A stomach ulcer always needs biopsies.

The full care plan is on the peptic ulcer treatment in Ahmedabad page. This post explains the signs of an ulcer, the red flags, and the tests used to prove it.

Ulcer pain, and the pain that misleads

An ulcer usually shows as a burning ache in the upper belly. The pattern is a weak clue, so a test decides.

Classic ulcer pain by site, and why it cannot be trusted alone
FeatureDuodenal ulcer (first part of small bowel)Stomach ulcer
FoodPain eases after a meal and returns a few hours laterPain starts or worsens with a meal
NightOften wakes you in the early hoursLess often
WeightUsually steady, as eating gives reliefMay fall, as you avoid food
Main causeH. pylori germ, then painkiller tabletsPainkiller tablets, H. pylori, and rarely cancer

Most people with upper belly pain do not have an ulcer. Many have functional dyspepsia or acid reflux. Some ulcers give no pain at all, mostly those caused by painkiller tablets. They show up first as a bleed or a hole. Older people also under-report pain.

Red flags that need a scope soon

Some signs mean an organic problem, sometimes a cancer, must be ruled out by a scope without delay.

  • Black stool, or vomit that looks like coffee grounds or has blood. This is an emergency, explained in how a bleeding ulcer is stopped.
  • Low blood count (anaemia) with no clear reason.
  • Weight loss you did not plan.
  • Vomiting again and again, or food that sticks on the way down.
  • A lump in the upper belly, or new pain after middle age.
  • A close relative with stomach or food pipe cancer.

Sudden, board-like belly pain with a rigid abdomen points to a hole in the wall. That emergency is covered in perforated peptic ulcer surgery. In India, where stomach cancer can appear at a younger age, keep the threshold for a scope low.

Test first, or scope straight away?

Without red flags, a simple H. pylori test can come first. With red flags, or in older people, the scope comes first.

Who starts with which test
Your situationFirst stepWhy
Younger, upper belly pain, no red flagH. pylori breath or stool test, then treat if positiveWorks as well as a scope for symptoms, and spares a scope
Any red flagScope nowFinds ulcers and cancers early
New pain after middle ageScope nowThe chance of cancer rises with age
Months on acid tablets with partial reliefScope, if red flags or older ageRelief does not prove a harmless cause

One mistake is common. Acid tablets are started for a person who has a red flag. They hide the picture, delay a cancer diagnosis and spoil the H. pylori test that comes later.

What the doctor does at the scope

The scope shows the ulcer, takes samples, and can stop a bleed in the same sitting. A stomach ulcer always needs samples.

  • The doctor notes where the ulcer is, how big, and how the edge and base look.
  • For a stomach ulcer, several small samples are taken from the edge. Cancer can sit in one spot, and a single sample can miss it.
  • A repeat scope is done after about six to eight weeks to check that it has healed. A stomach ulcer that does not heal is treated as a cancer until proven otherwise.
  • A duodenal ulcer does not usually need samples or a repeat scope, because cancer is rare there.

The look of an ulcer never replaces a biopsy. A smooth edge is reassuring, but it is not proof.

Testing for H. pylori without a false result

Acid tablets and antibiotics can hide the germ. Stop them for the right period before the test, or the result may read falsely negative.

H. pylori tests and what to remember
TestWhat it findsRemember
Breath testActive germReliable. Needs a gap from acid tablets and antibiotics
Stool antigen testActive germWorks as well as the breath test, with the same gap
Test on a scope sampleActive germQuick at the scope. Can miss it after a bleed or on acid tablets
Blood antibody testPast or present contactCannot show that the germ is gone
  • Stop acid tablets two weeks before a breath, stool or scope test, if it is safe for you to do so.
  • Take no antibiotics or bismuth for four weeks before.
  • After a bleeding ulcer, a negative test is repeated once you recover.
  • After treatment, check that the germ is gone, no sooner than four weeks after the course ends.

Blood tests, scans and other causes of upper belly pain

Blood tests and scans look for complications and other causes. They do not replace a scope for the ulcer itself.

  • Blood count and iron levels show slow blood loss.
  • Salts and kidney tests show the effect of long vomiting.
  • Liver and pancreas tests look for gallstones and pancreatitis, which can feel like an ulcer.
  • A CT scan looks for a hole, a growth or a thick stomach wall.
  • An ECG is done when the heart could be the cause, as in a lower-wall heart attack.

Work down the list of dangerous causes first: cancer, a hole, bleeding and the heart. Call the pain functional only after the scope and these tests are normal.

When the ulcer is not ordinary

Many ulcers, ulcers far down the small bowel, or ulcers that keep returning call for a search beyond H. pylori and painkillers.

  1. Honest drug history. Ask about every tablet, balm or powder for pain. Many people do not count these as medicines.
  2. Blood gastrin level. A gastrin-making growth, the Zollinger-Ellison problem, can cause many ulcers with loose stools. The test needs a gap from acid tablets to be meaningful.
  3. Crohn disease. A younger person with ulcers and bowel symptoms may need a bowel scope.
  4. Repeat scope with samples. A stomach ulcer that stays open is sampled again and may need an ultrasound scope.

If the stomach cannot empty and vomiting continues, a scope is needed to check that the blockage is not a growth. Do not stop acid tablets on your own if you have had a bleed.

Questions to ask your surgeon

  • Do I have any red flag that needs a scope now?
  • When should I stop my acid tablets before the H. pylori test?
  • If I have a stomach ulcer, when will the repeat scope be done?
  • Which of my tablets could be causing this?
  • Which other causes of my pain have been ruled out?

Frequently asked questions

Can an ulcer be diagnosed from symptoms alone?

No. Ulcer pain looks like many other problems. A test or a scope is needed to be sure.

Do I need a scope for every upper belly pain?

No. Younger people with no red flag can start with an H. pylori test. A scope is needed if any red flag is present.

Why is a stomach ulcer sampled and scoped again?

Some stomach ulcers hide a cancer. Several samples and a repeat scope after healing make sure none is missed.

Why must I stop acid tablets before an H. pylori test?

Acid tablets lower the germ count and can give a false negative. Stop them two weeks before, if safe for you.

Can a normal scope still leave me with pain?

Yes. Many people have functional dyspepsia or reflux. Other causes such as gallstones are checked as well.

Is a blood test enough to prove H. pylori is gone?

No. The blood antibody stays positive after the germ is gone. Use a breath or stool test, four weeks after the course.

Where Dr Harsh Shah sees patients and operates

Shah’s Gastro, Cancer & Robotic Surgery Centre, Gota, Ahmedabad

Consultation, review of endoscopy, biopsy and scan reports, second opinions and follow-up.

+91-63555-64601 · Directions to the Gota clinic

Apollo Hospital, Bhat, Gandhinagar

Apollo Hospital International Limited, GIDC Bhat Industrial Estate, Bhat, Gandhinagar. Endoscopy and biopsy, CT scans, surgery for stomach and duodenal disorders, and inpatient care.

WhatsApp +91-63555-64601 · Directions to Apollo, Bhat

Upper belly pain that will not settle, or any black stool or blood in vomit, needs a doctor's review. For a second opinion on your scope or test reports, send them ahead on WhatsApp. What suits you is decided after examination. Call +91-63555-64601 Send your reports before the visit

Rate this post

Get health updates from Dr Harsh Shah on WhatsApp

Swasth Parivar: every week, practical advice on recovery, diet and warning signs. No advertising. Stop any time.

Your number is used for these updates and for the clinic to reach you. It is never sold or passed on. To stop, reply STOP on WhatsApp.

Dr. Harsh J Shah
Dr Harsh Shah - Surgical Gastroenterologist and GI Robotic Surgeon, Ahmedabad
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.