Green poop is almost always harmless. The most common reason is something you ate, but it can also happen when food moves through your digestive system faster than usual. To understand why, it helps to know that stool gets its normal brown color from bile, a yellow-green fluid your liver produces to digest fats. As bile travels through your intestines, bacteria break it down into a brown pigment called stercobilin. Anything that disrupts that process, whether it’s a pile of spinach or a bout of diarrhea, can leave your stool green.
How Bile Turns Stool Brown (and Why It Sometimes Doesn’t)
Your liver continuously releases bile into your small intestine, where it helps break down dietary fat. Bile starts out yellow-green. As it moves through the intestines, gut bacteria convert it through several chemical steps, ultimately producing stercobilin, the pigment responsible for brown stool. This conversion takes time. If everything is moving at a normal pace, bile completes the full transformation before you have a bowel movement.
When food passes through the large intestine too quickly, bile doesn’t have time to break down completely. The result is stool that retains bile’s original greenish color. This is why green poop and diarrhea so often show up together: diarrhea speeds transit time, and faster transit means less bacterial processing of bile.
Foods That Turn Stool Green
Diet is the single most common explanation. Green vegetables like spinach, kale, and broccoli contain chlorophyll, a pigment strong enough to tint your stool even after digestion. Other chlorophyll-rich foods include avocados, fresh herbs, matcha, and pistachios. Blueberries can also produce green shades despite their dark color.
Artificial food coloring is another frequent culprit. Brightly frosted cupcakes, green sports drinks, candy, and ice cream can all contain dyes that continue coloring whatever they touch as they move through your gut. If you ate something with vivid green or blue dye in the last day or two, that’s likely your answer. Once you stop eating the trigger food, stool color typically returns to brown within one to three bowel movements.
Iron Supplements and Medications
Iron supplements are well known for changing stool color. They often produce a dark green that can look almost black. If you recently started taking iron and noticed this change, the supplement is the likely cause. Lowering your dose will usually reduce the discoloration, though you should check with whoever recommended the supplement before adjusting it.
Antibiotics can also cause green stool by killing off some of the gut bacteria responsible for converting bile to its brown pigment. With fewer bacteria doing that work, bile passes through in a less processed state.
Gut Infections
Infections from bacteria like salmonella, parasites like giardia, or viruses like norovirus can all produce green stool. These pathogens cause inflammation and speed up gut transit, preventing normal bile processing. You’ll usually know if an infection is the cause because it comes with other symptoms: watery or frequent diarrhea, cramping, nausea, or fever. The green color in this case is less about what you ate and more about how quickly everything is moving through.
If you suspect food poisoning or a stomach bug, staying hydrated matters more than worrying about the color. The green will resolve once the infection clears.
Fat Malabsorption and Bile Acid Issues
Less commonly, green stool can signal a problem with how your body handles bile acids or absorbs fat. In bile acid malabsorption, excess bile acids spill into the colon, causing chronic watery diarrhea. People with this condition often also experience bloating, gas, greasy or oily stools, and unintentional weight loss. Over time, poor fat absorption can lead to deficiencies in fat-soluble vitamins (A, D, E, and K). This is a more persistent pattern, not a one-off green bowel movement, and it requires medical evaluation.
Green Stool in Babies
Green poop in infants is common and usually not a concern. Several baby-specific causes exist:
- Foremilk imbalance: If a breastfed baby doesn’t finish feeding on one side, they may get more of the thinner, lower-fat milk and miss the fattier hindmilk. This can affect digestion and produce green stool.
- Specialty formulas: Protein hydrolysate formulas, used for babies with milk or soy allergies, commonly cause green poop.
- Developing gut bacteria: Breastfed newborns may not yet have the full range of intestinal bacteria needed to convert bile to brown pigment.
- Diarrhea: Just like in adults, faster transit in babies means greener stool.
Newborns also pass meconium in their first few days, a dark greenish-black, tar-like stool that is completely normal and transitions to yellow or brown within the first week.
When Green Stool Needs Attention
A single green bowel movement after a big salad or a stomach bug is nothing to worry about. If green stool persists for more than a few days without an obvious dietary explanation, it’s worth checking with a healthcare provider. The more important warning signs are the symptoms that may accompany it: dehydration from prolonged diarrhea, blood in the stool, significant weight loss, or persistent abdominal pain. These point to an underlying issue that goes beyond stool color. Green stool on its own, without those red flags, is rarely a sign of anything serious.