Our Services
Medical Information
Helpful Resources
Published on: 9/13/2026
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
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.
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.
• 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
• 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
It’s important to tell harmless darkening apart from melena caused by bleeding:
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.
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.
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).
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.
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)
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.
• 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.
We would love to help them too.
For First Time Users
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.