Green stool is almost always harmless. The most common причины are eating leafy greens, food moving through your gut faster than usual, or taking certain supplements. Your liver produces a yellow-green digestive fluid called bile, and when everything is working at normal speed, enzymes in your intestines chemically convert that bile from green to brown. When something disrupts that process, green is what you get.
How Bile Gives Stool Its Color
Your liver constantly produces bile, a yellow-green fluid that helps digest fats. As bile travels through your digestive tract, enzymes gradually break it down and change its color from green to yellow to brown. That transformation takes time. On average, food spends about six hours passing through your stomach and small intestine, then another 36 to 48 hours in the large intestine. If anything speeds up that timeline, bile doesn’t fully break down, and your stool stays green.
This is why diarrhea from any cause, whether it’s a stomach bug, food intolerance, or stress, often produces green stool. It’s not a separate problem. It’s just bile that didn’t have time to change color.
Foods That Turn Stool Green
The simplest explanation is often the right one: you ate something green. Chlorophyll, the pigment that makes plants green, can do the same to your stool. The usual suspects include spinach, kale, broccoli, avocados, fresh herbs, and matcha. Pistachios are another common one, since their green color comes from the same chlorophyll found in leafy vegetables. Even blueberries can occasionally produce green shades.
Artificial food dyes are another frequent cause. Brightly colored frosting, candy, sports drinks, or anything with strong food coloring continues tinting what it touches all the way through your digestive system. If you had a cupcake with vivid green or blue frosting yesterday, that’s likely your answer.
Supplements and Medications
Iron supplements are one of the most common medication-related causes of green (or very dark green, almost black) stool. Iron changes color as it oxidizes in your gut, and the shade depends on how much you’re taking and how quickly it moves through. If you recently started an iron supplement and noticed the change, that’s almost certainly the connection.
Antibiotics can also cause green stool by disrupting the balance of bacteria in your intestines. Those bacteria play a role in the chemical conversion of bile, so when antibiotics reduce their numbers, bile may pass through without fully changing color. This typically resolves once you finish the course of antibiotics and your gut bacteria recover.
Infections and Stomach Bugs
Bacterial infections like Salmonella and E. coli, viral infections like norovirus, and parasites like Giardia can all cause green stool. The mechanism is the same rapid-transit effect: your body rushes everything through as diarrhea, and bile doesn’t have time to break down. In these cases, the green color is a side effect of the diarrhea, not a separate symptom to worry about.
You’ll usually know if an infection is involved because it comes with other symptoms: cramping, nausea, fever, or watery diarrhea that lasts more than a day or two. The green color itself isn’t the concern. The dehydration from persistent diarrhea is what actually matters.
After Gallbladder Removal
If you’ve had your gallbladder removed, green or loose stools are common afterward. Your gallbladder normally stores and concentrates bile, releasing it in controlled amounts when you eat. Without it, bile drips continuously from your liver directly into your small intestine. This means more bile than usual is present in your gut, and it may not all get converted to brown before reaching the exit.
For most people, this settles down within a few days to a few weeks as the body adjusts. Some people experience loose stools or intermittent green stool for longer, but it’s a recognized and expected effect of the surgery rather than a sign of a new problem.
Green Stool in Babies
Green poop in infants is extremely common and rarely a concern. In breastfed babies, it can happen when the baby doesn’t finish feeding on one side, missing the higher-fat milk that comes later in the feeding. That fat content affects how the milk is digested and what color comes out the other end. Babies on hydrolyzed formula (the type used for milk or soy allergies) also tend to have greener stools. Breastfed infants who haven’t yet developed a full range of intestinal bacteria may produce green stool as well.
If a baby has green stool along with diarrhea, that’s worth paying closer attention to, since dehydration happens quickly in infants. But isolated green poop in an otherwise happy, feeding baby is normal.
When Green Stool Signals a Problem
A single green bowel movement, or even a few days of them after eating a big salad or taking iron, is not a medical concern. The Mayo Clinic suggests contacting a healthcare provider if green stool persists for more than a few days without an obvious dietary explanation. The color itself is less important than what accompanies it. Persistent diarrhea, fever, significant abdominal pain, or signs of dehydration (dark urine, dizziness, dry mouth) are the symptoms that actually warrant attention.
Staying hydrated is the most important thing you can do when green stool comes with diarrhea, regardless of the cause. The green will resolve on its own once transit time returns to normal or the dietary trigger is out of your system.

