What diseases cause black tarry stools (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: March 6, 2026View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Diseases Causing Black Tarry Stools (Melena)

The most common causes of melena are peptic ulcer disease (duodenal and gastric ulcers), gastric erosions, and esophageal varices, with the upper gastrointestinal tract being the source in the vast majority of cases. 1

Upper Gastrointestinal Sources (Most Common)

The upper GI tract (proximal to the ligament of Treitz) accounts for the overwhelming majority of melena cases 1:

Peptic Ulcer Disease

  • Duodenal ulcers are the single most common cause of melena 1, 2
  • Gastric ulcers are the second most frequent ulcer-related cause 1, 2
  • These account for a substantial proportion of all melena presentations 2

Gastric and Esophageal Lesions

  • Gastric erosions (erosive gastritis) are among the top causes 1, 3
  • Esophagitis can cause significant bleeding presenting as melena 1, 2
  • Esophageal varices are a critical cause, particularly in patients with portal hypertension 1, 2
  • Mallory-Weiss tears from forceful vomiting 1

Vascular and Rare Upper GI Causes

  • Angiodysplasia and vascular malformations in the upper GI tract 1
  • Dieulafoy lesion accounts for 1-2% of acute upper GI bleeding 1
  • Neoplasms of the esophagus, stomach, or duodenum 1
  • Hemobilia (bleeding into the biliary tree) 1
  • Hemosuccus pancreaticus (bleeding from the pancreatic duct), estimated at 1 in 500 cases 1

Iatrogenic and Post-Procedural

  • Post-endoscopic biopsy bleeding 1
  • ERCP-related injury 1
  • Complications from biliary stenting 1
  • Post-pancreatic surgery arterial injury 1

Small Intestinal Sources (Less Common)

When upper endoscopy is nondiagnostic, small bowel pathology should be considered 1, 2:

  • Angiectasias account for up to 80% of obscure bleeding cases 1
  • Small bowel tumors, particularly important in patients younger than 50 years 1
  • Small intestinal ulcers or erosions 2
  • Parasitic infections such as severe Strongyloidiasis causing duodenal ulceration 4

Lower Gastrointestinal Sources (Rare for Melena)

While uncommon, colonic sources can occasionally present with melena 5:

  • Right-sided arteriovenous malformations 5
  • Colitis 5
  • Large polyps (≥20 mm) 5
  • Colon tumors (patients with melena have increased colorectal cancer risk) 5
  • Colonic ulcers 5

However, colonoscopy after nondiagnostic upper endoscopy has a diagnostic yield of only 4.8% and therapeutic intervention rate of just 1.7% 5

Important Clinical Considerations

Risk Factors and Underlying Conditions

  • Patients with severe underlying diseases have increased bleeding tendency 3
  • Alcohol consumption and NSAID/medication use are common precipitants 3
  • Patients with malignancy or severe mental/physical disorders are at higher risk 2

Key Diagnostic Indicators

In pediatric populations (principles applicable to adults), factors suggesting upper GI source identifiable on endoscopy include 2:

  • Vomiting accompanying melena
  • Abnormal abdominal imaging findings
  • Hemoglobin ≥3 g/dL below normal limit

Critical Pitfall to Avoid

Black licorice ingestion can mimic melena appearance and also potentiates anticoagulation in patients on warfarin, creating a confounding clinical picture 6. Always obtain dietary history before extensive workup.

Diagnostic Approach Algorithm

  1. Esophagogastroduodenoscopy (EGD) is the primary diagnostic modality for melena, as the upper GI tract is the source in most cases 1, 2

  2. For nondiagnostic initial EGD, consider repeat endoscopy with enhanced techniques: cap-fitted endoscopy for blind areas, side-viewing scope for ampulla, push enteroscopy for deep duodenum, and random duodenal biopsies for celiac disease 1

  3. If upper endoscopy remains negative, proceed to capsule endoscopy for small bowel evaluation, which has revolutionized obscure bleeding diagnosis 1, 2

  4. Colonoscopy should be performed in stable patients without active bleeding, primarily for colorectal cancer screening given increased risk, though diagnostic yield for melena source is low 5

  5. For active bleeding with negative endoscopy, CT angiography or visceral arteriography are appropriate 1

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Research

Hematemesis and Melena: gastritis.

The Tokai journal of experimental and clinical medicine, 1981

Research

An unusual case of gastric outlet obstruction and melena.

Clinical journal of gastroenterology, 2022

Research

Black licorice ingestion: Yet another confounding agent in patients with melena.

World journal of gastrointestinal surgery, 2010

Related Questions

For a patient 4 months post‑benign right axillary lymph node biopsy who is overdue for the 3‑month follow‑up ultrasound and also due for her annual screening mammogram, what orders, ICD‑10‑CM diagnosis codes, and CPT procedure codes should be used to schedule the right axillary ultrasound and the screening mammogram?
What is the most likely diagnosis for a patient presenting with melena, generalized weakness, constipation, lightheadedness, expressive aphasia, quadriplegia, and epigastric abdominal pain?
In a 72‑year‑old smoker undergoing low‑dose computed tomography (LDCT) screening who now has a new 6 × 9 mm right upper‑lobe nodule minimally avid on positron emission tomography (PET) and a new 3 mm left upper‑lobe nodule, with other stable nodules, should these nodules be followed with yearly imaging or a more frequent surveillance protocol?
What is the likely diagnosis linking persistent headaches, generalized hypotonia, unexplained weight loss, polydipsia, polyuria, increased bowel frequency, brain fog, anxiety, arrhythmia, diffuse muscle weakness, new‑onset hirsutism, recurrent otitis and gastroenteritis, and a childhood acute myositis episode in a 29‑year‑old male?
What is the differential diagnosis and initial work‑up for a 24‑year‑old graduate student with a new non‑painful, non‑itchy rash on the ankles and shins and large easy bruises without a clear history of trauma?
What are the typical symptoms of varicose veins?
In a 7‑month‑old infant with a palpable but incompletely descended right testis, is it appropriate to continue observation?
What are the diagnostic criteria for allergic rhinitis?
Should itopride be taken before meals (on an empty stomach) rather than after meals?
What is the recommended treatment for allergic rhinitis?
What steps should be taken to evaluate and manage a low white blood cell (leukopenia) count?

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.

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.