GI
Peptic Ulcer Disease and Gastrointestinal Bleeding
The ulcer wall tells you which catastrophe is coming. Surface predicts artery versus free perforation, and bleeding speed decides whether stool turns black, maroon, or red.
- Distinguish gastric and duodenal ulcer patterns without overusing meal timing
- Map ulcer location to bleeding artery or perforation risk
- Recognize upper, lower, brisk, and occult gastrointestinal bleeding
Key distinctions
Separate the closest diagnoses
The figure compares the nearest alternatives and highlights the finding that separates them.
Warm-up check
A 47-year-old man with chronic epigastric pain has massive melena and hypotension. Endoscopy shows an ulcer on the posterior wall of the duodenal bulb.
Which vessel lies directly in this ulcer's path?
Reason it through
- Which surface contains the ulcer?The lesion occupies the posterior wall of the duodenal bulb.
- Which vessel courses behind that surface?The gastroduodenal artery runs posterior to the proximal duodenum.
- Why is the hemorrhage so severe?Arterial erosion can produce rapid blood loss with melena and hypotension.
The named artery depends on the named wall
Name the wall and you name the danger. The structure just beyond it is waiting.
A gastric ulcer on the lesser curvature can erode left gastric branches and cause upper gastrointestinal hemorrhage.
A posterior duodenal-bulb ulcer can enter the gastroduodenal artery and bleed briskly.
An anterior duodenal ulcer opens into the peritoneal cavity instead, because no large named artery guards its free surface.
Which lesion most classically causes pneumoperitoneum?
In the duodenal bulb, posterior means artery and anterior means free perforation.
Gastric versus duodenal ulcer
Meal timing is the least reliable difference. Site, cancer concern, and mucosal physiology decide it.
Gastric ulcers favor the lesser curvature or antrum after H pylori or NSAIDs weaken mucosal defense. Biopsy at endoscopy generally excludes malignancy.
Duodenal ulcers sit in the bulb and track with H pylori, excess acid delivery, or impaired bicarbonate defense. Primary duodenal malignancy is far less likely.
The classic timing pattern exists. Gastric-ulcer pain may worsen with food, while duodenal-ulcer pain may briefly improve before returning hours later or at night. The overlap is why timing alone cannot decide.
Image: Source CC BY-SA 4.0.
Switch between gastric and duodenal disease.
Lesser curvature or antrum; defense failure; food may worsen pain; biopsy to exclude cancer.
Bulb; H pylori and acid load; nocturnal or hunger pain is common; usually benign.
Epigastric pain, dyspepsia, nausea, anemia, bleeding, perforation, obstruction, or no symptoms at all.
Meal timing can support an ulcer location, but it cannot establish one.
Blood changes appearance with time and volume
Time darkens blood, transit preserves its color. The stool tells you how long the blood traveled.
Slow or moderate upper gastrointestinal bleeding turns black and tarry as melena after acid, enzymes, and intestinal transit work on it.
Very rapid upper bleeding can rush out as red hematochezia. Small chronic losses from any level may show up only as iron-deficiency anemia or positive stool testing.
Classify each presentation by relative speed or volume of bleeding.
Coffee-ground emesis
Melena
Hematochezia with shock from an upper source
Hematochezia with shock can still come from a brisk upper gastrointestinal hemorrhage.
The ligament of Treitz divides upper from lower bleeding
Stool color is a speed read, not a location read. Transit always comes first.
Proximal to the ligament of Treitz, the source is the esophagus, stomach, or duodenum. Hematemesis, coffee-ground emesis, or melena is the common result.
Distal to the ligament, the source is usually colon or anorectum, and hematochezia is the rule. The small bowel sits between the two territories.
The overlap is the trap here. A brisk upper source can outrun digestion into hematochezia, while slow right-colonic or small-bowel loss produces dark stool and iron-deficiency anemia.
Open each source and presentation.
Hematemesis or coffee-ground emesis may accompany melena.
Usually melena; brisk bleeding can become hematochezia.
Overt melena or hematochezia, or occult iron-deficiency anemia.
Hematochezia is common; right-sided slow bleeding may appear dark.
Bright-red blood coating stool or paper is common, but serious proximal disease must still be considered.
H pylori and NSAIDs reach the same ulcer by different routes
H pylori changes the acid signals, NSAIDs strip the defense. Both end at the same ulcer.
H pylori drives chronic gastritis and disrupts somatostatin-gastrin signaling. It weakens bicarbonate defense, and depending on its distribution it can raise duodenal acid exposure or cause atrophic gastric injury.
NSAIDs inhibit cyclooxygenase-dependent prostaglandin synthesis. Mucosal blood flow, mucus, bicarbonate, epithelial repair, and platelet function all drop.
Once acid and pepsin win, a break through the muscularis mucosae is a true peptic ulcer. From that depth it can bleed, penetrate, perforate, or scar.
Reveal the path from risk factor to complication.
Infection alters inflammation and acid control; NSAIDs suppress prostaglandin defense.
The surface can no longer contain normal acid and pepsin.
The lesion becomes a true peptic ulcer.
Hemorrhage or penetration occurs.
Perforation causes peritonitis and free air.
Pyloric or duodenal narrowing can cause gastric-outlet obstruction.
Hemorrhage, obstruction, perforation, and penetration
An ulcer changes character the moment it reaches a vessel, narrows the outlet, or leaves the wall.
Hemorrhage is the most common major complication. It runs from occult iron loss to shock with hematemesis, melena, or hematochezia.
Edema, spasm, or scarring near the pylorus or proximal duodenum can block the gastric outlet. Early satiety, retained food, a succussion splash, and nonbilious vomiting follow.
The trap here is mixing perforation with penetration. Perforation spills gas and contents into the peritoneum with free air. Penetration enters an adjacent organ such as the pancreas, and free intraperitoneal air may not appear.
Open the complication and clue.
Falling hemoglobin, melena, hematemesis, orthostasis, shock, or occult iron deficiency.
Postprandial fullness, recurrent nonbilious vomiting, dehydration, and hypochloremic alkalosis.
Sudden severe pain, rigid abdomen, peritonitis, and free subdiaphragmatic air.
Persistent pain radiating to back or adjacent-organ inflammation without free-air pattern.
Gastric ulcers are sampled and followed to healing when appropriate; alarm features accelerate evaluation.
Practice question
Apply what you have learned
Read the case below, then choose the best answer. Each choice has an explanation.
A 47-year-old man with chronic epigastric pain has massive melena and hypotension. Endoscopy shows an ulcer on the posterior wall of the duodenal bulb .
Which vessel lies directly in this ulcer's path?
- Key finding. posterior wall of the duodenal bulb
- Answer. Gastroduodenal artery
- Why. The gastroduodenal artery courses posterior to the proximal duodenum and can cause severe hemorrhage when a posterior ulcer penetrates.
- Board rule. Posterior duodenal ulcers threaten the gastroduodenal artery; anterior ulcers threaten the peritoneum.
Stage 1 of 3: Overview
Overview
Peptic Ulcer Disease and Gastrointestinal Bleeding
H pylori alters inflammation and acid control; NSAIDs remove prostaglandin-supported defense.
Separate the competing diagnoses
Five cases map ulcer surface to perforation or artery, reinterpret stool color, localize bleeding, and define ulcer depth.
Cross out mimics and highlight the finding that separates the diagnoses. Shuffle to compare a new case order.
A 55-year-old man has sudden severe epigastric pain followed by a rigid abdomen. Upright chest radiography shows free air beneath the diaphragm.
Which ulcer surface most often produces this complication?
Reason it through
- What does the rigid abdomen indicate?Peritoneal irritation has followed leakage from a hollow viscus.
- What does free subdiaphragmatic air establish?Gas has escaped through a perforation into the peritoneal cavity.
- Which duodenal surface opens most freely?The anterior wall faces the peritoneal cavity and classically perforates.
- What does the rigid abdomen indicate?Peritoneal irritation has followed leakage from a hollow viscus.
- What does free subdiaphragmatic air establish?Gas has escaped through a perforation into the peritoneal cavity.
- Which duodenal surface opens most freely?The anterior wall faces the peritoneal cavity and classically perforates.
A 63-year-old woman with daily NSAID use has melena. Upper endoscopy shows a gastric ulcer on the lesser curvature.
Which artery completes the mechanism of this bleeding?
Reason it through
- How did NSAIDs make the mucosa vulnerable?Cyclooxygenase inhibition reduced prostaglandin-supported blood flow, mucus, bicarbonate, and repair.
- Which vessel follows the ulcer's location?Branches of the left gastric artery course along the lesser curvature.
- How does vessel erosion explain the stool?Upper gastrointestinal hemorrhage is digested during transit and appears as melena.
- How did NSAIDs make the mucosa vulnerable?Cyclooxygenase inhibition reduced prostaglandin-supported blood flow, mucus, bicarbonate, and repair.
- Which vessel follows the ulcer's location?Branches of the left gastric artery course along the lesser curvature.
- How does vessel erosion explain the stool?Upper gastrointestinal hemorrhage is digested during transit and appears as melena.
A 49-year-old man has maroon hematochezia with hypotension, tachycardia, and a high blood-urea-nitrogen-to-creatinine ratio.
Which source pattern must remain in the differential?
Reason it through
- What do hypotension and tachycardia say about bleeding rate?The hemorrhage is rapid enough to cause hemodynamic compromise.
- Why can an upper source remain red?Fast transit limits digestion and preserves a maroon or red appearance.
- Which laboratory relationship supports a proximal bleed?A high blood-urea-nitrogen-to-creatinine ratio supports an upper gastrointestinal source.
- What do hypotension and tachycardia say about bleeding rate?The hemorrhage is rapid enough to cause hemodynamic compromise.
- Why can an upper source remain red?Fast transit limits digestion and preserves a maroon or red appearance.
- Which laboratory relationship supports a proximal bleed?A high blood-urea-nitrogen-to-creatinine ratio supports an upper gastrointestinal source.
A 58-year-old woman has coffee-ground emesis followed by black, tarry stool. Urgent upper endoscopy is being prepared to identify the bleeding source.
Which listed region should the endoscope inspect before entering the duodenum?
Reason it through
- What does blood in emesis localize?Hematemesis or coffee-ground material places the source proximal enough to enter the stomach.
- Why can the same bleed also produce melena?Blood that continues through the bowel is digested into black, tarry stool.
- How does this guide the procedure?Upper endoscopy directly inspects the esophagus and stomach before reaching the duodenum.
- What does blood in emesis localize?Hematemesis or coffee-ground material places the source proximal enough to enter the stomach.
- Why can the same bleed also produce melena?Blood that continues through the bowel is digested into black, tarry stool.
- How does this guide the procedure?Upper endoscopy directly inspects the esophagus and stomach before reaching the duodenum.
In a 66-year-old man, mucus, bicarbonate, perfusion, and epithelial repair no longer contain acid and pepsin. Histology now shows a mucosal defect extending beyond the muscularis mucosae.
Which histologic event defines the resulting lesion as a true ulcer?
Reason it through
- Which barrier has already failed?Surface defenses no longer protect the epithelium from normal acid and pepsin.
- What separates an erosion from an ulcer?An ulcer extends through the muscularis mucosae instead of remaining superficial.
- Which complications become possible after that depth is reached?Deeper extension permits hemorrhage, penetration, perforation, or scarring.
- Which barrier has already failed?Surface defenses no longer protect the epithelium from normal acid and pepsin.
- What separates an erosion from an ulcer?An ulcer extends through the muscularis mucosae instead of remaining superficial.
- Which complications become possible after that depth is reached?Deeper extension permits hemorrhage, penetration, perforation, or scarring.
Rapid review
Three questions to check
Which vessel lies directly in this ulcer's path?
Gastroduodenal artery. The gastroduodenal artery courses posterior to the proximal duodenum and can cause severe hemorrhage when a posterior ulcer penetrates.
What does the rigid abdomen indicate?
Peritoneal irritation has followed leakage from a hollow viscus.
What does free subdiaphragmatic air establish?
Gas has escaped through a perforation into the peritoneal cavity.
Medically reviewed

Fatima Ali, DO
PGY-1 Resident Physician in Psychiatry
University Hospitals, Columbia
DO from Kansas City University
Resident physician and founding medical reviewer at Bone Wizardry, focused on clinical accuracy, clear diagnostic reasoning, and practical board-oriented teaching across the curriculum.
Languages. English, Urdu
Medically reviewed
Sources
- Peptic Ulcer Disease2026
- Gastric Ulcer2026
- Duodenal Ulcer2023
- Upper Gastrointestinal Bleeding2026
- Rectal Bleeding2026
- Gastritis2026
- ACG Clinical Guideline: Upper Gastrointestinal and Ulcer Bleeding2021
Bone Wizardry is a study resource for medical students. It is not medical advice.