Need emergency help? Call 999 in United Kingdom.

Open local help

Stomach ulcer

Find out about stomach ulcers, including symptoms, causes, treatment and when to get medical help.

About this information

This NHS content is written for people in England. Services, entitlements and contact routes may differ in other countries.

Stomach ulcer

Symptoms

Stomach ulcer

Causes

Stomach ulcer

Medical treatments

Stomach ulcer

Self-care

Stomach ulcer

Complications

The main symptom of a stomach ulcer is tummy pain. The pain is usually in the upper part of your tummy and may feel like burning.

Stomach ulcers are usually caused by helicobacter pylori (H pylori) bacteria, or regular use of painkillers like ibuprofen.

Stomach ulcers are usually treated with medicines to reduce your stomach acid, and sometimes antibiotics to treat H pylori infection.

Things you can do to help with stomach ulcer symptoms include stopping smoking and avoiding some foods and medicines.

Stomach ulcers can be serious. They can cause problems like bleeding in your stomach or intestine, serious infections and anaemia.

Symptoms of a stomach ulcer

The main symptom of a stomach ulcer is tummy (abdominal) pain.

The pain:

  • is usually in the upper part of your tummy
  • may feel like burning
  • is often worse at night

Other symptoms of a stomach ulcer include indigestion, heartburn (a burning sensation in your chest), bloating and feeling or being sick.

See a GP if:

  • you have indigestion that does not go away with treatment
  • your tummy pain keeps coming back

Ask for an urgent GP appointment or get help from NHS 111 if:

You have symptoms of a stomach ulcer and:

  • your tummy pain is getting worse or does not go away
  • you've lost your appetite
  • you feel full after a very small amount of food
  • you've lost weight without trying to
  • it feels like you have a lump in your tummy
  • it's painful or difficult to swallow
  • you keep being sick (vomiting)
  • you feel tired all the time

You can call 111 or get help from 111 online .

Call 999 or go to A&E if:

  • you're vomiting bright red blood or your vomit looks like ground coffee
  • your poo has blood in it, or is black, sticky and very smelly
  • you have severe tummy pain
  • it's painful to touch your tummy
  • you have chest pain that started suddenly
Find your nearest A&E

A&E safety messaging

Do not drive to A&E. Ask someone to drive you or call 999 and ask for an ambulance.

Bring any medicines you take with you.

Causes of a stomach ulcer

The main causes of stomach ulcers are:

  • infection with helicobacter pylori (H pylori) bacteria
  • regular use of anti-inflammatory painkillers (NSAIDs), such as ibuprofen

Stomach ulcers are also more common in people who smoke, and the risk of getting one increases as you get older.

What happens at your GP appointment

If a GP thinks you might have a stomach ulcer, they may arrange some tests to check what's causing your symptoms.

These tests may include:

  • a breath test to check for H pylori bacteria, where you take a tablet or a special drink and breathe into a tube
  • a test of a sample of your poo
  • a blood test

The GP may also ask to weigh you and feel your tummy.

You may also be referred for a gastroscopy (where a long, thin, flexible tube with a small camera inside is passed into your mouth and down into your stomach).

Treatment for a stomach ulcer

Treatment for a stomach ulcer depends on what's causing it.

You may be offered:

  • antibiotics to treat H pylori infection
  • medicines to reduce the amount of acid in your stomach, such as proton pump inhibitors

Treatment usually lasts from 1 week to 2 months, depending on what's causing your ulcer. You may need tests after treatment to make sure it's worked.

If your symptoms come back after treatment, speak to a GP. You may need to try a different medicine or keep taking medicine for longer.

A doctor may also recommend:

  • lifestyle changes, such as stopping smoking
  • stopping or changing medicines that may be making your symptoms worse
  • getting help with stress, anxiety and depression, as these things can make your symptoms worse

Things you can do to help with stomach ulcer symptoms

After you've seen a GP, there are things you can do to help ease your stomach ulcer symptoms and reduce the risk of a stomach ulcer coming back.

Do

  • eat smaller meals

  • eat your evening meal 3 to 4 hours before going to bed

  • try to keep to a healthy weight

  • take steps to manage stress

Don't

  • do not take anti-inflammatory painkillers (such as ibuprofen) without speaking to a doctor first

  • do not have food or drink that triggers your symptoms, which can include fatty or spicy foods, coffee and chocolate

  • do not smoke

  • do not drink too much alcohol

Complications of a stomach ulcer

It's important to get treatment for a stomach ulcer. If not treated, a stomach ulcer can lead to serious problems that may be life-threatening.

These include:

  • bleeding from your stomach or intestine
  • a lack of iron (iron deficiency anaemia) caused by bleeding
  • a hole in your stomach that can cause peritonitis, a serious infection of the inner lining of your tummy
  • increased risk of stomach cancer from an untreated H pylori infection

Content supplied by the NHS website

Content supplied by the NHS website, refreshed 19 August 2026. View the original NHS article ↗

Licensed under the Open Government Licence v3.0 ↗. MyPHU is independent and is not endorsed by the NHS.