Melena

Melena is black, tarry poop that smells bad. It means there's been bleeding in your stomach or intestines, and the blood has been digested. This is a sign that you need to see a doctor.

Condition

What people with Melena report

Every report comes from a Lived member, sent anonymously.

NameHow it went

No reports yet

Add what worked for you with the search bar below

About Melena

What It Is

Melena is the medical term for black, sticky, tar-like stool that usually has a strong, unpleasant smell. The color comes from blood that has been partly digested on its way through the gut. Because blood darkens as it travels, melena most often means bleeding somewhere in the upper digestive tract: the esophagus (the tube from the throat to the stomach), the stomach or the first part of the small intestine. Melena is not a disease in itself. It is a sign that something in the digestive tract is bleeding, and the important question is where the blood is coming from and how much has been lost. That is why black, tarry stool deserves prompt medical attention even when a person otherwise feels fine. Not every dark stool is melena. Iron pills, bismuth medicines such as Pepto-Bismol, activated charcoal, black licorice and blueberries can all turn stool black or very dark without any bleeding. When the cause is uncertain, a simple stool test can check whether blood is present.

Causes & Risk Factors

The most common cause of the bleeding behind melena is a peptic ulcer, an open sore in the lining of the stomach or the duodenum (the first part of the small intestine). Most ulcers are caused by Helicobacter pylori (H. pylori), a stomach infection that often causes no symptoms, or by regular use of nonsteroidal anti-inflammatory drugs (NSAIDs), the pain relievers that include aspirin, ibuprofen and naproxen. Other upper digestive causes include gastritis (inflammation of the stomach lining, which alcohol, NSAIDs and H. pylori can trigger), esophagitis from acid reflux, and a tear in the lower esophagus after forceful vomiting. In people with cirrhosis (scarring of the liver), swollen veins called varices can form in the esophagus or stomach and bleed heavily. Less often, abnormal blood vessels, small bowel disease or a tumor of the esophagus, stomach or small intestine is responsible. Blood thinners, including anticoagulants and antiplatelet medicines, do not usually create the problem on their own, but they make bleeding more likely and can make it heavier. The risk is higher when they are combined with NSAIDs or aspirin and in people who have bled before. The chance of digestive bleeding also rises with age.

How It's Diagnosed

A clinician first wants to know whether the stool really contains blood and how much blood has been lost. They will ask about recent stools, vomiting, dizziness, alcohol use, liver disease and past ulcers, and about every medicine and supplement taken, especially NSAIDs, blood thinners, iron and bismuth. A physical exam includes blood pressure and heart rate, which help show whether blood loss is affecting circulation, and often a rectal exam to look at the stool directly. Blood tests show whether the person has anemia (a low red blood cell count) and how severe the bleeding may be, and check clotting. A stool test can confirm blood when the cause of dark stool is uncertain. The main test is an upper endoscopy, in which a thin, flexible tube with a camera is passed through the mouth to look at the esophagus, stomach and duodenum. For people with clear signs of upper digestive bleeding, US gastroenterology guidance suggests doing it within 24 hours. Endoscopy often finds the source, allows small tissue samples to be taken (including to test for H. pylori), and can treat the bleeding during the same procedure. If it finds nothing, other tests may follow, such as colonoscopy, a swallowed camera capsule that photographs the small intestine, or computed tomography (CT) scans and other imaging that can show where blood is leaking.

Treatment Options

Treatment is aimed at the cause of the bleeding, not at the stool color. The first step depends on how much blood has been lost. People who are bleeding actively may need intravenous (IV) fluids and sometimes a blood transfusion while the source is found. A small number of people with stable vital signs and normal tests may be judged very low risk and sent home with prompt follow-up instead of being admitted. During endoscopy, doctors can stop many bleeding sites by injecting medicine, sealing a vessel with heat, placing small clips or bands, or spraying a powder that helps blood clot. When bleeding came from an ulcer, a proton pump inhibitor (PPI), a medicine that strongly reduces stomach acid, is usually given at a high dose afterward and then continued by mouth to help the ulcer heal and lower the chance of bleeding again. If H. pylori is found, a course of several antibiotics taken together with acid-reducing medicine is used to clear the infection. If bleeding continues or returns, endoscopy may be repeated. When it cannot control the bleeding, a radiologist can block the bleeding vessel through a thin catheter threaded through the blood vessels, and surgery is a less common last option. Bleeding varices from liver disease are treated with their own specific approach. A review of medicines is part of treatment. Stopping or replacing NSAIDs is often advised. Whether and when to restart a blood thinner is a balance between the risk of more bleeding and the risk of clots, so it should be decided with the prescribing clinician rather than changed independently.

What to Expect

What happens next depends almost entirely on the cause. Many people with a bleeding ulcer are treated during a single endoscopy and a short hospital stay, then continue acid-reducing medicine at home while the ulcer heals. People who lost a lot of blood may feel tired, pale or short of breath while their red blood cell count recovers, and repeat blood tests help track that recovery. Follow-up usually includes a test, at least four weeks after treatment, to confirm that H. pylori was cleared if it was found, reviewing which pain relievers are safe to use, and sometimes repeating endoscopy to check that an ulcer has healed or to look again at an unclear finding. When melena comes from varices, cancer or chronic small bowel bleeding, the outlook and long-term care are shaped by that underlying condition.

When to Seek Help

New black, tarry stool that is not clearly explained by iron or bismuth needs medical attention right away, the same day, even if you feel well. Contact your clinician or get urgent care promptly, and do the same if dark stool comes with feeling dizzy or lightheaded, or if you take a blood thinner. Tiredness, pale skin or shortness of breath with occasional dark stools can mean slower, ongoing blood loss and anemia, and is worth a timely appointment. Vomiting blood or material that looks like coffee grounds alongside black stool is a sign of active upper digestive bleeding and needs emergency care. Call 911 if black stool comes with fainting, confusion, a racing heartbeat, or pale, cold and sweaty skin, because these can be signs of shock from heavy blood loss.

Questions to Ask Your Doctor

  1. 1.How sure are we that my dark stool is from bleeding, and where do you think it is coming from?
  2. 2.What did the endoscopy show, and is there a chance the bleeding will come back?
  3. 3.Was I tested for H. pylori, and how will we confirm the infection is gone?
  4. 4.Which pain relievers and blood thinners are safe for me now, and when should any stopped medicine be restarted?
  5. 5.How will we check that my blood count is recovering, and do I need follow-up tests?

Last reviewed • Oct 2026

Educational content, not medical advice.