Why Is My Poop Green? Causes and When to Worry

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

Why Stool Is Normally Brown

Your liver produces bile, a yellow-green fluid that helps digest fats. As bile travels through your intestines, enzymes chemically break it down and gradually shift its color from green to brown. That transformation is what gives stool its typical color. When something interrupts or speeds up that process, the green pigment remains, and your poop comes out green.

Fast Digestion and Diarrhea

The single most common non-dietary cause of green stool is rapid transit, meaning food moves through your large intestine too quickly for bile to fully break down. Diarrhea is the classic trigger. When your gut is pushing things along faster than normal, bile keeps its original green color instead of converting to brown. If you’ve had a stomach bug, food poisoning, or anything else causing loose stools, green color is a predictable side effect and not a separate problem to worry about.

Once the diarrhea resolves and digestion returns to its normal pace, stool color typically shifts back to brown on its own. Staying well hydrated matters more than the color in this scenario.

Foods That Turn Stool Green

A diet heavy in green vegetables is one of the most straightforward explanations. Spinach, kale, and broccoli are packed with chlorophyll, the pigment that makes plants green, and it can do the same to your stool. Avocados, fresh herbs, and matcha (powdered green tea) have the same effect. Even pistachios contain enough chlorophyll to contribute.

Blueberries can also produce green shades, which surprises people who expect purple or dark blue. And artificial food coloring is a powerful culprit. Brightly frosted cupcakes, green-dyed drinks, candy, and ice cream can all tint your stool vivid and unexpected colors. The dye continues coloring whatever it touches as it passes through your system.

If you recently ate any of these foods, that’s likely your answer. The color change usually shows up within 12 to 24 hours of eating and clears within a bowel movement or two once those foods are out of your diet.

Medications and Supplements

Iron supplements are a well-known cause of dark green or even blackish-green stool. This is a harmless chemical reaction between the iron and your digestive enzymes. If the color bothers you, lowering your dose (with your provider’s guidance) will typically resolve it. Some antibiotics can also tint stool green or yellow by disrupting the normal bacteria in your gut that play a role in bile processing.

Green Stool in Babies

Green poop in infants has its own set of causes, many of which are perfectly normal. Newborns pass meconium in their first days, which is dark green to black. After that, breastfed babies can have green stool if they don’t finish feeding on one side before switching. The milk at the end of a feeding session has a higher fat content, and missing it can change how the milk is digested.

Babies on specialty formulas, particularly protein hydrolysate formulas used for milk or soy allergies, often produce green stools as a baseline. Breastfed infants who haven’t yet developed a full population of gut bacteria may also have green stool. And just like in adults, diarrhea in babies speeds up digestion enough to keep bile green. Occasional green diapers in an otherwise happy, feeding baby are rarely a concern.

When Green Stool Signals a Problem

Green stool that lasts more than a few days without an obvious dietary explanation is worth mentioning to a healthcare provider. The color itself isn’t dangerous, but persistent changes can sometimes point to an underlying digestive issue, especially when paired with other symptoms like ongoing diarrhea, abdominal pain, fever, or blood in the stool.

If a provider wants to investigate further, the process is straightforward. A stool sample can be checked for abnormal bacteria, parasites, or signs of inflammation. A test for hidden blood in the stool can rule out bleeding higher in the digestive tract. Breath tests can identify issues like bacterial overgrowth or trouble digesting certain sugars. These are simple, noninvasive starting points, and most people with green stool never need anything beyond them.

For the vast majority of people, though, green stool is a one-off event tied to something they ate, a bout of diarrhea, or a supplement they started. Once the cause passes, so does the color.