What Green Poop Means: Causes and When to Worry

Green poop is almost always harmless. The most common cause is something you ate, whether that’s a big serving of leafy greens, a brightly colored treat, or a food with artificial dyes. Less often, green stool signals that food moved through your intestines faster than usual, or that an infection or medication shifted things in your gut. Here’s how to tell the difference.

How Stool Gets Its Color

Normal stool is brown because of bile, a digestive fluid your liver produces. Bile starts out yellow-green, and as it travels through your intestines, bacteria break it down into brown pigments. Anything that speeds up that journey or changes the chemistry along the way can leave your stool looking green instead. That’s why the two broadest explanations for green poop are simple: you put something green (or blue) into your body, or your digestion moved too quickly for bile to fully break down.

Foods That Turn Stool Green

Leafy greens are the most obvious culprit. Spinach, kale, broccoli, and other green vegetables contain chlorophyll, and eating a large amount can tint your stool noticeably. But greens aren’t the only food that does this. Cauliflower, cantaloupe, carrots, figs, and grapefruit have all been associated with changes in stool appearance.

Artificial food dyes are another frequent cause, and the connection isn’t always intuitive. A combination of FDA-approved Yellow #6, Blue #1, and Red #40 can produce dark or even black-colored foods that turn stool bright lime-green once they mix with digestive fluids. One published case report described a patient who ate a black-dyed hamburger bun and developed stool that appeared black initially, then turned vivid green on contact with water. So if your stool color changed after eating something with heavy food coloring (think frosted cupcakes, sports drinks, or novelty fast food), that’s likely your answer.

Medications and Supplements

Several common over-the-counter products can shift stool color toward green or dark green:

  • Iron supplements darken stool and can give it a greenish hue.
  • Bismuth subsalicylate (the active ingredient in many antidiarrheal products) reacts with sulfur in your digestive tract, producing dark green or black stool.
  • Aluminum hydroxide antacids can cause greenish stool as a side effect.
  • Antibiotics disrupt the normal balance of gut bacteria, which can change how bile is processed and alter stool color.

If you recently started any of these and notice a color change with no other symptoms, the medication is the most likely explanation.

Rapid Transit Through the Gut

When food moves through your intestines faster than normal, bile doesn’t have enough time to be fully broken down by bacteria. The result is stool that retains bile’s original yellow-green color. This is one reason green stool often shows up alongside diarrhea. Anything that accelerates digestion, from a stomach bug to anxiety to a large cup of coffee on an empty stomach, can produce this effect. The green color in these cases is temporary and resolves once your digestion returns to its normal pace.

Infections and Digestive Conditions

Bacterial infections can cause green diarrhea, sometimes with cramping, fever, or nausea. The green color comes from the same rapid-transit mechanism: your inflamed intestines push contents through before bile can break down normally. Irritable bowel syndrome (IBS) can also produce green stool during flare-ups for similar reasons.

Conditions that interfere with nutrient absorption can change stool color and texture as well. Celiac disease, for example, damages the lining of the small intestine so it can’t properly absorb fats. This leads to stools that are greasy, foul-smelling, frothy, and sometimes greenish. If you’re seeing persistently unusual stool alongside symptoms like bloating, weight loss, or fatigue, a malabsorption issue is worth investigating.

Green Stool in Babies

Green poop in infants is extremely common and rarely a problem. Newborns pass meconium (a dark, tar-like, greenish-black stool) in their first few days. After that transition, green stool in breastfed babies can happen when a baby doesn’t finish feeding on one side, missing the higher-fat milk that comes later in the feeding. This changes how the milk is digested and can produce green, sometimes frothy stool.

Other common causes in infants include protein hydrolysate formula (used for babies with milk or soy allergies), the still-developing balance of intestinal bacteria in breastfed newborns, and simple diarrhea. Occasional green diapers with a happy, feeding baby are not a concern.

When Green Stool Needs Attention

A single green bowel movement, or even a few days of it after eating a salad-heavy meal or starting iron supplements, is not a medical issue. The color should return to brown once the dietary cause passes through your system.

Green stool that persists for more than a few days without an obvious dietary explanation is worth a call to your doctor. The same is true if green stool is accompanied by diarrhea that won’t let up, since the main risk with prolonged diarrhea is dehydration rather than the color itself. In infants and young children especially, signs of dehydration (fewer wet diapers, no tears when crying, unusual drowsiness) call for prompt medical attention. And if your stool is actually black and tarry rather than dark green, that’s a different situation entirely, as it can indicate bleeding higher in the digestive tract.