Why Is My Poop Green? Causes and When to Worry

Green stool is almost always harmless. It usually means food moved through your intestines faster than normal, or you recently ate something with a lot of green pigment. In most cases, the color returns to brown within a day or two without any action on your part.

How Stool Gets Its Normal Brown Color

Your liver produces bile, a digestive fluid that starts out green. Bile gets its color from a pigment called biliverdin, which forms when your body breaks down old red blood cells. As bile travels through your intestines, gut bacteria go to work on it, converting that green pigment first into a yellowish compound called urobilinogen, then into stercobilin, a dark orange-brown pigment that gives stool its characteristic color.

This whole conversion process takes time. When everything in your gut is moving at a normal pace, bacteria have enough hours to fully transform the green bile pigments into brown ones. But if something speeds up your digestion, stool passes through before bacteria finish the job, and you end up seeing green in the toilet. That’s the single most common explanation.

Foods That Turn Stool Green

Chlorophyll, the pigment that makes plants green, can overwhelm your body’s ability to break it down when you eat enough of it. The usual culprits are spinach, kale, and broccoli. If you recently had a big salad or a green smoothie, that alone can explain what you’re seeing.

Matcha is another common trigger. Because it’s a concentrated powder made from whole tea leaves, even a single serving delivers a heavy dose of chlorophyll. Blueberries and blackberries can also turn stool green, despite being blue or purple themselves, because of how those pigments interact with bile during digestion.

Artificial food coloring is a frequent and often overlooked cause. Green and blue dyes found in candy, fruit snacks, cake frosting, freeze pops, and brightly colored drinks can push stool toward green. If you ate or drank anything with vivid coloring in the last 24 to 48 hours, that’s likely your answer.

Iron Supplements and Medications

Iron supplements are well known for changing stool color. Whether you take them as tablets or liquid, iron can produce dark green or even black stool. This is a normal chemical reaction between the iron and your digestive fluids, not a sign of a problem. Bismuth subsalicylate, the active ingredient in products like Pepto-Bismol and Kaopectate, can do the same thing.

If you recently started either of these and noticed a color change, that’s the most likely explanation. The effect lasts as long as you keep taking them.

Fast Transit and Diarrhea

Anything that speeds up digestion can produce green stool, because bile doesn’t have time to complete its color transformation. This includes:

  • Stomach bugs and food poisoning: Viral and bacterial infections push food through your system quickly. Green, watery diarrhea is common with these illnesses.
  • Irritable bowel syndrome (IBS): Flare-ups that involve diarrhea can move stool fast enough to keep it green.
  • Stress or anxiety: Your gut responds to stress hormones by speeding up contractions, which shortens transit time.
  • Caffeine or alcohol: Both stimulate the gut and can accelerate digestion.

If your green stool came with diarrhea, the rapid transit explanation is almost certainly what happened. Once your digestion returns to its normal pace, the brown color comes back.

Infections Worth Knowing About

Certain infections specifically produce green or greenish diarrhea. Giardia, a waterborne parasite found in lakes, rivers, streams, and sometimes public water supplies, infects the small intestine and causes loose, watery, sometimes greasy stools that can look green. It spreads through contaminated water, unwashed food, and direct contact with infected stool. Daycare centers are common settings for outbreaks.

Salmonella and other bacterial infections can also produce green diarrhea, typically alongside cramping, fever, and nausea. If your green stool appeared with these symptoms, especially after travel, swimming in natural water, or eating something questionable, an infection is worth considering.

Gallbladder Removal

If you’ve had your gallbladder removed, green stool may show up more often than it used to. Without a gallbladder to store and release bile in controlled amounts, more bile acids flow directly into your large intestine. This extra bile can act as a laxative, speeding transit and keeping stool on the greener side. For some people this is an occasional nuisance, for others it becomes a recurring pattern that improves over months as the body adjusts.

Green Stool in Babies

Green poop in infants has its own set of causes and is usually not concerning. Newborns pass dark green-black meconium in their first few days, which is entirely normal. After that transition, green stool in breastfed babies can happen when a baby doesn’t finish nursing on one side. The earlier, lower-fat milk gets digested differently than the fattier milk that comes later in a feeding, and this can produce green stools. Babies on hydrolyzed formula, the type used for milk or soy allergies, also commonly have green stool as a normal side effect.

Breastfed infants who haven’t yet developed a full community of gut bacteria may also produce green stool simply because those bacteria are what convert bile from green to brown. As the baby’s microbiome matures, stool color typically shifts to the expected yellow-brown range.

When Green Stool Signals a Problem

A single green bowel movement, or even a few days of them after a dietary change, is not a concern. Green stool that persists for more than a few days without an obvious dietary explanation is worth bringing up with a doctor. The same goes for green diarrhea accompanied by signs of dehydration: dry mouth, dizziness, dark urine, or in children, fewer wet diapers than usual.

Color alone is rarely the issue. What matters more is whether the green stool comes with other symptoms like fever, severe cramping, blood, or unexplained weight loss. Those combinations point toward infections, inflammatory conditions, or malabsorption problems that benefit from proper evaluation. Green stool on its own, without those red flags, almost always resolves by itself.