Green poop usually means one of two things: something you ate contained a lot of green pigment, or food moved through your intestines too quickly for normal color changes to happen. In most cases, it’s harmless and temporary. But if it keeps happening without an obvious dietary explanation, there are a few other causes worth understanding.
How Stool Gets Its Normal Brown Color
Your liver produces bile, a greenish fluid that helps digest fats. When bile enters your small intestine, it starts out green. As it travels through the rest of your digestive tract, bacteria break down the bile pigment bilirubin into a compound called stercobilin, which gives stool its characteristic brown color. This bacterial conversion is the entire reason your poop is brown rather than green.
Anything that interrupts this process, whether by speeding food through before bacteria can do their work, overwhelming the system with green pigments, or disrupting gut bacteria altogether, can leave you with green stool.
Foods and Drinks That Turn Stool Green
The most common and least concerning explanation is diet. Chlorophyll, the pigment that makes plants green, can do the same to your stool when you eat enough of it. Spinach, kale, and broccoli are the usual suspects, but avocados, fresh herbs, matcha, and even pistachios (which get their color from chlorophyll) can have the same effect. Blueberries can also produce green-tinged stool in some people.
Artificial food dyes are another frequent cause. Brightly frosted cupcakes, green candy, sports drinks, and ice cream can all tint your stool unexpected colors. The dye continues coloring whatever it touches as it moves through your system. If you’ve recently eaten something with vivid green, blue, or purple coloring, that’s likely your answer.
Rapid Digestion and Bile
When food passes through your intestines faster than usual, gut bacteria don’t have enough time to convert bile from green to brown. The result is stool that still carries that original greenish color. This is why diarrhea from any cause, whether it’s a stomach bug, food intolerance, or stress, often comes out green. The speed of transit is the issue, not necessarily what you ate.
Common triggers for rapid transit include high caffeine intake, alcohol, anxiety, a sudden increase in fiber, and laxative use. If your green stool is also loose or watery, fast digestion is probably the mechanism at work.
Medications and Supplements
Several common medications and supplements can change stool color to green:
- Iron supplements frequently cause dark green or blackish-green stool. This is a well-known side effect and not a sign of a problem.
- Antibiotics can disrupt the balance of gut bacteria responsible for converting bile pigments. Without those bacteria working normally, stool stays green.
- Antidiarrheal medications containing bismuth subsalicylate react with sulfur in your digestive system, producing dark green or black stool.
- Antacids containing aluminum hydroxide can produce a greenish tint.
If you recently started any of these and noticed the color change, the timing is probably not a coincidence. The green color typically resolves when you stop taking the medication or supplement.
Infections That Cause Green Stool
Gut infections speed up digestion dramatically, which means bile doesn’t get fully processed. Bacterial infections like Salmonella, E. coli, and C. difficile can all cause green diarrhea. So can viral infections like norovirus and rotavirus. Parasitic infections, particularly Giardia, tend to produce green, foul-smelling stool along with bloating and cramping.
The key difference between infection-related green stool and dietary causes is that infections almost always come with other symptoms: diarrhea lasting more than a couple of days, fever, nausea, or abdominal pain. If your green stool showed up alongside any of these, an infection is a real possibility.
Malabsorption and Digestive Disorders
Persistent green stool that also floats can signal a malabsorption problem, meaning your intestines aren’t properly absorbing fats and other nutrients. The occasional floating stool is normal, but if it happens regularly alongside green color, it could point to conditions like celiac disease, inflammatory bowel disease, or other disorders that affect nutrient absorption. These conditions usually come with additional signs like unexplained weight loss, ongoing bloating, or chronic diarrhea.
Green Stool in Babies
If you’re a parent searching on behalf of your infant, green stool in babies has its own set of causes. Breastfed babies may produce green stool if they aren’t finishing a full feeding on one side, which means they get more of the lower-fat foremilk and less of the higher-fat hindmilk. This changes how the milk is digested. Babies on protein hydrolysate formula (used for milk or soy allergies) commonly have green stool as well. Newborns also lack the fully established gut bacteria that convert bile pigments, so green stool in the first weeks of life is expected.
When Green Stool Needs Attention
Isolated green stool, or green stool you can trace to a specific food, supplement, or medication, rarely needs medical evaluation. The color alone isn’t a danger sign. What matters is the pattern and what comes with it.
Green stool that persists for more than a few days without a clear dietary cause, especially combined with diarrhea, fever, cramping, or unintentional weight loss, is worth investigating. If your stool is bright red or black (not dark green from iron supplements), that may indicate bleeding in the digestive tract and needs prompt attention. Green stool that consistently floats and appears greasy also warrants a conversation with your doctor, since it may reflect a nutrient absorption issue that can be tested for directly.

