Peptic Ulcer (Stomach Ulcer)

Symptoms, causes, treatment and when to see a doctor, plus 25 verified professionals you can consult online.

Talk to a doctor about Peptic Ulcer (Stomach Ulcer)Verified doctors from ₹15/min · chat, voice or video
At a glance
  • A sore in the stomach or duodenum lining
  • Mainly caused by H. pylori or NSAID painkillers
  • Most ulcers heal well with treatment
  • Black stools or vomiting blood need emergency care
Mainly affectsStomach and gut

Overview

A peptic ulcer is an open sore in the lining of the stomach (gastric ulcer) or the first part of the small intestine (duodenal ulcer). It forms when stomach acid damages an area where the protective lining has been weakened. The most common symptom is a burning or gnawing pain in the upper middle belly, though some ulcers cause no pain at all.

The two main causes are infection with Helicobacter pylori (H. pylori) bacteria and regular use of painkillers of the NSAID type, such as ibuprofen, diclofenac and aspirin. Spicy food and stress are not thought to cause ulcers, though they may make symptoms worse in some people.

Most ulcers heal well with the right treatment, which removes the cause and lowers stomach acid. But an ulcer can bleed or make a hole (perforation) in the stomach wall, which are emergencies. Vomiting blood, passing black stools or sudden severe belly pain need immediate hospital care.

Symptoms

  • Burning or gnawing pain in the upper middle belly
  • Pain that may come on when the stomach is empty or at night, or soon after eating
  • Pain that may ease for a while after eating or taking antacids
  • Indigestion, heartburn or belching
  • Bloating or feeling full quickly
  • Nausea or vomiting
  • Loss of appetite or weight loss
  • Tiredness and paleness from slow blood loss (anemia)

When to see a doctor

Self-care at homeUsually fine

Avoid NSAID painkillers, alcohol and tobacco while waiting to see a doctor.

See a doctorOnline or in person

Recurring upper belly pain, night pain, weight loss, or regular painkiller use.

Emergency: call 112Get help now

Vomiting blood, black tarry stools, fainting or sudden severe belly pain: call 112.

See a doctor if you have upper belly pain or indigestion that keeps coming back, wakes you at night, or does not settle within a couple of weeks. Book sooner if you regularly take painkillers, are older, have lost weight without trying, keep vomiting, have difficulty swallowing, feel tired and pale, or have a family history of stomach cancer.

If you take aspirin, blood thinners, steroids or NSAID painkillers and develop stomach pain, talk to your doctor. Do not stop aspirin or blood thinners prescribed for your heart or brain on your own, as this can be dangerous; your doctor can decide what to change and may add stomach-protecting medicine.

Get emergency help if you notice
  • Vomiting blood, or vomit that looks like coffee grounds
  • Black, sticky, tarry stools, or dark red blood in the stool
  • Sudden, severe belly pain that does not go away, especially if the belly is hard and very tender
  • Feeling faint, dizzy, sweaty, confused, or collapsing
  • Repeated vomiting so that you cannot keep food or fluids down
  • Upper belly or chest pain with sweating or breathlessness (possible heart attack)

In India, call 112 for emergencies.

Causes

H. pylori bacteria live in the stomach lining in many people and can cause long-lasting inflammation that weakens the lining, allowing acid to create an ulcer. The infection is common worldwide and is usually picked up in childhood, through contaminated food, water or close contact.

NSAID painkillers such as ibuprofen, diclofenac, naproxen and aspirin reduce substances that protect the stomach lining. Taking them often, in high amounts, together with steroids or blood thinners, or at an older age raises the risk of ulcers and bleeding. Smoking and heavy alcohol use slow healing. Rarely, ulcers are caused by conditions that produce too much acid, or by stomach cancer, which is why some ulcers are checked with endoscopy.

Risk factors

  • H. pylori infection
  • Regular use of NSAID painkillers, including aspirin
  • Taking painkillers together with steroids or blood thinners
  • Older age
  • Smoking or tobacco use
  • Heavy alcohol use
  • A past history of ulcers

Complications

  • Bleeding, which may be slow and cause anemia, or sudden and life-threatening
  • Perforation, a hole in the stomach or intestine wall, causing infection of the belly lining (peritonitis)
  • Blockage of the stomach outlet from swelling or scarring, causing repeated vomiting
  • Ulcers coming back if H. pylori or painkiller use is not dealt with
  • Long-term H. pylori infection raises the risk of stomach cancer

Diagnosis

