Doctors Note Logo

Published on: 9/29/2026

What Is Melena, and Why Black Stool Is an Emergency

Melena is black, sticky, tar-like stool with a distinctly foul odor, and it happens when blood from the upper digestive tract (esophagus, stomach, or upper small intestine) is partially digested on its way through the gut. Because it usually points to active bleeding from a peptic ulcer, gastritis, esophageal varices, a Mallory-Weiss tear, or a tumor, melena is considered a medical emergency, and blood loss can become life-threatening quickly when paired with dizziness, fainting, vomiting blood or coffee-ground material, rapid heartbeat, or severe abdominal pain. Certain harmless culprits, such as iron supplements, bismuth-containing stomach remedies, black licorice, blueberries, or beets, can imitate melena, so knowing how to tell them apart matters; there are several important factors to consider, and you can see below to understand more. Since the difference between a dietary side effect and internal bleeding is not always obvious from color alone, a structured review of your symptoms, medications, and risk factors is the fastest way to gauge urgency. Take a free, instant, online symptom check to better understand what may be causing your black stool and what step to take next.

Last reviewed for medical accuracy: 09/29/2026

answer background

Explanation

What Is Melena, and Why Black Stool Is an Emergency

Melena refers to black, tarry stool that occurs when blood from the upper gastrointestinal (GI) tract is digested as it moves through your intestines. If you’ve ever wondered “what is melena” or noticed unusually dark stools, understanding the causes and risks can help you take prompt action—and potentially save your life.

How Melena Forms

When bleeding starts in the esophagus, stomach, or the first part of the small intestine (duodenum), the blood mixes with digestive juices. This chemical breakdown turns the stool black and gives it a sticky, tar-like consistency. Normal stool color comes from bile and digested food, so anything strikingly dark—especially if it’s foul-smelling or sticky—deserves attention.

Common Causes of Melena

Melena usually signals bleeding somewhere in the upper GI tract. Key causes include:

  • Peptic Ulcers
    Ulcers in the stomach or duodenum can erode blood vessels.
  • Gastritis
    Inflammation of the stomach lining—often from infection (Helicobacter pylori) or long-term NSAID use—can lead to bleeding.
  • Esophageal Varices
    Swollen veins in the esophagus, often tied to liver disease, can rupture and bleed heavily.
  • Mallory-Weiss Tears
    Small tears at the junction of the stomach and esophagus, typically from severe vomiting or coughing.
  • Tumors
    Cancerous growths in the GI tract can bleed intermittently or continuously.

Other Factors That Darken Stool

Not every instance of dark stool is melena. Consider these common, harmless causes:

  • Iron Supplements
    Iron pills can make stool look very dark or black.
  • Certain Foods
    Black licorice, blueberries, or foods colored with dark dyes may change stool color.
  • Bismuth Subsalicylate
    Medications like Pepto-Bismol can temporarily turn stool black.

If dietary changes or supplements explain your dark stool—and there are no other symptoms—you may simply monitor the situation. But if you can’t pinpoint a benign cause, treat black stool as a possible emergency.

Why Black Stool Is an Emergency

When blood loss occurs inside your digestive tract, you can lose a significant volume before noticing symptoms. Untreated bleeding can lead to:

  • Anemia
    Chronic blood loss reduces red blood cell levels, causing fatigue, weakness, and shortness of breath.
  • Hypovolemic Shock
    Severe bleeding can drastically lower blood pressure, leading to organ failure or death if not managed quickly.
  • Infection and Complications
    Conditions like gastric varices or ulcers can worsen, increasing the risk of infection or perforation.

Because the onset can be silent—and symptoms may only appear after you’ve lost a lot of blood—black stool should always prompt medical evaluation.

Warning Signs to Watch For

In addition to tarry, black stool, seek immediate help if you experience:

  • Dizziness or lightheadedness when standing
  • Rapid heartbeat or palpitations
  • Severe abdominal pain
  • Vomiting blood or “coffee grounds” material
  • Pale skin, lips, or nail beds
  • Extreme fatigue or confusion

If any of these symptoms accompany dark stool, call emergency services or go to the nearest emergency department.

What to Do Next

  1. Do Not Ignore It
    Even if you feel fine, a delayed diagnosis can allow bleeding to continue.
  2. Track Your Symptoms
    Note the color, consistency, and frequency of stools, as well as any accompanying pain, nausea, or dizziness.
  3. Use a Free, Online Symptom Check
    Consider a free, online symptom check, using the doctor approved Ubie Symptom Checker to help you decide how urgently you need care.
  4. Speak to a Doctor
    Always consult a healthcare professional about anything that could be life threatening or serious. Share your symptom tracker notes, and be ready to describe any medications, supplements, or foods that might affect stool color.

Diagnosing Melena

When you reach a healthcare provider, they’ll likely recommend:

  • Physical Exam
    Checking vital signs (blood pressure, pulse) for signs of bleeding or shock.
  • Blood Tests
    Complete blood count (CBC) to assess anemia, clotting parameters, and organ function.
  • Endoscopy
    A flexible camera (esophagogastroduodenoscopy) allows direct visualization of the esophagus, stomach, and duodenum to locate the bleeding source.
  • Imaging Studies
    In certain cases, CT scans or angiography (blood vessel imaging) help pinpoint bleeding or tumor location.

