Skip to main content

Stomach and digestive health

Peptic ulcer: symptoms, causes, treatment and when to get help

A peptic ulcer is an open sore in the lining of the stomach (gastric ulcer) or the first part of the small bowel (duodenal ulcer). The main symptom is burning upper tummy pain. Most are caused by Helicobacter pylori infection or anti-inflammatory painkillers, and most heal with acid-reducing medicine and treating the cause. Vomiting blood or black stools needs 999.

Last checked: 2026-10-11

Key facts

At a glance.

  • What it is

    NHS inform describes peptic ulcers as open sores on the lining of the stomach or in the part of the intestine just beyond it (the duodenum). Stomach ulcers are also called gastric ulcers.

  • Main symptom

    The NHS says the main symptom is tummy pain, usually in the upper tummy, which may feel like burning and is often worse at night. Indigestion, heartburn, bloating and feeling sick can come with it.

  • Two main causes

    The NHS names infection with Helicobacter pylori (H pylori) bacteria and regular use of anti-inflammatory painkillers such as ibuprofen. Smoking makes ulcers more likely and the risk rises with age.

  • Healing time

    The NHS says treatment usually lasts from 1 week to 2 months depending on the cause, and NHS inform says most ulcers heal in a month or two with treatment.

  • Not contagious as an ulcer

    The ulcer itself is not passed on. H pylori is a bacterial infection that is common, and NHS inform says people of all ages can be infected, often without symptoms.

  • Call 999 if

    The NHS says to call 999 or go to A&E if you vomit bright red blood or material like coffee grounds, pass black sticky smelly poo or poo with blood in it, or have severe tummy pain.

What are the symptoms of a peptic ulcer?

The NHS says the main symptom of a stomach ulcer is tummy (abdominal) pain. It is usually in the upper part of the tummy, may feel like burning and is often worse at night. Other symptoms include indigestion, heartburn (a burning feeling in the chest), bloating and feeling or being sick.

NHS inform adds more detail on the pain. It can spread from the middle of the tummy up towards the neck, down towards the belly button or through to the back. It can last from a few minutes to a few hours, often starts within a few hours of eating and can wake you in the night. Antacids may relieve it for a while, but it keeps coming back if the ulcer is not treated.

Not every ulcer hurts. NHS inform says some are painless and are only noticed when a complication such as bleeding develops. Less common symptoms include loss of appetite, weight loss, and burping or bloating after fatty food.

  • Burning or gnawing pain in the upper tummy, often worse at night

  • Indigestion and heartburn

  • Bloating, burping and feeling or being sick

  • Loss of appetite or weight loss in some people

  • No symptoms at all in some people, until bleeding occurs

How is a peptic ulcer treated?

The NHS says treatment depends on what is causing the ulcer. You may be offered antibiotics to treat H pylori infection and medicines that reduce the amount of acid in your stomach, such as proton pump inhibitors (PPIs). NHS inform says PPIs work by cutting stomach acid so the ulcer can heal naturally, and they are usually prescribed for 4 to 8 weeks.

If H pylori is found, NHS inform says you will usually be prescribed a course of 2 or 3 antibiotics, such as amoxicillin, clarithromycin or metronidazole, taken twice a day for a week alongside a PPI. Side effects are usually mild and can include feeling or being sick, diarrhoea and a metallic taste. You are re-tested at least 4 weeks after finishing the antibiotics, and if bacteria remain a further course with different antibiotics may be given.

If NSAIDs caused the ulcer, NHS inform says you will be given a PPI and your use of NSAIDs will be reviewed. You may be advised to use an alternative such as paracetamol. If you take low-dose aspirin to reduce clot risk, your GP will advise whether you need to keep taking it, and may prescribe long-term acid protection if you do.

NICE CKS (the clinical summaries used by GPs) adds that H2-receptor antagonists are an alternative acid-reducing medicine, and that people on long-term treatment should have an annual review and be encouraged to step down or stop treatment if possible.

