Green poop usually means one of two things: you ate something with a strong green or blue pigment, or food moved through your digestive system faster than usual. In most cases, it’s harmless and resolves on its own within a day or two. Occasionally, though, green stool signals an infection or other digestive issue worth paying attention to.
Why Poop Is Normally Brown
Your liver produces bile, a greenish-yellow fluid that helps break down fats in your small intestine. As bile travels through the rest of your digestive tract, bacteria in your gut convert it into a pigment called stercobilin, which gives stool its characteristic brown color. This chemical conversion takes time. If anything speeds up the process or overwhelms it with pigment, the end result can shift toward green.
Rapid Transit: The Most Common Non-Diet Cause
When food passes through your intestines faster than normal, bile doesn’t have enough time to fully break down into that brown pigment. The result is stool that still carries bile’s original green tint. This is why green poop and diarrhea often go hand in hand. Anything that accelerates digestion, whether it’s a stomach bug, food intolerance, stress, or even a very high-fiber meal, can produce this effect.
Gut transit time varies widely from person to person. Research using dye-tracking methods has shown that people with softer stools tend to have transit times around one day, while those with firmer stools may take five days or longer. So if your digestion speeds up temporarily, you may see green stool simply because the bile pigments didn’t have their usual processing time.
Foods That Turn Stool Green
Chlorophyll, the pigment that makes plants green, passes through your digestive system and can color your stool along the way. The biggest culprits are leafy greens like spinach, kale, and broccoli, especially in large quantities. Avocados, fresh herbs, matcha (powdered green tea), and pistachios all contain enough chlorophyll to have the same effect.
Blueberries and blackberries can also produce green stool, which surprises people expecting a darker color. The blue and purple pigments in these fruits sometimes mix with bile to create greenish shades instead.
Artificial food coloring is another common cause. Green and blue dyes found in candy, fruit snacks, cake frosting, freeze pops, and brightly colored drinks can tint your stool vivid shades of green. If you ate something with heavy food coloring and noticed green poop a day or two later, that’s almost certainly the explanation.
Medications and Supplements
Iron supplements are well known for turning stool dark green or even black. This is a normal reaction to unabsorbed iron passing through your system and isn’t a sign of a problem on its own. Some antibiotics can also shift stool color to green or yellow by disrupting the balance of gut bacteria that normally convert bile to its brown pigment. If you recently started a new medication and notice a color change, the timing is probably not a coincidence.
Green Stool in Babies
Green poop in infants is common and has its own set of causes. Newborns pass meconium in the first few days of life, a dark greenish-black substance that’s completely normal. After that transition, green stool in breastfed babies can happen when a baby doesn’t finish nursing on one side, missing the higher-fat milk that comes later in the feeding. That fat content affects how breast milk is digested, and skipping it can produce greener stools.
Babies on specialty formulas, particularly protein hydrolysate formulas used for milk or soy allergies, also tend to have greener stool. Breastfed infants who haven’t yet developed a full population of gut bacteria may produce green poop as well, simply because they lack the microbes that complete the bile-to-brown conversion. And just like adults, babies with diarrhea often have green stool because of faster transit.
How Long Green Stool Lasts
If a food or supplement caused the color change, your stool should return to brown within one to three days after you stop eating the trigger. Your gut transit time determines the exact window. If you’ve had diarrhea or an illness that sped things up, the color typically normalizes once your digestion settles back to its usual pace.
Green stool that persists for more than a few days without an obvious dietary explanation is worth investigating. The same goes for green stool that keeps recurring. A pattern of color changes can point to ongoing issues with how your body absorbs nutrients or how quickly food is moving through your gut.
When Green Stool Signals Something More Serious
On its own, green poop is rarely a medical emergency. But paired with certain other symptoms, it can indicate an infection or inflammatory condition. Pay attention if green stool comes with fever, significant abdominal pain, or diarrhea that lasts more than a couple of days. Dehydration from prolonged diarrhea is the most immediate risk, especially in young children.
Bacterial infections like salmonella and parasitic infections like giardia can produce green diarrhea because they inflame the intestinal lining and dramatically speed up transit. Conditions like Crohn’s disease and celiac disease can also affect bile processing enough to change stool color over time. If your stool doesn’t return to brown within a few days and you can’t trace it to something you ate, that’s a reasonable point to get it checked out.