What Can Make Poop Green? Causes and When to Worry

Green poop is almost always harmless. The most common causes are eating green vegetables, taking certain supplements, or having food move through your digestive system faster than usual. Understanding why it happens comes down to one key player: bile.

Why Bile Is the Key

Your liver produces bile, a fluid that starts out greenish-yellow. Bile’s job is to help break down fat in your small intestine. As it travels through the rest of your digestive tract, bacteria chemically transform it, gradually shifting its color from green to yellow to brown. That final brown is what gives stool its typical color.

When something speeds up that journey, bile doesn’t have enough time to complete its color change. The result is stool that still carries bile’s original green tint. This is why so many different causes of green poop share one underlying mechanism: they either add green pigment directly or they rush things through your gut before bile can finish breaking down.

Green Foods and Food Dyes

The simplest explanation is that you ate something green. Chlorophyll, the pigment that makes plants green, can color your stool the same way. Spinach, kale, and broccoli are the usual suspects, but avocados, fresh herbs, matcha, and even pistachios contain enough chlorophyll to do it. Blueberries can also produce greenish shades in some people.

Artificial food coloring is another frequent cause. Brightly frosted cupcakes, green-dyed drinks, or candy continue tinting whatever they touch as they pass through your system. If your stool turned green a day or two after a birthday party or a holiday treat, the dye is likely responsible. This kind of color change is completely harmless and clears up once the food works its way out.

Supplements and Medications

Iron supplements are one of the most common pill-related causes of green (or very dark green, almost black) stool. The unabsorbed iron reacts with compounds in your gut, darkening the color significantly. If you recently started an iron supplement and noticed the change, that’s almost certainly the connection.

Several other medications can also shift stool color toward green:

  • Antidiarrheal medications containing bismuth subsalicylate react with sulfur in your digestive system, producing dark green or black stool.
  • Antacids with aluminum hydroxide can produce greenish poop as a side effect.
  • Antibiotics disrupt the normal balance of gut bacteria, and since those bacteria are responsible for transforming bile from green to brown, the color change stalls partway through.

Infections That Speed Up Digestion

Bacterial infections like Salmonella and E. coli, viral infections like norovirus, and parasites like Giardia can all cause green stool. The mechanism is the same rapid-transit effect: your body is flushing everything through quickly as diarrhea, and bile doesn’t have time to break down. You’ll typically know an infection is involved because green stool will come alongside diarrhea, cramping, nausea, or fever. The green color itself isn’t dangerous; it’s just a visible sign that your gut is moving faster than normal.

Digestive Conditions

Certain chronic conditions cause green stool for the same reason infections do: they speed bile through the intestines or prevent it from being properly broken down. Crohn’s disease, which causes inflammation throughout the digestive tract, can accelerate transit time enough that bile stays green. Celiac disease triggers diarrhea and other digestive symptoms that have the same effect. Irritable bowel syndrome, ulcerative colitis, and overuse of laxatives can all produce green stool through rapid bile movement as well.

If you’re seeing green stool regularly alongside symptoms like persistent diarrhea, bloating, gas, or abdominal pain, those accompanying symptoms point toward a digestive condition worth investigating, not the green color on its own.

Green Stool in Babies

Green poop in infants is extremely common and rarely a concern. Newborns pass meconium in the first few days, which is dark greenish-black, and stool color shifts frequently as their digestive system matures. Beyond that early transition, a few specific things cause green stool in babies:

  • Foremilk imbalance: If a breastfed baby doesn’t finish nursing on one side, they may get more of the thinner, lower-fat milk at the beginning of a feeding and miss the higher-fat milk that comes later. This affects how the milk is digested and can produce green stool.
  • Specialty formulas: Protein hydrolysate formulas, used for babies with milk or soy allergies, often cause greenish stool.
  • Developing gut bacteria: Breastfed infants sometimes lack the full range of intestinal bacteria that would normally transform bile to its final brown color.
  • Diarrhea: Just like in adults, anything that speeds transit in a baby’s gut can leave stool green.

When Green Stool Signals Something Serious

Green stool by itself is not a red flag. It becomes worth paying attention to when it’s paired with other symptoms: persistent diarrhea lasting more than a few days, fever, significant abdominal pain, or unintended weight loss. These combinations suggest an infection or underlying digestive condition rather than a dietary cause.

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 your stool is bright red or true black and tarry, and you’re not taking iron or bismuth-containing medications, that’s a reason to seek medical care promptly.