Peptic ulcer causes and the usual treatment approach (NHS inform and NICE CKS)
CauseWhat is usually offeredFollow-up
H pylori infectionAcid-reducing medicine plus a course of 2 or 3 antibiotics for a weekRe-test at least 4 weeks after the antibiotics; different antibiotics if bacteria remain
NSAIDs or aspirinA PPI, with NSAID use reviewed and stopped if possibleAlternative painkiller such as paracetamol; long-term acid protection if aspirin must continue
Both togetherAntibiotics and a PPI, with NSAID use reviewedRe-testing for H pylori; ongoing review of painkillers

What causes a peptic ulcer?

NHS inform explains that ulcers form when the layer protecting the stomach lining from stomach acid breaks down. This is usually caused by H pylori bacteria or by NSAIDs such as ibuprofen, aspirin, naproxen or diclofenac, particularly when they are taken for a long time or at high doses.

The NHS adds that stomach ulcers are more common in people who smoke and that the risk increases with age. NHS inform says smoking can both increase the risk of an ulcer and make treatment less effective.

Stress and spicy food are often blamed. NHS inform says there is little evidence that spicy food, stress or alcohol cause ulcers, but they can make symptoms worse. NICE CKS says referral to a gastroenterologist should be considered if a non-peptic cause of ulcer disease is suspected.

Home remedies and self-care for a peptic ulcer

No home remedy replaces treating the cause, but the NHS lists things that may ease symptoms and reduce the chance of the ulcer returning once you have seen a GP.

  • Eat smaller meals and have your evening meal 3 to 4 hours before bed

  • Try to keep to a healthy weight and take steps to manage stress

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

  • Avoid foods and drinks that trigger your symptoms, which can include fatty or spicy foods, coffee and chocolate

  • Stop smoking and do not drink too much alcohol

  • Ask a pharmacist about antacids, which NHS inform says give short-term relief and are best taken when symptoms occur

Diet and peptic ulcer

The NHS does not recommend a special ulcer diet. Its advice is to avoid the particular foods and drinks that set off your symptoms, such as fatty or spicy foods, coffee and chocolate, and to eat smaller meals. NHS inform similarly says there are no special lifestyle measures you must follow during treatment, although avoiding stress, alcohol, spicy food and smoking may reduce symptoms while the ulcer heals.

Triggers differ from person to person, so a simple food and symptom diary can help you and your GP spot patterns.

How is a peptic ulcer diagnosed?

The NHS says a GP may arrange a breath test for H pylori (you take a tablet or special drink and breathe into a tube), a stool sample test or a blood test. They may weigh you and feel your tummy. You may also be referred for a gastroscopy, in which a thin flexible tube with a camera is passed through the mouth into the stomach.

NICE CKS says that ideally a urea breath test or stool antigen test is used, and that you should not have taken a PPI in the previous 2 weeks or antibiotics in the previous 4 weeks, because they can make the result unreliable. NHS inform notes that the blood test has largely been replaced by the stool antigen test.

At gastroscopy, NHS inform says a small tissue sample may be taken to test for H pylori, and that you may have a repeat gastroscopy after 4 to 6 weeks to check the ulcer has healed. NICE CKS says everyone with a proven gastric ulcer should have a repeat endoscopy and H pylori re-test 6 to 8 weeks after starting treatment.

Complications and when to get urgent help

Complications are rare but can be life-threatening, which is why NHS inform stresses treatment. The main ones are bleeding, perforation (a hole through the stomach wall) and gastric outlet obstruction, where food cannot pass out of the stomach. Slow bleeding can lead to iron deficiency anaemia, which the NHS lists among the complications.

The NHS says to call 999 or go to A&E if you are vomiting bright red blood or vomit that looks like ground coffee, your poo has blood in it or is black, sticky and very smelly, you have severe tummy pain, your tummy is painful to touch, or you have chest pain that started suddenly. Do not drive yourself; ask someone to drive you or call 999.

