Green stool is almost always harmless. The most common cause is something you ate, whether that’s a big salad, a green smoothie, or a cupcake with bright frosting. Less often, green poop signals that food moved through your intestines faster than usual, which changes how bile gets processed. In rare cases, an infection is responsible.
How Bile Affects Stool Color
Your liver produces bile, a yellow-green fluid that helps break down fats during digestion. As bile travels through your intestines, bacteria gradually break it down and change its color from green to yellow to brown. That brown shade you’re used to seeing is simply the end result of bile being fully processed during its journey through roughly 25 feet of intestine.
When food moves through your gut faster than normal, bile doesn’t have enough time to complete that color shift. The result is stool that still carries a greenish tint. Average transit time through the colon alone is 30 to 40 hours, with anything up to about 72 hours considered normal. Anything that speeds up that timeline, like a stomach bug, stress, a high-fiber meal, or even intense exercise, can leave your stool looking green.
Foods That Turn Stool Green
Chlorophyll is the pigment that makes plants green, and it’s potent enough to color your stool on its way out. Spinach, kale, and broccoli are the usual culprits, but avocados, fresh herbs, matcha, and even pistachios contain enough chlorophyll to have the same effect. The more you eat, the more vivid the green. Blueberries can also produce greenish shades, which surprises people who expect them to darken stool instead.
Artificial food dyes are another frequent cause. Brightly colored frosting, drink mixes, ice pops, and candy keep tinting whatever they touch as they pass through your digestive system. If your stool turned green after a birthday party or a bag of colorful snacks, the dye is your answer.
Iron Supplements and Medications
Iron supplements commonly turn stool dark green or even black. This is a well-known side effect and not a sign of a problem. The color change happens because your body only absorbs a portion of the iron you take in, and the leftover iron oxidizes as it passes through your intestines. The darker shade typically appears within a day or two of starting supplements and continues for as long as you take them.
Certain antibiotics can also tint stool green or yellow. They do this by disrupting the balance of gut bacteria that normally process bile into its final brown color. If you notice the change shortly after starting a new medication, that’s the likely explanation.
Infections That Cause Green Diarrhea
Bacterial infections like Salmonella and E. coli can cause green diarrhea, often alongside cramping, fever, and nausea. Viral infections such as norovirus (commonly called the stomach flu) also trigger color changes by pushing food through your system so quickly that bile stays green. In both cases, the green color itself isn’t the concern. It’s the infection causing it.
These infections usually resolve on their own within a few days, but green diarrhea that lasts more than three days, contains blood, or comes with a high fever warrants attention. If a doctor suspects an infection, they’ll typically order a stool culture, where a small sample is sent to a lab and results come back in two to three days showing whether harmful bacteria or parasites are present.
Green Stool in Babies
Green poop in newborns and infants is especially common and rarely worrying. In the first few days of life, babies pass meconium, a dark greenish-black substance that’s completely normal. After that transition, green stool can show up for several reasons: the baby isn’t finishing a full feeding on one breast (missing the higher-fat milk that comes at the end), the baby is on a specialized hydrolyzed formula used for milk or soy allergies, or the baby’s gut bacteria haven’t fully established yet. Breastfed babies in particular can cycle through a range of colors in their early weeks as their digestive systems mature.
Diarrhea in infants can also produce green stool, and because babies dehydrate more quickly than adults, frequent watery green stools paired with fewer wet diapers or unusual fussiness deserve a call to the pediatrician.
Patterns Worth Paying Attention To
A single green bowel movement, or even a few days of them after eating a lot of leafy greens, is nothing to act on. The color should return to brown once the food or supplement clears your system, usually within a day or two. Where it becomes worth investigating is when green stool persists for weeks without a dietary explanation, or when it’s accompanied by other symptoms like ongoing diarrhea, abdominal pain, fever, or visible blood.
Persistent unexplained changes can point to conditions that affect how your body absorbs nutrients or processes bile. In those cases, doctors may run additional stool tests to check for inflammation, parasites, or problems with pancreatic function. They might also test for hidden blood in the stool using a simple card-based test. These are routine, noninvasive steps that help rule out anything beyond the usual dietary causes.