Why Has My Poop Been Green? Causes and When to Worry

Green poop is almost always harmless. The most common causes are eating green vegetables, consuming foods with artificial dyes, taking iron supplements, or having food move through your digestive system faster than usual. In most cases, your stool color will return to its normal brown within a day or two without any changes.

How Stool Gets Its Color

Your liver produces bile, a bright green fluid that helps break down fats during digestion. As bile travels through your intestines, bacteria chemically transform it from green to yellow to brown. That final brown color is what most people see in a typical bowel movement.

Anything that interrupts this process, either by adding green pigment on top or by speeding food through before bacteria finish their work, can leave your stool looking green. The average transit time through the colon alone is 30 to 40 hours, with anything up to about 72 hours considered normal. When that window shrinks significantly, bile doesn’t fully convert, and the green color shows through.

Foods That Turn Stool Green

Diet is the single most common explanation. Chlorophyll, the pigment that makes plants green, survives digestion well enough to tint your stool. Spinach, kale, broccoli, avocados, fresh herbs, and matcha (powdered green tea) are frequent culprits. Even pistachios contain enough chlorophyll to have an effect if you eat a large handful. Blueberries, surprisingly, can also produce shades of green rather than the blue or purple you might expect.

Artificial food dyes are another common cause. Brightly frosted cupcakes, flavored drink mixes, ice pops, and candy with green or blue coloring can produce a noticeably green result a day or two later. If you recently ate something with vivid artificial coloring, that’s likely your answer.

Iron Supplements and Medications

Iron supplements are one of the most reliable producers of green (or dark greenish-black) stool. Your body absorbs only a portion of supplemental iron, and the unabsorbed remainder reacts with digestive enzymes to create a dark green or near-black color. This is completely expected and not a sign that anything is wrong.

If the color change bothers you, a few adjustments can help. Taking your iron with vitamin C (a glass of orange juice works) improves absorption, which means less unabsorbed iron reaching your colon. Splitting your daily dose into two smaller doses can also reduce the effect. Different iron formulations, such as ferrous fumarate versus ferrous sulfate, may produce less dramatic color changes, so it’s worth asking your doctor about switching if you prefer.

Some antibiotics can also tint stool yellow or green by disrupting the gut bacteria responsible for converting bile pigments to brown.

Fast Digestion and Diarrhea

When food moves through your intestines faster than normal, bile doesn’t have time to fully break down. The result is stool that retains bile’s original green color. This is why a bout of diarrhea from a stomach bug, food intolerance, or stress often produces green stool regardless of what you ate.

Anything that accelerates transit can have this effect: a sudden increase in fiber, excess caffeine, intense exercise, anxiety, or illness. The green color in these cases is not itself the problem. It’s simply a visible sign that digestion moved quickly.

Infections That Cause Green Stool

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” of unabsorbed bile through the intestines, and the speed of transit prevents the normal color change. You’ll typically know an infection is involved because it comes with other symptoms: cramping, nausea, fever, or vomiting. Food poisoning symptoms usually start within hours to a couple of days after exposure and resolve on their own within a few days, though Giardia can linger for weeks if untreated.

Green Stool in Babies

Green poop in infants is common and usually not concerning. Breastfed babies can produce green stool if they don’t finish nursing on one side before switching, because they miss the higher-fat hindmilk that comes later in a feeding. The lower-fat foremilk moves through faster, producing that green tinge. Babies on protein hydrolysate formula (used for milk or soy allergies) also tend to have green stool as a normal side effect. Breastfed newborns may produce green stool simply because their gut bacteria haven’t fully established yet. And just like adults, any bout of diarrhea in a baby can turn stool green.

Signs That Need Attention

A day or two of green stool after a big salad or a course of antibiotics is nothing to worry about. The color to genuinely watch for is not green but red, black (when you’re not taking iron), or white/clay-colored, as these can signal bleeding or liver problems.

Green stool becomes worth investigating if it persists for more than a few days without an obvious dietary explanation, or if it comes alongside abdominal pain, unexplained weight loss, fever, vomiting, or blood. These combinations can point to an infection or an inflammatory condition that benefits from treatment rather than waiting it out.