What Makes Your Poop Green and When to Worry

Green poop is almost always caused by something harmless: a food you ate, a supplement you’re taking, or digestion that moved a little faster than usual. Understanding why stool turns green starts with knowing why it’s normally brown in the first place.

Why Stool Is Normally Brown

Your liver produces bile, a greenish-yellow fluid that helps you digest fats. When bile enters your intestines, bacteria break it down into a pigment called stercobilin, which is brown. That’s what gives stool its typical color. The process takes time, though. Bile needs to travel through the full length of your large intestine, getting broken down along the way, before it completes that green-to-brown transformation.

Anything that interrupts this process, whether by speeding up digestion, overwhelming your gut with green pigments, or changing the chemistry of your intestines, can leave your stool looking green.

Foods That Turn Stool Green

Diet is the most common explanation. Leafy greens like spinach, kale, and broccoli are packed with chlorophyll, the pigment that makes plants green. Eat enough of them and that pigment passes through your system largely intact, tinting your stool. This is especially noticeable after a big salad, a green smoothie, or a few days of eating more vegetables than usual.

Artificially colored foods can do the same thing. Green or purple food dyes (purple dyes often contain blue, which mixes with yellow bile to create green) are common culprits. Think frosted cupcakes, brightly colored cereals, flavored drinks, or candy. Even foods you wouldn’t expect, like certain flavored ice creams or packaged snacks, can contain enough dye to change your stool color for a day or two.

When Digestion Moves Too Fast

If food moves through your large intestine faster than normal, bile doesn’t have enough time to be fully broken down by gut bacteria. The result is stool that still carries bile’s original green color. This is one of the most common non-dietary causes of green poop, and it explains why green stool often shows up alongside diarrhea.

Lots of things can speed up transit: a stomach bug, food poisoning, stress, too much coffee, or even a sudden dietary change. In these cases the green color is really just a side effect of the faster movement, not a separate problem. Once your digestion returns to its normal pace, the brown color comes back.

Supplements and Medications

Iron supplements are a well-known cause of darker, sometimes green-tinged stool. Your body only absorbs a fraction of the iron in a typical supplement, and the unabsorbed iron reacts with digestive enzymes to produce a dark green or black color. This is completely harmless and stops when you stop taking the supplement.

Bismuth subsalicylate (the active ingredient in Pepto-Bismol) works differently but can cause confusion. It reacts with trace amounts of sulfur in your digestive system to form a black compound called bismuth sulfide. The result is stool that looks very dark green or black. Again, this is a harmless chemical reaction, not a sign of bleeding or illness.

Antibiotics can also cause green stool by disrupting the balance of gut bacteria. Since those bacteria are responsible for converting bile from green to brown, killing off a portion of them can leave bile partially unprocessed.

Infections and Parasites

Certain gastrointestinal infections cause green stool because they trigger diarrhea severe enough to rush bile through your system. Bacterial infections like salmonella and viral infections like norovirus both speed up intestinal transit dramatically.

Giardia, a waterborne parasite, is another cause. A giardia infection typically produces diarrhea, gas, greasy or floating stool, stomach cramps, and nausea. The stools can appear green or yellowish-green. Unlike a short-lived stomach bug, giardia can linger for weeks and may lead to weight loss or trouble absorbing nutrients if untreated. People commonly pick it up from contaminated water sources while camping or traveling.

The key difference between infection-related green stool and dietary green stool is the accompanying symptoms. If green poop comes with fever, persistent cramping, blood or mucus, or diarrhea lasting more than a few days, an infection is more likely than something you ate.

Green Stool in Babies

Green poop in infants is extremely common and usually not a concern. Newborns pass meconium in their first few days, a dark green-black, tar-like stool that’s entirely normal. As feeding gets established, stool color shifts, but green can stick around for several reasons.

Breastfed babies sometimes produce green stool if they aren’t finishing a full feed on one side before switching. The milk at the beginning of a feeding (foremilk) is thinner and lower in fat, while the fattier hindmilk comes later. Getting mostly foremilk can affect how the milk is digested and produce greener stools. Babies on protein hydrolysate formula, a type used for milk or soy allergies, also tend to have green stool. And since breastfed infants are still building up their gut bacteria in the early weeks, they may not yet have enough of the bacteria needed to convert bile to its usual brown pigment.

When Green Stool Signals Something Bigger

An isolated episode of green stool with no other symptoms almost never indicates a medical problem. It resolves on its own once the food, supplement, or bout of fast digestion passes. Most people can trace it back to something they ate within the previous 24 to 48 hours.

Green stool that persists for more than a few days without an obvious dietary explanation is worth paying attention to, especially alongside symptoms like ongoing diarrhea, significant abdominal pain, unexplained weight loss, or fever. These combinations can point toward infections, malabsorption conditions like celiac disease, or inflammatory bowel conditions that affect how your body processes bile and absorbs nutrients. Stool that is pale or clay-colored is a different concern entirely, as it can signal that bile isn’t reaching the intestines at all, which may indicate a blockage in the bile ducts.