Greenish-black stool is usually caused by something you ate, drank, or took as a supplement or medication. The color sits at the intersection of two pigment shifts: green from unprocessed bile or chlorophyll-rich foods, and black from iron, bismuth-based medications, or certain food dyes. In most cases, it’s harmless and resolves within a day or two. The important exception is upper gastrointestinal bleeding, which produces a distinctly tarry, foul-smelling black stool called melena.
How Stool Normally Gets Its Color
Your liver produces bile, a yellow-orange fluid that helps digest fats. As bile travels through your intestines, bacteria break it down through a series of chemical steps, eventually converting it into a brown pigment called stercobilinogen. Specific bacteria, including certain Clostridia species working alongside E. coli, handle most of this conversion. The process takes time, which is why transit speed matters so much for stool color.
When food moves through your gut at a normal pace, bile completes its full color change from yellow-green to brown. When transit speeds up, bile doesn’t finish converting. The result is stool that retains a green tint. If that green mixes with other darkening factors (iron supplements, dark-colored foods, or certain medications), you get the greenish-black shade you’re seeing.
Common Dietary Causes
Several everyday foods can push stool toward green, black, or a blend of both:
- Leafy greens and chlorophyll-rich foods: Spinach, kale, broccoli, avocados, herbs, matcha, and pistachios are all high in chlorophyll, the pigment that makes plants green. Eat enough of them and your stool turns bright to dark green.
- Blueberries: The deep blue pigment can make stool look so dark it appears almost black, especially in large quantities.
- Artificial food dyes: Brightly colored candy, frosting, and sports drinks continue tinting matter as it passes through your digestive tract. When multiple dye colors mix together, the result can look black.
If you had a big spinach salad alongside a handful of blueberries, for example, the combination of green chlorophyll and dark blue pigment easily produces greenish-black stool the next day. This kind of color change is completely harmless and clears up once those foods work through your system.
Iron Supplements and Medications
Iron supplements are one of the most common non-food causes of dark green to black stool. Your body absorbs only a fraction of supplemental iron, and the unabsorbed portion oxidizes as it moves through the gut, turning stool very dark. This is expected and not a sign of a problem.
Bismuth subsalicylate, the active ingredient in Pepto-Bismol, is another frequent culprit. When bismuth reaches your colon, it reacts with hydrogen sulfide gas produced by gut bacteria, forming a compound called bismuth sulfide. This compound is insoluble and jet black. Even a single dose can darken your stool noticeably, and the effect can last a couple of days after you stop taking it.
If you’re taking iron and also eating green vegetables, the combination naturally produces that greenish-black color: green from chlorophyll or partially converted bile, black from oxidized iron.
Fast Digestion and Bile Changes
Anything that speeds up your digestion can give stool a green cast. Diarrhea, whether from a stomach bug, food intolerance, or stress, rushes intestinal contents through before gut bacteria can finish converting bile pigments from green to brown. The faster the transit, the greener the result.
This explains why greenish-black stool sometimes shows up during illness. You might have diarrhea (producing green from rapid transit) alongside reduced appetite and a nearly empty gut (producing darker, more concentrated stool). The two effects overlap to create that dark greenish tone. Once your digestion returns to its normal pace, the color typically follows.
When Dark Stool Signals Bleeding
The one scenario where very dark stool requires prompt attention is upper gastrointestinal bleeding. When blood enters the stomach or upper small intestine, digestive enzymes break it down as it travels through the gut. By the time it reaches the colon, it turns stool jet black. This is called melena, and it has specific characteristics that set it apart from food or supplement-related color changes.
Melena looks and feels different from ordinary dark stool. It’s typically tar-like and sticky, almost like asphalt. It also has a distinctly strong, offensive odor that’s noticeably worse than normal stool. The smell comes from blood being digested over the course of its journey through the intestinal tract. Stool that’s dark because of blueberries, iron, or bismuth won’t have that same sticky texture or unusually foul smell.
A small amount of upper GI bleeding can also make stool look dark brown rather than fully black, so color alone isn’t always a reliable indicator. Pay attention to accompanying symptoms: dizziness, lightheadedness, vomiting (especially vomiting blood or material that looks like coffee grounds), and unexplained fatigue. These suggest blood loss that needs medical evaluation right away.
How to Narrow Down the Cause
The simplest approach is to think back over the last 24 to 48 hours. Did you eat a lot of leafy greens, blueberries, or brightly colored foods? Start a new iron supplement? Take Pepto-Bismol? Have a bout of diarrhea? If any of these apply, the greenish-black color almost certainly has a straightforward explanation.
Try removing the suspected cause for two to three days. Dietary and supplement-related color changes clear up quickly once the triggering substance is out of your system. If the color persists after you’ve ruled out food, supplements, and medications, or if you notice a tarry consistency, unusually foul odor, or any symptoms like dizziness or vomiting, that’s worth a conversation with your doctor sooner rather than later.