Stomach and upper digestive tract
Gastric (stomach) ulcer: symptoms, causes and treatment
A gastric (stomach) ulcer is an open sore in the lining of the stomach. The main symptom is burning or gnawing upper tummy pain, often with indigestion. The two main causes are Helicobacter pylori infection and anti-inflammatory painkillers such as ibuprofen. Treatment is antibiotics for H. pylori and acid-reducing medicines, and most ulcers heal in a month or two.
Last checked: 2026-10-18
Key facts
At a glance.
-
Main symptom
The NHS says the main symptom is tummy pain that is usually in the upper tummy, may feel like burning and is often worse at night. Other symptoms include indigestion, heartburn, bloating and feeling or being sick.
-
Main causes
The NHS says the main causes are infection with Helicobacter pylori (H. pylori) bacteria and regular use of anti-inflammatory painkillers (NSAIDs) such as ibuprofen. They are also more common in people who smoke.
-
Not painful always
NHS inform says not all stomach ulcers are painful and some are only noticed when a complication such as bleeding develops.
-
Healing time
NHS inform says that with treatment most ulcers heal in a month or two. The NHS says treatment usually lasts from 1 week to 2 months.
-
Emergency signs
The NHS says to call 999 or go to A&E if you vomit bright red blood or vomit that looks like ground coffee, have black, sticky poo or blood in your poo, have severe tummy pain, or sudden chest pain.
-
Stress and food
NHS inform says there is little evidence that spicy foods, stress or alcohol cause stomach ulcers, although they can make symptoms worse.
What are the symptoms of a gastric ulcer?
The NHS says the main symptom is tummy (abdominal) pain, usually in the upper part of the tummy, which may feel like burning and is often worse at night. NHS inform describes a burning or gnawing pain that can travel from the middle of the tummy up to the neck, down to the belly button or through to the back, can last from a few minutes to a few hours, often starts within a few hours of eating and can wake you at night. Taking antacids may relieve it temporarily, but it keeps coming back if the ulcer is not treated.
Other symptoms include indigestion, heartburn, bloating and feeling or being sick. NHS inform lists less common symptoms as loss of appetite and weight loss, and says some people burp or become bloated after eating fatty foods. Not all stomach ulcers are painful.
When to see a GP and when to get urgent help
The NHS says to see a GP if you have indigestion that does not go away with treatment or your tummy pain keeps coming back. It says to ask for an urgent GP appointment or get help from 111 if you have symptoms of a stomach ulcer and your pain is getting worse or does not go away, you have lost your appetite, feel full after a very small amount of food, have lost weight without trying to, feel a lump in your tummy, find it painful or difficult to swallow, keep being sick or feel tired all the time. Some of these can also be signs of stomach cancer, so they need checking.
The NHS says to call 999 or go to A&E if you are 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 is painful to touch your tummy, or you have chest pain that started suddenly. Do not drive yourself. NHS inform describes a sudden, sharp pain in your tummy that gets steadily worse as a possible sign of a serious complication.
What is a gastric ulcer?
NHS inform describes stomach ulcers (gastric ulcers) as open sores that develop on the lining of the stomach. Ulcers can also occur in part of the intestine just beyond the stomach, called duodenal ulcers. Stomach and duodenal ulcers are sometimes called peptic ulcers.
Stomach ulcers occur when the layer protecting the stomach lining from stomach acid breaks down, allowing the lining to become damaged.
What causes a stomach ulcer?
The NHS says the main causes are infection with H. pylori bacteria and regular use of NSAIDs such as ibuprofen. The risk also increases with age and with smoking. NHS inform adds that NSAIDs include aspirin, naproxen and diclofenac, and that the risk is highest if they are taken for a long time or at high doses. Paracetamol is a safer painkiller to use.
Guts UK explains that H. pylori lives in the sticky mucus lining the stomach. About 3 in 20 people with H. pylori have ulcers, because of the effect it has on stomach acid production and damage to the barrier function of the lining. H. pylori does not cause any problems for 8 to 9 out of 10 people. NHS inform says smoking can increase your risk of stomach ulcers and make treatment less effective.
How is a stomach ulcer diagnosed?
The NHS says the GP may arrange a breath test to check for H. pylori (you take a tablet or special drink and breathe into a tube), a poo sample test or a blood test, and may weigh you and feel your tummy. You may also be referred for a gastroscopy, a thin flexible tube with a camera passed into the stomach.
NHS inform says a gastroscopy is done as an outpatient, usually confirms or rules out an ulcer, and may include a small tissue sample taken to test for H. pylori. You may have a repeat gastroscopy after 4 to 6 weeks to check that the ulcer has healed. Guts UK notes that H. pylori tests may be inaccurate if you have taken antibiotics in the last month or proton pump inhibitors in the last two weeks.
How is a stomach ulcer treated?
The NHS says treatment depends on the cause and you may be offered antibiotics to treat H. pylori infection and medicines to reduce stomach acid, such as proton pump inhibitors (PPIs). Treatment usually lasts from 1 week to 2 months, and you may need tests afterwards to make sure it has worked. If symptoms come back, speak to a GP.
NHS inform adds that for H. pylori you are usually prescribed 2 or 3 antibiotics (amoxicillin, clarithromycin or metronidazole) twice a day for a week, together with a PPI, and re-tested at least 4 weeks after finishing. For an NSAID-related ulcer you are given a PPI course, your NSAID use is reviewed and an alternative such as paracetamol may be recommended. PPIs are usually prescribed for 4 to 8 weeks. Antacids and alginates can give short-term relief.
| Cause | Treatment |
|---|---|
| H. pylori infection | A course of 2 or 3 antibiotics plus a proton pump inhibitor; retest at least 4 weeks later |
| NSAIDs (for example ibuprofen) | A PPI course; NSAID use reviewed and an alternative such as paracetamol may be advised |
| Low-dose aspirin that must continue | GP advises; long-term PPI or H2-receptor antagonist may be prescribed |
What helps at home: diet and lifestyle
The NHS suggests eating smaller meals, eating your evening meal 3 to 4 hours before bed, keeping to a healthy weight and managing stress. It says to avoid anti-inflammatory painkillers such as ibuprofen without speaking to a doctor first, avoid foods or drinks that trigger your symptoms (which can include fatty or spicy foods, coffee and chocolate), not smoke and not drink too much alcohol.
NHS inform says there are no special lifestyle measures you need during treatment, but avoiding stress, alcohol, spicy foods and smoking may reduce symptoms while the ulcer heals.
Complications of a stomach ulcer
The NHS says an untreated stomach ulcer can lead to serious problems that may be life-threatening: bleeding from the stomach or intestine, iron deficiency anaemia caused by bleeding, a hole in the stomach that can cause peritonitis (a serious infection of the lining of the tummy) and an increased risk of stomach cancer from an untreated H. pylori infection. NHS inform lists bleeding, perforation and gastric outlet obstruction as the main complications and says internal bleeding is the most common.
Slow bleeding can cause anaemia with fatigue, breathlessness, pale skin and palpitations. Severe bleeding is treated with endoscopy to stop it, sometimes surgery, and blood transfusion.
Stomach ulcers and pregnancy
None of the UK sources read for this page give specific guidance on stomach ulcers in pregnancy. Upper tummy pain, vomiting blood or black poo in pregnancy should be assessed urgently, and any medicine, including acid-reducing tablets, should be agreed with a GP, midwife or pharmacist rather than started on your own.
NHS and private pathways
On the NHS, a GP assesses symptoms, tests for H. pylori and prescribes treatment, referring for gastroscopy when needed. Private gastroenterology clinics can arrange gastroscopy and H. pylori testing sooner, but treatment and retesting follow the same principles. Ask for results to be shared with your GP.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
What are the symptoms of a stomach ulcer?
The NHS says burning upper tummy pain, often worse at night, plus indigestion, heartburn, bloating and feeling or being sick. NHS inform notes that not all ulcers are painful.
-
What causes a stomach ulcer?
The NHS says the main causes are H. pylori infection and regular use of NSAIDs such as ibuprofen. Smoking and older age also raise the risk. NHS inform says there is little evidence that stress or spicy food cause ulcers.
-
How long does a stomach ulcer take to heal?
NHS inform says that with treatment most ulcers heal in a month or two. The NHS says treatment usually lasts from 1 week to 2 months depending on the cause.
-
How is a stomach ulcer treated?
Antibiotics to treat H. pylori and medicines that reduce stomach acid, such as proton pump inhibitors, according to the NHS. If NSAIDs are the cause, they are reviewed and an alternative painkiller may be advised.
-
What should I avoid with a stomach ulcer?
The NHS advises avoiding anti-inflammatory painkillers such as ibuprofen without medical advice, smoking, drinking too much alcohol and foods that trigger your symptoms, such as fatty or spicy food, coffee and chocolate.
-
Can stress cause a stomach ulcer?
NHS inform says there is little evidence that stress, spicy foods or alcohol cause stomach ulcers, although they can make symptoms worse. The NHS notes that stress and anxiety can make symptoms worse.
-
When is a stomach ulcer an emergency?
The NHS says call 999 or go to A&E if you vomit bright red blood or coffee-ground material, have black sticky poo, severe tummy pain, or sudden chest pain. Do not drive yourself.
-
Can a stomach ulcer be cancer?
Some symptoms overlap, such as weight loss or difficulty swallowing, which is why the NHS says to get them checked urgently. The NHS also says an untreated H. pylori infection increases the risk of stomach cancer.
-
How is a stomach 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 repeat gastroscopy after 4 to 6 weeks may check healing.
-
Can a stomach ulcer come back?
Yes. NHS inform says ulcers can come back after treatment but this is less likely if the underlying cause is addressed. The NHS says to speak to a GP if symptoms return.
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-18, next review 2027-10-18.
-
NHS: Stomach ulcer, https://www.nhs.uk/conditions/stomach-ulcer/ , retrieved October 2026
-
NHS inform: Stomach ulcer (gastric ulcer), https://www.nhsinform.scot/illnesses-and-conditions/stomach-liver-and-gastrointestinal-tract/stomach-ulcer/ , retrieved October 2026
-
Guts UK: Helicobacter pylori, https://gutscharity.org.uk/advice-and-information/conditions/helicobacter-pylori/ , retrieved October 2026
Related guides
Keep reading.
-
Peptic ulcer
Stomach and duodenal ulcers together.
Read guide -
Helicobacter pylori
The bacterium behind many ulcers.
Read guide -
Functional dyspepsia
Indigestion with no ulcer found.
Read guide -
Gastritis
Inflammation of the stomach lining.
Read guide -
Gastric cancer
A cause of similar symptoms that needs ruling out.
Read guide -
Gastroscopy
The camera test used to see an ulcer.
Read guide -
H. pylori breath test
A simple test for the bacterium.
Read guide -
Indigestion
Common upper tummy discomfort.
Read guide