Green poop is almost always caused by something you ate, a medication you’re taking, or food moving through your intestines faster than usual. In most cases, it’s harmless and resolves within a day or two. Less commonly, it can signal an infection, especially if it comes with diarrhea, fever, or cramping.
How Poop Gets Its Color
Your stool is brown because of bile, a digestive fluid your gallbladder releases into your small intestine. When bile is first secreted, it’s actually green. As it travels through your digestive tract and gets broken down, the pigment in bile (called bilirubin) gradually shifts from green to yellow to brown. This chemical transformation takes time, and time is the key variable.
When everything moves at a normal pace, bile completes its color change by the time stool reaches the exit. But if anything speeds up that journey, bile doesn’t fully convert, and your poop comes out green. This is the single most common non-food explanation for green stool: your gut simply moved things along too quickly.
Foods That Turn Stool Green
The most straightforward cause is eating a lot of green or blue-pigmented food. Chlorophyll, the pigment that makes plants green, passes through your digestive system and can color your stool on the way out. Heavy servings of spinach, kale, or broccoli are the usual culprits. But the list extends further than most people realize: avocados, fresh herbs, pistachios, and matcha (powdered green tea) all carry enough chlorophyll to have a visible effect.
Blue and purple foods can also produce green poop, which surprises people. Blueberries and blackberries can temporarily shift a normal brown stool toward green. And artificial food coloring, the kind found in candy, cake frosting, freeze pops, and brightly colored drinks, is potent enough to tint your stool well after you’ve eaten it. If you or your child recently ate something with vivid blue or green dye, that’s very likely the explanation.
A food-related color change typically clears up within a day or two once the source is out of your system.
Medications and Supplements
Iron supplements are a well-known cause of dark green or even blackish-green stool. The iron itself changes color as it’s processed, and the effect can be startling if you’re not expecting it. Some antibiotics can also shift stool color to green or yellow, partly because they disrupt the balance of gut bacteria that normally help process bile pigments. If you recently started a new medication and your stool color changed around the same time, the two are likely connected.
Fast Transit and Diarrhea
Anything that speeds up digestion can produce green stool, because bile doesn’t have enough time to complete its green-to-brown transformation. Diarrhea is the most obvious example. When your gut is flushing contents through rapidly, you get what’s essentially a rush of unprocessed bile coloring the stool green.
This can happen with a stomach bug, food intolerance, stress, or even a sudden increase in dietary fiber. If you’ve had loose stools for a day or two and the color is green, the speed of transit is likely doing the work. The color itself isn’t the problem; the diarrhea is what matters.
Infections That Cause Green Stool
Several common infections can produce green diarrhea specifically, because they trigger rapid, forceful emptying of the intestines.
- Salmonella comes from contaminated food, especially undercooked poultry and eggs. It typically causes diarrhea, stomach cramps, and fever.
- E. coli spreads through contaminated food or water. Symptoms include stomach cramps, vomiting, and sometimes bloody diarrhea.
- Norovirus is extremely contagious and causes stomach pain, diarrhea, and vomiting. It spreads quickly in close quarters like schools, cruise ships, and households.
- Giardia is a parasitic infection, often picked up from contaminated water. It tends to cause greasy, foul-smelling stools along with gas, bloating, and dehydration.
The distinguishing factor with infections is that green stool won’t be your only symptom. Fever, cramping, vomiting, or prolonged diarrhea all point toward something your body is actively fighting, not just a dietary quirk.
IBS and Chronic Digestive Conditions
People with irritable bowel syndrome sometimes notice green stool during flare-ups, particularly when diarrhea is the dominant symptom. The mechanism is the same: faster transit means less time for bile to change color. If you already have a diagnosed digestive condition and green stool shows up alongside your usual symptoms, it’s generally part of the pattern rather than something new to worry about. But if the color change is persistent or accompanied by symptoms you haven’t experienced before, it’s worth mentioning at your next appointment.
When Green Stool Needs Attention
A single green bowel movement, or even a couple of them after a big salad or a colorful treat, is not a concern. The color should return to brown within a few days once the trigger passes.
Green stool becomes more meaningful when it lasts longer than a few days, when it’s accompanied by fever or significant abdominal pain, or when you’re dealing with persistent diarrhea that risks dehydration. In children especially, dehydration from ongoing diarrhea can escalate quickly. If the green color keeps showing up and you can’t trace it to food, a supplement, or a medication, that’s a reasonable time to get it checked out. The color alone rarely indicates anything serious, but paired with other symptoms, it helps your provider narrow down what’s going on.