Back to Conditions

What Causes a Stomach Ulcer and How Is It Treated?

Mens Health Guide Editorial 30 April 2026

For decades, stomach ulcers were blamed on stress, spicy food and a type-A personality. We now know that most are caused by one of two things: a common bacterial infection or regular use of anti-inflammatory painkillers. Both are very treatable, and most ulcers heal completely. Ulcers can bleed or perforate, though, so it is worth recognising the symptoms and taking them seriously.

What is a stomach ulcer?

An ulcer is an open sore in the lining of the stomach or the first part of the small intestine, called the duodenum. Together they are known as peptic ulcers. The lining is normally protected from stomach acid by a layer of mucus. When that protection is damaged, acid can erode the lining and cause an ulcer.

What causes them?

Infection with a bacterium called Helicobacter pylori, usually known as H. pylori, is one of the most common causes. Many people carry it without symptoms, often from childhood, but in some it weakens the stomach lining and leads to ulcers.

Non-steroidal anti-inflammatory drugs, known as NSAIDs, are the other main cause. These include ibuprofen, naproxen, diclofenac and aspirin, including low-dose aspirin taken for the heart. Taking them regularly, at high doses, with steroids or blood thinners, or when older, increases the risk.

Smoking and heavy drinking increase the risk of ulcers and slow healing. Stress and spicy food do not cause ulcers, though they may make symptoms feel worse.

What are the symptoms?

The most common symptom is a burning or gnawing pain in the upper abdomen, between the breastbone and the belly button. It may come and go, be worse when the stomach is empty, and ease temporarily after eating or taking antacids, though the pattern varies.

Other symptoms include indigestion, heartburn, bloating, feeling sick and feeling full quickly. Some ulcers, particularly those caused by NSAIDs, cause no pain until a complication develops.

What are the warning signs of complications?

Call 999 or go to A&E if you vomit blood or material that looks like coffee grounds, pass black tarry stools, feel faint or dizzy, or develop sudden severe abdominal pain that is getting worse.

These can indicate a bleeding ulcer or a perforation, where the ulcer has broken through the wall of the stomach or duodenum. Both are emergencies.

How is an ulcer diagnosed?

A GP may test for H. pylori using a breath test, a stool test or sometimes a blood test. You usually need to stop proton pump inhibitors for two weeks and antibiotics for four weeks beforehand, because they can cause false negative results.

If you are older, have warning signs such as weight loss or difficulty swallowing, or symptoms do not respond to treatment, you may be referred for an endoscopy. A thin camera is passed through the mouth to look at the stomach and duodenum, and small samples can be taken to test for H. pylori and rule out cancer.

How are ulcers treated?

Proton pump inhibitors, such as omeprazole and lansoprazole, reduce stomach acid and allow the ulcer to heal, usually over four to eight weeks.

If H. pylori is found, you are given eradication therapy, usually a combination of two antibiotics and a proton pump inhibitor taken together for one to two weeks. It is important to complete the full course. A repeat test may be done afterwards to confirm the infection has gone.

If NSAIDs caused the ulcer, stop them if possible and discuss alternatives with your GP. Paracetamol is usually safer for the stomach. If you need to continue an NSAID or aspirin, a proton pump inhibitor can help protect the stomach.

Can you prevent ulcers?

Use anti-inflammatory painkillers at the lowest dose for the shortest time, and take them with food. Stopping smoking and reducing alcohol help. If you have ongoing indigestion, see a GP rather than relying on antacids long term.

More on this subject, and related ones, sits in the conditions section.

This page is general information rather than medical advice.