Green poop is almost always caused by something you ate, a supplement you’re taking, or food moving through your digestive system faster than usual. The reason comes down to bile, a green fluid your liver produces to help digest fat. Normally, bacteria in your gut transform bile from green to brown as it travels through your intestines. When that process gets interrupted or overwhelmed, your stool stays green.
Why Poop Is Usually Brown
Your liver constantly produces bile, which starts out a yellowish-green color. As bile moves through your small and large intestine, bacteria break it down into a series of pigments. First, bacterial enzymes convert it into a colorless compound called urobilinogen. Then, further along in the colon, that substance is converted into the brown pigment that gives stool its characteristic color.
This whole process takes time. Anything that speeds food through your gut, floods your system with green pigments, or disrupts your gut bacteria can short-circuit the color change and leave your stool green.
Foods That Turn Stool Green
The most common cause is simply eating a lot of green or richly pigmented foods. Spinach, kale, broccoli, avocados, and fresh herbs all contain chlorophyll, the pigment that makes plants green. Eat enough of them and that pigment passes straight through. Pistachios and matcha (powdered green tea) have the same effect for the same reason.
Blueberries can also produce green stool, which surprises people who expect purple or dark blue. The interaction between the berry’s pigments and bile can shift the color toward green. Artificial food dyes are another frequent culprit. Brightly frosted cupcakes, colored candy, or drinks with synthetic dyes can produce vivid, unnatural-looking green in the toilet bowl. If you recently ate something with heavy food coloring, that’s almost certainly the explanation.
Supplements and Medications
Iron supplements are a well-known cause of dark green or even blackish-green stool. The iron reacts with digestive enzymes as it passes through, and the resulting color can look alarming if you aren’t expecting it. This is harmless.
Certain antibiotics can also tint stool yellow or green. Antibiotics work by killing bacteria, and since gut bacteria are responsible for converting bile to its final brown pigment, disrupting that bacterial population can leave bile partially transformed. The green color typically resolves once you finish the course and your gut bacteria recover.
Fast Transit: When Food Moves Too Quickly
Diarrhea from any cause, whether it’s a stomach bug, food poisoning, or stress, can produce green stool. The reason is straightforward: bile doesn’t have enough time in the colon for bacteria to finish converting it to brown. The faster things move, the greener the result. This is one of the most common explanations when green stool appears suddenly and you can’t trace it to a specific food.
Conditions that chronically speed up digestion, like irritable bowel syndrome during a flare, can have the same effect.
Green Stool After Gallbladder Removal
If you’ve had your gallbladder removed, you may notice green stool more often. The gallbladder normally stores and concentrates bile, releasing it in controlled amounts when you eat fat. Without it, bile flows continuously from the liver directly into the intestine. This can mean more bile acids reaching the large intestine than usual, which sometimes acts as a mild laxative, speeding transit and giving stool a greenish tint. For most people this improves over weeks to months as the body adjusts.
Green Poop in Babies
Green stool in infants is extremely common and rarely a problem. Newborns pass meconium in the first few days, which is dark greenish-black, then transition to lighter stools. After that initial period, several things can keep stools green. Babies who don’t finish breastfeeding on one side may miss the higher-fat hindmilk, which affects how milk is digested and can produce green output. Breastfed infants sometimes lack the full range of intestinal bacteria needed to convert bile to brown, so green is a normal variation for them.
Babies on protein hydrolysate formula (used for milk or soy allergies) also tend to produce green stool. And just like in adults, diarrhea in babies speeds transit enough to keep bile green. If your baby seems comfortable, is feeding well, and is gaining weight, green diapers on their own are not a concern.
When Green Stool Signals a Problem
On its own, green poop is almost never dangerous. The color should return to brown within a day or two once the cause passes. If it persists beyond a few days and you can’t connect it to something you ate or a supplement you’re taking, it’s worth paying attention.
The color itself isn’t the red flag. What matters is what comes with it. Green stool paired with fever, persistent diarrhea, abdominal pain, or blood is worth a call to your doctor. Frequent, unexplained color changes over weeks could also point to a digestive issue that needs evaluation. But if you just demolished a giant spinach salad or started a new iron supplement, you can safely blame that and move on.

