Dr. Kshitij LochabGastroenterology · Liver · Endoscopy हिंदी

Food pipe & stomach

H. pylori, gastritis & ulcers

H. pylori is a common stomach infection that can cause inflammation and ulcers. Regular painkillers for body or joint pain (NSAIDs) are another frequent cause.

Dr. Kshitij LochabGastroenterologist · Gurugram: Sector 51, Sector 52, Golf Course RoadTue, Thu, Sat 6:30–8 pm

Summary · the essentials in 2 minutes

What are the symptoms of H. pylori, gastritis and ulcers?

  • Burning or gnawing pain in the upper belly
  • Pain that changes with meals
  • Nausea or feeling full quickly
  • Black stools, which mean bleeding

What causes H. pylori, gastritis and ulcers?

  • H. pylori infection, often picked up in childhood
  • Regular painkillers for body or joint pain (NSAIDs), and some blood-thinning tablets
  • Smoking and heavy alcohol use
  • Severe illness or major surgery (stress ulcers)

How is H. pylori, gastritis and ulcers diagnosed?

H. pylori is confirmed with a urea breath test, a stool test, or a biopsy taken during endoscopy. An endoscopy is advised for warning signs or ulcer bleeding.

How is H. pylori, gastritis and ulcers treated?

A breath, stool or biopsy test confirms H. pylori. A short course of combined medicines usually clears it. Stopping the painkiller lets the stomach heal.

Which procedures can help with H. pylori, gastritis and ulcers?

What should you eat with H. pylori, gastritis and ulcers?

Eat more

  • Regular meals at fixed times, without long gaps
  • Normal home food: dal, roti, rice, vegetables, curd and fruits
  • Curd or chaas during H. pylori treatment, which may ease the side effects of the antibiotics

Cut down

  • Painkillers for body or joint pain unless your doctor advises them; they are a major cause of ulcers
  • Smoking and alcohol, which slow ulcer healing
  • Foods that clearly worsen your own pain, such as very spicy or fried meals

Good to know

  • A bland diet does not heal ulcers; medicines and removing the cause do
  • Cold milk may soothe for a moment but does not heal an ulcer
  • Finish the full H. pylori course and take a test afterwards to confirm it has gone

When should you see a gastroenterologist for H. pylori, gastritis and ulcers?

Upper belly pain lasting more than a few weeks. Any black stool or vomiting of blood needs care the same day.

Book a visit about this

Keep a symptom diary. Log your bowel habits, symptoms and possible food triggers for 2 to 4 weeks, privately on your phone, and bring the summary to your visit.

Open the gut health tracker →

Over 60, or caring for a parent? Read the guide to digestive health after 60, with diet advice and the symptoms that need a check.

Detailed guide

H. pylori, gastritis & ulcers: the detailed guide

For readers who want more than the summary: tests, treatment step by step, complications and follow-up. 6 sections · about 4 min read

How H. pylori, gastritis and ulcers are linked

Gastritis means inflammation of the stomach lining, seen at endoscopy or under the microscope. Many people use the word for any burning or gas, but that is not the same thing. An ulcer is a deeper sore through the lining, either in the stomach (gastric ulcer) or in the first part of the small intestine (duodenal ulcer).

H. pylori is a germ that lives in the stomach lining. It is usually picked up in childhood and stays for life unless treated. Many adults in India carry it. Most never have symptoms, but in some it causes long-term gastritis, ulcers and, rarely, stomach cancer. Painkillers for body or joint pain are the other main cause of ulcers, and the two together raise the risk further.

Which test, and how to prepare for it

Testing is advised for people with an ulcer now or in the past, ongoing indigestion, unexplained iron deficiency anaemia or a close relative with stomach cancer, and for some people before long-term painkillers or heart-protecting blood thinners.

  • Urea breath test: you drink a test solution and breathe into a tube. It is accurate and shows current infection.
  • Stool antigen test: a small stool sample is checked for the germ. It is also accurate and shows current infection.
  • Endoscopy with biopsy: small, painless samples are taken from the stomach lining. This is chosen when an endoscopy is needed anyway, for example for warning signs or bleeding.
  • Blood antibody test: widely offered, but it stays positive for years after the germ has gone, so it is not used to decide treatment or to check cure.

Acid-reducing tablets and antibiotics can hide the germ and give a falsely negative result. Your doctor will tell you which tablets to stop before the test, and for how long. Do not stop any medicine on your own.

