Please select the country or location you would like to see content from.
country picker icon
condition icon


Stomach ulcer

Written by Healthwords's team of doctors and pharmacists based in UK | Updated: 26.01.2023 | 4 min read

A stomach ulcer is when a part of the lining of the inside of your stomach becomes damaged causing something known as a gastric ulcer (also known as peptic ulcer). It is relatively common and is usually caused by either a bacterial infection called helicobacter pylori (H. pylori) or by a type of anti-inflammatory medication known as non-steroidal anti-inflammatory drugs (NSAID's) such as ibuprofen, naproxen or diclofenac.

A stomach ulcer can cause people to experience pain in the upper central part of their abdomen, often described as a gnawing-type pain, along with other symptoms such as feeling nauseous and the sensation of heartburn. Most stomach ulcers are mild and heal well with treatment. If the stomach ulcer is severe and left untreated it can become serious, and even lead to life-threatening complications that require urgent medical attention. Symptoms of a severe ulcer include vomiting blood, passing black stools (known as melena), or excruciating abdominal pain.

What about the duodenum?

Gastric ulcers can also occur in the first part of the bowel that begins after the stomach, known as the duodenum. These are called duodenal ulcers and they are actually more common than stomach ulcers. In a very small number of cases a gastric ulcer can progress over time to become stomach cancer, this is not common but is usually linked to the H. pylori infection mentioned earlier.

Stomach ulcers are not contagious but the H. pylori infection that can cause them can be. It is passed on through saliva and is very common with over half of the population being infected with it. We should be clear though, having H. pylori doesn't mean you are guaranteed to get any symptoms at all never mind an ulcer. Large proportions of patients are well without any symptoms and therefore require no treatment.

Caidr pharmacists' top tips

Stomach ulcers need treatment via medication from your doctor. There are however lifestyle changes you can do alongside to help with your symptoms. Avoiding known triggers such as smoking, excessive alcohol, spicy foods, and caffeine will only help.

Medications known as proton pump inhibitors (PPI’s) are the treatment of choice for stomach ulcers. They help reduce the amount of acid produced by our stomach. Our stomachs produce acid to help break down the food we eat. An imbalance and too much of a good thing can damage the lining of the stomach. By lowering the amount of acid in the stomach the medication helps provide the best environment for the stomach lining and ulcer heal.

If you are found to have H. pylori infection, you will also be given a course of antibiotics, alongside the PPI in order to get rid of the H.pylori bacteria.

When should I see my doctor?

You should see your doctor if you have any of the symptoms of a stomach ulcer or if you are still having symptoms after your course of treatment has finished. You should book an urgent visit with your doctor if you are having any symptoms of unexplained weight loss, night sweats, or swelling of your stomach.

Any signs of a severe ulcer such as vomiting blood, severe stomach pain, or black stools (please note that if you are taking iron supplementation, black stools are a normal side effect of the medication) then urgent medical attention is needed. Depending on the severity this can be via an urgent on-the-day visit with your doctor, by calling NHS 111 or by calling 999 in an emergency.

What will my doctor do?

The doctor will ask you about your symptoms, your medical history, what medications you are taking, and any relevant family medical history. If you are comfortable they will then have a feel of your abdomen and may do further general examinations such as looking at your hands and eyes.

If an ulcer is suspected you will likely have blood tests taken and have a test for H. pylori. This is most commonly via a stool test, although there are other versions such as a blood test or breath test (you breathe into tubes and that is then tested). You may be referred to have a gastroscopy which is where a camera is used to look at your stomach. To rule out stomach cancer, a biopsy of the ulcer is usually taken whilst having a gastroscopy.

Related topics

Read about: Gastritis

Read about: H Pylori

Read about: Acid reflux (heartburn) relief

Read about: Dyspepsia

Read about: Indigestion

Was this helpful?

Was this helpful?

Newsletter icon
Subscribe to our Newsletter
to get monthly notified about our latest health and wellness topics.
By clicking Subscribe, I agree to the Healthwords Terms & Conditions and Privacy Policy and understand that I may opt out of the newsletter subscription at any time.