A doctor will ask about your symptoms and all the medicines you take, especially painkillers and aspirin, and will examine your belly. Testing for H. pylori is a key step, usually with a urea breath test or stool antigen test. Some medicines, including acid-reducing medicines and antibiotics, can affect these tests, so tell the doctor what you have been taking. Blood tests check for anemia.

An upper GI endoscopy lets the doctor see the ulcer directly, take biopsies to check for H. pylori and rule out cancer, and treat a bleeding ulcer during the same procedure. Endoscopy is advised for people with warning signs, older people with new symptoms, and those whose symptoms do not improve.

Treatment

Treatment aims to remove the cause and let the ulcer heal. If H. pylori is found, the doctor prescribes a combination of antibiotics with an acid-reducing medicine. It is important to finish the full course exactly as prescribed, and a repeat test is often done afterwards to confirm the infection has gone.

Acid-reducing medicines, mainly proton pump inhibitors, are used to heal the ulcer. If NSAID painkillers were the cause, the doctor will usually stop or switch them, or add stomach protection if you must keep taking aspirin or other needed medicines. Your doctor decides the medicines and how long to take them.

Bleeding ulcers are treated in hospital, often with endoscopy to stop the bleeding, intravenous medicines and sometimes a blood transfusion. Perforation usually needs emergency surgery. Stopping smoking and alcohol helps healing and lowers the chance of the ulcer coming back.

Self-care at home

  • Avoid NSAID painkillers such as ibuprofen and diclofenac unless your doctor advises; ask about safer pain relief
  • Do not stop aspirin or blood thinners without your doctor's advice
  • Finish the full H. pylori treatment course and go for any repeat test
  • Stop smoking and chewing tobacco, and avoid alcohol
  • Eat regular meals and limit foods that clearly make your symptoms worse
  • Watch for black stools, vomiting blood or sudden severe pain, and seek emergency help if they occur

Prevention

  • Use painkillers only when needed and ask a doctor before taking NSAIDs regularly
  • If you need long-term NSAIDs or aspirin, ask your doctor about stomach protection
  • Get tested and treated for H. pylori if you have ulcer symptoms or a past ulcer
  • Wash hands, eat properly cooked food and drink safe water to lower H. pylori risk
  • Avoid smoking and limit alcohol

Can I consult online?

An online consultation can help assess ulcer-type symptoms, review your painkillers and other medicines, arrange H. pylori tests, explain endoscopy reports and prescribe treatment, and follow up afterwards. A doctor will advise when an in-person examination or endoscopy is needed, especially if you are older or have warning signs. A bleeding or perforated ulcer cannot be managed online: if you vomit blood, pass black stools, feel faint or have sudden severe belly pain, call 112 or go to the nearest emergency department.

Verified professionals

Doctors who can help

These professionals practise specialties that commonly treat peptic ulcer (stomach ulcer). All are verified and available online.

See all 25 in the app →

FAQ

Frequently asked questions

Can spicy food cause a stomach ulcer?
Spicy food and everyday stress are not thought to cause peptic ulcers. The main causes are H. pylori infection and NSAID painkillers. However, spicy, oily or fried food, coffee and alcohol can worsen symptoms in some people while an ulcer is healing. It makes sense to limit foods that clearly bother you.
Which painkillers can cause ulcers?
NSAID painkillers, including ibuprofen, diclofenac, naproxen and aspirin, can cause ulcers, especially when taken often, at higher amounts, by older people, or together with steroids or blood thinners. Paracetamol is generally less harmful to the stomach. Always ask a doctor or pharmacist before taking painkillers regularly, and do not stop prescribed aspirin on your own.
Are black stools a sign of an ulcer?
Black, sticky, tarry stools can be a sign of bleeding from a stomach or duodenal ulcer and need urgent medical attention, especially with dizziness, weakness or paleness. Iron tablets and some other medicines can also make stools dark. If you are not sure why your stools are black, seek medical help quickly.
Will my ulcer come back after treatment?
Ulcers are less likely to return once H. pylori is cleared and NSAID painkillers are avoided or used with stomach protection. They can come back if the infection is not fully treated, if painkiller use continues, or with smoking. Finish your treatment, go for any repeat test, and talk to your doctor if symptoms return.

Further reading

From our professionals

Related articles

Ayurvedic approach and treatment in Ulcerative colitis

I’m Dr. Sweta — a dentist and certified tobacco cessation expert.

Browse all 729 articles →

This page is for information only and is not medical advice. Consultations on Caremeez are provided by independent, verified professionals. In an emergency, contact the nearest hospital or local emergency services.