Green poop is usually caused by one of three things: food moving through your gut too fast, something green you ate or drank, or a small amount of bile that did not finish breaking down. In most cases it clears up on its own within a day or two. The color itself is rarely the important part. What matters is whether it came with other symptoms.
Bile is the key to understanding almost every green stool. Your liver makes bile, a yellow-green fluid that helps digest fat. Bile travels to your small intestine, where bacteria normally break it down further into a brown pigment called stercobilin. That is what gives healthy stool its usual brown color. When that breakdown process gets rushed or interrupted, the green shows through.
Why Does Is Your Poop Green? The Main Causes
Speed is the most common reason. When food and waste move through your intestines faster than usual, bile does not get enough time to be converted to brown. The result is green stool. This is why diarrhea of almost any cause can turn your poop green.
Diet is the second big cause, and it is easy to overlook. Green vegetables contain chlorophyll, the pigment that makes plants green. If you eat a large amount of spinach, kale, broccoli, or similar greens, some of that pigment can pass through undigested and show up in your stool. This is harmless.
Food dyes are the third. Anything with heavy green coloring — frosting, candy, sports drinks, gelatin — can tint your stool. So can purple or blue dyes, which sometimes come out looking green after mixing with bile.
A few other causes are worth knowing:
- Iron supplements and some medications can darken or change stool color
- Antibiotics can shift the bacteria in your gut and change how bile is processed
- Certain medical conditions affect bile flow or absorption
The mechanism matters here. Green stool from a fast transit time looks different from green stool caused by diet, but both are usually temporary.
What Foods and Drinks Turn Poop Green?
Chlorophyll-rich vegetables are the most common dietary cause. Spinach, kale, Swiss chard, collard greens, broccoli, and green bell peppers all contain high levels of this pigment. If you ate a large salad or a big serving of these the day before, that is a likely explanation.
Green food coloring is a frequent culprit too. It shows up in cake frosting, ice cream, candy, gelatin desserts, and some beverages. Matcha and wheatgrass drinks can also do it, since both are concentrated plant pigments.
One detail people miss: blue and purple dyes can produce green stool. That is because the dye mixes with yellow bile in your gut, and yellow plus blue makes green. So if you ate something bright blue or purple and your stool looks green, the dye is still the likely cause.
Diet-related green stool usually appears within a day of eating the food and clears once you stop. It does not come with pain, fever, or a change in how often you go.
When Is Green Poop a Sign of Diarrhea or Infection?
Green stool and diarrhea often go together, and the reason is transit time. When your gut moves contents through quickly, bile does not have time to be broken down into brown pigment. The faster the transit, the greener the result.
This can happen with a stomach bug, food poisoning, or any cause of short-term diarrhea. It can also happen with certain gut conditions that speed up transit or affect how your body absorbs bile acids.
Some infections are worth mentioning specifically. Certain bacteria and parasites can cause diarrhea that turns stool green, but the color alone does not identify the cause. You cannot tell what organism is involved just by looking at the color. A doctor would need a stool test to know.
If diarrhea lasts more than a few days, comes with fever, or causes dehydration, that is when to get medical care — not because the stool is green, but because of the diarrhea itself.
Can Green Poop Mean a Liver or Gallbladder Problem?
Green stool by itself is not a typical sign of liver or gallbladder disease. That is a common worry, and it is worth addressing directly.
Liver and gallbladder problems usually change stool in a different direction. When bile flow is blocked, stool can turn pale, clay-colored, or gray, because the pigments that normally color it are not reaching the gut. Dark, tarry stool can signal bleeding in the upper digestive tract. Neither of those looks green.
That said, bile flow and bile processing do affect stool color. Conditions that change how bile acids are absorbed in the intestine can lead to greener stool. But these are usually diagnosed by other symptoms and tests, not by color alone.
If you notice pale or clay-colored stool, dark tarry stool, or yellowing of the eyes or skin, those are reasons to see a doctor promptly. Green stool on its own is not in that category.
Green Poop in Babies and Children
Green stool is common and usually normal in babies. Newborns pass meconium in the first days of life, which is dark green to black. As they start feeding, stool color shifts.
Breastfed babies often have greenish or mustard-yellow stool. Formula-fed babies may have stool that varies more. Both can be normal.
In older children, the same causes apply as in adults: green foods, food dyes, and fast transit during diarrhea. Green stool after a stomach bug is common and not a concern on its own.
For infants, color is less important than other signs. Call a doctor if a baby has blood in the stool, white or clay-colored stool, is feeding poorly, or seems unwell. No clinical guidelines single out green stool alone as a warning sign in healthy, feeding infants.
When Should You See a Doctor About Green Stool?
Green stool on its own rarely needs medical attention. It usually resolves within a day or two once the cause passes.
See a doctor if green stool comes with any of these:
- Diarrhea lasting more than a few days
- Fever
- Blood in the stool
- Severe or persistent belly pain
- Signs of dehydration, such as dizziness or very dark urine
- Pale, white, or clay-colored stool
- Yellowing of the eyes or skin
- Unexplained weight loss
The pattern matters more than the color. A single green stool after a big spinach salad is not the same as green stool with ongoing diarrhea and fever. Pay attention to what else is happening, not just the shade.
How to Tell What Is Causing Your Green Poop
You can often figure out the cause by looking at timing and context.
| Likely Cause | What You Might Notice |
|---|---|
| Green foods | Appears within a day of eating greens; no other symptoms |
| Food dye | Recent green, blue, or purple foods or drinks |
| Fast transit or diarrhea | Loose stool, urgency, recent illness |
| Supplements or medicine | Started a new iron supplement or antibiotic |
If none of these fit and the green keeps coming back without an obvious reason, that is a reasonable time to check with a doctor. Not because green is dangerous, but because a recurring change with no explanation is worth understanding.
What Green Poop Does Not Mean
Green stool does not mean your body is detoxing. That claim circulates online, but there is no evidence behind it. Stool color reflects what you ate, how fast things moved, and how bile was processed — not the release of toxins.
It also does not mean you have a parasite. Some people assume green stool points to an infection, but color alone cannot identify an organism. Only testing can.
And it does not mean something is wrong with your liver just because bile is involved. Bile is part of normal digestion. Seeing its green color simply means the usual breakdown into brown did not fully happen this time.
Frequently Asked Questions
Is green poop something to worry about?
Usually no. Most green stool is caused by diet, food dye, or fast transit and clears up within a day or two. It is worth checking with a doctor only if it comes with diarrhea that lasts, fever, blood, or ongoing pain.
What foods make your poop green?
Spinach, kale, broccoli, and other chlorophyll-rich greens are the most common foods, along with anything containing green food dye. Blue and purple dyes can also turn stool green after mixing with bile.
Can green poop mean a stomach infection?
It can happen with diarrhea from an infection, because fast transit leaves bile green. But the color alone cannot tell you which organism, if any, is involved — that requires a stool test.
How long does green poop last?
When food or dye is the cause, it usually clears within a day or two once you stop eating the source. Green stool tied to diarrhea lasts as long as the diarrhea does.

