What is the differential diagnosis for black, tarry stool (melena)?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: October 11, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

Differential Diagnosis of Black, Tarry Stool (Melena)

Black, tarry stool (melena) most commonly indicates upper gastrointestinal bleeding, with peptic ulcer disease being the leading cause (35-50% of cases), followed by gastroduodenal erosions (8-15%), esophagitis (5-15%), varices (5-10%), and Mallory-Weiss tears (15%). 1

Primary Pathologic Causes (Upper GI Bleeding)

The British Society of Gastroenterology guidelines establish that approximately 80% of melena cases have an identifiable upper GI source 1. The differential diagnosis, ranked by frequency:

Most Common (Account for >80% of cases)

  • Peptic ulcer disease (35-50%) - gastric or duodenal ulcers from H. pylori or NSAID use
  • Mallory-Weiss tear (15%) - typically associated with forceful vomiting
  • Gastroduodenal erosions (8-15%) - often medication-related
  • Esophagitis (5-15%) - erosive esophagitis from reflux
  • Varices (5-10%) - esophageal or gastric varices from portal hypertension

Less Common but Important

  • Upper GI malignancy - gastric or esophageal cancer
  • Vascular malformations (1%) - arteriovenous malformations, Dieulafoy lesions
  • Rare causes (5%) - hemobilia, hemosuccus pancreaticus, aortoenteric fistula 2

Lower GI Sources (Uncommon but Possible)

While melena typically indicates upper GI bleeding, colonoscopy after nondiagnostic upper endoscopy identifies a suspected bleeding source in only 4.8% of cases 3. Lower GI causes include:

  • Slow-bleeding colonic lesions - large polyps (≥20mm), tumors, or adenomas with dysplasia 4, 3
  • Right-sided arteriovenous malformations
  • Colitis or ulcers in the colon

The diagnostic yield for therapeutic intervention during colonoscopy for melena is very low (1.7%), though these patients have increased colorectal cancer risk (OR 2.87) 3.

Small Bowel Sources

In pediatric studies, the small intestine was identified as the bleeding source in approximately 13% of cases where a source was found 5. Small bowel capsule endoscopy may be useful when upper endoscopy is nondiagnostic.

Non-Pathologic Mimics (Critical to Exclude)

Always obtain a detailed dietary and medication history before pursuing invasive workup in hemodynamically stable patients. Common mimics include:

  • Dietary substances: Black licorice, chocolate cookies (alkalized cocoa), pork blood soup, blueberries 6, 7
  • Medications: Bismuth subsalicylate (Pepto-Bismol), iron supplements, activated charcoal
  • Other substances: Lead, charcoal

Clinical Context for Risk Stratification

Patients presenting with both hematemesis and melena have more severe bleeding than those with melena alone 1. Key clinical indicators suggesting true upper GI bleeding include:

  • Vomiting (significant predictor of EGD-positive findings) 5
  • Hemoglobin ≥3 g/dL below normal limit 5
  • Abnormal abdominal ultrasonography findings 5
  • Hemodynamic instability (tachycardia >100 bpm, hypotension <100 mmHg systolic)

Important Pitfall

In patients with colostomy or altered GI anatomy, dietary mimics may be more pronounced due to reduced transit time and altered bacterial metabolism 6. Always verify dietary intake before initiating aggressive management in stable patients.

Mortality Considerations

Upper GI bleeding carries significant mortality risk: 11% in patients admitted for bleeding, and 33% in those who develop bleeding while hospitalized for other conditions 1. Most deaths occur in elderly patients with significant comorbidities. This underscores the importance of rapid identification and appropriate triage, though the majority of cases (80-85%) cease spontaneously 2.

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.