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. The color of your stool comes from bile, a digestive fluid that starts out green and gradually turns brown as bacteria in your gut break it down. When that process gets interrupted or sped up, the result is a green toilet bowl.
Why Stool Is Normally Brown
Your liver constantly breaks down old red blood cells, producing a greenish-yellow pigment that gets packaged into bile and released into your small intestine to help digest fats. As bile travels through your intestines, specific bacteria convert it into a brown pigment called stercobilin. Only a handful of bacterial species in your gut can do this job. The whole process takes time, so anything that rushes stool through your system or disrupts those bacteria can leave your poop green instead of brown.
Fast Transit: The Most Common Cause
When food moves through your large intestine too quickly, your gut bacteria don’t have enough time to finish converting bile from green to brown. This is the single most common reason for green stool, and it usually shows up alongside loose stools or mild diarrhea. Stress, a stomach bug, caffeine, or even a large meal can speed things up enough to produce a noticeable color change. Once your digestion returns to its normal pace, the brown color comes back on its own.
Foods That Turn Stool Green
Chlorophyll, the pigment that makes plants green, passes through your digestive system with its color largely intact. Eating generous amounts of spinach, kale, broccoli, avocados, herbs, or matcha can produce bright green stool that looks alarming but is completely benign. Pistachios can do the same, since their green color also comes from chlorophyll. Even blueberries occasionally produce greenish shades.
Artificial food dyes are another frequent culprit. Brightly frosted cupcakes, green sports drinks, or candy with heavy food coloring keep tinting whatever they touch all the way through your digestive tract. If you can trace the timing back to something you ate in the past day or two, that’s almost certainly the explanation.
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 the supplement is being absorbed properly. If the color bothers you, a lower dose will usually lighten things up, but it’s worth discussing with whoever prescribed the iron first.
Antibiotics are a less obvious cause. The bacteria responsible for converting bile pigments to brown are sensitive to certain antibiotics. When those bacterial populations get wiped out, bile passes through without being fully processed, and your stool stays green for the duration of the course (and sometimes a few days after). Research on antibiotic-treated subjects has shown that drugs targeting gut bacteria can completely eliminate the brown pigment from stool, confirming just how dependent the color change is on a healthy microbial community.
Infections and Stomach Bugs
Bacterial infections like Salmonella and E. coli, viral infections like norovirus, and parasites like Giardia can all produce green diarrhea. These pathogens trigger a rapid “gush” through your intestines, flushing bile out before it has time to change color. Green stool from an infection rarely appears alone. You’ll typically also have cramping, nausea, vomiting, or fever. Most of these infections resolve within a few days, but persistent symptoms like bloody stool, high fever, or significant weight loss warrant a call to your doctor.
Digestive Conditions and Malabsorption
Chronic conditions like Crohn’s disease and celiac disease can interfere with how your intestines absorb nutrients and process bile. In Crohn’s, inflammation in the small intestine disrupts normal digestion and can speed transit, leading to green or unusually colored stools. Celiac disease damages the intestinal lining in a similar way. People with these conditions often notice other patterns too: stools that are bulky, oily, foul-smelling, or that float. Green stool alone doesn’t point to a chronic condition, but green stool that keeps coming back alongside bloating, pain, or unintentional weight loss is worth investigating.
Green Poop in Babies
If you’re a new parent staring into a diaper, green is one of the most normal colors you’ll see. A newborn’s first stools (meconium) are thick, black, and tarry. Within a few days, as breastfeeding or formula feeding gets established, stool transitions to green or yellow with a more liquid consistency. Breastfed babies tend to stay in the green-yellow-brown range for as long as they’re nursing, and formula-fed babies produce similar colors that may be slightly lighter. Green baby poop on its own is not a concern. It becomes worth mentioning to your pediatrician only if it comes with signs of distress like refusing to eat, fever, or blood in the diaper.
When Green Stool Needs Attention
A single episode of green poop, or even a few days of it, is rarely meaningful. The situations that do deserve attention are ones where the color change sticks around for more than a few days with no obvious dietary explanation, or where it comes paired with other symptoms: abdominal pain, fever, vomiting, blood in the stool, or unexplained weight loss. Bright red or black stool (not from iron supplements) is a more urgent signal, since those colors can indicate bleeding somewhere in the digestive tract and should be evaluated promptly.
For the vast majority of people, green poop is a one-off event caused by something they ate, a faster-than-usual trip through the intestines, or a supplement they’re taking. It resolves on its own once the cause passes.

