Doctors Note Logo

Published on: 9/13/2026

What medications or foods can cause black tarry stool?

Black, tarry stool can be caused by iron supplements, bismuth subsalicylate (Pepto-Bismol, Kaopectate), activated charcoal, and some antibiotics, while blood-thinners like aspirin, NSAIDs, and anticoagulants can trigger it indirectly by causing bleeding in the upper digestive tract. Foods such as black licorice, blueberries, blackberries, dark chocolate, beets, and blood sausage may also darken stool temporarily. The key distinction is that harmless causes usually produce dark stool that is not sticky or foul-smelling, whereas true melena is black, tarry, and often signals bleeding from the stomach or small intestine. Because telling the two apart depends on timing, texture, odor, and accompanying symptoms like dizziness, vomiting, or abdominal pain, there are several important factors to consider before assuming a food or pill is to blame, all detailed below.

If your stool is black and tarry and you are not certain a medication or food explains it, do not wait it out, since upper gastrointestinal bleeding can worsen quickly and quietly; take a free, instant, online symptom check to review your medications, diet, and symptoms in a few minutes and get clear guidance on whether you should monitor at home, book a visit, or seek urgent care.

Last reviewed for medical accuracy: 09/12/2026

answer background

Explanation

Understanding “Black and Tarry” Stools (Melena)
Black, tarry stools—known medically as melena—can be alarming. In many cases, they result from harmless causes such as certain foods or over-the-counter remedies. However, melena can also signal bleeding in the upper gastrointestinal (GI) tract. This guide outlines common medications and foods that may turn your stool black or tar-like, helps you distinguish benign causes from those needing prompt medical attention, and suggests next steps if you’re concerned.

Why Stool Turns Black and Tarry

Stool color normally reflects what you eat plus the digestive processes in your gut. When blood enters the stomach or small intestine, digestive enzymes break it down, producing a dark, sticky, “tar-like” stool. But various non-bleeding substances can mimic this appearance by staining stool a dark color.

Medications That Can Cause Dark or Tarry Stool

• Iron supplements
– Ferrous sulfate, ferrous gluconate, ferrous fumarate
– Commonly taken to treat or prevent iron-deficiency anemia
– Often produce stools that are dark green, black, or tarry
• Bismuth-containing products
– Pepto-Bismol (bismuth subsalicylate), Kaopectate
– Bismuth combines with small amounts of sulfur in saliva and gastric juices, forming bismuth sulfide (black pigment)
– Stools may appear uniformly black but are usually non-sticky
• Activated charcoal
– Used in emergency treatment of certain types of poisoning
– Binds toxins in the gut but will also blacken stool
• Barium sulfate
– Given by mouth or enema for imaging tests (barium swallow, upper GI series)
– Renders stool white to chalky immediately after the test, then often darkens as remnants pass
• Medications containing heavy metals or dyes
– Some compounds with lead, bismuth, or indigo dyes (rare in modern pharmaceuticals)
– Can impart a black or bluish hue to stool

Foods and Beverages That May Darken Stool

• Black licorice and dark candies
– Artificial coloring and licorice root extract can stain stool dark
• Blueberries, blackberries, and grape juice
– Deep-colored berries and juices may leave a dark residue
• Dark chocolate and cocoa
– High concentrations of cocoa may darken stool slightly
• Beets (rarely)
– More likely to cause red or pink stool (“beeturia”) but may appear dark in small amounts
• Iron-rich foods
– Spinach, kale, prunes, blackstrap molasses
– Can darken stool if consumed in large quantities
• Artificial food dyes (E151, E180)
– Found in some processed foods, candies, and baked goods

Distinguishing Benign Staining from True Melena

It’s important to tell harmless darkening apart from melena caused by bleeding:

  1. Texture and Consistency
    – Benign discoloration: stool color changes but remains formed and soft.
    – True melena: stool is sticky, tar-like, foul-smelling, often with an oily sheen.

  2. Timing and Pattern
    – Benign causes: color change usually follows consumption of a specific food or medication and resolves within a day or two of stopping it.
    – True melena: persists or worsens, may be accompanied by other symptoms.

  3. Additional Symptoms
    – Check for fever, abdominal pain, lightheadedness, weakness, or signs of anemia (paleness, rapid heartbeat).
    – Bleeding may also produce coffee-ground vomitus or bright red blood in vomit or stool (hematemesis or hematochezia).

Medications That May Cause GI Bleeding (and Melena)

Some drugs don’t directly stain stool but can cause upper GI bleeding, leading to true melena:
• Non-steroidal anti-inflammatory drugs (NSAIDs)
– Ibuprofen, naproxen, aspirin
– Can irritate the stomach lining, increasing risk of ulcers and bleeding
• Blood thinners (anticoagulants)
– Warfarin, heparin, direct oral anticoagulants (e.g., apixaban, rivaroxaban)
– Heighten bleeding risk in presence of stomach ulcers or lesions
• Corticosteroids (when combined with NSAIDs)
– Prednisone, dexamethasone
– May exacerbate ulcer formation when used long-term alongside NSAIDs

