Green poop is almost always harmless. The most common cause is something you ate, whether that’s a big spinach salad, a drink with green food coloring, or an iron supplement. In most cases, your stool returns to its usual brown within a day or two once the trigger passes through your system.
To understand why green happens, it helps to know why brown is the default. Your liver produces bile, a yellow-green fluid that helps digest fat. As bile travels through your intestines, bacteria break it down and gradually shift its color from green to yellow to brown. Anything that speeds up that journey or adds green pigment from outside can leave your stool looking green.
Foods That Turn Stool Green
Leafy greens are the most obvious culprit. Spinach, kale, broccoli, and other chlorophyll-rich vegetables can tint your stool green, especially if you eat a large serving. The pigment is concentrated enough that your digestive system can’t fully break it down before it exits.
Artificial food coloring is another frequent cause. Green drink mixes, ice pops, frosted cakes, and certain candies all contain dyes that pass through largely unchanged. Purple and blue dyes can also create a green appearance once they mix with yellow bile in your gut, so the food doesn’t need to look green going in to produce green coming out.
Medications and Supplements
Iron supplements are well known for changing stool color. They typically turn it dark green or even black, which can be alarming if you’re not expecting it. This is a normal side effect and not a sign of a problem.
Some antibiotics can tint stool yellow or green. They do this partly by altering the balance of gut bacteria responsible for breaking down bile pigments. When those bacteria are disrupted, bile doesn’t complete its usual color transformation. If you’ve recently started an antibiotic and notice the change, it will generally resolve once you finish the course.
Rapid Transit Through the Gut
When food moves through your intestines faster than usual, bile doesn’t have enough time to be fully broken down by bacteria. The result is stool that retains bile’s original green tint. This is why green stool so often accompanies diarrhea, regardless of the underlying cause.
Anything that accelerates digestion can trigger this. Stress, a stomach bug, food intolerance, too much caffeine, or even a particularly large meal can speed things along. The green color in these cases isn’t the problem itself. It’s just a visible sign that transit was faster than normal.
Infections That Cause Green Stool
Certain infections force your intestines to flush their contents quickly, producing green, watery diarrhea. Salmonella, norovirus, and the waterborne parasite giardia are common examples. With these infections, the green color comes from that same rapid transit mechanism: bile moves through too fast to turn brown.
Infection-related green stool is usually accompanied by other symptoms like cramping, nausea, fever, or vomiting. The color alone isn’t what distinguishes an infection from a dietary cause. It’s the combination of green stool with feeling genuinely sick that points toward something infectious.
After Gallbladder Removal
If you’ve recently had your gallbladder removed, green or loose stools are common in the weeks following surgery. The gallbladder normally stores and concentrates bile, releasing it in controlled amounts when you eat. Without it, bile drips continuously from the liver directly into the small intestine. This excess bile can give stool a greenish tinge and make it looser than usual.
For most people, the body adjusts within a few days to a few weeks. Some people notice the effect lasts longer, particularly after fatty meals. This is a normal part of the post-surgical adjustment, not a complication.
Green Stool in Babies
Green poop in infants has its own set of causes, and most of them are perfectly normal. In the first few days of life, newborns pass meconium, a dark green-black, tar-like stool that’s made up of everything they ingested in the womb. This clears within a couple of days.
In breastfed babies, green stool can happen when the baby doesn’t fully finish feeding on one side before switching. The earlier milk in a feeding session is lower in fat, and missing the higher-fat milk at the end can affect how it’s digested, sometimes producing greener stool. Babies on protein hydrolysate formula (a type used for milk or soy allergies) also tend to have greener stools. Breastfed infants who haven’t yet developed a full population of intestinal bacteria may show green stool as well, simply because those bacteria aren’t there yet to complete the bile pigment breakdown.
When Green Stool Signals a Problem
A single green bowel movement, or even a few days of green stool after a big salad or a new supplement, is not a concern. The color alone is almost never dangerous.
The signs that warrant attention are about context, not color. Green stool that persists for more than a few days without an obvious dietary explanation is worth mentioning to a doctor. Green diarrhea that leads to dehydration, especially in young children or older adults, needs prompt medical attention. And if green stool comes alongside high fever, blood in the stool, or severe abdominal pain, those accompanying symptoms are what make the situation urgent.
Staying hydrated is the most important immediate step when green stool accompanies diarrhea. The green will resolve on its own once transit time returns to normal or the dietary trigger clears your system.

