Forest green poop is almost always harmless. The most common causes are eating lots of green vegetables, consuming foods with artificial dyes, taking iron supplements, or having food move through your intestines faster than usual. In most cases, the color returns to brown within a day or two once the trigger passes.
How Poop Gets Its Brown Color
Your liver produces bile to help digest fats, and bile starts out green. The green pigment, called biliverdin, gets converted through a chain of chemical steps as it travels through your intestines. Gut bacteria play a starring role here: they break bile pigments down into a compound called urobilinogen, which then oxidizes into stercobilin, a dark orange-brown pigment. Stercobilin is what gives stool its characteristic brown color.
This entire process takes time. Food spends about six hours moving through your stomach and small intestine, then another 36 to 48 hours in the large intestine. If anything speeds up that timeline, the bacteria in your colon don’t get enough time to fully convert the green bile pigments to brown. The result is stool that comes out somewhere on the green spectrum.
Rapid Transit: The Most Overlooked Cause
When food moves through your digestive tract faster than normal, bile doesn’t complete its color transformation. This is why diarrhea from any cause (a stomach bug, food intolerance, stress, too much coffee) often produces green stool. It’s not the illness itself turning things green. It’s the speed. Anything that shortens the 36-to-48-hour window your colon normally needs will shift stool color toward green, even if you haven’t eaten anything unusual.
Foods That Turn Stool Green
Chlorophyll, the pigment that makes plants green, passes through your digestive system largely intact. If you eat a large salad, a green smoothie, or a generous serving of cooked greens, the chlorophyll can overpower the brown pigments and tint your stool bright or forest green. The most common culprits are spinach, kale, and broccoli, but avocados, fresh herbs, matcha, and even pistachios carry enough chlorophyll to have an effect.
Artificial food dyes are equally potent. Blue and green dyes found in candy, cake frosting, freeze pops, fruit snacks, and brightly colored drinks keep tinting material as they travel through your gut. Blue dye is a particularly sneaky one: mixed with the yellow-green of bile, it produces a vivid green that can look alarming in the toilet bowl. If you recently ate something with intense coloring (birthday cake frosting, blue sports drinks, grape-flavored candy), that’s likely your answer.
Iron Supplements and Medications
Iron supplements are one of the most reliable ways to change stool color. Unabsorbed iron reacts with compounds in your gut and can turn stool dark green or even black. This is expected and not dangerous, though it can look startling if you’ve just started a new supplement. The color change typically persists as long as you’re taking the iron.
Certain antibiotics can also shift stool to yellow or green. Antibiotics disrupt the balance of gut bacteria responsible for converting bile pigments to their final brown form. Once you finish the course and your gut bacteria recover, the color normalizes.
Infections That Cause Green Stool
Several common infections can produce green diarrhea, usually because they speed up intestinal transit and increase fluid secretion. Bacterial infections like Salmonella and E. coli, typically picked up from contaminated food, cause watery diarrhea along with stomach cramps and sometimes fever. Norovirus, the highly contagious stomach bug responsible for many outbreaks, causes similar symptoms including green-tinged diarrhea, vomiting, and stomach pain.
Giardia, a parasitic infection often picked up from contaminated water, is particularly associated with green stool. It tends to produce foul-smelling, greasy diarrhea along with gas, bloating, and stomach cramps. Clostridioides difficile (C. diff), a bacterial infection that sometimes develops after antibiotic use, can also produce green diarrhea.
The key difference between infection-related green stool and dietary green stool is the accompanying symptoms. If the green color shows up alongside diarrhea lasting more than a couple of days, fever, severe cramping, or signs of dehydration, an infection is more likely than something you ate.
Green Stool in Babies
Green poop is especially common in infants and usually not a concern. Breastfed babies may produce green stool if they don’t fully empty one breast before switching sides, which means they get more of the thinner, lower-fat milk and less of the fat-rich hindmilk. This changes how the milk is digested and can shift stool color. Babies on specialized protein hydrolysate formulas (used for milk or soy allergies) also commonly have green stool. Newborns pass meconium in their first days of life, which is dark green to black and completely normal.
Babies also have less established gut bacteria than adults, which means the bile-to-brown conversion process is less efficient. As their microbiome matures over the first months of life, stool color tends to stabilize.
When Green Stool Signals a Problem
Green stool on its own, without other symptoms, is rarely a medical concern. The color should return to its usual shade within one to three days after the trigger (a big salad, a stomach bug, a dye-heavy meal) is gone. If green stool persists for more than a few days with no obvious dietary explanation, it may point to an ongoing digestive issue worth investigating.
The colors that do warrant prompt attention are bright red and black. Both can indicate bleeding in the digestive tract. Red suggests bleeding lower in the intestines or rectum, while black, tarry stool can signal bleeding higher up in the stomach or small intestine. (The exception: iron supplements and bismuth-based products like Pepto-Bismol also turn stool black without any bleeding involved.) If green stool is accompanied by blood, persistent fever, or signs of dehydration, getting evaluated sooner rather than later is a good idea.

