Stomach and Duodenal Ulcers: Treatment Guide 2026

A clear British guide to peptic ulcers: symptoms, H. pylori testing, PPIs and triple therapy, lifestyle changes, red-flag signs and how to get an e-prescription online.

Order an e-prescription - from 59 zł

A peptic ulcer is an open sore in the lining of the stomach (a gastric ulcer) or the first part of the small intestine (a duodenal ulcer). These sores form when the protective mucous layer breaks down and stomach acid damages the tissue beneath. For decades ulcers were blamed on stress and spicy food, but we now know the two dominant causes are infection with the bacterium Helicobacter pylori and the regular use of non-steroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen, naproxen and aspirin. The good news is that, properly treated, most peptic ulcers heal completely within a few weeks.

This guide explains how ulcers present, how they are diagnosed, the treatments doctors use, and the warning signs that mean you should seek urgent care.

Need a prescription? Start an online consultation - e-prescription in as little as 15 minutes. For residents of Poland.

What causes a peptic ulcer

The lining of your stomach and duodenum is normally shielded from highly acidic gastric juice by a layer of mucus and bicarbonate. An ulcer develops when something tips the balance in favour of acid and against this defence.

The most common cause is H. pylori, a spiral-shaped bacterium that colonises the stomach lining, provokes inflammation (gastritis) and weakens the mucous barrier. Many people carry it for years without symptoms, but in a proportion it leads to ulcers.

The second major cause is long-term or frequent use of NSAIDs and aspirin, which reduce the production of protective prostaglandins. Other contributing factors include smoking, heavy alcohol use, and, rarely, conditions that cause the stomach to overproduce acid. Contrary to popular belief, stress and diet do not directly cause ulcers, though they can aggravate symptoms.

Symptoms of a stomach ulcer

The classic symptom is a burning or gnawing pain in the upper abdomen, somewhere between the breastbone and the navel. The pattern can offer clues: pain from a duodenal ulcer often eases when you eat and returns a few hours later or overnight, whereas pain from a gastric ulcer may be worse during or shortly after meals.

Other common features include:

  • Indigestion (dyspepsia) and a feeling of fullness or bloating
  • Heartburn and acid reflux
  • Nausea, and sometimes vomiting
  • Loss of appetite or unintentional weight loss
  • Belching and an uncomfortably "acidic" stomach

Some ulcers, particularly those caused by NSAIDs, cause little or no pain and are only discovered when a complication develops. That is why new, persistent or severe upper-abdominal discomfort always deserves medical assessment.

How ulcers are diagnosed

A doctor will start by taking a careful history of your symptoms, your use of painkillers and any family history of ulcers. The next step usually involves testing for H. pylori.

There are several non-invasive tests for the bacterium: a carbon urea breath test, a stool antigen test, or a blood test. The breath and stool tests are generally preferred because they detect a current, active infection. To get an accurate result you may be asked to stop acid-suppressing medicines (proton pump inhibitors) for a couple of weeks beforehand.

If you have alarm features, are over a certain age with new symptoms, or treatment has not worked, your doctor may arrange an endoscopy (gastroscopy). A thin, flexible camera is passed into the stomach so the lining can be examined directly and small tissue samples (biopsies) taken. This is important because, occasionally, a stomach ulcer can be a sign of something more serious that needs to be ruled out.

Treatment: PPIs and eradicating H. pylori

The cornerstone of ulcer treatment is reducing stomach acid so the sore can heal, while removing the underlying cause.

Proton pump inhibitors (PPIs) such as omeprazole, lansoprazole, pantoprazole and esomeprazole are the mainstay. They switch off acid production at the source and allow the ulcer to heal, typically over four to eight weeks. H2-receptor antagonists (for example famotidine) are an alternative for some people.

*If H. pylori is present*, the infection must be cleared to allow lasting healing and prevent recurrence. Standard treatment is a one- to two-week course of "triple therapy" combining a PPI with two antibiotics (commonly amoxicillin plus clarithromycin or metronidazole). Where antibiotic resistance is a concern, a bismuth-based "quadruple therapy" may be used instead. It is essential to finish the whole course exactly as prescribed, even once you feel better, to give the best chance of clearing the bacteria.

