Green poop usually means one of two things: you ate something green, or food moved through your intestines faster than usual. In most cases, it’s completely harmless and resolves on its own within a few days.
To understand why, it helps to know what makes poop brown in the first place. Your liver produces bile, a digestive fluid that starts out green. As bile travels through your intestines, bacteria break it down and gradually change its color from green to yellow to brown. If anything interrupts that process, whether it’s a big spinach salad or a bout of diarrhea, stool can come out green.
Foods That Turn Your Poop Green
The most common and least worrying cause is simply eating green foods. Chlorophyll, the pigment that makes plants green, can do the same to your stool. Spinach, kale, and broccoli are the usual suspects, but avocados, fresh herbs, matcha, and even pistachios (which get their color from chlorophyll) can have the same effect. The more you eat, the more vivid the color.
Blue and purple foods can also produce green stool, which surprises people. Blueberries and blackberries can temporarily shift a normal brown stool toward green. Artificial food coloring is another frequent cause. Brightly frosted cupcakes, freeze pops, fruit snacks, candy, and colored drinks continue tinting whatever they touch as they pass through your system.
Any food-related color change typically disappears within a few days once the source clears your system.
Fast Digestion and Diarrhea
When food moves through your intestines quickly, bacteria don’t have enough time to fully break down bile and convert it from green to brown. This is why green poop so often shows up alongside diarrhea. Anything that speeds up your gut can cause it: a stomach bug, food poisoning, stress, or even specific foods and drinks.
Coffee, alcohol, jalapeños, and chili peppers all have a natural laxative effect that can push food through before bile has time to change color. Colonoscopy prep and colon cleanse diets do the same thing by flushing everything through rapidly. If the green color appeared during a period of loose or frequent stools, fast transit is almost certainly the explanation.
Supplements and Medications
Iron supplements are well known for changing stool color, often to dark green or even black. This is a harmless side effect of how your body processes the extra iron, not a sign that anything is wrong. Some antibiotics can also tint stool yellow or green by disrupting the normal balance of gut bacteria, which are the very microbes responsible for converting bile to its usual brown color. Once you finish the medication or stop the supplement, stool color returns to normal.
Green Poop in Babies
Green stool in infants is common and rarely a problem. Newborns pass meconium in their first days of life, which is dark green to black and perfectly normal. Beyond that initial stage, green stool in breastfed babies can happen when a baby doesn’t finish nursing on one side and misses some of the higher-fat breast milk that comes later in a feeding. That fat content affects how the milk is digested, and the result can be greener poop. Babies on specialized hypoallergenic formula (used for milk or soy allergies) also tend to have green stools as a normal response to the formula.
When Green Poop Signals a Problem
On its own, green stool is rarely a reason for concern. The color itself isn’t dangerous. What matters more is what accompanies it. If green stool persists for more than a few days without an obvious dietary explanation, or if it comes with ongoing diarrhea, fever, or cramping, something more than food coloring may be going on. Infections, food intolerances, and conditions that affect nutrient absorption can all speed up transit time enough to keep bile from fully breaking down.
The colors that do warrant immediate attention are bright red and black (not the dark green-black from iron supplements). Both can indicate bleeding somewhere in the digestive tract. If you see either of those, that’s worth a prompt call to your doctor rather than a wait-and-see approach.

