Why Is My Poop Green? Causes and When to Worry

Green poop is almost always harmless. The most common causes are eating green or blue-dyed foods, taking certain supplements, or having food move through your gut faster than usual. To understand why, it helps to know that your stool starts out green and only turns brown at the end of its journey.

Why Stool Is Normally Brown

Your liver produces bile, a yellow-green fluid that helps digest fats. When bile enters your intestines, bacteria there go to work on it. They break down the green pigment (biliverdin) into a series of intermediate compounds, eventually producing a dark orange-brown pigment called stercobilin. That’s what gives healthy stool its characteristic brown color.

This bacterial conversion takes time. The longer stool sits in your large intestine, the more completely the green bile pigments are transformed. A typical trip through the colon takes 12 to 36 hours, which is usually enough time for the full color change. When anything disrupts that process, whether by speeding things up, altering gut bacteria, or flooding the system with green pigments from food, you end up with green stool.

Rapid Transit: The Most Common Cause

When food moves through your large intestine too quickly, bile doesn’t have time to be fully broken down by gut bacteria. The result is stool that still carries that original green tint. This is why diarrhea so often comes with a green color. It’s not a separate problem on top of the diarrhea; it’s a direct consequence of the speed.

Anything that triggers faster-than-normal digestion can do this: a stomach bug, food intolerance, stress, too much caffeine, or even a heavy meal that overwhelms your system. Once your digestion returns to its normal pace, the brown color comes back on its own.

Foods That Turn Stool Green

This is the other big category, and it’s completely benign. Leafy greens like spinach, kale, and broccoli contain chlorophyll, the pigment that makes plants green. Eat enough of it, and the excess pigment passes through largely intact, tinting your stool. The same goes for green juices, smoothies, and salads heavy on dark greens.

Artificial food dyes can also be responsible, and these are easy to miss. Blue and purple dyes (common in candy, ice cream, frosting, sports drinks, and flavored cereals) mix with the yellow-green bile already in your gut and produce a vivid green. If your stool is a brighter, more unnatural green than you’d expect, think back to anything with heavy food coloring you ate in the last day or two.

Medications and Supplements

Several common over-the-counter products can change stool color to green or dark green:

  • Iron supplements are one of the most frequent culprits. They can turn stool dark green or even black. This is a normal reaction to unabsorbed iron and not a reason to stop taking them.
  • Antibiotics disrupt the balance of gut bacteria responsible for converting bile pigments to brown. With fewer of those bacteria active, bile stays greener longer.
  • Bismuth subsalicylate (the active ingredient in some antidiarrheal medications) reacts with sulfur in your digestive tract, producing dark green or black stool.
  • Antacids containing aluminum hydroxide can produce a greenish tint as a side effect.

In each of these cases, the color change is expected and goes away when you stop taking the product.

Infections and Gut Bugs

Bacterial and parasitic infections can cause green diarrhea through two overlapping mechanisms: they speed up transit time, and they disrupt the gut bacteria that normally convert bile to brown pigments. Salmonella, E. coli, and Giardia are all associated with green, watery stools.

The green color alone doesn’t tell you whether an infection is present. What matters more is the combination of symptoms: fever, cramping, prolonged diarrhea, blood or mucus in the stool, or signs of dehydration like dizziness and dark urine. Green stool from an infection typically comes with these other signals, not in isolation.

Green Stool in Babies

Green poop in infants is extremely common and usually not a concern. Newborns pass meconium, a dark green-black substance, in their first few days. After that, several normal situations produce green stool in babies:

  • Switching breasts too early during feeding. If a baby doesn’t finish on one breast before moving to the other, they may get more of the thinner, lower-fat foremilk. This can speed digestion and result in green, sometimes frothy stool.
  • Hydrolysate formula. Specialized formulas for babies with milk or soy allergies often produce green stool as a normal byproduct of how the proteins are processed.
  • Immature gut bacteria. Breastfed infants, especially in the first weeks, may not yet have enough of the intestinal bacteria needed to fully convert bile pigments. Their stool can cycle through shades of yellow, green, and brown as the gut microbiome develops.

Diarrhea in infants, regardless of color, is the main thing to watch. Babies dehydrate quickly, so frequent watery stools paired with fewer wet diapers or unusual fussiness warrants prompt attention.

When Green Stool Needs Attention

A single green bowel movement, or even a few days of green stool after a big salad or a round of antibiotics, is not something to worry about. The color alone is rarely meaningful.

What changes the picture is persistence or accompanying symptoms. If green stool continues for more than a few days without an obvious dietary explanation, or if it comes alongside fever, severe abdominal pain, bloody stool, or signs of dehydration, that’s worth a medical evaluation. Green diarrhea specifically calls for staying well-hydrated, since the combination of rapid transit and fluid loss can add up quickly.