Green poop is almost always harmless. It usually means you ate something with strong pigments, like leafy greens or food with artificial coloring, or that food moved through your digestive system faster than usual. In most cases, your stool returns to its normal brown color within a day or two without any treatment.
Why Poop Is Normally Brown
Your liver produces bile, a fluid that’s naturally yellowish-green. Bile gets released into your small intestine to help break down fats from the food you eat. As bile travels through your intestines, bacteria gradually transform it, changing the color from green to the familiar brown. This process takes time. When everything moves at a normal pace, bacteria finish the job and your stool comes out brown.
When something disrupts that process, whether it’s a food that overpowers the color, a medication that shifts your gut bacteria, or diarrhea that rushes everything through too fast, the bile doesn’t fully break down. The result is stool that still carries that original green tint.
Foods That Turn Your Stool Green
The most common reason for green poop is simply something you ate. Chlorophyll, the pigment that makes plants green, passes through your digestive system and can color your stool on the way out. The biggest culprits are dark leafy greens like spinach, kale, and broccoli, but avocados, fresh herbs, matcha, and even pistachios contain enough chlorophyll to have the same effect.
Blueberries are another surprising cause. They contain a compound called anthocyanin that can produce blue or greenish tones in your stool. And artificial food dyes are especially potent. Brightly frosted cupcakes, rainbow candy, or any heavily dyed processed food can tint your stool unusual colors, including vivid greens. If you ate a lot of colorful candy, the dyes can even mix together and make your stool look black.
If a food is clearly the cause, your stool color should return to normal once that food works its way out of your system, typically within one to three days.
Diarrhea and Rapid Transit
Green stool frequently shows up alongside diarrhea, and the explanation is straightforward. When your intestines push their contents through too quickly, gut bacteria don’t have enough time to finish converting bile from green to brown. The stool essentially comes out before the color change is complete.
Anything that speeds up digestion can cause this. A stomach bug, food poisoning, stress, or even a particularly strong cup of coffee can accelerate transit time enough to produce green-tinged stool. Infections from bacteria like Salmonella, the parasite Giardia, and norovirus are all known to flush the gut fast enough to leave stool looking green. In these cases, the color itself isn’t the concern. The diarrhea is. Staying hydrated matters more than worrying about the shade.
Medications and Supplements
Iron supplements are a well-known cause of dark green or even blackish stool. The iron itself changes color as it’s processed, and the effect is harmless. It’s so common that doctors often mention it when prescribing iron so patients aren’t alarmed.
Some antibiotics can also turn stool green or yellow. Antibiotics work by killing bacteria, including the gut bacteria responsible for giving stool its brown color. With fewer of those bacteria doing their job, bile pigments pass through less fully processed. The color change usually resolves once you finish the course of antibiotics and your gut bacteria recover.
Digestive Conditions
Certain chronic digestive conditions can cause recurring green stool because they interfere with how your body processes bile. Crohn’s disease, which causes inflammation along the digestive tract, can speed up intestinal transit time enough that bile doesn’t fully break down. Celiac disease, an autoimmune reaction to gluten, can do the same. People with celiac disease often experience diarrhea, bloating, and abdominal pain, and the diarrhea can carry a greenish color for the same reason: everything is moving too fast for bacteria to complete the color conversion.
If you’re seeing green stool regularly and you also have persistent cramping, bloating, or loose stools, it could point to an underlying condition worth investigating rather than a one-time dietary cause.
Green Poop in Babies
Green stool in infants is common and usually not a problem. Breastfed babies may produce green stool if they don’t finish feeding entirely on one side. The milk that comes later in a feeding session is higher in fat, and missing that portion can affect how the milk is digested, sometimes producing a greener result.
Babies on specialized formula, particularly protein hydrolysate formulas used for milk or soy allergies, also tend to have greener stool. This is a normal side effect of the formula’s composition. Newborns in general may have green stool simply because their intestines haven’t yet been fully colonized by the bacteria that produce brown pigment. As a baby’s gut microbiome develops over the first weeks and months, stool color typically shifts toward the expected range.
Green diarrhea in a baby is a different situation. Infants dehydrate much faster than adults, so persistent watery green stools in a baby warrant prompt attention.
When Green Poop Signals a Problem
A single episode of green stool, or even a few days of it after eating a big spinach salad or taking iron, is not concerning. The Mayo Clinic recommends contacting a healthcare provider if green stool persists for more than a few days without an obvious dietary explanation.
The color green on its own is rarely the issue. What matters more is the context around it. Green stool paired with fever, severe cramping, bloody stool, or signs of dehydration (dark urine, dizziness, dry mouth) suggests something more than a pigment issue. Green watery diarrhea lasting several days could indicate an infection that needs treatment. And green stool that keeps coming back over weeks or months, especially with other digestive symptoms, may be worth discussing with a doctor to rule out conditions like celiac disease or inflammatory bowel disease.