Green poop is almost always harmless. It usually means food moved through your intestines faster than normal, or you ate something with a lot of green pigment. In most cases, your stool color will return to its usual brown within a day or two without any action on your part.
Why Poop Is Normally Brown
Your liver produces bile, a greenish-yellow fluid that helps you digest fats. When bile enters your small intestine, bacteria go to work breaking it down. They convert a compound called bilirubin into a pigment called stercobilin, which is dark orange-brown. That pigment is what gives stool its characteristic color.
This breakdown process takes time. If food moves through your digestive tract at a normal pace, bacteria have enough time to fully convert the green bile pigments into brown ones. When something speeds up that transit, whether it’s an infection, a food sensitivity, or just a particularly active digestive day, the bile doesn’t get fully processed. The result is stool that still carries some of that original green color.
Foods That Turn Stool Green
The most common and least concerning cause of green poop is simply eating a lot of green food. Chlorophyll, the pigment that makes plants green, can color your stool the same way. Spinach, kale, broccoli, avocados, pistachios, fresh herbs, and matcha (powdered green tea) are all common culprits. Blueberries can also produce greenish shades, despite being blue themselves.
Artificial food coloring is another frequent cause. Brightly frosted cupcakes, green sports drinks, or candy with synthetic dyes will continue tinting whatever they touch as they pass through your system. If you can trace your green stool back to something you ate in the last 24 to 48 hours, that’s almost certainly your answer.
Iron Supplements and Medications
Iron supplements commonly turn stool a very dark green that can look almost black. This is normal and some doctors actually consider it a sign that the supplement is being absorbed properly. If the color change bothers you, lowering your dose (with your doctor’s input) will typically resolve it. Certain antibiotics can also cause green stool by disrupting the gut bacteria responsible for converting bile to its usual brown pigment.
Infections That Cause Green Stool
When green stool comes with diarrhea, cramping, or fever, an infection may be the cause. Bacterial infections like Salmonella and E. coli, viral infections like norovirus, and parasites like Giardia can all produce green diarrhea. The mechanism is straightforward: these infections speed food through your intestines so quickly that bile rushes through without being broken down. The greenish color you see is essentially unprocessed bile.
Clostridioides difficile (C. diff), a bacterial infection that sometimes follows antibiotic use, is often suspected when green stool appears in a hospital setting. Interestingly, a pilot study published in Infection Control & Hospital Epidemiology found that green-tinted stool was not statistically more common in confirmed C. diff cases than in controls. The association exists in clinical lore more than in data.
Green Poop in Babies
Green stool in infants has its own set of causes, and most of them are benign. According to the Mayo Clinic, common reasons include not finishing a full feeding on one breast (which means the baby gets more of the lower-fat foremilk and less of the higher-fat hindmilk, changing how milk is digested), being fed protein hydrolysate formula (used for babies with milk or soy allergies), and simply having fewer of the gut bacteria that process bile. Breastfed newborns in particular may not yet have enough intestinal bacteria to complete the green-to-brown conversion.
Newborn meconium, the very first stool, is dark green to black and is completely normal. Over the first few days of life, stool gradually transitions to yellow or tan in breastfed babies and tan to brown in formula-fed babies.
After Gallbladder Removal
If you’ve had your gallbladder removed and notice green stool, the likely explanation is excess bile reaching your large intestine. Without the gallbladder to store and concentrate bile between meals, bile flows more continuously into the intestine. This extra bile can act as a laxative, speeding up transit and producing looser, greener stools. For many people this effect fades over weeks to months as the body adjusts, though some experience it intermittently long-term.
Colors That Do Need Attention
Green poop on its own is rarely a reason to worry. The colors that warrant prompt medical attention are bright red and black (tarry). Both can indicate bleeding in the digestive tract: red from the lower intestines, black from higher up in the stomach or small intestine. White or clay-colored stool can signal a bile duct blockage and also deserves a call to your doctor.
If your green stool persists for more than a few days without an obvious dietary explanation, or if it comes with fever, severe cramping, or signs of dehydration, those are reasonable reasons to check in with a healthcare provider. But a single green bowel movement after a big spinach salad? That’s just your dinner saying goodbye.

