Why Are My Stools Green? Causes and When to Worry

Green stool is almost always harmless. The most common cause is eating green-colored foods like spinach, kale, or broccoli, but it can also happen when food moves through your intestines faster than usual, leaving bile pigments without enough time to break down into their typical brown color. In most cases, your stool returns to its normal shade within a day or two once the trigger passes.

How Stool Gets Its Color

Your liver produces bile, a yellow-green fluid that helps digest fats. As bile travels through your intestines, bacteria break it down and chemically transform it from green to yellow to brown. That final brown color is what most people see on a regular basis. Anything that disrupts this process, whether it’s extra green pigment from food or a faster-than-normal trip through the gut, can leave your stool looking green instead.

Foods That Turn Stool Green

Chlorophyll is the pigment that makes plants green, and your body doesn’t fully break it down during digestion. If you eat a large serving of spinach, kale, broccoli, or other leafy greens, enough chlorophyll can pass through to visibly tint your stool. Avocados, fresh herbs, and matcha (powdered green tea) can do the same thing.

Artificial food coloring is another frequent culprit. Brightly frosted cupcakes, candy, fruit snacks, freeze pops, and colored drinks all contain dyes that keep tinting whatever they touch as they move through your digestive tract. Blue and green dyes are especially likely to produce green stool, and purple dyes (a mix of blue and red) can have a similar effect. If you recently ate something with vivid coloring, that’s very likely your answer.

Rapid Transit and Bile

When food moves through your intestines faster than normal, bile doesn’t have time to complete its color change from green to brown. This is why diarrhea from any cause often looks green or greenish-yellow. Common triggers for faster transit include stress, a heavy meal that upsets your stomach, too much caffeine, or a mild stomach bug. Even a single bout of loose stools can produce a noticeably green result without anything else being wrong.

Infections That Cause Green Stool

Certain infections speed up gut transit dramatically, producing watery green diarrhea. Bacterial infections like Salmonella and E. coli, viral infections like norovirus, and parasitic infections like Giardia can all cause this. The green color itself isn’t the concern in these cases. What matters is the pattern of symptoms around it: frequent watery diarrhea, abdominal cramping, fever, vomiting, or signs of dehydration like dark urine, dizziness, and dry mouth.

Most mild stomach infections resolve on their own within a few days. Staying hydrated is the priority. If diarrhea is severe, lasts more than two or three days, or comes with blood, high fever, or significant vomiting, that warrants medical attention.

Medications and Supplements

Iron supplements are one of the most common medication-related causes of green (or very dark green) stool. The excess iron your body doesn’t absorb passes through and changes stool color. Antibiotics can also cause green stool by disrupting the balance of gut bacteria that normally convert bile pigments to brown. If you recently started a new medication or supplement and noticed the change, the timing is probably not a coincidence. The color typically normalizes once you finish the course or your body adjusts.

Green Stool in Babies

Green stool in infants is extremely common and has its own set of causes depending on age and feeding method.

A newborn’s very first stools, called meconium, are sticky and greenish-black. This is completely normal and clears within the first few days of life as the baby begins feeding. In breastfed babies, bright, frothy green poop can happen when a baby gets more of the thinner milk at the start of a feeding (foremilk) and less of the richer milk that comes later (hindmilk). Feeding from one breast at a time until it’s fully drained, rather than switching sides mid-feed, can help balance this out.

Formula-fed babies sometimes produce dark green stool, particularly if their formula is iron-fortified. This is harmless. If you’re unsure, check the formula’s ingredient label for added iron. As babies start eating solid foods, green vegetables and colored baby snacks can change stool color just as they do in adults.

How Long Green Stool Lasts

If diet is the cause, green stool typically resolves within one to two days after you stop eating the food responsible. Your gut cycles through its contents relatively quickly, so the color change is temporary. If a stomach bug is behind it, the green color usually clears as the diarrhea itself subsides, generally within two to five days for most viral and mild bacterial infections.

Green stool that persists for more than a few days without an obvious dietary explanation is worth paying attention to, especially if it comes alongside abdominal pain, unexplained weight loss, bleeding, fever, or vomiting. These accompanying symptoms, not the green color alone, are what signal something beyond a routine cause.