Green poop is almost always harmless. The most common cause is something you ate, whether that’s a big spinach salad, a smoothie packed with kale, or a cupcake with bright frosting. In most cases, your stool color returns to its usual brown within a day or two without any action on your part.
To understand why green happens, it helps to know why brown is normal. Your liver produces bile, a yellow-green fluid that helps digest fats. As bile travels through your intestines, bacteria break it down and chemically transform it into a brown pigment. Anything that changes that process, from the foods you eat to how fast things move through your gut, can leave your stool looking green.
Foods That Turn Stool Green
Leafy greens are the most obvious culprit. Spinach, kale, broccoli, and similar vegetables are loaded with chlorophyll, the pigment that makes plants green. Eat enough of them and that pigment carries straight through to your stool. Avocados, fresh herbs, matcha, and pistachios (which get their color from chlorophyll and related plant pigments) can do the same thing. Even blueberries, despite being dark blue, sometimes produce greenish stool.
Artificial food coloring is another frequent cause. The dyes used in brightly frosted baked goods, candy, drink mixes, and similar products keep their color as they pass through your digestive system. If you recently ate something with vivid green, blue, or purple coloring, that’s likely your answer. This type of color change is completely harmless and clears up once the dye works its way out.
Medications and Supplements
Several common over-the-counter products can shift your stool color toward green:
- Iron supplements often darken stool and can give it a greenish tint. This is one of the most frequently reported side effects of iron supplementation.
- Bismuth subsalicylate, the active ingredient in many antidiarrheal medications, reacts with sulfur in your digestive tract. The result can be dark green or even black stool.
- Antacids containing aluminum hydroxide can produce greenish stool as a side effect.
- Antibiotics disrupt the normal balance of gut bacteria. Since those bacteria are responsible for converting bile from green to brown, killing some of them off can leave stool looking greener than usual until your gut flora recovers.
If you recently started any of these and notice a color change, the medication is almost certainly the explanation. The color shift typically resolves when you stop taking it or when your body adjusts.
When Food Moves Through Too Fast
The average transit time through the colon is 30 to 40 hours, and anything up to about 72 hours is still considered normal. That window gives bile enough time to be fully broken down by gut bacteria, producing the familiar brown color. When something speeds up that process, bile passes through partially digested, and its original yellow-green color shows up in your stool.
This is why diarrhea from any cause, whether it’s a stomach bug, food intolerance, stress, or too much coffee, often produces green stool. The green color in these cases isn’t a separate problem. It’s just a visual sign that things moved through faster than usual. Once your digestion returns to its normal pace, the brown color comes back.
Infections That Cause Green Stool
Certain gut infections can produce green or greenish diarrhea. Bacterial infections like salmonella speed up transit dramatically, and parasitic infections like giardia cause loose, watery, sometimes greasy stools that can appear green. Giardia symptoms typically show up one to three weeks after exposure and include watery or greasy stools, stomach cramps, bloating, gas, fatigue, and sometimes weight loss.
The key difference between infection-related green stool and a dietary cause is what comes with it. Green stool from spinach or food coloring shows up on its own, with no other symptoms. Green stool from an infection usually arrives alongside diarrhea that lasts several days, cramping, nausea, or fever.
After Gallbladder Removal
If you’ve had your gallbladder removed, you may notice greener stools than you used to have. Your gallbladder’s job was to store and concentrate bile, releasing it in controlled amounts when you ate fatty foods. Without it, bile flows more continuously and in larger quantities into your intestines. This extra bile can act as a laxative, speeding transit and giving stool a greener hue. For many people this effect is most noticeable in the weeks after surgery and gradually improves, though some experience it long-term.
Green Stool in Babies
Parents frequently notice green stool in infants, and it’s rarely a concern. Newborns pass very dark green or black meconium in their first few days, which is entirely normal. As feeding gets established, stool transitions through various shades of green and yellow.
In breastfed babies, green stool sometimes happens when an infant doesn’t finish feeding on one side before switching to the other. The milk produced earlier in a feeding session is lower in fat than the richer milk that comes later. When a baby gets more of that lower-fat milk, it can affect digestion and produce green stool. Babies on specialized hydrolyzed formula, used for milk or soy allergies, also commonly have green stool. And just like in adults, any bout of diarrhea in an infant can turn stool green simply because of faster transit time.
When Green Stool Signals Something Serious
Green stool on its own, without other symptoms, is not a red flag. It almost never indicates a dangerous condition. The situations worth paying attention to involve what accompanies the color change:
- Diarrhea lasting more than a few days, especially with fever or severe cramping, could point to a bacterial or parasitic infection that needs treatment.
- Significant, unexplained weight loss alongside persistent changes in stool color or consistency deserves evaluation.
- Stool that is bright red or black (not dark green) may indicate bleeding in the digestive tract and warrants prompt medical attention.
If your stool is green and you feel fine otherwise, the most likely explanation is sitting on your plate or in your medicine cabinet. Give it a day or two and it will almost certainly resolve on its own.

