Green poop is almost always harmless and caused by something you ate. The most common explanation is simple: leafy greens, food dyes, or a meal that moved through your digestive system faster than usual. In most cases, your stool color will return to its normal brown shade within a day or two.
How Stool Gets Its Color
Your poop is normally brown because of bile, a yellowish-green fluid your liver produces to help digest fats. As bile travels through your intestines, bacteria break it down and chemically transform it into a brown pigment. This process takes time. When everything moves at a normal pace, the result is the familiar brown color you’re used to seeing.
When something speeds up that transit, or when you eat something with strong pigments of its own, the bile doesn’t fully break down. It stays closer to its original green color, and so does your stool. That’s the core mechanism behind most green poop: either the pigment came from your food, or your digestion moved too quickly for the normal color change to happen.
Foods That Turn Stool Green
Chlorophyll is the pigment that makes plants green, and eating enough of it will color your stool the same way. Spinach, kale, and broccoli are the most common culprits, but the list extends to avocados, fresh herbs like parsley and cilantro, pistachios, and matcha (powdered green tea). You don’t need to eat an unusual amount. A large salad, a green smoothie, or a generous serving of pesto can be enough.
Blue and purple food dyes are another frequent cause that catches people off guard. When blue dye mixes with the yellow-green bile in your intestines, the result looks green. This means blue or purple candy, frosted cupcakes, grape-flavored drinks, and even some cereals can produce a surprisingly vivid green stool the next day. If you recently had a brightly colored food or drink, that’s very likely your answer.
Fast Digestion and Diarrhea
Any time food moves through your intestines faster than usual, bile doesn’t have enough time to fully break down. The result is stool that retains a greenish tint. This is why green poop often shows up alongside diarrhea, regardless of the cause. A stomach bug, food that didn’t agree with you, too much coffee, or even stress can speed things up enough to change the color.
If you’ve had loose stools for a day or so and notice the green color, the speed of digestion is the likely explanation. The color itself isn’t a separate problem. It’s just a visible sign that things moved through quickly.
Infections That Cause Green Stool
Bacterial infections like Salmonella and E. coli can cause green diarrhea, typically alongside cramping, nausea, and sometimes fever. These infections irritate the intestinal lining and dramatically speed up transit time. Viral infections like norovirus (the common “stomach flu”) can do the same thing. In these cases, the green color is a side effect of the rapid, watery diarrhea rather than a distinct symptom on its own.
Parasitic infections, particularly Giardia (often picked up from contaminated water), can also produce greenish, foul-smelling stool. If the green color lasts more than a few days and comes with persistent diarrhea, bloating, or cramping, an infection is worth considering.
Medications and Supplements
Iron supplements are one of the most common medication-related causes of stool color changes. They frequently turn stool dark green or even black, which is a normal and expected side effect. If you recently started taking iron, that’s almost certainly the explanation.
Antibiotics can also lead to 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 with antibiotics can leave your stool looking green for the duration of your course and sometimes a few days beyond it. Some laxatives and supplements containing chlorophyll have the same effect.
Green Poop in Babies
Green stool in infants has its own set of causes and is usually not a concern. Newborns pass meconium, a dark greenish-black, tar-like stool, in the first few days of life. This is completely normal and transitions to yellow or brown as feeding gets established.
In breastfed babies, green stool can appear when an infant takes in more of the lower-fat foremilk and less of the higher-fat hindmilk during feedings. This affects how the milk is digested and can give stool a greenish hue. Babies who lack certain normal gut bacteria, which is common in the early weeks, may also produce greener stool. For formula-fed babies, iron-fortified formulas and specialized protein hydrolysate formulas (used for milk or soy allergies) are frequent causes of green poop.
When Green Stool Signals a Problem
Isolated green poop with no other symptoms is rarely a medical concern. The color alone doesn’t indicate anything dangerous. However, green stool that persists for more than a few days without an obvious dietary explanation is worth bringing up with a doctor, according to the Mayo Clinic.
The more important thing to watch is what accompanies the green color. If you also have a high fever, severe abdominal pain, blood in your stool, or signs of dehydration (dark urine, dizziness, dry mouth), those symptoms need prompt attention. Green stool often accompanies diarrhea, and staying well hydrated is the most important thing you can do while it resolves. For most people, the color returns to normal within one to three days once the trigger, whether that’s a food, an illness, or a medication, is no longer in the picture.