Green stool is almost always harmless. The most common cause is something you ate, whether that’s a big salad, a green smoothie, or foods with artificial coloring. Less often, it signals that food moved through your digestive system faster than usual, which can happen with a stomach bug or mild digestive upset. Here’s what’s actually going on and when the color matters.
Green Vegetables and Chlorophyll
The single most common reason for green stool is eating green foods. Spinach, kale, broccoli, avocados, herbs, matcha, and even pistachios all contain chlorophyll, the pigment that makes plants green. Eat enough of it and it passes through your system largely intact, tinting your stool bright green. This is purely cosmetic. Nothing is wrong with your digestion, and it will resolve on its own once those foods cycle through, typically within a day or two.
You don’t need to eat an unusual amount, either. A large spinach salad, a couple of green smoothies, or a heavy day of mixed greens can be plenty. If you recently changed your diet to include more vegetables, expect to see the difference in the toilet before you stop noticing it.
Food Dyes and Processed Foods
Blue and green artificial dyes are the other big dietary culprit. Blue-dyed foods are especially sneaky because blue pigment mixes with the yellow-brown bile in your gut and produces green. Think blue frosting on a birthday cake, grape-flavored drinks, blue sports drinks, or brightly colored candy. Purple and black dyes can have a similar effect. If your stool turned green a day after a party or an unusually colorful meal, that’s likely your answer.
Rapid Transit Through the Gut
Your stool starts out green. Bile, the digestive fluid your liver produces to break down fats, is yellow-green when it first enters the small intestine. As food travels through the full length of your digestive tract, bacteria and enzymes gradually break bile down and turn it brown. That process takes time.
When something speeds up transit, food doesn’t spend long enough in the colon for that color change to finish. The result is stool that stays green or yellow-green. Common triggers include:
- Diarrhea from a stomach virus or food poisoning. The gut pushes everything through quickly to flush out the irritant.
- Stress or anxiety. The nervous system can accelerate gut contractions.
- Antibiotics. They disrupt the gut bacteria that help process bile pigments, often producing looser, greener stools for the duration of the course.
- High caffeine or alcohol intake. Both can stimulate the colon and speed things along.
If rapid transit is the cause, you’ll usually notice other clues: looser consistency, more frequent bowel movements, or mild cramping. Once the underlying trigger passes, stool color returns to normal.
Iron Supplements
Iron supplements frequently turn stool dark green, sometimes so dark it looks almost black. This is a well-known side effect and some doctors actually consider it a sign the supplement is being absorbed properly. The discoloration comes from unabsorbed iron reacting with digestive enzymes. If the color bothers you or comes with stomach discomfort, lowering your dose (with guidance from whoever prescribed it) usually helps. Stopping the supplement returns stool color to normal within a few days.
Green Stool in Babies
Parents searching this topic are often looking at a diaper, not their own toilet. Green stool in newborns and infants is extremely common and rarely a problem.
In the first few days of life, newborns pass meconium, a dark greenish-black, tar-like stool that’s completely normal. After that, breastfed babies can occasionally produce green, frothy, or explosive stools due to something called lactose overload. This happens when breastmilk moves through the baby’s system too quickly for all the lactose (milk sugar) to be fully digested. Fat in breastmilk normally slows transit and gives the gut more time to process lactose, but when there’s a large milk supply or when feeds are short, the baby may not get enough of the fat-rich milk that comes later in a feeding. The undigested lactose ferments in the gut, causing gas, fussiness, and green runny stools.
Formula-fed babies also pass green stool from time to time, especially with iron-fortified formulas. In most cases, as long as the baby is gaining weight and feeding well, the color alone isn’t a concern.
When Green Stool Signals Something More
Isolated green stool with no other symptoms is almost never a medical issue. The color becomes worth paying attention to when it shows up alongside other changes that persist for more than a few days:
- Ongoing diarrhea lasting more than three days, especially with fever, which could point to a bacterial infection like salmonella or a parasitic infection like giardia.
- Significant abdominal pain or cramping that doesn’t resolve, which may indicate inflammation in the gut.
- Unexplained weight loss paired with persistently abnormal stool, which warrants a closer look at nutrient absorption.
- Blood in the stool. Red streaks or black, tarry stool (distinct from the dark green of iron supplements) always deserve medical evaluation regardless of the base color.
Conditions like Crohn’s disease, celiac disease, and certain infections can produce chronically green stool, but they come with a constellation of other symptoms. Green color by itself, especially when you can trace it to a meal or a supplement, is the digestive equivalent of a shrug.
How Long It Lasts
Diet-related green stool clears up within one to three days once you stop eating the triggering food. If rapid transit from a stomach bug caused it, expect it to resolve as the illness runs its course, usually within a week. Supplement-related discoloration lasts as long as you keep taking the supplement. If your stool has been green for more than a week and you can’t connect it to anything you ate or any medication you’re taking, that’s a reasonable point to bring it up with a doctor, especially if other symptoms have appeared alongside it.