What Causes Green Poop and When to Worry

Green poop is almost always caused by something you ate. Dark leafy greens, food dyes, and certain fruits contain pigments that pass through your digestive system and tint your stool. Less commonly, green stool signals that food moved through your intestines too quickly for normal color processing to occur, or it can be a side effect of medications, supplements, or gallbladder removal.

How Stool Gets Its Color

Your liver produces bile, a yellow-green fluid that helps break down fats in your small intestine. As bile travels through your digestive tract, bacteria and enzymes gradually convert it from green to yellow to brown. That conversion takes time. When everything moves at a normal pace, your stool comes out brown because the bile pigments have been fully processed.

When food passes through your intestines faster than usual, bile doesn’t have enough time to complete that chemical shift. The result is stool that retains some of bile’s original green color. This is why diarrhea from any cause, whether it’s a stomach bug, food intolerance, or stress, often has a greenish tint. The faster things move, the greener the output.

Foods That Turn Stool Green

Chlorophyll is the pigment that makes plants green, and your body doesn’t fully break it down during digestion. Eating large amounts of broccoli, kale, or spinach is the single most common reason for green stool. But the list of foods that can do this is longer than most people expect:

  • Leafy greens: spinach, kale, broccoli
  • Green fruits: avocados, green apples, honeydew melon
  • Herbs: basil, cilantro, parsley
  • Other plant foods: pistachios, hemp seeds, matcha (powdered green tea)
  • Blue and purple produce: blueberries and similar fruits can turn stool green once digestive juices mix with their pigments

Green food dye is another frequent culprit, especially in brightly colored candies, cereals, frosting, and drinks. Blue and purple food dyes can also produce a greenish result after mixing with bile in your gut. If your stool turns green the day after a birthday party or a holiday treat, the dye is the likely explanation.

Iron Supplements and Medications

Iron supplements are well known for changing stool color, typically to dark green or black. This happens because your body absorbs only a fraction of the iron you swallow, and the unabsorbed iron reacts with digestive enzymes to produce dark pigments. The color change is harmless and stops once you discontinue the supplement.

Antibiotics can also cause green stool by disrupting the balance of gut bacteria responsible for converting bile pigments to brown. With fewer of these bacteria active, bile passes through in a less processed state. Some antibiotics also speed up gut motility, compounding the effect. Other medications, including certain laxatives and anti-inflammatory drugs, can produce similar changes.

Infections and Rapid Transit

Gastrointestinal infections from bacteria like Salmonella, parasites like Giardia, or viruses like norovirus often cause green diarrhea. The mechanism is straightforward: the infection irritates your intestinal lining, triggers inflammation, and dramatically speeds up how fast everything moves through. Bile stays green because it never gets the transit time it needs to turn brown.

With infections, green stool rarely shows up alone. You’ll typically also have watery diarrhea, cramping, nausea, or fever. If the green color comes alongside these symptoms and lasts more than a couple of days, it points toward something your gut is actively fighting off rather than something you simply ate.

After Gallbladder Removal

Your gallbladder stores and concentrates bile, releasing it in controlled bursts when you eat fatty foods. After gallbladder removal, bile flows continuously into the small intestine in a diluted, unconcentrated form. Without that storage reservoir, bile acids are poorly absorbed and reach the colon in larger quantities than normal.

This excess bile in the colon stimulates water secretion, which can cause loose, frequent stools. Some people go from one bowel movement a day to four or five. The increased bile flow and faster transit mean stool often takes on a yellow-green color, particularly after meals. For most people, these changes gradually improve over weeks to months as the body adapts, though some experience long-term shifts in stool color and consistency.

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 green-black stool that’s been accumulating since before birth. As feeding gets established, stool color shifts but can remain greenish for breastfed babies.

One specific cause in breastfed infants is a foremilk/hindmilk imbalance. Breast milk changes composition during a feeding: the earlier milk (foremilk) is thinner and lower in fat, while the later milk (hindmilk) is richer. If a baby gets proportionally more foremilk, the lower fat content causes milk to pass through their digestive system faster than normal. The lactose in that milk doesn’t get fully digested, ends up fermented in the large intestine, and produces green, foamy stools along with excess gas, fussiness, and bloating. This typically resolves by adjusting feeding patterns to ensure the baby drains each breast more completely before switching.

Formula-fed babies can also have green stool, particularly with iron-fortified formulas. As with iron supplements in adults, the unabsorbed iron changes stool color and is not a sign of a problem.

When Green Stool Signals a Problem

An occasional green bowel movement after a big salad or a smoothie loaded with spinach is nothing to worry about. The color should return to normal within a day or two once the food clears your system.

Green stool becomes more concerning when it persists for more than a few days without an obvious dietary explanation, or when it comes with diarrhea, fever, abdominal pain, or signs of dehydration like dark urine, dizziness, or dry mouth. Green diarrhea specifically warrants attention because dehydration can develop quickly, particularly in young children and older adults. Persistent changes in stool color alongside unintended weight loss or blood in the stool also warrant evaluation, as these patterns can point toward malabsorption issues or inflammatory conditions affecting the gut.