Green poop is almost always harmless. The most common causes are eating green vegetables, taking iron supplements, or food moving through your intestines faster than usual. In rare cases, it can signal an infection, but that typically comes with other obvious symptoms like fever or persistent diarrhea.
Why Stool Is Normally Brown
Your liver produces bile, a digestive fluid that starts out green. As bile travels through your small intestine and colon, bacteria break it down into a series of compounds that are colorless at first but turn orange-brown when exposed to oxygen. That final brownish pigment is what gives stool its typical color.
Anything that disrupts this process, whether it’s the speed of digestion, the foods you eat, or a change in your gut bacteria, can leave stool looking green instead of brown.
Foods That Turn Stool Green
The most straightforward explanation is something you ate. Chlorophyll, the pigment that makes plants green, can do the same to your stool. Spinach, kale, and broccoli are the usual suspects, but avocados, fresh herbs, matcha, pistachios, and even blueberries can produce green shades. The more you eat, the more vivid the color.
Artificial food coloring is another common cause. Brightly frosted cupcakes, green drink mixes, and ice pops contain dyes that keep tinting whatever they touch all the way through your digestive tract. If you recently ate something with noticeable green or blue dye, that’s likely your answer.
Iron Supplements and Antibiotics
Iron supplements frequently turn stool dark green or even black. This is a well-known side effect and not a sign of anything dangerous. Some antibiotics can also shift stool toward green or yellow by altering the balance of gut bacteria that normally convert bile into its brown pigment. If you recently started a new medication and notice the change, the timing usually tells the story.
Fast Digestion and Rapid Transit
When food moves through your intestines faster than normal, bile doesn’t have enough time to be fully broken down by gut bacteria. Since bile starts green, the stool comes out green too. This is why green poop often shows up alongside diarrhea, whether it’s from a stomach bug, food intolerance, stress, or even a heavy coffee day. The color itself isn’t the problem. It’s just a visible sign that things moved quickly.
Bacterial and Viral Infections
Infections from Salmonella, E. coli, or norovirus (stomach flu) can cause green diarrhea. These pathogens speed up transit time and disrupt normal digestion, both of which prevent bile from completing its color change. The green stool in these cases is rarely the only symptom. You’ll typically also have cramping, nausea, fever, or watery diarrhea that lasts several days.
If green stool persists for more than a few days, or if you’re losing fluids rapidly from diarrhea, that warrants a call to your doctor. Dehydration is the main concern with any prolonged bout of diarrhea, regardless of color.
Green Stool in Babies
Green poop is especially common in infants and is usually nothing to worry about. Breastfed babies sometimes produce green stool if they don’t fully empty one breast before switching sides, because they miss some of the higher-fat milk that comes later in a feeding. Babies on protein hydrolysate formula (used for milk or soy allergies) also tend to have green stool as a normal side effect.
Newborns in particular may have green stool simply because they haven’t yet developed the full community of intestinal bacteria needed to convert bile into its brown form. As their gut matures over the first weeks of life, stool color typically shifts to the yellow-brown range that parents expect. If a baby has green diarrhea along with signs of dehydration like fewer wet diapers or unusual fussiness, that’s worth a prompt call to the pediatrician.
What the Shade Can Tell You
- Bright green: Usually dietary. Think leafy greens, green dye, or matcha.
- Dark green or black-green: Often iron supplements. Can also come from large amounts of dark leafy vegetables.
- Yellow-green and watery: Points toward rapid transit or an infection, especially if accompanied by cramping or fever.
One or two green bowel movements after a salad-heavy day or a round of antibiotics is entirely expected. The color that actually deserrants attention isn’t green but rather red, black (when you’re not taking iron), or pale white/clay-colored, all of which can indicate bleeding or bile duct problems. Green, by contrast, is one of the least concerning color changes your stool can make.