Treatment and the test to confirm cure

H. pylori is treated with a combination of antibiotics and an acid-reducing tablet, taken as one course. The doctor chooses the combination based on antibiotic resistance, which is high for some antibiotics in India, and on antibiotics you have taken before.

  • Take every dose until the course ends, even if the pain settles in a few days. Stopping early is a common reason the germ survives.
  • A bitter taste, nausea or loose stools are common and usually mild. Call the clinic rather than stopping the course.
  • Avoid alcohol and smoking during treatment.

Everyone treated should have a breath test, stool test or biopsy afterwards to confirm the germ has gone. It is done some weeks after the course ends, off acid-reducing tablets; your doctor will tell you when. Feeling better is not proof of cure. If the germ is still there, a different combination is used, not the same one again.

A stomach (gastric) ulcer is often checked again with endoscopy to confirm healing and to take biopsies.

Painkillers, older adults and pregnancy

  • Painkillers for headache, back, knee or period pain (NSAIDs) weaken the stomach's protection. Many are bought without a prescription, and the ulcers they cause can be painless until they bleed. Use them only when needed. If they are needed long term, ask your doctor about safer options and stomach protection.
  • Heart-protecting blood thinners should not be stopped without the advice of the doctor who prescribed them, even after an ulcer has bled.
  • Older adults: ulcers may cause little pain and show up as tiredness from anaemia, black stools or sudden bleeding.
  • Pregnancy: tell your doctor if you are pregnant or breastfeeding. H. pylori treatment is usually put off until after pregnancy.

Ulcer complications: warning signs

Most ulcers heal fully once the cause is removed. A few cause serious problems, sometimes with little pain beforehand:

  • Bleeding: black, sticky, tar-like stools, vomiting blood or material like coffee grounds, dizziness or fainting. An endoscopy can usually find and stop the bleeding in the same procedure.
  • Perforation: a hole through the wall of the stomach or duodenum, causing sudden severe belly pain and a hard belly. It needs urgent surgical care.
  • Narrowing (obstruction): scarring at the stomach outlet, causing repeated vomiting of food eaten hours earlier. It can often be stretched with a balloon during endoscopy.

Vomiting blood, black tarry stools with dizziness or fainting, or sudden severe belly pain is an emergency: call 112 or go to the nearest emergency department.

Family members, stomach cancer and common myths

Most people with H. pylori never get stomach cancer, but long-standing infection is its main known risk factor, and clearing the germ lowers the risk. People whose parent, brother, sister or child has had stomach cancer should be tested, and treated if positive. When one adult in a home has H. pylori, testing other adults may be considered; discuss this with your doctor. Routine testing of children without symptoms is not needed.

  • Myth: spicy food causes ulcers. Spices can worsen discomfort, but ulcers are caused mainly by H. pylori and painkillers.
  • Myth: once the pain goes, the treatment can stop. Only a cure test confirms the germ has gone.
  • Myth: a positive blood antibody test after treatment means the germ is back. The antibody can stay positive for years after cure.

↑ Back to the summary

Common questions

Do I need a test after treatment?

Yes. A breath or stool test some weeks after the course ends confirms the infection has cleared. Your doctor will tell you when to do it, and which tablets to pause before it.

Is H. pylori infectious?

It spreads within families, mostly in childhood, through food, water and saliva. Family members without symptoms usually do not need routine testing.

Read next

Related conditions

Dr. Kshitij Lochab

About the author

Dr. Kshitij Lochab

Consultant Gastroenterologist and Therapeutic Endoscopist, Gurugram

  • DrNB Gastroenterology, Medanta – The Medicity (All-India Gold Medal)
  • Advanced Fellowship in EUS and ERCP
  • Associate Consultant, Apollo Hospitals, Golf Course Road
  • Haryana Medical Council Reg. No. HN‑23524

Dr. Lochab sees adults and teenagers (12 and above) at Arcura Clinic, Sector 51, Gurugram, in English and Hindi. Every page on this site is prepared with AI assistance and reviewed by him.

More about Dr. Lochab →

References (2)

Clinical guidelines this page follows. They are written for doctors.

  1. Chey WD, Howden CW, Moss SF, et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. American Journal of Gastroenterology 2024. doi:10.14309/ajg.0000000000002968
  2. Malfertheiner P, Megraud F, Rokkas T, et al. Management of Helicobacter pylori infection: the Maastricht VI/Florence consensus report. Gut 2022. gut.bmj.com