Green stool is almost always harmless. The most common causes are eating green vegetables, food dyes, iron supplements, and anything that speeds up digestion (like diarrhea). To understand why, it helps to know that your stool is naturally brown because of bile, a yellow-green digestive fluid that gradually turns brown as enzymes break it down during its trip through your intestines. When that process gets interrupted or overridden, green is what you see.
How Bile Makes Stool Green
Your liver produces bile to help digest fats. When bile enters your small intestine, it starts out yellow-green. As it travels through the rest of your digestive tract, enzymes chemically alter it, shifting the color from green to yellow to brown. That final brown is what most people consider “normal” stool color.
Anything that rushes food through your intestines can cut this process short. During a bout of diarrhea, for example, bile doesn’t have time to fully break down before it exits. The result is stool that still carries that original green tint. This is the single most common explanation for unexpectedly green poop, and it resolves on its own once digestion returns to a normal pace. Conditions like irritable bowel syndrome, food intolerances, or stomach bugs can all speed up transit time enough to cause it.
Foods That Turn Stool Green
Chlorophyll, the pigment that makes plants green, can do the same to your stool. The biggest culprits are dark leafy greens like spinach, kale, and broccoli, but the list extends further than most people realize. Avocados, fresh herbs, pistachios, and matcha (powdered green tea) all contain enough chlorophyll to shift stool color noticeably, especially if you eat a large serving.
Artificial food coloring is the other dietary trigger. Brightly frosted cupcakes, green-dyed candy, sports drinks, and colored cereals continue tinting whatever they touch as they pass through your system. Blue and purple dyes can also produce green stool when they mix with the yellow of bile. If your stool turns green a day or two after a birthday party or a new smoothie recipe, the food itself is almost certainly the explanation.
Iron Supplements and Medications
Iron supplements frequently cause stools to turn a very dark green that can look almost black. This is normal and some physicians actually consider it a sign the supplement is being absorbed effectively. If the color change bothers you, talk to your doctor about adjusting the dose, but the color alone isn’t a reason to stop taking iron.
Certain antibiotics can also cause green stool by disrupting the balance of bacteria in your gut. Those bacteria play a role in breaking down bile, so when their population shifts, the color of your stool can shift too. This typically resolves once you finish the course of antibiotics and your gut bacteria rebalance.
Green Stool in Babies
Green stool in infants is especially common and has its own set of causes. In the first few days of life, babies pass meconium, a dark greenish-black stool that’s entirely normal. After that transition period, green poop can still appear for several reasons:
- Foremilk/hindmilk imbalance. If a breastfed baby doesn’t finish feeding on one breast before switching, they may get more of the lower-fat foremilk and less of the higher-fat hindmilk. This affects how the milk is digested and can produce green stool.
- Specialty formulas. Protein hydrolysate formulas, used for babies with milk or soy allergies, commonly cause green poop.
- Immature gut bacteria. Breastfed infants sometimes lack the full range of intestinal bacteria needed to break bile down completely, leading to a greenish color.
- Diarrhea. Just like in adults, faster-than-normal digestion in babies means bile stays green.
In most cases, green stool in an otherwise happy, feeding baby is nothing to worry about.
When Green Stool Signals a Problem
Occasional green stool rarely needs medical attention. It becomes worth investigating when it persists for more than a few days without an obvious dietary explanation, or when it’s accompanied by other symptoms like fever, cramping, or blood in the stool. Persistent diarrhea with green stool is a particular concern because of the risk of dehydration, especially in young children and older adults.
If green stool lasts beyond a few days, your doctor may run basic tests to check for infections, malabsorption issues, or inflammatory conditions. But for the vast majority of people who glance into the toilet and wonder what happened, the answer is spinach, a stomach bug, or that brightly colored drink from lunch.

