What Would Make Your Poop Green and When to Worry

Green poop is almost always harmless. It usually comes down to something you ate, how fast food moved through your system, or a supplement you’re taking. Your stool is normally brown because of a pigment called stercobilin, which forms when bacteria in your colon break down bile. When that process gets interrupted or overwhelmed, the result is green.

Why Poop Is Normally Brown

Your liver produces bile, a greenish-yellow fluid that helps digest fats. As bile travels through your digestive tract, gut bacteria chemically reduce it through several steps, eventually producing stercobilin, an orange-brown pigment responsible for the familiar color of stool. This transformation requires time and the right bacterial environment. Anything that disrupts either of those factors can leave bile partially processed, and partially processed bile looks green.

Rapid Digestion Is the Most Common Cause

When food moves through your large intestine too quickly, bile doesn’t have time to fully break down. The stool retains that original green tint. Diarrhea from a stomach bug, food intolerance, or even stress can speed up transit enough to cause this. If you’ve had a bout of loose stools and noticed the green color, that’s likely the explanation. Once your digestion returns to its normal pace, the brown color comes back.

Green Vegetables and Chlorophyll

Eating large amounts of leafy greens is one of the most straightforward causes. Spinach, kale, and broccoli all contain high levels of chlorophyll, the pigment that makes plants green, and that same pigment can color your stool. You don’t have to eat an unusual amount; a big salad, a green smoothie, or a few servings of broccoli in a day can be enough.

Less obvious sources include avocados, fresh herbs like parsley and cilantro, pistachios, and matcha (powdered green tea). Pistachios get their color from chlorophyll too, so snacking on a large bag can have the same effect as eating a plate of spinach.

Food Dyes and Processed Foods

Artificial food coloring is a surprisingly common culprit. Blue and green dyes used in candy, frosting, sports drinks, ice cream, and brightly colored cereals can turn your stool green. Blue dye mixed with the yellow of bile creates green, so even foods that don’t look green going in can come out that way. This is especially noticeable in kids after birthday parties or holidays involving colorful treats.

Supplements and Medications

Iron supplements are well known for changing stool color, typically to dark green or black. This happens because unabsorbed iron reacts with compounds in your gut. If you’ve recently started an iron supplement and noticed darker green stool, that’s a normal side effect.

Antibiotics can also cause green stool by disrupting the gut bacteria responsible for converting bile pigments. Without enough of the right bacteria, bile stays in its earlier green form. The color usually normalizes once you finish the course and your gut flora recovers.

After Gallbladder Removal

People who’ve had their gallbladder removed sometimes notice greener stool, particularly in the weeks and months after surgery. Without the gallbladder to store and regulate bile release, more bile acids flow directly into the large intestine. This excess bile can act as a laxative, speeding up transit time and giving the stool a green hue. For most people this settles down over time as the body adjusts, though some experience looser, greener stools intermittently for longer.

Green Stool in Babies

Green poop in infants is common and has several possible explanations. Newborns pass dark green-black meconium in their first days, which transitions to lighter green before settling into the typical yellow of breastfed babies. Beyond that transitional period, green stool in breastfed infants can happen when a baby doesn’t finish nursing on one side, missing the higher-fat milk that comes later in a feeding. That fat content affects how the milk is digested.

Babies on hydrolyzed protein formula (used for milk or soy allergies) often have green stool as a normal byproduct of how the formula is processed. Breastfed infants who haven’t yet developed a full complement of intestinal bacteria may also produce green stool simply because they lack the microbes needed to complete the bile breakdown. In all these cases, green stool in an otherwise happy, feeding baby is not a concern.

When Green Stool Signals a Problem

On its own, green stool is rarely a sign of anything serious. It becomes worth paying attention to when it’s accompanied by other symptoms: persistent diarrhea lasting more than a few days, fever, significant abdominal pain, blood or mucus in the stool, or unexplained weight loss. These combinations can point to infections, inflammatory bowel conditions, or other digestive issues where the green color is a secondary clue rather than the main problem.

If your stool has been green for weeks without an obvious dietary explanation and you feel fine otherwise, it may simply reflect your personal gut transit time or bacterial makeup. But persistent changes paired with feeling unwell are worth bringing up with a doctor.