Guide for patients & caregivers

Stomach Ulcer: What Are the Symptoms, Causes and Treatment?

Stomach ulcer symptoms, causes such as H. pylori and NSAIDs, emergency signs of bleeding or perforation, the usual tests, a treatment overview and what to ask.

By SameCase EditorialUpdated 6 min read

Prepared with AI assistance and checked against the cited sources. No independent clinician review has been completed. How we prepare articles

What is a stomach ulcer?

A stomach ulcer is an open sore in the lining of the stomach. Peptic ulcer is the umbrella term for ulcers in the stomach and those in the first part of the small intestine (duodenal ulcers). The main symptom is pain in the upper tummy, often burning. Most ulcers are caused by H. pylori bacteria or by anti-inflammatory painkillers, and most people recover with treatment.

Ulcers can be serious if they bleed or make a hole in the stomach wall. This guide starts with those warning signs. It then covers symptoms, causes, tests and an outline of treatment. It cannot tell you whether you have an ulcer.

Which stomach ulcer symptoms need emergency care?

The NHS advises calling 999 or going to A&E if you have any of the signs below. Outside the UK, call your local emergency number. Do not drive yourself. Ask someone to take you or call an ambulance, and bring any medicines you take.

  • vomiting bright red blood, or vomit that looks like ground coffee
  • blood in your poo, or poo that is black, sticky and very smelly
  • severe tummy pain, or a tummy that is painful to touch
  • chest pain that started suddenly
  • feeling dizzy or fainting, a fast pulse or other signs of shock (listed by NIDDK)

What does a stomach ulcer feel like, and when should you see a GP?

The NHS describes ulcer pain as usually in the upper part of the tummy. It may feel like burning and is often worse at night. Other symptoms include indigestion, heartburn, bloating and feeling or being sick. NIDDK adds feeling full too soon during a meal. It also notes that pain may ease briefly after eating for some people but get worse with food for others.

Many people with peptic ulcers have no symptoms until a complication happens. Tummy pain also has many other causes. See a GP if indigestion does not go away with treatment or if tummy pain keeps coming back.

The NHS advises asking for an urgent GP appointment, or contacting NHS 111 or your local urgent care service, if you have ulcer symptoms and your tummy pain is getting worse or will not go away. The same applies if you have lost your appetite, feel full after very little food, are losing weight without trying, feel a lump in your tummy, find swallowing painful or difficult, keep vomiting or feel tired all the time.

What causes stomach ulcers?

The NHS and NIDDK name two main causes. The first is Helicobacter pylori (H. pylori), a common bacterial infection of the stomach. The second is regular use of non-steroidal anti-inflammatory drugs (NSAIDs), such as aspirin, ibuprofen and naproxen.

According to NIDDK, ulcers from NSAIDs are more likely with higher doses, with more than one NSAID, alongside certain other medicines, or when someone also has H. pylori. NIDDK lists corticosteroids, some medicines for low bone mass and some antidepressants as medicines that raise the risk, especially when taken with NSAIDs. Smoking and older age also increase risk, says the NHS.

Less common causes include other infections, Crohn's disease, stomach cancer, serious illness that needs critical care, and Zollinger-Ellison syndrome, a rare condition that makes the stomach produce too much acid. Sometimes no cause is found.

How is a stomach ulcer diagnosed?

A GP will ask about your symptoms and medicines, especially NSAIDs, and may examine your tummy. Tests to look for H. pylori include a breath test, a stool (poo) test or a blood test. Some medicines can affect breath and stool test results, so the clinic may give you instructions to follow beforehand. Our guide to H. pylori breath test preparation explains this.

You may be referred for a gastroscopy (upper endoscopy). A thin, flexible camera is passed through your mouth to look at the stomach and duodenum. Small tissue samples (biopsies) can be taken during the test. If an endoscopy report mentions gastritis rather than an ulcer, see our guide to mild gastritis on endoscopy.

How are stomach ulcers treated?

Treatment depends on the cause. The NHS says you may be offered antibiotics for H. pylori and medicines that reduce stomach acid, such as proton pump inhibitors (PPIs). NIDDK says H. pylori is treated with a combination of medicines. Your doctor may avoid antibiotics you have taken before because of possible resistance. Treatment usually lasts from 1 week to 2 months, according to the NHS. A follow-up test may be advised afterwards. NIDDK says this is often at least 4 weeks after the antibiotics finish.

NIDDK advises taking every dose exactly as prescribed. Stopping early can let some bacteria survive and become resistant. If an NSAID caused the ulcer, your doctor may suggest a different painkiller, a change in how you take the NSAID, or a PPI alongside it. Do not stop or change any prescribed medicine, including aspirin taken for another condition, without talking to your prescriber. Cleveland Clinic advises getting checked for infection even if you have already stopped NSAIDs.

Bleeding or perforated ulcers are usually treated in hospital, often during an endoscopy. Surgery is sometimes needed. A pharmacist or GP can explain the specific medicines you are offered.

What can help symptoms and lower the chance of an ulcer coming back?

After you have seen a GP, the NHS suggests eating smaller meals, having your evening meal 3 to 4 hours before bed, keeping to a healthy weight, managing stress, not smoking and not drinking too much alcohol. Avoid foods and drinks that trigger your symptoms. Do not take anti-inflammatory painkillers without speaking to a doctor first. If symptoms come back after treatment, speak to a GP.

Questions to ask your clinician

You may find it useful to take these questions to your appointment:

  • What do you think caused my ulcer, and has H. pylori been tested for?
  • Do any of my current medicines raise my risk, and what should I take for pain instead?
  • How long will treatment last, and will I need a test afterwards?
  • Do I need an endoscopy, or a repeat one to check healing?
  • Which symptoms mean I should seek emergency help?

How can comparing similar cases on SameCase help?

On SameCase, patients and verified doctors share de-identified cases. Reading how others' tests and follow-up were arranged can help you prepare questions for your own doctor. We cannot diagnose an ulcer or tell you which treatment is right for you. Any warning signs above need urgent local care, not an online reply.

Sources and further reading

For patients & caregivers

Share your case and learn from others

Learn from doctors and other people's cases to find a way forward with your health problem. New cases are public immediately. Don't add names or identifying details.

Keep learning