Green poop usually comes down to one of two things: something you ate or food moving through your gut faster than normal. In most cases, it’s harmless and resolves on its own within a day or two.
To understand why it happens, it helps to know what gives stool its usual brown color in the first place. Your liver produces bile, a yellow-green fluid that helps digest fats. As bile travels through your digestive tract, enzymes chemically alter it, gradually shifting its color from green to brown. Anything that disrupts that process, or adds its own pigment to the mix, can leave you with a green surprise in the toilet.
Rapid Digestion Is the Most Common Cause
When food moves through your large intestine faster than usual, bile doesn’t have time to fully break down. The result is stool that retains bile’s original green tint. This is why green poop so often accompanies diarrhea, whether it’s from a stomach bug, food intolerance, or stress. The faster things move, the greener the output.
You don’t need full-blown diarrhea for this to happen. Even a mildly upset stomach, a large cup of coffee on an empty stomach, or a bout of anxiety that speeds up gut motility can shorten transit time enough to produce a greenish hue. Once your digestion returns to its normal pace, the color typically goes back to brown.
Foods That Turn Stool Green
Chlorophyll, the pigment that makes plants green, can do the same to your stool. The biggest culprits are dark leafy greens like spinach, kale, and broccoli, especially when eaten in large quantities. Avocados, fresh herbs, matcha, and pistachios (which get their color from chlorophyll and related plant pigments) can all have the same effect. Even blueberries, despite being blue, can produce shades of green as they’re digested.
Artificial food dyes are another common trigger. Brightly colored frosting, candy, sports drinks, and flavored cereals contain dyes that keep tinting whatever they touch long after you swallow them. A cupcake with vivid green or blue frosting is a reliable recipe for an alarming toilet bowl the next morning.
Supplements and Medications
Iron supplements are well known for changing stool color, often to a dark green or even blackish shade. This is a normal side effect and not a sign that anything is wrong. Some antibiotics can also tint stool yellow or green by altering the balance of bacteria in your gut, which changes how bile gets processed along the way.
After Gallbladder Removal
Your gallbladder stores and concentrates bile, releasing it in controlled amounts when you eat fatty food. After gallbladder removal, bile flows continuously into the small intestine instead. Some people develop bile acid malabsorption, where excess bile acids reach the colon and irritate its lining. This triggers the colon to secrete extra fluid and speeds up muscle contractions, causing frequent, urgent diarrhea and cramping. That combination of extra bile and faster transit often produces green stool, particularly in the weeks and months following surgery. For most people, the body gradually adjusts, though some experience ongoing symptoms.
Green Poop in Babies
If you’re a parent staring into a diaper wondering what went wrong, the answer is probably nothing. During the first six weeks of life, both breastfed and formula-fed babies regularly produce poop that ranges from yellow to green. A newborn’s very first stool, called meconium, is sticky and greenish-black. Over the following days it transitions to yellow or mustard, but green can appear at any point during this period.
Breastfed babies sometimes produce bright, frothy green poop. This typically happens when a baby gets a larger proportion of foremilk (the thinner milk at the start of a feeding) and less hindmilk (the fattier milk that comes later). Switching breasts too quickly during a feed can cause this. It’s not dangerous, but adjusting feeding patterns, like letting the baby finish one breast before offering the other, usually resolves it.
Green diarrhea in babies is a different story. Diarrhea in infants means frequent, loose, watery stools and is often caused by infection. Babies under six months old who have diarrhea with vomiting should be seen by a doctor, because they can become dehydrated quickly.
When Green Stool Deserves Attention
A single green bowel movement, or even a couple of days of green stool after a big salad or a stomach bug, is nothing to worry about. If green stool persists for more than a few days without an obvious dietary explanation, it’s worth checking in with a doctor. The same applies if green stool comes with diarrhea that won’t let up, signs of dehydration (dry mouth, dizziness, dark urine), fever, or blood in the stool.
Staying hydrated is the most important thing you can do when green stool accompanies diarrhea. In most cases, the color corrects itself once the underlying cause, whether it’s a virus, a dietary binge, or a new medication, resolves or is removed.

