What Does It Mean When Your Stool Is Dark Green?

Dark green stool is almost always harmless, typically caused by something you ate, a supplement you’re taking, or food moving through your digestive system faster than usual. In most cases, the color resolves on its own within a day or two once the trigger passes. Understanding why it happens can help you figure out whether your body is just doing its thing or signaling something worth paying attention to.

How Stool Gets Its Color

Your liver produces bile, a bright green fluid that helps break down fats in the small intestine. As bile travels through the rest of the digestive tract, gut bacteria go to work on it. Specific species, primarily in the Firmicutes family (common residents of a healthy gut), produce an enzyme that converts bilirubin, a yellow-green pigment in bile, into compounds called urobilinogen and eventually stercobilin. Stercobilin is what gives stool its characteristic brown color.

Anything that disrupts this process, whether it’s speeding up digestion, overwhelming bile with green pigments, or altering your gut bacteria, can leave stool looking green instead of brown. The darker the green, the more concentrated the unprocessed bile or dietary pigment tends to be.

Foods That Turn Stool Dark Green

Chlorophyll is the most common culprit. This is the pigment that makes plants green, and it can do the same to your stool when you eat enough of it. Spinach, kale, and broccoli are the usual suspects, but the list also includes avocados, fresh herbs, matcha, and even pistachios (which get their color from chlorophyll along with other plant pigments). If you’ve recently loaded up on salads or green smoothies, that’s likely your answer.

Blueberries can also produce green shades, which surprises people who expect purple. The interaction between blue pigments and yellow-green bile creates a dark green result. Artificial food dyes are another possibility. Brightly colored frosting, candy, or sports drinks contain dyes that keep tinting material as it moves through your system. A cupcake with green or blue frosting can produce a strikingly dark green stool the next day.

Iron Supplements and Medications

If you recently started taking iron supplements, dark green or even black stool is a well-known side effect. Oral iron, particularly ferrous sulfate, reacts with digestive fluids and changes color as it passes through the gut. This effect is so predictable that clinical researchers have noted it makes blinding in iron supplement studies nearly impossible, since participants can tell they’re in the treatment group just by looking at their stool.

Iron supplements also come with other gastrointestinal side effects like nausea, constipation, and abdominal pain. On top of that, soluble oral iron can shift the balance of gut bacteria, promoting potentially harmful species at the expense of beneficial ones. If the side effects bother you, talk to your provider about alternative formulations or dosing strategies, but the stool color change alone is not a sign of a problem.

Antibiotics can also produce green stool by disrupting the gut bacteria responsible for converting bile pigments to brown. Without enough of those bacteria doing their job, bile passes through in its original greenish state.

Rapid Transit Through the Gut

When food moves through your intestines faster than normal, bile doesn’t have enough time to be fully broken down by gut bacteria. The result is stool that still carries the green color of unprocessed bile. This is one of the most common explanations for unexpectedly green stool, especially when it’s also loose or watery.

Anything that speeds up digestion can trigger this. Stress, caffeine, a large or fatty meal, food intolerances, or mild stomach bugs can all shorten transit time. You’ll often notice the green color alongside diarrhea or softer-than-usual stools, and it typically clears up once your digestion returns to its normal pace.

Infections and Digestive Illness

Bacterial infections like Salmonella and E. coli, viral infections like norovirus, and parasites like Giardia can all cause green diarrhea. These infections create a rapid “gush” of unabsorbed bile through the intestines, leaving no time for the normal color conversion. The green stool in these cases is usually accompanied by other symptoms: cramping, nausea, fever, or watery diarrhea that comes on suddenly.

Giardia is worth knowing about specifically because it’s a common waterborne parasite that causes prolonged, foul-smelling diarrhea that can be green or yellow. It’s typically diagnosed through a stool test that looks for microscopic cysts. If your green stool comes with persistent diarrhea lasting more than a few days, especially after travel or drinking untreated water, an infection is worth ruling out.

Dark Green Stool in Babies

Green stool in infants is almost always normal. A newborn’s very first stools, called meconium, are thick, black, and tarry. Within a few days, as breastfeeding or formula feeding begins, stool transitions to green or yellow with a more liquid consistency. Breastfed babies typically stay in the green-yellow-brown range for as long as they’re nursing, and formula-fed babies produce similar colors, sometimes slightly lighter.

Dark green baby poop is completely normal. It doesn’t indicate illness or a problem with feeding. The color can shift from one diaper to the next depending on how quickly milk moves through the baby’s system and how much bile is present. Yellow, orange, brown, and green are all within the healthy range for infants.

When the Color Matters

Dark green stool on its own, without other symptoms, rarely signals anything serious. The color should return to brown within one to three days after the dietary cause passes or your digestion normalizes. If you can trace it to leafy greens, iron supplements, or a bout of diarrhea, you have your explanation.

The colors that do warrant prompt attention are bright red and black. Bright red stool can indicate bleeding in the lower digestive tract, while black, tarry stool (distinct from the dark green of iron supplements) can signal bleeding higher up, such as in the stomach or upper intestine. If your stool is truly black rather than very dark green, and you’re not taking iron, that’s a reason to seek medical attention quickly. Green stool accompanied by high fever, bloody diarrhea, severe abdominal pain, or signs of dehydration also deserves a closer look.