What Are the Causes of Black Stool?

Bowls of blueberries, black licorice, and chewable pepto bismol

Verywell / Anastasia Tretiak

Table of Contents
View All
Table of Contents

Black stool is not always a sign of a bigger problem. There are many reasons stool could appear black, and iron supplements or even Oreos could be to blame. This is especially true for people who have had ostomy surgery or a colectomy, because food is not being digested as fully as it is in people who have not had any abdominal surgery.

However, if you have had gastrointestinal bleeding in the past, there is a foul smell, or the problem goes on for longer than a few days, that's reason to see your doctor.

potential causes of black stool

Verywell / Laura Porter

Quick Facts About Black Stool

  • Most cases of black stools are from eating black foods or iron supplements.
  • The most common condition causing black stools is a bleeding ulcer.
  • Black stools caused by blood indicate a problem in the upper digestive tract.
  • Blood in the stool can be detected through a stool test.
  • Black stool along with pain, vomiting, or diarrhea is cause to see a doctor right away.
  • If blood in the stool is suspected, you should contact your doctor as soon as possible.

Food and Supplements

A black stool could be caused by food, supplements, medication, or minerals. Iron supplements, taken alone or as part of a multivitamin for iron-deficiency anemia, may cause black stools or even green stools.

Foods that are dark blue, black or green may also cause black stools. Substances that are often found to cause black stools include:

If you're seeing black stools and can trace it back to a food you ate, that's OK. However, a doctor should be consulted immediately if black stools cannot be traced back to a food, an iron supplement, or Pepto-Bismol.

If there's no obvious reason for a black stool (such as food, a supplement, or a medication like Pepto-Bismol), it could be time to look for blood in the stool. A variety of medical reasons can cause black stools that are also tarry with a foul smell.

Blood in the Stool (Melena)

Blood that comes from higher up in the digestive tract, such as the esophagus or stomach, may turn stool black, which is called melena. As the blood passes through the body and interacts with enzymes in the digestive process, the blood changes from red to black. This makes it a bit more difficult to see in or on the stool than if there is red blood.

Red blood in or on the stool, called hematochezia, is typically from lower in the digestive tract, such as the rectum or the colon. Blood from lower in the gastrointestinal system will be exposed to less of the digestive process and may keep its red color.

If the black stool is accompanied by other symptoms such as feeling faint or actually fainting, dizziness, pain, or vomiting, especially if there's blood in it or it looks like coffee grounds, contacting a doctor immediately is important because it could be a medical emergency.

For some people, there may already be a known risk factor for bleeding in the digestive tract. Talk to a doctor about the potential for bleeding and blood in the stool if any of these potential risk factors are present:

  • Liver disease
  • Cancer
  • Dieulafoy lesion (a rare condition of the stomach)
  • Erosive esophagitis (inflammation in the esophagus)
  • Erosive gastritis (inflammation in the stomach)
  • Intestinal ischemia (blood supply to the intestines is cut off)
  • Peptic ulcers
  • Tear in the esophagus (Mallory-Weiss tear)
  • Varices (abnormally large veins) in the esophagus or stomach


The black color alone is not enough to determine that it is in fact blood that is being passed in the stool. Therefore, a doctor will need to confirm whether there actually is blood in the stool. This can be done in a doctor's office through a rectal exam. Or, it can be done at home with a kit that is used to collect a small stool sample, which is then sent to a lab for evaluation.

Blood in the stool that is dark could be caused by several different conditions, including a bleeding ulcer, gastritis, esophageal varices (enlarged veins), or a tear in the esophagus from violent vomiting (Mallory-Weiss tear). The tarry appearance of the stool is from the blood having contact with the body’s digestive juices.

After melena is diagnosed, a physician may order other diagnostic tests to determine the cause and the exact location of the bleeding

The test that will likely be most imperative in determining the cause of the bleeding will be an esophagogastroduodenoscopy (EGD). Other tests that might be done could include X-rays, blood tests, colonoscopy, stool culture, and barium studies.

Causes of Melena

Blood in the stool may come from any of several sources along the digestive tract.


An ulcer is a type of sore on the lining of the stomach that can cause bleeding and result in melena. Contrary to popular belief, stomach ulcers are not usually caused by stress or spicy food (although these can aggravate an already existing ulcer).

In fact, stomach ulcers are typically caused by an infection with a bacterium called Helicobacter pylori (H. pylori). Antibiotics are normally prescribed to eliminate the infection, and sometimes an acid reducer.

Long-term use of pain medications known as nonsteroidal anti-inflammatory drugs (NSAIDS) are another cause of stomach ulcers. NSAIDs include common over-the-counter drugs such as ibuprofen, naproxen sodium, and aspirin. Some NSAIDs are prescribed by physicians.

NSAIDs can irritate the stomach by weakening the lining's ability to resist acid made in the stomach. For this same reason, NSAIDs have an adverse effect on Crohn's disease and ulcerative colitis. Stomach ulcers caused by NSAIDs usually heal after the offending drug is discontinued.


Gastritis is the inflammation of the stomach lining. This inflammation can be caused by too much alcohol or food, eating spicy foods, smoking, infection with bacteria, or by the prolonged use of NSAIDs. Gastritis can also develop after surgery or trauma, or it may be associated with already existing medical conditions.

Esophageal Varices

Esophageal varices are dilated veins in the wall of the lower esophagus or upper stomach. When these veins rupture, they may cause bleeding which can cause blood to appear in the stool or in vomit. Esophageal varices are a serious complication resulting from portal hypertension (high blood pressure) brought on by cirrhosis of the liver.

Mallory-Weiss Tear

This is a tear in the mucous membrane that joins the esophagus and the stomach. If this tear bleeds, it can result in melena. This condition is fairly rare (only occurring in four of 100,000 people) and may be caused by violent vomiting, coughing, or epileptic convulsions.

A Word From Verywell

In most cases, a black stool is from food and isn't something to be concerned about. If you have black stools that you cannot attribute to a food or to iron supplements, see your doctor as soon as possible.

A black stool once in a while, and that always occurs after eating foods that are dark in color, is typically nothing to worry about. If the black color is accompanied by other symptoms such as vomiting, diarrhea, or acute pain, seek medical attention immediately.

Was this page helpful?
Article Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Kim BS, Li BT, Engel A, et al. Diagnosis of gastrointestinal bleeding: A practical guide for clinicians. World J Gastrointest Pathophysiol. 2014;5(4):467-78. doi:10.4291/wjgp.v5.i4.467

  2. Johnson-wimbley TD, Graham DY. Diagnosis and management of iron deficiency anemia in the 21st century. Therap Adv Gastroenterol. 2011;4(3):177-84. doi:10.1177/1756283X11398736

Additional Reading