[Durgical](https://durgical.com/en/) › [DurgiPedia](https://durgical.com/en/durgipedia/) › [Conditions](https://durgical.com/en/conditions/) › Complicated peptic ulcer: perforation and gastric outlet obstruction

# Complicated peptic ulcer: perforation and gastric outlet obstruction

A [peptic ulcer](https://durgical.com/en/general-pathology/peptic-ulcer/) can burn a hole through the gut wall or scar the [stomach](https://durgical.com/en/anatomy/stomach/) outlet shut. Perforation is a surgical emergency; obstruction causes vomiting.

Updated Nov 19, 2026

On this page

- The basics What it is
- How to think about it
- Who gets it
- Causes
- Risk factors
- Pathophysiology
- Classification
- Sudden severe upper abdominal pain: which one?
- Common traps
- Why it happens

- Clinical Symptoms and signs
- Red flags
- Diagnosis
- Differential diagnosis
- Complications
- Prognosis
- In clinical skills

- Treatment Goal of treatment
- Treatment
- Prevention

- Study Test yourself

- Connections Connections

## What it is

Two mechanical complications of [peptic ulcer disease](https://durgical.com/en/conditions/peptic-ulcer-disease/). Perforation is a full-thickness hole, usually in the anterior wall of the duodenal bulb or the stomach, that spills acid, food and later bacteria into the peritoneal cavity. Gastric outlet obstruction is narrowing of the pylorus or [duodenum](https://durgical.com/en/anatomy/duodenum/) by oedema, spasm and scar from a chronic ulcer, so the stomach cannot empty.

## How to think about it

Ask where the ulcer faces. An ulcer on the front wall of the [duodenum](https://durgical.com/en/anatomy/duodenum/) faces the open peritoneal cavity, so when it goes through it leaks (perforation). One on the back wall lies on the [gastroduodenal artery](https://durgical.com/en/anatomy/gastroduodenal-artery/) and the [pancreas](https://durgical.com/en/anatomy/pancreas/), so it bleeds or burrows in (penetration). One that keeps healing and breaking down at the pylorus builds scar around the outlet, so it eventually blocks it (obstruction).

See it in 3D

- [Duodenum](https://durgical.com/en/anatomy/duodenum/)
- [Stomach](https://durgical.com/en/anatomy/stomach/)
- [Peritoneum](https://durgical.com/en/anatomy/peritoneum/)
- [Greater omentum](https://durgical.com/en/anatomy/greater-omentum/)

## +4

- [Gastroduodenal artery](https://durgical.com/en/anatomy/gastroduodenal-artery/)
- [Pancreas](https://durgical.com/en/anatomy/pancreas/)
- [Diaphragm](https://durgical.com/en/anatomy/diaphragm/)
- [Liver](https://durgical.com/en/anatomy/liver/)

## Who gets it

Perforation affects a small minority of people with peptic ulcers but causes most ulcer deaths; it is commoner in older adults taking [NSAIDs](https://durgical.com/en/pharmacology/classes/nonsteroidal-anti-inflammatory-drugs/) or [aspirin](https://durgical.com/en/pharmacology/acetylsalicylic-acid/) and in smokers. Since effective acid suppression and [Helicobacter pylori](https://durgical.com/en/microbiology/helicobacter-pylori/) treatment, obstruction from benign ulcers has fallen, and in adults with outlet obstruction cancer must now be excluded first. In Colombia, high Helicobacter pylori [prevalence](https://durgical.com/en/epidemiology/prevalence/), over-the-counter NSAID use and a high rate of [gastric cancer](https://durgical.com/en/conditions/gastric-cancer/) make both points relevant.

## Causes

- [Helicobacter pylori infection](https://durgical.com/en/conditions/helicobacter-pylori-gastritis/)
- NSAIDs, including low-dose aspirin, especially combined with [corticosteroids](https://durgical.com/en/pharmacology/classes/corticosteroids/), anticoagulants or [antiplatelet drugs](https://durgical.com/en/pharmacology/classes/antiplatelet-drugs/)
- Smoking and heavy alcohol use
- Gastric cancer presenting as a perforated or obstructing ulcer
- Rarely, acid hypersecretion ([Zollinger–Ellison syndrome](https://durgical.com/en/conditions/zollinger-ellison-syndrome/)) or [cocaine](https://durgical.com/en/pharmacology/cocaine/) and crack use

## Risk factors

- Older age
- Long-term or high-intensity NSAID use without gastric protection
- Smoking
- Previous ulcer or ulcer complication
- Untreated Helicobacter pylori infection
- Severe physiological stress (critical illness, [burns](https://durgical.com/en/conditions/burns/))

## Pathophysiology

Acid and pepsin outmatch mucosal defence (Helicobacter pylori, NSAIDs) → the ulcer deepens through submucosa and muscle → anterior wall: it breaches the serosa → acid and food pour into the [peritoneum](https://durgical.com/en/anatomy/peritoneum/) (chemical [peritonitis](https://durgical.com/en/conditions/peritonitis/), sudden severe pain, board-like rigidity) → within hours bacteria follow (bacterial peritonitis), fluid shifts and sepsis set in → shock and organ failure, worse the longer the delay. Separately, a chronic pyloric or duodenal ulcer heals and breaks down repeatedly → oedema, spasm and fibrosis narrow the outlet → the stomach dilates and vomits retained food → loss of hydrochloric acid and volume → hypochloraemic, hypokalaemic [metabolic alkalosis](https://durgical.com/en/conditions/metabolic-alkalosis/).

## Classification

- Perforation: free (into the open peritoneum), sealed or contained (plugged by omentum or [liver](https://durgical.com/en/anatomy/liver/)), or penetration into a neighbouring organ such as the pancreas
- By site: duodenal (most perforations, usually anterior bulb) or gastric (must be checked for cancer)
- Risk scores for perforation outcome: Boey score (shock, major medical illness, delay beyond about 24 hours) and PULP score
- Gastric outlet obstruction: benign (ulcer) or malignant (gastric, pancreatic or duodenal cancer)

## Symptoms and signs

- Perforation: sudden, severe epigastric pain that spreads over the whole abdomen, often remembered to the minute
- Perforation: lying still, shallow breathing, pain in the shoulder tip from diaphragmatic irritation
- Perforation: rigid, board-like abdomen with guarding and absent bowel sounds; older or steroid-treated patients may show far less
- Obstruction: early fullness, bloating and vomiting of undigested food eaten hours or a day before, without bile
- Obstruction: weight loss, [dehydration](https://durgical.com/en/conditions/dehydration/) and a succussion splash over the stomach

## Red flags

- Hypotension, tachycardia or falling urine output (septic or [hypovolaemic shock](https://durgical.com/en/conditions/hypovolaemic-shock/))
- More than about 24 hours from onset of pain to surgery
- Older age, immunosuppression or corticosteroid use with few abdominal signs
- Perforated gastric ulcer or outlet obstruction with weight loss, anaemia or a mass (possible cancer)
- Severe [hypokalaemia](https://durgical.com/en/conditions/hypokalaemia/) and alkalosis from prolonged vomiting

## Diagnosis

**Clinical**
Perforation: sudden epigastric pain followed by generalised peritonitis in a patient with ulcer history or NSAID use; ask about the time of onset. Obstruction: repeated vomiting of old food, weight loss and a succussion splash.

**Tests**
Full blood count, electrolytes and [creatinine](https://durgical.com/en/biochemistry/molecules/creatinine/), [lactate](https://durgical.com/en/biochemistry/molecules/lactate/), blood gas, amylase or lipase (may be mildly raised in perforation), group and crossmatch and blood cultures. In obstruction: low chloride and potassium with metabolic alkalosis. Helicobacter pylori testing once the patient recovers, and biopsy of any gastric ulcer or stricture.

**Imaging**
Erect [chest](https://durgical.com/en/anatomy/region/chest/) X-ray: free gas under the [diaphragm](https://durgical.com/en/anatomy/diaphragm/) in most, but not all, perforations. CT of the [abdomen](https://durgical.com/en/anatomy/region/abdomen/) with contrast is more sensitive, shows small amounts of free gas and fluid and often the site. Water-soluble contrast study to show whether a perforation has sealed. Obstruction: CT shows a distended [stomach](https://durgical.com/en/anatomy/stomach/) and any mass; upper endoscopy after decompression shows the stricture and allows biopsy and dilatation.

## Differential diagnosis

- [Acute pancreatitis](https://durgical.com/en/conditions/acute-pancreatitis/)
- [Oesophageal perforation (Boerhaave syndrome)](https://durgical.com/en/conditions/oesophageal-perforation/)
- [Acute mesenteric ischaemia](https://durgical.com/en/conditions/acute-mesenteric-ischaemia/)
- [Acute cholecystitis](https://durgical.com/en/conditions/acute-cholecystitis/) or biliary colic
- Perforation of another hollow organ (colon diverticulum, [appendix](https://durgical.com/en/anatomy/vermiform-appendix/))
- Inferior [myocardial infarction](https://durgical.com/en/conditions/myocardial-infarction/) presenting as epigastric pain
- Malignant gastric outlet obstruction or [gastroparesis](https://durgical.com/en/conditions/gastroparesis/) (for obstruction)

## Sudden severe upper abdominal pain: which one?

| Condition | Onset and pain | Bedside clue | Decisive test |
| --- | --- | --- | --- |
| Perforated peptic ulcer | Instant, severe epigastric pain that spreads to the whole abdomen | Board-like rigidity, lies still; NSAID or ulcer history | Free gas on erect chest X-ray or CT |
| [Acute pancreatitis](https://durgical.com/en/conditions/acute-pancreatitis/) | Rapid onset, epigastric pain boring through to the back | Vomiting, prefers to lean forward; alcohol or [gallstones](https://durgical.com/en/conditions/gallstones/) | Lipase above three times normal; CT if unclear |
| [Oesophageal perforation](https://durgical.com/en/conditions/oesophageal-perforation/) | Chest and upper abdominal pain after forceful vomiting | Neck crepitus (surgical [emphysema](https://durgical.com/en/general-pathology/emphysema/)), looks very ill | CT or contrast swallow showing leak and mediastinal gas |
| [Acute mesenteric ischaemia](https://durgical.com/en/conditions/acute-mesenteric-ischaemia/) | Severe pain out of proportion to a soft abdomen | [Atrial fibrillation](https://durgical.com/en/conditions/atrial-fibrillation/) or vascular disease, older patient | CT angiography; lactate rises late |
| [Acute cholecystitis](https://durgical.com/en/conditions/acute-cholecystitis/) | Builds over hours, right upper quadrant pain | [Murphy sign](https://durgical.com/en/clinical-exam/murphy-sign/), fever | Ultrasound: stones, thick wall, sonographic Murphy sign |

## Goal of treatment

Perforation: resuscitate, control the source of contamination quickly and treat sepsis. Obstruction: decompress the stomach, correct fluid and electrolytes, exclude cancer and reopen the outlet. In both, cure the underlying ulcer disease so it does not return.

## Treatment

**Acute**
Resuscitation: intravenous fluids, nil by mouth, nasogastric tube to empty the stomach, urinary catheter, analgesia, intravenous proton pump inhibitor and early broad-spectrum antibiotics.

**Surgical**
Perforation: laparoscopic or open closure of the hole, usually with a pedicle of omentum laid over it (omental patch repair), and washout of the peritoneal cavity. Perforated gastric ulcers are biopsied or excised because they may be cancers; large or difficult perforations may need resection.

**Conservative**
Selected stable patients with an early, sealed perforation (no contrast leak) may be managed without surgery: nasogastric suction, antibiotics and acid suppression with frequent surgical review, operating at once if they worsen. Not suitable for older patients or those in shock.

**Procedure**
Gastric outlet obstruction: nasogastric decompression, correction of chloride, potassium and volume, acid suppression, endoscopic biopsy and endoscopic balloon dilatation of a benign stricture.

**Surgical**
Obstruction that recurs after dilatation: a drainage operation such as gastrojejunostomy, or antrectomy; malignant obstruction is managed by stenting, bypass or resection according to the cancer.

**Medical**
After recovery: test for Helicobacter pylori and eradicate it, confirm eradication, stop NSAIDs where possible and continue acid suppression to heal the ulcer.

**Lifestyle**
Stop smoking, limit alcohol, and avoid over-the-counter anti-inflammatories without medical advice.

## Complications

- Generalised peritonitis, septic shock and death
- [Intra-abdominal abscess](https://durgical.com/en/conditions/intra-abdominal-abscess/) (subphrenic, pelvic)
- Leak from the repair
- [Wound infection](https://durgical.com/en/conditions/surgical-site-infection/), pneumonia and respiratory failure after surgery
- Severe metabolic alkalosis, hypokalaemia and dehydration from obstruction
- Malnutrition and weight loss
- Missed gastric cancer

## Common traps

- **No free gas on the chest X-ray rules out a perforation**: a sizeable minority of perforations show none on an erect film; with a convincing story, get a CT
- **A perforation always follows years of ulcer pain**: many patients, especially older NSAID or aspirin users, had no dyspepsia before the hole appeared
- **The patch repair cures the ulcer**: it only closes the hole; without Helicobacter pylori eradication and stopping NSAIDs, the ulcer and its complications come back
- **A raised amylase settles it as pancreatitis**: perforated ulcers can raise amylase too; free gas or a CT finds the perforation
- **Vomiting old food in an adult with ulcer history is just a bad ulcer flare**: it means outlet obstruction, and cancer must be excluded by endoscopic biopsy before calling it benign

## Prognosis

Most patients with early surgery recover well, but mortality from perforation remains substantial and rises steeply with age, shock, other illness and delay to surgery. Benign outlet obstruction usually responds to dilatation or surgery; recurrence of either complication is uncommon once Helicobacter pylori is eradicated and NSAIDs are stopped.

## Prevention

- Test for and eradicate Helicobacter pylori in people with ulcers
- Avoid unnecessary NSAIDs; use gastric protection (a proton pump inhibitor) in high-risk users
- Stop smoking
- Biopsy and follow gastric ulcers until healed

## Test yourself

Think of the answer, then tap the question to see it.

## A 72-year-old taking ibuprofen for knee pain has sudden severe epigastric pain, a rigid abdomen and gas under the right hemidiaphragm. What happened and what are the first steps?

A perforated peptic ulcer with peritonitis. Resuscitate, nil by mouth, nasogastric tube, intravenous proton pump inhibitor, broad-spectrum antibiotics and analgesia, and call the surgeon for omental patch repair.

## Why do anterior duodenal ulcers tend to perforate while posterior ones tend to bleed?

The anterior wall faces the open peritoneal cavity, so a hole leaks into it; the posterior wall lies on the gastroduodenal artery and the pancreas, so erosion bleeds or penetrates instead.

## A man with years of ulcer pain vomits large amounts of food eaten the day before. Which acid-base disorder do you expect, and why?

Hypochloraemic, hypokalaemic metabolic alkalosis: he loses hydrochloric acid in the vomit, and volume depletion makes the kidney keep sodium while losing potassium and hydrogen ions.

## When can a perforated ulcer be managed without an operation?

In a young, stable patient seen early whose perforation has sealed (no leak on a contrast study), under close surgical review, operating at once if the patient worsens.

## Why is a perforated gastric ulcer biopsied or excised at surgery?

Because a gastric cancer can perforate and look exactly like a benign ulcer; missing it delays cancer treatment.

[Add to my cards (5)](https://durgical.app/estudiar/?add=/en/conditions/complicated-peptic-ulcer-perforation-and-gastric-outlet-obstruction/)

## Why it happens

- [Peptic ulcer](https://durgical.com/en/general-pathology/peptic-ulcer/)

## In clinical skills

- [Bowel perforation after a procedure: recognising it early](https://durgical.com/en/clinical-skills/bowel-perforation-after-a-procedure-recognising-it-early/)
- [When to call the surgeon: red flags, urgency and a good surgical referral](https://durgical.com/en/clinical-skills/when-to-call-the-surgeon-red-flags-urgency-and-a-good-surgical-referral/)

## Connections

## In physiology 1

- [Gastric acid secretion](https://durgical.com/en/physiology/gastric-acid-secretion/)

## Related conditions 8

- [Peptic ulcer disease](https://durgical.com/en/conditions/peptic-ulcer-disease/)
- [Peritonitis](https://durgical.com/en/conditions/peritonitis/)
- [Upper gastrointestinal bleeding](https://durgical.com/en/conditions/upper-gastrointestinal-bleeding/)
- [Helicobacter pylori gastritis](https://durgical.com/en/conditions/helicobacter-pylori-gastritis/)
- [Gastric cancer](https://durgical.com/en/conditions/gastric-cancer/)
- [Acute pancreatitis](https://durgical.com/en/conditions/acute-pancreatitis/)
- [Oesophageal perforation (Boerhaave syndrome)](https://durgical.com/en/conditions/oesophageal-perforation/)
- [Sepsis and septic shock](https://durgical.com/en/conditions/sepsis-and-septic-shock/)

Educational information, not medical advice. For any symptom, see a health professional.

Sources: [Peptic Ulcer Disease](https://www.ncbi.nlm.nih.gov/books/NBK534792/) (StatPearls (NCBI Bookshelf), 2023); [Duodenal Ulcer](https://www.ncbi.nlm.nih.gov/books/NBK557390/) (StatPearls (NCBI Bookshelf), 2023); [Gastric Outlet Obstruction](https://www.ncbi.nlm.nih.gov/books/NBK557826/) (StatPearls (NCBI Bookshelf), 2025); [Peptic Ulcer](https://medlineplus.gov/pepticulcer.html) (MedlinePlus (U.S. National Library of Medicine), 2025).

[← All conditions](https://durgical.com/en/conditions/)

## **Spotted a mistake?** We are always improving for the community. Tell us what is wrong and our team will review it. Report a mistake

Representative model, for educational purposes only.

---
Source: https://durgical.com/en/conditions/complicated-peptic-ulcer-perforation-and-gastric-outlet-obstruction/
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Cite as: DurgiPedia (durgical.com), https://durgical.com/en/conditions/complicated-peptic-ulcer-perforation-and-gastric-outlet-obstruction/
