Why Is My Poop Green? Causes and When to Worry

Green stool is almost always harmless. The most common causes are eating green vegetables, consuming foods with certain dyes, or having food move through your intestines faster than usual (like during a bout of diarrhea). All shades of brown and even green are considered normal stool colors.

Why Stool Is Normally Brown

Your liver produces bile, a bright yellow-green fluid that helps you digest fats. When bile enters your intestines, bacteria gradually break it down into a pigment called stercobilin, which is what gives stool its characteristic brown color. This conversion takes time. As long as food moves through your digestive tract at a normal pace, the bacteria have enough hours to finish the job, and you end up with brown stool.

When something speeds up that process, bile doesn’t fully break down. The stool retains its original green tint. This is the single most common explanation for green poop that isn’t diet-related.

Foods That Turn Stool Green

Chlorophyll, the pigment that makes plants green, can do the same to your stool when you eat enough of it. The biggest culprits are leafy greens like spinach, kale, and broccoli. Pistachios, avocados, fresh herbs, and matcha (powdered green tea) are also high in chlorophyll and can produce noticeably green results.

You don’t have to eat an unusual amount. A large spinach salad, a green smoothie, or a handful of pistachios can be enough. The color change typically shows up within 12 to 24 hours and resolves once the food clears your system, usually within a day or two.

Artificial food dyes can also be responsible. Blue and purple dyes, commonly found in candy, frosting, flavored drinks, and ice cream, mix with the yellow-green bile in your gut and produce a green color on the way out. If you recently ate something brightly colored, that’s likely your answer.

Diarrhea and Fast Transit

If your stool is green and loose, the explanation is probably speed. During diarrhea, whether from a stomach bug, food intolerance, or stress, food passes through the large intestine too quickly for bacteria to convert bile from green to brown. The faster the transit, the greener the result. You might also notice this after a heavy coffee day or anything else that stimulates your gut to move things along quickly.

This type of green stool resolves on its own once your digestion returns to its normal pace. Staying hydrated is the main priority, since diarrhea causes fluid loss far more quickly than most people expect.

Medications and Supplements

Iron supplements are one of the most common medication-related causes of unusual stool color. They can turn stool dark green or even black. This is a harmless chemical reaction between iron and your digestive enzymes, not a sign of bleeding.

Antibiotics can also cause green stool by disrupting the gut bacteria responsible for converting bile pigments. With fewer bacteria doing the work, bile stays green. The color typically normalizes after you finish the course of antibiotics and your gut bacteria repopulate.

Green Stool in Babies

Green poop in infants is extremely common and usually not a concern. Newborns pass meconium in their first few days, a dark greenish-black substance that’s completely normal. As feeding establishes, stool color shifts but can remain green for several reasons: the baby may not be finishing a full feeding on one side during breastfeeding (missing some of the higher-fat milk that affects digestion), the baby may be on a protein hydrolysate formula used for milk or soy allergies, or the infant’s gut bacteria simply haven’t fully developed yet.

Diarrhea in babies can also produce green stool for the same transit-time reasons it does in adults. The key concern with infant diarrhea is dehydration, not the color itself.

When Green Stool Needs Attention

A day or two of green stool after a dietary change or a stomach bug is nothing to worry about. If green stool persists for more than a few days without an obvious dietary explanation, it’s worth mentioning to your doctor. The same goes if it’s accompanied by ongoing diarrhea, fever, or signs of dehydration like dark urine, dizziness, or dry mouth.

The colors that actually signal a potential problem are different from green. Bright red stool or black, tarry stool can indicate bleeding in the digestive tract and warrants prompt medical attention. White or clay-colored stool suggests a bile duct issue. Green, by contrast, is almost always just bile doing its normal thing a little faster than usual.