If NSAIDs are the cause, your doctor will usually advise stopping the offending drug where possible, switching to a gentler painkiller such as paracetamol, and treating with a PPI. If you genuinely need to continue an NSAID, a PPI may be co-prescribed to protect the stomach.

After treatment, a follow-up test is often done to confirm the infection has gone, particularly for gastric ulcers, where a repeat endoscopy may also be recommended to confirm healing.

Lifestyle measures that help

Medication does the heavy lifting, but sensible self-care supports recovery and reduces the chance of recurrence:

  • Stop smoking - tobacco slows healing and increases the risk of ulcers returning.
  • Cut down on alcohol, which irritates the stomach lining.
  • Avoid unnecessary NSAIDs and read painkiller labels carefully; ask a pharmacist if unsure.
  • Notice your trigger foods. Diet does not cause ulcers, but if certain foods, large meals or eating late worsen your symptoms, adjusting them can ease discomfort.
  • Manage stress with sleep, exercise and relaxation. While stress does not create ulcers, it can amplify the pain you feel.

Red-flag symptoms: when to seek urgent help

Most ulcers heal without incident, but complications such as bleeding or a perforation are medical emergencies. Seek immediate help if you experience:

  • Vomiting blood, or material that looks like dark coffee grounds
  • Black, tarry or sticky stools, or visible blood in the stool
  • Sudden, severe or sharp abdominal pain that does not ease
  • A hard, tender abdomen
  • Feeling faint, breathless, dizzy or unusually pale

In the UK this means calling 999 or going to A&E. Anyone with persistent symptoms plus unexplained weight loss, difficulty swallowing or repeated vomiting should also be reviewed promptly.

How to get an e-prescription online

If you have already been diagnosed and need a repeat of acid-suppressing medication, an online consultation can be a convenient option for residents of Poland:

  1. Choose the service and complete the secure medical questionnaire describing your symptoms, history and current medicines.
  2. A doctor reviews your case. If treatment is clinically appropriate, an e-prescription is issued; if not, you will be advised on safer next steps.
  3. Collect your medicine at any pharmacy using the prescription code sent to you, often within minutes of approval.

A prescription is issued only when it is medically justified and at the doctor's discretion. New, severe or alarm-feature symptoms should be assessed in person rather than online.

Frequently asked questions

Are stomach ulcers caused by stress? No. The main causes are H. pylori infection and NSAID painkillers. Stress and diet can make existing symptoms feel worse but do not create the ulcer itself.

How long does a peptic ulcer take to heal? With acid-suppressing treatment, most ulcers heal within four to eight weeks. Clearing an H. pylori infection also reduces the chance of the ulcer coming back.

What is the difference between a gastric and a duodenal ulcer? A gastric ulcer is in the stomach lining, while a duodenal ulcer is in the first part of the small intestine. Duodenal ulcer pain often improves with eating; gastric ulcer pain can worsen after meals.

Can I treat an ulcer with over-the-counter remedies? Antacids and some acid reducers can ease symptoms short-term, but they do not treat an underlying H. pylori infection. Persistent symptoms need proper assessment and, often, prescription treatment.

Do I need an endoscopy? Not always. Many ulcers are managed after a non-invasive H. pylori test. An endoscopy is advised if you have alarm symptoms, are older with new symptoms, or are not improving with treatment.

Can ulcers come back after treatment? They can, especially if H. pylori was not fully cleared or NSAIDs are restarted. Completing antibiotics, confirming the infection has gone and avoiding triggers all reduce recurrence.

Sources

  • NHS
  • National Institute for Health and Care Excellence (NICE)
  • British Society of Gastroenterology
  • World Health Organization (WHO)
  • European Medicines Agency (EMA)
  • International Agency for Research on Cancer (IARC)

--- This article is for general information and does not replace a medical consultation. Prescriptions are issued only when medically justified, at the doctor's discretion.

Author: MEDINOW Sp. z o.o. editorial team · Medical review: Damian Wojno, MD (OIL Olsztyn, PWZ 3211301) · Updated: June 2026

More articles