Black Stool: What It Means and How to Treat It

Medically Reviewed By Youssef (Joe) Soliman, MD
Was this helpful?

Black stool occurs for a number of reasons. In some cases, it may be a side effect of a medication or a result of the food you have consumed. However, it may also suggest that there is a bleed in your upper gastrointestinal (GI) tract. This can be serious and should not be ignored. If your stool is black, this may be due to bleeding in the intestinal tract. Dark stool that contains blood from the upper GI tract is sometimes called melena. This can indicate a serious medical condition.

Black feces can occur due to damage to the esophagus, stomach, or small intestine. It is important to always pay attention to stool that appears black and tarry, particularly if it persists.

Read on to learn more about the possible causes of black stool and when to contact a doctor.

What causes black stool?

There is a pattern of toilet paper against a pink background.
Audrey Shtecinjo/Stocksy United

One of the main causes of black stool is a bleed in the upper GI tract, which includes the esophagus, stomach, and small intestine. Upper GI tract bleeds affect around 80–150 out of 100,000 people each year.

Upper GI bleeds can occur as a result of:

A bleed from a tumor in the upper GI tract can signify cancer, including:

Other cancers, such as breast cancer and lung cancer, can spread to the stomach, which can also lead to bleeding in the upper GI tract.

Peptic ulcer disease is the most prevalent cause of upper GI bleeds, accounting for up to 40–50% of cases.

Although you should never ignore black or tarry feces, it does not always indicate cancer. Other causes of black stool include medication side effects and some foods.


Certain foods can cause your stool to have a dark or black appearance. These include:

  • blueberries
  • dark leafy vegetables
  • black licorice
  • Oreo cookies
  • grape juice

It is also possible for Pepto-Bismol to cause your stool to appear black. This happens when the active ingredient, bismuth, comes into contact with sulfur in your saliva and digestive system.


Some medications can also result in black stool. One example is aspirin, which can contribute to bleeding in the upper GI tract. Taking aspirin combined with P2Y12 antiplatelet drugs makes this more likely.

Anticoagulants (blood thinners), such as warfarin, can also contribute to the likelihood of having black feces.

Ferrous fumarate and other medications for iron deficiencies may also result in black stool. Contact your doctor if you notice that your stool becomes black and sticky when taking iron.

Learn more about bloody stool here.

How do I treat black stool?

The type of treatment required will depend on the cause of the black stool. This can include making changes to your diet, taking over-the-counter medications, and seeking medical intervention.

Dietary changes

If black stool occurs due to consuming black or dark foods, reducing your intake of those foods can help prevent this. However, black feces that occurs as a result of eating dark foods is not usually a cause for concern.

Iron supplements can also cause black stool. It is important to contact your doctor before changing or stopping any supplements you are taking, particularly if you take iron for an iron deficiency.

Medical treatment

You may require medical treatment to treat the root cause of black stool. This will depend on the condition but may involve:

  • a blood transfusion, if a bleed in the upper GI tract results in the excessive loss of red blood cells
  • proton pump inhibitors to reduce the production of acid
  • injection therapy, wherein a doctor will inject a medication directly into the source of the bleeding
  • thermal techniques, which involve applying heat probes to cauterize the area that is bleeding
  • angiographic embolization, during which coils are placed onto a catheter to stop blood flow to the injured site
  • surgery to apply stitches to lacerations

Cancer treatment

If your black stool is a symptom of a cancer of the upper GI tract, your surgeon may be able to surgically remove the tumor and affected areas.

If the cancer has not spread, your doctor may recommend radiation therapy.

If it is not possible to operate on the cancer, or if it has spread to other parts of your body, your doctor may recommend radiation therapy or chemotherapy.

What symptoms do I need to look out for?

You may experience symptoms alongside black and tarry stool that can help a doctor identify the underlying cause.

If you have a bleed in the esophagus, you may experience:

When should I contact a doctor?

Contact your doctor if you notice that your stool is black or tarry. They can arrange for tests to identify the underlying cause.

Seek immediate medical attention if you experience any of the following symptoms alongside black and bloody stool:

How do doctors diagnose the cause of black stool?

To help diagnose the cause of your black stool, your doctor will ask for information about when you first noticed it and how frequently it occurs.

They may also arrange for tests to take a closer look at your upper GI tract. These tests can include:

  • Upper endoscopy: The doctor will use a thin device with a camera at the end to look inside the upper digestive tract. Learn more here.
  • Stool culture: In some cases, your doctor may take a sample of your black stool to send to the laboratory for analysis.
  • Blood tests: Blood tests can help identify any possible medical causes of black stool.

If your doctor feels that your black stool may be due to cancer, they will arrange for tests to diagnose this. Tests for this purpose can include:

  • an MRI scan
  • a PET scan
  • a CT scan
  • an endoscopic ultrasound
  • endoscopic retrograde cholangiopancreatography
  • magnetic resonance cholangiopancreatography

What color should my stool be?

Although there is no “correct” stool color, a healthy bowel movement is typically brown. This brown color is due to the presence of bile and bilirubin, which occur when dead red blood cells naturally break down in the intestine.

If your stool is any color other than brown, it may be due to something you have consumed or a result of a medical condition. The table below provides more information about stool colors and what they might mean.

BlackBlack stool may occur as a result of a bleed in the upper GI tract. It may also occur if you eat dark foods, take iron supplements, or use aspirin.
RedBright red or bloody stool may be a symptom of a bleed in the lower GI tract. It can also occur due to hemorrhoids, anal fissures, fistulas, or consuming large amounts of red foods.
BlueBlue stool tends to occur if you eat a lot of blue foods, such as blueberries. Eating foods that contain blue dye can also cause blue stool.
OrangeOrange stool can occur if you consume excessive amounts of beta-carotene from supplements or vegetables. These include carrots, squash, sweet potatoes, and some leafy greens.
YellowYellow or pale stool may occur if there is too much bile present. Pale yellow stool can also be a symptom of liver or gallbladder problems. Bright yellow diarrhea can indicate giardiasis, which is a stomach bug caused by a parasite.
GreenGreen stool typically occurs if you eat a lot of leafy green vegetables or foods with green food coloring. You may also notice green feces if it passes too quickly through the large intestine, which occurs when bile does not have enough time to break down. Learn more here.

Contact your doctor if you notice blood in your stool or changes in your stool or bowel habits that persist.


Black stool may occur as a result of a bleed in the upper GI tract. This may be due to damage to the esophagus, stomach, or upper intestine. An upper GI bleed may indicate cancer, but this is not always the case.

To diagnose the cause of your black feces, a doctor will carry out a procedure called upper endoscopy. They may also arrange for blood tests and an analysis of stool culture, as well as tests to detect the presence of cancer.

Treatment will depend on the cause of the black stool, but it can include getting a blood transfusion, stitching the site of the bleed, or undergoing surgery to remove a tumor.

Contact your doctor if you have persistent black stool, blood in your stool, or any other changes in your stool or bowel habits.

Was this helpful?
Medical Reviewer: Youssef (Joe) Soliman, MD
Last Review Date: 2022 Apr 29
View All Digestive Health Articles
THIS TOOL DOES NOT PROVIDE MEDICAL ADVICE. It is intended for informational purposes only. It is not a substitute for professional medical advice, diagnosis or treatment. Never ignore professional medical advice in seeking treatment because of something you have read on the site. If you think you may have a medical emergency, immediately call your doctor or dial 911.