If you’re taking these and notice black, tar-like stools, assume it could be melena and seek medical advice promptly.

What to Do If You Notice Black, Tarry Stool

  1. Review recent diet and medications
    – Ask: Did I take iron, Pepto-Bismol, activated charcoal, or eat a lot of dark berries or licorice?
    – If yes, hold the suspect item and watch for 24–48 hours.
  2. Monitor associated symptoms
    – Dizziness, faintness, rapid heartbeat → could signal significant blood loss
    – Abdominal pain, vomiting, fever → might indicate ulcer or infection
  3. Consider a free, online symptom check, using the doctor approved Ubie Symptom Checker
    – Ubie’s tool can help you understand possible causes based on your full symptom profile.
    – Click here: free, online symptom check, using the doctor approved Ubie Symptom Checker
  4. Keep track of changes
    – Note stool color, frequency, and any new symptoms
    – Share this information with your healthcare provider

When to Seek Immediate Medical Attention

Black, tarry stools can sometimes signal life-threatening conditions. Seek emergency care or call your doctor right away if you experience:
• Profuse, ongoing black stools or bright red blood in stool
• Dizziness, fainting, or rapid heart rate
• Severe abdominal pain or cramping
• Vomiting blood or coffee-ground material
• Signs of shock (sweating, paleness, confusion)

Talking to Your Doctor

Even if you suspect a harmless cause, it’s wise to discuss any unexpected change in bowel habits. When you speak to your doctor, be prepared to share:
• A list of all medications, vitamins, and supplements you take
• Details on recent meals, especially dark-colored foods or drinks
• Onset, duration, and appearance of the stool change
• Any other symptoms (pain, dizziness, fatigue)

Your doctor may recommend simple stool tests, blood work, or imaging studies. In some cases, an upper endoscopy (EGD) is needed to directly view the lining of your esophagus, stomach, and small intestine.

Key Takeaways

• Black and tarry stools can be caused by harmless substances like iron supplements, bismuth products, activated charcoal, or certain foods and dyes.
• True melena—sticky, foul-smelling, tarry stool—often signals upper GI bleeding and warrants prompt evaluation.
• Review recent dietary changes or over-the-counter remedies first; if discoloration persists or is accompanied by worrisome symptoms, seek medical care.
• Consider a free, online symptom check, using the doctor approved Ubie Symptom Checker, to help clarify possible causes.
• Always speak to a doctor about anything that could be life-threatening or serious.

If you have any concerns about black, tarry stool or other GI symptoms, don’t hesitate—speak to a doctor today.

(References)

  • * Sulkes S. "Hydrox fecalis". N Engl J Med. 1984 Jan 5;310(1):52. doi: 10.1056/nejm198401053100119. PMID: 6689746.

  • * Rabinovitz M, Pitlik SD, Halevy J, Rosenfeld JB. Ethambutol-induced thrombocytopenia. Chest. 1982 Jun;81(6):765-6. doi: 10.1378/chest.81.6.765. PMID: 7075316.

  • * Basagiannis CS, Panagoulias GS, Tentolouris N, Basoukeas S, Sambaziotis D, Ladas SD. Whipple disease. South Med J. 2010 Apr;103(4):353-6. doi: 10.1097/SMJ.0b013e3181d3949c. PMID: 20224490.

  • * Peterson ME, Fluegeman K. Cholecalciferol. Top Companion Anim Med. 2013 Feb;28(1):24-7. doi: 10.1053/j.tcam.2013.03.006. PMID: 23796485.

  • * Ranieri MM, Bradley EF, Simon AB. Meloxicam-induced thrombocytopenia. Pharmacotherapy. 2014 Feb;34(2):e14-7. doi: 10.1002/phar.1372. Epub 2013 Nov 11. PMID: 24214337.

  • * Asharaf A, Desai P, Sanati M. Emphysematous Gastritis. J Am Osteopath Assoc. 2019 Dec 1;119(12):848. doi: 10.7556/jaoa.2019.140. PMID: 31790130.

  • * Costable NJ, Greenwald DA. Upper Gastrointestinal Bleeding. Clin Geriatr Med. 2021 Feb;37(1):155-172. doi: 10.1016/j.cger.2020.09.001. PMID: 33213769.

  • * Sreenivasan A, She T, Gross S, Storch I. TeleInGEstion Remote Video Capsule Endoscope. ACG Case Rep J. 2021 May;8(5):e00609. doi: 10.14309/crj.0000000000000609. Epub 2021 May 26. PMID: 34079843; PMCID: PMC8162572.

  • * Awadie H, Zoabi A, Gralnek IM. Obscure-overt gastrointestinal bleeding: a review. Pol Arch Intern Med. 2022 May 30;132(5). doi: 10.20452/pamw.16253. Epub 2022 May 30. PMID: 35635400.

  • * Wu BS, Chu FY, Yang CY. Water reduces iron toxicity. Toxicol Ind Health. 2022 Nov;38(11):773-775. doi: 10.1177/07482337221124666. Epub 2022 Sep 5. PMID: 36062486.

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.