Green poop is almost always harmless. In most cases, it means you ate something with a strong pigment or your food moved through your digestive system faster than usual. Occasionally, medications or supplements are the cause. Rarely, it signals an infection or digestive issue worth looking into.
Why Poop Is Normally Brown
Your liver produces bile, a green-yellow fluid that helps you digest fats. When bile enters your intestines, bacteria go to work breaking its pigments down into a compound called stercobilin, which is orange-brown. That transformation is what gives stool its typical color. The process takes time, though. If food moves through your gut quickly, bacteria don’t get to finish the job, and the original green color of bile shows through.
This is why diarrhea often looks green. It’s not a sign of something toxic or dangerous on its own. It simply means transit was too fast for the normal color change to happen. Research on stool patterns confirms the connection: slower transit produces darker, harder stools, while faster transit trends toward lighter, greener ones.
Foods That Turn Stool Green
The most common reason for green poop is diet. Chlorophyll, the pigment that makes plants green, can color your stool the same way. Heavy servings of spinach, kale, or broccoli are frequent culprits. Avocados, fresh herbs, matcha, and pistachios (which get their green color from chlorophyll and other plant pigments) can do the same. Even blueberries sometimes produce green shades rather than the dark blue you might expect.
Artificial food dyes are another cause. The bright frosting on a cupcake or the coloring in a sports drink keeps tinting what it touches as it passes through your digestive tract. Green or blue dyes are especially likely to show up in your stool. If you ate something unusually colorful in the past day or two, that’s probably your answer.
Medications and Supplements
Iron supplements are well known for changing stool color. They often produce a dark green or even blackish shade that can look alarming but is a normal side effect of the iron passing through your system. Some antibiotics also tint poop green or yellow by disrupting the gut bacteria responsible for converting bile pigments to their usual brown. If you recently started a new medication and notice the change, the timing is probably not a coincidence.
Infections and Digestive Conditions
When green stool comes with watery diarrhea, cramping, or fever, an infection may be involved. Bacterial infections like salmonella and parasites like giardia can speed up digestion dramatically, preventing bile from being processed. Viral stomach bugs do the same thing. In these cases, the green color isn’t the problem itself. It’s a side effect of the rapid transit caused by the infection.
Certain chronic digestive conditions, including Crohn’s disease and celiac disease, can also lead to green stool during flare-ups because they affect how well nutrients and bile are absorbed. If green stool keeps recurring without an obvious dietary explanation, that pattern is worth mentioning to your doctor.
Green Stool in Babies
Green poop in newborns is extremely common and rarely a concern. In the first few days of life, babies pass meconium, a dark green-black, tar-like substance that was in their intestines before birth. This is completely normal and clears within a few days.
Breastfed babies sometimes have green stool if they aren’t finishing a full feeding on one side. The milk that comes first during a feeding is lower in fat, and skipping the fattier milk that follows can affect how it’s digested, resulting in greener poop. Babies on hydrolysate formula (a special type used for milk or soy allergies) also tend to produce green stool. And because infant gut bacteria are still developing, breastfed babies may not have enough of the specific bacteria needed to fully convert bile pigments to brown.
Green diarrhea in a baby, especially with fever or signs of dehydration like fewer wet diapers, is a different situation and worth a call to the pediatrician.
When Green Poop Is a Concern
A single episode of green stool, or even a few days of it after a big salad or a course of antibiotics, is not something to worry about. The color alone is not a red flag. What matters more is what accompanies it. Watch for severe abdominal pain or cramping, fever, bloody or jet-black stool, persistent diarrhea lasting more than a few days, signs of dehydration, or unexplained weight loss.
Black or bright red stool deserves prompt attention because it can indicate bleeding in the digestive tract. Green does not carry that same urgency. If the color persists for more than a couple of weeks and you can’t connect it to anything in your diet or medication list, that’s a reasonable time to bring it up with a doctor. Otherwise, your gut is most likely doing exactly what it’s supposed to do with whatever you gave it.

