Green poop is almost always harmless. Both brown and green are considered normal stool colors, and the explanation usually comes down to something you ate or how quickly food moved through your digestive system. Understanding why stool is typically brown in the first place makes it easier to see why it sometimes isn’t.
Why Stool Is Usually Brown
Your liver produces bile, a yellowish-green fluid that helps you digest fats. The main pigment in bile is bilirubin, a byproduct of old red blood cells breaking down. When bile enters your small intestine, bacteria get to work converting bilirubin into a series of other compounds. By the time waste reaches your rectum, those compounds have been oxidized into substances called urobilin and stercobilin, which give stool its characteristic brown color.
Green stool means something interrupted that process. Either the green pigment from food overpowered the brown, or bile didn’t have enough time to fully break down before it exited your body.
Foods That Turn Stool Green
The most common reason for green poop is diet. Chlorophyll, the pigment that makes plants green, can color your stool the same way it colors a leaf. Heavy servings of spinach, kale, broccoli, avocados, herbs, or matcha can all do it. Pistachios are another culprit, since their green color comes from chlorophyll and related plant pigments. Even blueberries can produce greenish shades.
Artificial food dyes are just as capable. Brightly frosted cupcakes, green sports drinks, or candy with synthetic coloring will keep tinting whatever they touch all the way through your digestive tract. If you recently ate something with vivid coloring, that’s likely your answer. Once you stop eating the trigger food, stool color typically returns to brown within one to two bowel movements as the pigment clears your system.
Medications and Supplements
Iron supplements are a well-known cause of dark green or even blackish stool. The color change is a direct effect of unabsorbed iron and is not dangerous on its own. Some antibiotics can also tint stool yellow or green by disrupting the balance of gut bacteria that normally convert bile pigments to brown. If the color shift started around the same time as a new medication, that connection is worth noting.
Rapid Digestion and Diarrhea
When food moves through your large intestine faster than normal, bile doesn’t have time to complete its color transformation. The result is stool that still carries bile’s original green tint. This is why diarrhea often has a greenish hue regardless of what you ate.
Several things can trigger this rapid transit. Bacterial infections like Salmonella or E. coli, viral infections like norovirus, and parasites like Giardia all cause the kind of fast, watery “gush” that pushes unabsorbed bile straight through. In these cases, the green color is less important than the diarrhea itself, along with any fever, cramping, or dehydration that comes with it.
After Gallbladder Removal
If you’ve had your gallbladder removed, green stool may show up more often. The gallbladder’s job is to store and concentrate bile, then release it in measured doses when you eat. Without it, diluted bile trickles continuously into your small intestine. After a meal, a large wave of this unconcentrated bile can flood into the colon faster than bacteria can process it. The result is looser, greener stool, especially after fatty meals. The concentration of certain bile acids in stool also increases after gallbladder removal, which can make you feel the urge to go more frequently. For many people, this improves over weeks to months as the body adapts.
Green Stool in Babies
Parents notice green diapers often, and in most cases the cause is benign. Newborns pass meconium in their first days, a dark greenish-black stool that’s entirely normal. After that transition, green stool in breastfed babies can happen when a baby doesn’t finish feeding on one side before switching. The earlier, lower-fat milk gets digested differently than the higher-fat milk that comes later in the feeding, and the result can be green, sometimes frothy, stool.
Babies on protein hydrolysate formula, which is designed for infants with milk or soy allergies, also tend to produce green stool. So do breastfed babies who haven’t yet developed a full population of intestinal bacteria. Diarrhea from a stomach bug will turn a baby’s stool green for the same bile-transit reason it does in adults.
When Color Actually Matters
Green is not a worrisome color on its own. The Mayo Clinic considers all shades of brown and green to be typical. What does warrant prompt attention is stool that’s bright red or black (not dark green from iron supplements), because those colors can indicate bleeding in the digestive tract. Red suggests bleeding lower in the intestines, while true black, tarry stool points to bleeding higher up, like in the stomach.
Green stool paired with persistent diarrhea lasting more than a few days, fever, severe abdominal pain, or signs of dehydration is worth investigating, but the concern there is the infection or inflammation causing those symptoms, not the color itself. If the only unusual thing is the green and you feel fine, you can safely chalk it up to dinner.

