Green poop usually means one of two things: you ate something green, or food moved through your digestive system faster than normal. In most cases, it’s completely harmless and resolves on its own within a day or two. Understanding why it happens can help you figure out whether it’s worth paying attention to or just a quirky side effect of last night’s salad.
Why Stool Is Normally Brown
Your liver produces bile, a digestive fluid that starts out green. As bile travels through your digestive tract, enzymes chemically break it down and gradually shift its color from green to yellow to brown. That process takes time. The average transit through the colon alone is 30 to 40 hours, though anything up to about 72 hours is considered normal. When everything moves at a typical pace, bile completes its color transformation and your stool comes out brown.
When something speeds up that transit, bile doesn’t have time to fully break down. The result is stool that retains some of that original green pigment. This is the single most common medical explanation for green poop, and it’s why green stool so often accompanies diarrhea.
Foods That Turn Stool Green
The most straightforward cause is simply eating a lot of green food. Chlorophyll, the pigment that makes plants green, can do the same to your stool when you consume enough of it. The usual culprits are spinach, kale, and broccoli, but avocados, fresh herbs, matcha, and even pistachios (which get their color partly from chlorophyll) can have the same effect. You don’t need to eat a huge amount for this to happen, though the more you eat, the more vivid the color tends to be.
Artificial food dyes are another common trigger. Blue and green food coloring found in candy, frosting, freeze pops, and brightly colored drinks can tint your stool green. If you mix enough colors together (say, handfuls of rainbow candy), the combined dyes can even make stool look dark green or black. This is purely cosmetic and passes once the dye works its way through your system, usually within a day or two.
Supplements and Medications
Iron supplements are a well-known cause of green (or very dark green, almost black) stool. This color change is not only normal but is sometimes considered a sign the supplement is being absorbed properly. If the color bothers you, lowering the dose with your doctor’s guidance will typically lighten things up.
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, bile may not be processed as thoroughly. The color usually returns to normal after you finish the course of antibiotics and your gut bacteria rebalance.
Rapid Transit and Diarrhea
Any condition that speeds food through your intestines can produce green stool, because bile simply doesn’t have enough contact time with gut bacteria and enzymes to complete its chemical transformation. Stomach bugs, food poisoning, food intolerances, and stress-related digestive upset all fall into this category. If you’re experiencing diarrhea alongside green stool, the rapid transit is almost certainly the explanation.
Bacterial infections like Salmonella and parasitic infections like Giardia can cause prolonged green diarrhea. These infections tend to come with other noticeable symptoms: cramping, fever, nausea, or watery stool that persists for several days. Conditions that affect nutrient absorption, such as celiac disease or Crohn’s disease, can also alter stool color over longer periods by changing how your body processes bile and fat.
Green Poop in Babies
Green stool is especially common in infants and is rarely a concern. Newborns pass meconium in their first few days of life, a thick, dark green-to-black substance that’s entirely normal. After that transition, several things can keep a baby’s poop green:
- Foremilk imbalance: If a breastfed baby doesn’t finish nursing on one side, they may get more of the thinner, lower-fat milk at the beginning of a feeding and less of the higher-fat milk that comes later. This can affect digestion and produce green stool.
- Specialty formulas: Protein hydrolysate formulas, used for babies with milk or soy allergies, commonly cause green poop.
- Developing gut bacteria: Breastfed infants sometimes lack the full range of intestinal bacteria needed to break down bile completely, which can leave stool greenish until their gut microbiome matures.
- Diarrhea: Just as in adults, rapid transit in a baby’s digestive system means bile stays green.
When Green Stool Needs Attention
A single green bowel movement, or even a couple of days of green stool after a big spinach salad or a stomach bug, is not a concern. The color on its own tells you very little. What matters more is the context around it.
Green stool that persists for more than a few days without an obvious dietary explanation is worth mentioning to a doctor. The same goes if it’s accompanied by fever, severe abdominal pain, blood or mucus in the stool, or signs of dehydration (dark urine, dizziness, dry mouth). Green diarrhea in particular can lead to dehydration quickly, especially in young children and older adults, so staying on top of fluid intake is important when it’s ongoing.
If you can trace the color back to something you ate, a supplement you started, or a bout of diarrhea that’s already improving, you can safely wait it out. Normal brown color returns once the food clears your system or your digestion gets back to its usual pace.

