Green poop is almost always harmless. The most common cause is simply eating a lot of green vegetables or foods with green dye, though it can also happen when food moves through your digestive system faster than usual. In rare cases, green stool signals an infection, but you’d typically have other symptoms like cramping, fever, or diarrhea alongside it.
Why Poop Is Normally Brown
Your liver produces bile, a yellow-green fluid that helps digest fats. As bile travels through your intestines, bacteria break it down and chemically transform it, gradually shifting its color from green to yellow to brown. That final brown shade is what most people see day to day. When something disrupts that process, whether it’s the food you ate or how fast everything moved through, the color changes.
Foods That Turn Stool Green
The most straightforward explanation is your diet. Chlorophyll, the pigment that makes plants green, can do the same to your stool. Spinach, kale, and broccoli are the classic culprits, but avocados, fresh herbs, matcha, and even pistachios contain enough chlorophyll to shift things noticeably. The more you eat, the more vivid the green.
Artificial food dyes are another common cause. Brightly frosted cupcakes, green sports drinks, or candy with heavy dye loads keep tinting whatever they touch all the way through your digestive tract. If you ate something unusually colorful in the last day or two, that’s likely your answer.
Iron Supplements and Antibiotics
Iron supplements frequently turn stool dark green or even blackish green. This catches a lot of people off guard, but it’s a well-known side effect and not a sign of a problem. The unabsorbed iron reacts with digestive enzymes and changes color on its way out.
Some antibiotics can also tint stool green or yellow-green. Antibiotics disrupt the normal gut bacteria responsible for converting bile to its usual brown pigment. If your stool changed color shortly after starting a new medication, the timing is probably not a coincidence.
Rapid Transit: When Food Moves Too Fast
This is the other big category. When food passes through your large intestine faster than normal, bile doesn’t have enough time to fully break down. It stays closer to its original green color instead of completing the shift to brown. You’ll often notice this during a bout of diarrhea, regardless of what caused it.
Anything that speeds up digestion can trigger this: stress, a stomach bug, too much coffee, food intolerances, or even a particularly large or fatty meal. The green color in these cases is really just a sign of speed, not damage.
Infections That Cause Green Stool
Certain infections can produce green diarrhea specifically. Bacterial infections like Salmonella and E. coli, viral infections like norovirus (the common stomach flu), and parasites like Giardia all cause a rapid “gush” of unabsorbed bile through the intestines. The stool comes out green because everything is moving too quickly for normal bile processing.
The key difference between an infection and a dietary cause is what else is happening. Infections almost always bring additional symptoms: watery or explosive diarrhea, abdominal cramps, nausea, vomiting, or fever. Green stool on its own, without those symptoms, is very unlikely to be an infection.
Green Stool in Babies
Green poop in infants is common and usually not a concern, but the causes are slightly different. Newborns pass meconium in their first few days, a dark greenish-black stool that’s completely normal. After that transition period, green stool in breastfed babies can happen when a baby doesn’t fully finish feeding on one side. This means they get more of the thinner, lower-fat milk at the start of a feeding and miss the higher-fat milk that comes later, which affects how the milk is digested.
Babies on protein hydrolysate formula (a specialized type used for milk or soy allergies) also tend to produce green stool. So do breastfed infants who haven’t yet developed a full population of gut bacteria. And just like in adults, diarrhea in babies can produce green stool simply because of faster transit time.
When Green Stool Deserves Attention
A single episode of green poop, or even a few days of it after a salad-heavy week, is not something to worry about. The color alone is not a danger sign. What matters more is the pattern and what accompanies it.
Green stool that persists for more than a few days without an obvious dietary explanation is worth paying attention to, especially if it comes with ongoing diarrhea, significant abdominal pain, or fever. These combinations could point to an infection or an underlying digestive issue that’s preventing normal bile processing.
Colors that do warrant prompt medical attention are bright red and black. Bright red stool can indicate bleeding in the lower digestive tract, while black, tarry stool can signal bleeding higher up, such as in the stomach. Green, by contrast, sits firmly in the “probably fine” category for the vast majority of people.