Stomach ulcers are open sores that develop when the lining of the stomach has become damaged. Stomach ulcers are also called gastric ulcers.
How common are stomach ulcers?
It's not known exactly how common stomach ulcers are. They have become much less common since the 1980s because of much more effective treatments. So people with stomach ulcers now usually get better much more quickly.
The term 'peptic ulcer' is used to describe ulcers that are caused by too much acid in the stomach. This includes stomach ulcers and also ulcers in the first part of the gut (small intestine) known as the duodenum. Stomach ulcers are less common than duodenal ulcers.
Stomach ulcer symptoms
The main symptom caused by a stomach ulcer is having a pain in the upper tummy (abdomen). Other symptoms may include:
- Bloating. This means your tummy swells because your stomach is full of gas or air.
- Retching. Also known as 'heaving'. This means sounding and looking as though you're about to be sick (vomit) but not actually vomiting.
- Feeling sick (nausea).
- Feeling very 'full' after a meal.
What are the symptoms of any complications?
Stomach ulcers can cause various complications but these are much less common now because of more effective treatments. However, complications can be very serious and include:
Bleeding from the ulcer
- This can range from a 'trickle' to a life-threatening bleed.
- If there is sudden heavy bleeding then this will cause you to vomit blood (this is called a haematemesis) and make you feel very faint.
- Less sudden bleeding may cause you to vomit and the vomit looks coffee-coloured because the stomach acid has partly broken down the blood.
- A more gradual trickle of blood will pass through your gut (bowel) and cause your stools (faeces) to look very dark in colour or even black (this is called melaena).
This is the term used to describe the ulcer having gone all the way through (perforated) the wall of the stomach. Food and acid in the stomach then leak out of the stomach. This usually causes severe pain and makes you very unwell. Stomach perforation is a medical emergency and needs hospital treatment as soon as possible.
This is now rare. An ulcer at the end of the stomach can cause the outlet of the stomach (the part of the stomach that goes into the duodenum) to narrow and cause an obstruction. This can cause frequent severe vomiting.
Stomach ulcer treatment
Lifestyle measures can improve symptoms, such as:
- Lose weight if you are overweight.
- Avoid any trigger foods, such as coffee, chocolate, tomatoes, fatty foods or spicy foods.
- Eat smaller meals and eat your evening meal 3-4 hours before going to bed.
- Stop smoking.
- Reduce alcohol consumption to recommended limits.
A 4- to 8-week course of a medicine that greatly reduces the amount of acid that your stomach makes is usually advised. See the separate leaflet called Indigestion Medication for more information.
If your ulcer was caused by Helicobacter pylori (H. pylori)
Most stomach ulcers are caused by infection with H. pylori. Therefore, a main part of the treatment is to clear this infection. If this infection is not cleared, the ulcer is likely to return once you stop taking acid-suppressing medication. For more information, see the separate leaflet called Helicobacter Pylori.
If your ulcer was caused by an anti-inflammatory medicine
If possible, you should stop taking the anti-inflammatory medicine. This allows the ulcer to heal. You will also normally be prescribed an acid-suppressing medicine for several weeks. This stops the stomach from making acid and allows the ulcer to heal. However, in many cases, the anti-inflammatory medicine is needed to ease symptoms of arthritis or other painful conditions, or aspirin is needed to protect against blood clots. In these situations, one option is to take an acid-suppressing medicine each day indefinitely. This reduces the amount of acid made by the stomach and greatly reduces the chance of an ulcer forming again.
What about surgery?
In the past, surgery was commonly needed to treat a stomach ulcer. This was before it was discovered that H. pylori infection was the cause of most stomach ulcers, and before modern acid-suppressing medicines became available. Surgery is now usually only needed if a complication of a stomach ulcer develops, such as severe bleeding or a hole (perforation).
What happens after treatment?
A repeat gastroscopy (endoscopy) is usually advised a few weeks after treatment has finished. This is mainly to check that the ulcer has healed. It is also to be doubly certain that the 'ulcer' was not due to stomach cancer. If your ulcer was caused by H. pylori then a test is advised to check that the H. pylori infection has gone. This is done at least four weeks after the course of combination therapy has finished.
What causes stomach ulcers?
Your stomach normally produces acid to help with the digestion of food and to kill germs (bacteria). This acid is corrosive, so some cells on the inside lining of the stomach and the first part of the gut (small intestine) known as the duodenum produce a natural mucous barrier. This protects the lining of the stomach and duodenum.
There is normally a balance between the amount of acid that you make and the mucous defence barrier. An ulcer may develop if there is an alteration in this balance, allowing the acid to damage the lining of the stomach or duodenum. Causes of this include the following:
Infection with H. pylori
Infection with H. pylori is the cause in about 8 in 10 cases of stomach ulcer. See the separate leaflet called Helicobacter Pylori for more information.
Anti-inflammatory medicines - including aspirin
Other causes and factors
Other causes are rare. For example, some viral infections can cause a stomach ulcer. Crohn's disease may cause a stomach ulcer in addition to other problems of the gut.
Stomach cancer may at first look similar to an ulcer. Stomach cancer is uncommon but may need to be 'ruled out' if you are found to have a stomach ulcer.
What tests are there for a stomach ulcer?
If your doctor thinks you may have a stomach ulcer, the initial tests will include some blood tests. These tests will help to check whether you have become anaemic because of any bleeding from the ulcer. The blood test will also check to see that your liver and pancreas are working properly.
The main tests that are then used to diagnose a stomach ulcer are as follows:
- A test to detect the H. pylori germ (bacterium) is usually done if you have a stomach ulcer. The H. pylori bacterium can be detected in a sample of stool (faeces), or in a 'breath test', or from a blood test, or from a biopsy sample taken during a gastroscopy. See the separate leaflet called Helicobacter Pylori for more details.
- Gastroscopy (endoscopy) is the test that can confirm a stomach ulcer. Gastroscopy is usually done as an outpatient 'day case'. You may be given a sedative to help you to relax. In this test, a doctor looks inside your stomach by passing a thin, flexible telescope down your gullet (oesophagus). The doctor will then be able to see any inflammation or ulcers in your stomach.
- Small samples (biopsies) are usually taken of the tissue in and around the ulcer during gastroscopy. These are sent to the laboratory to be looked at under the microscope. This is important because some ulcers are caused by stomach cancer. However, most stomach ulcers are not caused by cancer.
Further reading and references
Gastro-oesophageal reflux disease and dyspepsia in adults: investigation and management; NICE Clinical Guideline (Sept 2014 - last updated October 2019)
Acute upper gastrointestinal bleeding in over 16s: management; NICE Clinical Guideline (August 2016)
Drini M; Peptic ulcer disease and non-steroidal anti-inflammatory drugs. Aust Prescr. 2017 Jun40(3):91-93. doi: 10.18773/austprescr.2017.037. Epub 2017 Jun 1.
Dyspepsia - proven peptic ulcer; NICE CKS, October 2019 (UK access only)