The NHS says to ask for an urgent GP appointment or call NHS 111 if tummy pain is getting worse or not going away, you have lost your appetite, feel full after very small amounts of food, have lost weight without trying, can feel a lump in your tummy, have painful or difficult swallowing, keep being sick or feel tired all the time. See a GP if indigestion does not go away with treatment or tummy pain keeps coming back.

NHS and private pathways

Most people start with a GP, who can arrange an H pylori test, review medicines such as NSAIDs and aspirin, and prescribe acid-reducing treatment. If tests or a gastroscopy are needed, or symptoms continue, the GP can refer you to a gastroenterologist. NICE CKS lists reasons to consider referral, including symptoms that persist or recur despite optimal management, unsuccessful second-line H pylori treatment, and a gastric ulcer that has not healed on repeat endoscopy.

Some people choose to see a gastroenterologist or arrange a gastroscopy privately. The tests and treatments are the same as those described above; the difference is mainly in how quickly appointments can be arranged and who pays. Check costs and what is included with the provider before you book anything.

Frequently asked

Questions people ask.

Quick, plain-English answers to the questions we hear most.

  • What are the symptoms of a peptic ulcer?

    The NHS says the main symptom is upper tummy pain that may feel like burning and is often worse at night. Indigestion, heartburn, bloating and feeling or being sick can also occur. NHS inform notes that some ulcers cause no pain at all.

  • How is a peptic ulcer treated?

    Treatment depends on the cause. The NHS says you may be offered antibiotics for H pylori and acid-reducing medicines such as proton pump inhibitors. If NSAIDs are the cause, NHS inform says they are reviewed and an alternative painkiller such as paracetamol may be advised.

  • What causes a peptic ulcer?

    The NHS names H pylori infection and regular use of anti-inflammatory painkillers such as ibuprofen as the main causes. Smoking makes ulcers more likely and the risk rises with age. NHS inform says there is little evidence that stress or spicy food cause them.

  • How long does a peptic ulcer take to heal?

    The NHS says treatment usually lasts from 1 week to 2 months depending on the cause, and NHS inform says most ulcers heal in a month or two with treatment. They can come back, though this is less likely if the underlying cause is dealt with.

  • Is a peptic ulcer contagious?

    An ulcer itself is not contagious. H pylori is a bacterial infection that is common, and NHS inform says people of all ages can be infected, often without noticing. Your GP can test for it if an ulcer is suspected.

  • What are the home remedies for a peptic ulcer?

    The NHS advises smaller meals, eating your evening meal 3 to 4 hours before bed, managing stress, avoiding trigger foods, not smoking and avoiding too much alcohol. Do not take ibuprofen-type painkillers without asking a doctor. These measures support treatment but do not replace it.

  • What foods should I avoid with a peptic ulcer?

    The NHS says to avoid food and drink that triggers your symptoms, which can include fatty or spicy foods, coffee and chocolate. There is no single ulcer diet, and triggers vary between people, so noting what sets off your own symptoms is the practical approach.

  • Can I take ibuprofen with a peptic ulcer?

    The NHS says not to take anti-inflammatory painkillers such as ibuprofen without speaking to a doctor first. NHS inform says paracetamol is a safer painkiller if you have had a stomach ulcer, and that your doctor will discuss whether you should keep using NSAIDs.

  • When should I see a doctor about a peptic ulcer?

    See a GP if indigestion does not go away with treatment or tummy pain keeps coming back. Ask for an urgent appointment or call NHS 111 if pain is worsening, you are losing weight, or swallowing is difficult. Call 999 for vomited blood, black stools or severe tummy pain.

  • How is a peptic ulcer diagnosed?

    The NHS says a GP may arrange a breath test, stool test or blood test for H pylori, and may refer you for a gastroscopy. NHS inform says a tissue sample may be taken, and a repeat gastroscopy after 4 to 6 weeks can check that the ulcer has healed.

Where this comes from

Sources and checking.

This guide is for information, not medical advice.

Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.

Published 2026-10-11, next review 2027-10-11.