What Makes My Poop Green? Causes and When to Worry

Green poop is almost always caused by something harmless: a big salad, a food dye, a supplement, or food simply moving through your gut faster than usual. The color of your stool depends on a chemical process that takes time, and when that process gets interrupted or overwhelmed by green pigments in your diet, the result shows up in the toilet.

How Stool Gets Its Normal Color

Your liver produces bile, a yellow-green fluid that helps you digest fats. When bile first enters your small intestine, it contains a green pigment called biliverdin, which your body converts into bilirubin (a yellowish compound). As bilirubin travels through your intestines, gut bacteria break it down further using an enzyme called bilirubin reductase. The end products of this breakdown, urobilinogen and eventually stercobilin, are what give stool its characteristic brown color.

This whole process takes time. If food moves through your digestive tract faster than normal, whether from diarrhea, a stomach bug, or anything else that speeds up transit, bile doesn’t get fully processed. It stays closer to its original green state, and your stool comes out green. That’s the single most common mechanical explanation for green poop that isn’t diet-related.

Leafy Greens and Chlorophyll

The most straightforward cause is simply eating a lot of green vegetables. Spinach, kale, broccoli, avocados, fresh herbs, and matcha all contain chlorophyll, the pigment that makes plants green. When you eat enough of these foods, chlorophyll pigments survive digestion well enough to tint your stool bright green. This is completely normal and stops once you change what you’re eating.

The greener and more concentrated the food, the more noticeable the effect. A large spinach smoothie or a bowl of pesto pasta can produce a strikingly green result the next day. If you’ve recently added more vegetables to your diet, this is likely your answer.

Food Dyes and Artificial Colors

Blue and purple food dyes are a surprisingly common culprit. When blue dye mixes with the yellow-green bile already in your gut, the combination produces green. Flavored drink mixes, ice pops, frosted cakes, candy, and brightly colored cereals can all cause this. Green food coloring has an even more direct path to green stool.

You don’t always realize how much dye you’ve consumed. A single serving of a vividly colored sports drink or a handful of candy can be enough. The color change typically shows up within a day or two and resolves just as quickly.

Iron Supplements and Medications

Oral iron supplements commonly change stool color. Most people notice dark black or very dark green stools after starting iron tablets. This happens because unabsorbed iron reacts with compounds in your digestive tract, and the color shift is a well-known, expected side effect. It’s not a sign that anything is wrong.

Some antibiotics can also cause green stool by disrupting the balance of gut bacteria responsible for breaking down bile pigments. Without enough of those bacteria doing their job, bile passes through less processed, keeping its greenish hue. If you’ve recently finished a course of antibiotics and notice green stool, this is the likely explanation.

Infections That Cause Green Diarrhea

When green stool shows up alongside diarrhea, cramping, fever, or nausea, an infection may be responsible. Several common pathogens cause green-tinged diarrhea because they speed up transit time dramatically, preventing bile from being fully broken down. The main culprits include bacterial infections like Salmonella, E. coli, and C. difficile, viral infections like norovirus and rotavirus, and parasitic infections like Giardia.

Giardia in particular tends to produce foul-smelling, greasy green stools along with bloating and gas. Salmonella and E. coli often come from contaminated food and cause watery green diarrhea that starts within 12 to 72 hours of exposure. Norovirus and rotavirus cause intense but typically short-lived bouts of vomiting and diarrhea, with green stool appearing because everything is moving through your system so quickly.

The key distinction is timing and accompanying symptoms. Green stool from an infection rarely shows up alone. If you also have a fever, persistent cramping, or signs of dehydration (dark urine, dizziness, dry mouth), that points toward infection rather than diet.

Green Stool After Gallbladder Removal

If you’ve had your gallbladder removed, green or yellowish-green stool can become a recurring issue. Your gallbladder normally stores and concentrates bile, releasing it in controlled amounts when you eat fat. Without it, bile flows continuously from the liver directly into the small intestine. More bile acids reach the large intestine, where they can act as a laxative, speeding up transit and sometimes producing looser, greener stools. For many people this improves over months as the body adapts, but some experience it long-term, particularly after fatty meals.

Green Stool in Babies

Green poop in infants has its own set of causes. Breastfed babies sometimes produce green stool when they don’t finish nursing on one side before switching. The earlier milk (foremilk) is thinner and lower in fat, while the later milk (hindmilk) is richer. When a baby gets mostly foremilk, the lower fat content changes how the milk is digested, often resulting in green, sometimes frothy stools. Letting the baby fully drain one breast before offering the other usually resolves this.

Babies on protein hydrolysate formula, which is specially designed for infants with milk or soy allergies, also commonly have green stool. The pre-broken-down proteins in these formulas change how bile is processed during digestion. This is an expected effect of the formula and not a sign of a problem.

When Green Stool Signals a Problem

Isolated green stool with no other symptoms is rarely concerning. If you can trace it to something you ate, a supplement, or a recent illness with diarrhea, it will almost certainly resolve on its own within a day or two.

Green stool that persists for more than a few days without an obvious dietary explanation is worth getting checked. The same goes for green stool accompanied by diarrhea severe enough to cause dehydration, especially in young children who dehydrate faster than adults. Drinking plenty of fluids during any episode of diarrhea is important regardless of stool color.