Green poop is almost always caused by something you ate, a supplement you’re taking, or food moving through your gut faster than usual. It’s rarely a sign of anything serious. The color comes down to bile, a yellow-green digestive fluid your liver produces. Normally, bile gets broken down as it travels through your intestines, gradually shifting your stool from green to its typical brown. When that process gets interrupted, green is what you see.
How Bile Creates the Color
Your liver constantly produces bile to help digest fats. When bile first enters your small intestine, it’s bright yellow-green. As it moves through the rest of your digestive tract, bacteria and chemical reactions break it down into brown pigments. This is what gives stool its usual color.
Anything that speeds up digestion or changes the chemistry in your gut can leave bile partially unprocessed. The faster food moves through you, the greener the result. That’s why diarrhea from any cause, whether it’s a stomach bug or something you ate, often produces green stool. The food simply didn’t spend enough time in your colon for bile to fully break down.
Foods and Supplements That Turn Stool Green
The most common and least concerning cause is diet. Green leafy vegetables like spinach, kale, and broccoli contain chlorophyll, which can tint your stool directly. You don’t even need to eat a huge amount. A big spinach salad or a green smoothie is often enough.
Green food coloring is another frequent culprit. Flavored drink mixes, ice pops, frosting, candy, and some cereals contain dyes that pass through your system largely intact. If you recently ate something bright green (or even deep blue or purple, since those dyes can mix with yellow bile to create green), that’s likely your answer.
Iron supplements are a well-known cause too. Iron changes the chemical reactions in your gut, and green or very dark green-black stool is a normal side effect. If you recently started taking iron, the color change is expected and harmless.
Infections That Affect Stool Color
Bacterial infections like Salmonella and E. coli can cause green diarrhea. These infections inflame the intestinal lining and speed up transit time dramatically, giving bile no chance to break down. You’ll typically know something more is going on because the green stool comes with cramps, nausea, fever, or watery diarrhea that lasts more than a day or two.
Viral infections work the same way. Norovirus (commonly called stomach flu) and other gastrointestinal viruses irritate the gut and push everything through quickly. Green stool during a bout of stomach flu is normal and resolves once the infection clears, usually within a few days.
Antibiotics and Other Medications
Antibiotics can turn your stool green by disrupting the balance of bacteria in your colon. Those bacteria are part of the process that converts bile pigments from green to brown. When antibiotics reduce their numbers, bile passes through less processed, and the green color shows up. This effect typically fades once you finish the course of medication and your gut bacteria recover.
Other medications that speed up gut motility or change digestive chemistry can have the same effect. If the timing lines up with starting a new medication, that’s a strong clue.
Green Stool After Gallbladder Removal
If you’ve had your gallbladder removed, green stool may be a recurring issue. Your gallbladder normally stores and concentrates bile, releasing it in controlled amounts when you eat. Without it, bile flows directly and continuously from your liver into your intestine. This can lead to bile acid malabsorption, where excess bile reaches your colon before it can be fully broken down. The result is looser, greener stools, especially after fatty meals. For some people this settles down over weeks to months as the body adapts. For others, it becomes a long-term pattern that can be managed with dietary adjustments or medications that bind excess bile acids.
Green Stool in Babies
Green poop in infants is extremely common and almost always normal. Newborns pass meconium in their first few days, which is dark green to black. As feeding gets established, stool transitions through shades of green before settling into the yellow, seedy stool typical of breastfed babies or the tan stool of formula-fed babies.
In breastfed infants, green stool sometimes happens when a baby doesn’t finish feeding on one side before switching. The earlier milk (foremilk) is lower in fat, and when a baby gets mostly foremilk without the higher-fat hindmilk, it can affect how the milk is digested and produce green stool. Babies on protein hydrolysate formula, the type used for milk or soy allergies, also commonly have green stool. So do breastfed newborns whose guts haven’t yet been fully colonized by the bacteria that help process bile.
Diarrhea in babies can also cause green stool for the same transit-time reason it does in adults.
When Green Stool Needs Attention
A single green bowel movement, or even a few days of green stool after eating a lot of leafy greens or starting iron, is not a concern. The color should return to normal once the dietary cause passes through your system.
Green stool that persists for more than a few days without an obvious dietary explanation is worth paying attention to. The color itself isn’t the danger signal. What matters more is what comes with it: fever, severe abdominal pain, blood or mucus in the stool, signs of dehydration (dry mouth, dizziness, dark urine), or unexplained weight loss. Green diarrhea in particular can lead to dehydration quickly, so staying on top of fluid intake is important, especially for young children.
If you’re seeing green stool alongside persistent diarrhea and no clear food or medication cause, an infection or a digestive condition affecting absorption could be involved. Conditions like Crohn’s disease or celiac disease can alter how your gut processes bile and nutrients, sometimes producing color changes along with other symptoms like bloating, fatigue, or chronic loose stools.