A peptic ulcer is an open sore in the lining of the stomach or the duodenum, the first part of the small intestine. Normally a layer of mucus, helped by substances called prostaglandins, protects the lining from stomach acid and the digestive enzyme pepsin. An ulcer forms when this balance is upset and acid wears the lining away.
The main causes are infection with the bacterium Helicobacter pylori, which reduces mucus production and is found in more than half of people with ulcers, and long-term use of anti-inflammatory painkillers (NSAIDs) such as aspirin, ibuprofen and naproxen. Not everyone with H. pylori develops an ulcer. Rare causes include Zollinger-Ellison syndrome, in which a tumour releases large amounts of the hormone gastrin, some other medicines and Crohn's disease. Smoking and heavy drinking make ulcers worse and slow healing, and the risk rises with age.
The typical symptom is a dull, recurring pain in the upper middle abdomen, often a few hours after meals or at night, that eases with food or antacids. Bloating, nausea, vomiting and weight loss can also occur. Besides H. pylori and NSAIDs, risk factors include smoking, older age, a family history of ulcers and a stay in intensive care.
Ulcers are rarely fatal but can cause serious complications: a hole through the wall, bleeding, or a blockage that stops food leaving the stomach. Get medical help at once for sudden, sharp, persistent stomach pain, black or bloody stools, or vomit containing blood or looking like coffee grounds. Weight loss, low haemoglobin or a high platelet count with indigestion, or diarrhoea with indigestion, needs prompt specialist assessment.
Testing focuses on whether H. pylori is present. The carbon-13 urea breath test detects the bacterium's enzyme activity, and a positive result means current infection. A stool test for H. pylori antigen is an alternative. A blood test for H. pylori antibodies is least useful, because a positive result only shows infection at some point in the past.
Endoscopy, in which a thin tube with a camera is passed through the mouth into the stomach and duodenum, is the most reliable way to diagnose an ulcer. Biopsies taken during it can be checked for H. pylori and for other causes of indigestion, including stomach cancer. A fasting gastrin blood test is used if Zollinger-Ellison syndrome is suspected.
If H. pylori is found, antibiotics are given to clear it, often together with a proton pump inhibitor (PPI) that reduces stomach acid. Getting rid of the bacteria greatly lowers the chance of the ulcer returning; before this was understood, acid-reducing treatment healed ulcers but they often came back once it stopped. Without H. pylori, a PPI is the first choice, with an H2 antagonist as the next option.
People whose ulcer is linked to H. pylori are usually reviewed six to eight weeks after starting treatment, with a repeat endoscopy and a fresh test for H. pylori to check how treatment has worked.