Why Is My Poop Green? Causes and When to Worry

Green poop is almost always harmless. The most common cause is something you ate, whether that’s a big spinach salad, a food with artificial dye, or anything else loaded with green pigment. The second most common cause is food moving through your digestive system faster than usual, which prevents bile from completing its normal color change from green to brown.

How Stool Gets Its Color

Your liver produces bile, a yellow-green fluid that helps digest fats. When bile enters your intestines, enzymes and gut bacteria chemically transform it step by step. The process starts with a green pigment called biliverdin, which gets converted into bilirubin, and then finally into stercobilin, the pigment responsible for the familiar brown color of stool.

This conversion takes time. If anything speeds up your digestion or disrupts the bacteria doing this work, the bile pigments don’t fully break down. The result is stool that stays somewhere on the green spectrum, from bright lime to dark olive, depending on how far the process got before everything moved along.

Foods That Turn Stool Green

Chlorophyll is the most obvious culprit. Spinach, kale, broccoli, and other dark leafy greens contain enough of this plant pigment to visibly tint your stool, especially if you eat a large serving. Green smoothies and juices concentrate the effect even further.

Artificial food dyes are the other major dietary cause. Blue and green dyes (particularly Blue #1, which is common in processed foods, candies, and drinks) can turn stool a vivid green. Purple or black-colored foods often combine Blue #1 with other dyes like Yellow #6 and Red #40, and the blue component can produce surprisingly green results on the other end. If you recently ate brightly colored cereal, frosting, candy, or a novelty food item, that’s very likely your answer.

Rapid Digestion and Diarrhea

When food moves through your large intestine too quickly, bile doesn’t have time to complete its chemical transformation from green to brown. This is why a bout of diarrhea, from any cause, often produces green stool. It’s not a separate problem on top of the diarrhea. It’s a direct consequence of the speed.

Anything that accelerates transit time can have this effect: stress, a stomach bug, food intolerance, too much caffeine, or even a particularly high-fiber meal. Once your digestion returns to its normal pace, the brown color comes back on its own.

Medications and Supplements

Several common over-the-counter products can change stool color to green or dark green:

  • Iron supplements often darken stool and can give it a green or greenish-black hue.
  • Antibiotics disrupt the normal balance of gut bacteria, which are the very microbes responsible for converting bile pigments to brown. Without enough of the right bacteria, stool stays greener.
  • Antacids containing aluminum hydroxide can produce greenish stool as a side effect.
  • Bismuth subsalicylate (the active ingredient in some anti-diarrheal medications) reacts with sulfur in your digestive tract and can turn stool dark green or black.

If you recently started any of these, the timing alone is usually enough to explain the color change. It resolves once you stop taking the product or once your gut bacteria recover.

Infections That Cause Green Stool

Certain bacterial, viral, and parasitic infections can produce green diarrhea. Salmonella, Giardia (a waterborne parasite), and norovirus all speed up gut motility enough to prevent bile from breaking down normally. In these cases, the green color is rarely the only symptom. You’ll typically also have watery diarrhea, cramping, nausea, or fever.

If your green stool comes with diarrhea that lasts more than a couple of days, the bigger concern is dehydration rather than the color itself. Staying on top of fluid intake matters more than worrying about the shade.

Green Stool in Babies

Green poop in newborns and infants is extremely common and usually normal. In the first few days of life, babies pass meconium, a dark greenish-black stool that transitions to lighter colors as feeding gets established.

In breastfed babies, green stool sometimes happens when a baby doesn’t fully empty one breast before switching sides. The earlier milk in a feeding is lower in fat, and missing the higher-fat milk at the end can affect how the baby digests it, producing greener stool. Babies on protein hydrolysate formula (used for milk or soy allergies) also tend to have greener stool. Breastfed infants who haven’t yet developed a full complement of intestinal bacteria may produce green stool as well, simply because those bacteria are what normally drive the color change to brown.

When Green Stool Needs Attention

A single green bowel movement, or even a few days of green stool after eating something obvious, is not a concern. Green stool that persists for more than a few days without a clear dietary explanation is worth mentioning to a doctor, particularly if it comes alongside diarrhea, fever, or signs of dehydration like dark urine, dizziness, or dry mouth. The color itself is rarely the problem. It’s the accompanying symptoms that signal whether something more is going on.