Green poop usually means one of two things: you ate something green, or food moved through your intestines faster than normal. Both are common and rarely a sign of anything serious. The color of stool comes down to bile, a digestive fluid your liver produces, and how much time bacteria in your gut have to break it down.
How Stool Gets Its Color
Your liver continuously produces bile, a bright green fluid that helps digest fats. As bile travels through your intestines, bacteria chemically transform it from green to yellow to brown. This process takes time. In the colon alone, material typically spends 30 to 40 hours in transit, and that long residence is what gives stool its familiar brown color.
When anything speeds up that transit, bile doesn’t fully convert. It stays green or yellowish-green because gut bacteria simply didn’t have enough time to finish the job. This is why diarrhea from any cause (a stomach bug, food intolerance, stress) often produces green stool. The color itself isn’t the problem. It’s just a visible sign that things moved through quickly.
Foods That Turn Stool Green
Chlorophyll, the pigment that makes plants green, can do the same to your stool. Eating generous amounts of spinach, kale, broccoli, avocados, or fresh herbs is one of the most common reasons for a bright green bowel movement. Matcha, pistachios, and even blueberries can shift stool toward green shades.
Artificial food colorings are another frequent culprit. The dyes in brightly frosted cupcakes, candy, sports drinks, and similar products keep tinting whatever they touch all the way through your digestive tract. If your stool turns an unusual shade of green a day after a birthday party or a bag of brightly colored snacks, that’s almost certainly the explanation.
Medications and Supplements
Iron supplements are well known for turning stool dark green, sometimes so dark it looks almost black. This is normal and some doctors actually consider it a sign the supplement is being absorbed properly. If the color bothers you, lowering the dose with your doctor’s guidance can help. Certain antibiotics can also tint stool green or yellow by disrupting the normal balance of gut bacteria responsible for converting bile pigments.
Infections and Illness
Bacterial infections like Salmonella and E. coli can cause green diarrhea. So can viral infections like norovirus (commonly called the stomach flu). In these cases, the green color happens because the infection triggers rapid intestinal contractions that push everything through before bile has time to change color. Parasitic infections can do the same.
The green stool itself isn’t the concern with infections. What matters more is the diarrhea that accompanies it, because dehydration is the real risk. Fever, cramping, and stool that stays green for more than a few days are signs worth paying attention to, especially in young children and older adults.
Green Stool in Babies
Green poop in newborns and 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 substance that built up in their intestines before birth. After that transition, green stool can appear for several reasons.
Breastfed babies sometimes produce green stool when they don’t finish feeding on one side. The milk that comes first during a feeding is lower in fat, and without the higher-fat milk that follows, digestion changes in a way that produces greener stool. Babies on protein hydrolysate formula (used for milk or soy allergies) also tend to have green bowel movements. Another factor is that newborns haven’t yet developed the full community of gut bacteria responsible for converting bile to brown pigments. Research shows that by day five after delivery, only about 57% of newborns have enough of the right bacteria to start that conversion process, and even then the bacterial activity is too low to make a visible difference in stool color.
When Green Stool Signals a Problem
A single green bowel movement, or even a few in a row after eating a big salad or fighting off a mild stomach bug, is not a red flag. The Mayo Clinic recommends contacting a healthcare professional if green stool persists for more than a few days without an obvious dietary explanation. Green stool paired with ongoing diarrhea warrants extra attention to hydration, particularly in children, since dehydration can develop quickly. Signs of dehydration include dry mouth, reduced urination, dizziness, and in infants, fewer wet diapers and no tears when crying.