Early diagnosis is key to preventing ongoing blood loss and complications.

Treatment Options

Treatment depends on the cause and severity of the bleeding:

  • Medication
    Proton pump inhibitors (PPIs) reduce stomach acid to help ulcers heal. Antibiotics treat H. pylori infections.
  • Endoscopic Therapy
    During an endoscopy, doctors can inject medications, cauterize bleeding vessels, or apply bands/clips to stop the flow.
  • Surgery
    Reserved for severe cases when endoscopic methods fail—surgical repair of ulcers, tumors, or varices may be necessary.
  • Blood Transfusion
    If blood loss is significant, transfusions restore red blood cell levels and stabilize vital signs.

Your healthcare team will discuss risks, benefits, and next steps tailored to your condition.

Preventing Melena

While not all causes of melena are preventable, you can lower your risk by:

  • Limiting NSAID Use
    If you need long-term pain relief, ask your doctor about alternatives or protective medications (like PPIs).
  • Treating H. pylori
    Early detection and eradication of this infection reduces ulcer risk.
  • Managing Liver Health
    For chronic liver disease, follow your specialist’s recommendations to prevent varices and bleeding.
  • Moderating Alcohol
    Excessive drinking can damage the stomach lining and liver, increasing bleeding risks.
  • Regular Check-Ups
    If you have risk factors—like a history of ulcers or liver disease—routine monitoring can catch problems early.

Key Takeaways

  • Melena is black, tarry stool caused by bleeding in the upper GI tract.
  • It can signal life-threatening conditions like bleeding ulcers, varices, or tumors.
  • Even if you feel well, unexplained dark stool warrants prompt medical evaluation.
  • Use tools like the doctor approved Ubie Symptom Checker for a free, online symptom check.
  • Always speak to a doctor about anything that could be life threatening or serious.

Black stool is never “just a stomach bug.” If you notice melena—or any sign of GI bleeding—seek medical attention without delay. Your health may depend on swift, accurate diagnosis and treatment.

(References)

  • * Hoare AM. Comparative study between endoscopy and radiology in acute upper gastrointestinal haemorrhage. Br Med J. 1975 Jan 4;1(5948):27-30. doi: 10.1136/bmj.1.5948.27. PMID: 1078984; PMCID: PMC1671910.

  • * Barbano PR, Coviello D, Mariani M, Rossi MV, Vecchi MR. [Hemorrhages of the upper gastrointestinal tract. A comparison of the diagnostic accuracy between endoscopic and radiological examinations]. Minerva Chir. 1990 Aug;45(15-16):1003-8. PMID: 2280851.

  • * Waldram R, Davis M, Nunnerley H, Williams R. Emergency endoscopy after gastrointestinal haemorrhage in 50 patients with portal hypertension. Br Med J. 1974 Oct 12;4(5936):94-6. doi: 10.1136/bmj.4.5936.94. PMID: 4547203; PMCID: PMC1612155.

  • * FOSTER RL, FISHER RF. Colostomy as emergency treatment for massive melena secondary to diverticulitis. Am Surg. 1954 Jul;20(7):734-8. PMID: 13171534.

  • * Yriberry Ureña S, Prochazka Zárate R, Salazar Muente F, Monge Zapata V, Salazar Cabrera F, Barriga Calle E. [Migration of gastrostomy button as a cause of duodenal ulcer and upper digestive bleeding]. Rev Gastroenterol Peru. 2010 Apr-Jun;30(2):172-5. PMID: 20644612.

  • * Kent AJ, O'Beirne J, Negus R. The patient with haematemesis and melaena. Acute Med. 2011;10(1):45-9. PMID: 21573267.

  • * Khan AN, Kiani IG, Arshad M, Hidayat R, Said K, Shehzad A. Management of ectopic varix with histoacryl. J Ayub Med Coll Abbottabad. 2014 Oct-Dec;26(4):618-20. PMID: 25672200.

  • * Dietel E, Nestler U, Nenning H, Eisenlöffel C, Stassart R, Meixensberger J. A late systemic and brain metastasis from subcutaneous leiomyosarcoma of the right forearm: a case report and review of the literature. J Med Case Rep. 2021 Jan 19;15(1):14. doi: 10.1186/s13256-020-02625-0. Epub 2021 Jan 19. PMID: 33461603; PMCID: PMC7814649.

  • * Noda K, Yokawa K, Dan N, Matsuda H. Endovascular and Endoscopic Treatment for Primary Aortoduodenal Fistula: A Case Report. Ann Vasc Dis. 2022 Jun 25;15(2):154-156. doi: 10.3400/avd.cr.22-00015. PMID: 35860827; PMCID: PMC9257393.

  • * Chen MT, Choy KT, Ong F. Overt gastrointestinal bleeding secondary to left inferior phrenic artery pseudoaneurysm postgastric bypass surgery. BMJ Case Rep. 2024 Jan 3;17(1). doi: 10.1136/bcr-2023-258226. Epub 2024 Jan 3. PMID: 38171642; PMCID: PMC10773294.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.