Green poop is almost always harmless. The most common causes are eating green vegetables, taking iron supplements, or food moving through your digestive system faster than usual. In most cases, the color returns to its normal brown within a day or two once the trigger passes.
To understand why stool turns green, it helps to know why it’s normally brown in the first place. Your liver produces bile, a bright yellow-green fluid that helps digest fats. As bile travels through your intestines, bacteria break it down and chemically transform it into brown pigments. Anything that changes this process, whether it’s extra green pigment from food, a disruption to gut bacteria, or food speeding through too quickly, can turn your stool green.
Green Vegetables and Other Foods
This is the most straightforward explanation. Chlorophyll, the pigment that makes plants green, can color your stool the same way. Spinach, kale, and broccoli are the usual suspects, but the list extends to avocados, fresh herbs, matcha, and even pistachios (which get their green color from the same pigment). The more you eat, the more vivid the effect. A large spinach salad or a green smoothie packed with leafy greens is often enough to produce noticeably green stool the next day.
Artificial food dyes can do the same thing. Green or purple dyes used in candy, ice cream, cake frosting, and sports drinks pass through largely unchanged. If you recently ate something with a deep or unusual color, that’s likely your answer.
Iron Supplements
Iron supplements commonly produce stool that looks dark green, sometimes so dark it appears almost black. This happens because not all of the iron you swallow gets absorbed. The leftover iron reacts with other compounds in your digestive tract, and the result is a very dark greenish pigment. Some doctors actually consider the color change a sign the supplement is being absorbed properly. If the color bothers you, lowering the dose (with your doctor’s guidance) can reduce the effect, but it’s not a sign of anything wrong.
Antibiotics and Other Medications
Antibiotics kill harmful bacteria, but they also reduce the populations of normal gut bacteria that convert bile from green to brown. With fewer bacteria doing that job, bile passes through in a less-processed state, and your stool keeps more of its original green tint. This effect can last for the duration of the antibiotic course and sometimes a few days beyond it as your gut bacteria repopulate.
Certain laxatives and medications containing the dye indigo carmine can also produce green stool. If the timing lines up with starting a new medication, that’s a strong clue.
Rapid Transit Through the Gut
When food moves through your intestines faster than normal, bile doesn’t have enough time to be fully broken down by bacteria. The result is stool that retains bile’s natural green color. This rapid transit, sometimes called decreased bowel transit time, happens during bouts of diarrhea from any cause: stomach bugs, food intolerances, stress, or simply eating something that didn’t agree with you.
This is why green stool and diarrhea frequently show up together. The green color in these cases isn’t the problem itself. It’s just a visible sign that everything moved through quickly. Once digestion returns to its normal pace, the brown color comes back.
Gallbladder Removal
After gallbladder surgery, your body loses its storage tank for bile. Instead of releasing concentrated bile in controlled bursts when you eat fatty foods, your liver drips bile continuously into your small intestine. This can send more bile acids than usual into the large intestine, where they act as a mild laxative. The combination of extra bile and faster transit means green stool is relatively common in the weeks following surgery. For most people it resolves as the body adjusts, though some experience looser, greener stools intermittently for months.
Green Stool in Babies
Green poop in newborns is especially common and rarely a concern. In the first few days of life, babies pass meconium, a dark greenish-black, tar-like substance that built up in their intestines before birth. This transitions to lighter green and then to the typical yellow-seedy stool of breastfed infants over the first week.
Beyond the newborn stage, breastfed babies can produce green stool if they don’t finish feeding on one side before switching. The earlier milk (foremilk) is thinner and lower in fat, while the later milk (hindmilk) is richer. Getting mostly foremilk can affect how the milk is digested and produce a greener result. Formula-fed babies may also have greenish stool, particularly if the formula is iron-fortified, for the same reasons iron supplements affect adults.
Infections and Digestive Conditions
Bacterial infections from organisms like Salmonella, E. coli, or Clostridioides difficile (C. diff) can inflame the intestinal lining and speed up transit dramatically, producing watery green diarrhea. Parasitic infections such as Giardia are another cause. In these cases, the green color is a side effect of the diarrhea itself, not a separate symptom.
Inflammatory bowel conditions like Crohn’s disease or ulcerative colitis can also produce green stool during flares, again because of rapid transit and inflammation that interferes with normal bile processing.
When Green Stool Signals Something More
A single episode of green stool after a big salad or a round of antibiotics doesn’t need investigation. But if green stool persists for more than a few days without an obvious dietary explanation, it’s worth paying attention. Green stool accompanied by fever, severe abdominal cramping, or blood (whether bright red or dark and tarry) points toward an infection or inflammatory condition that needs evaluation.
Because green stool often accompanies diarrhea, dehydration is the most immediate practical risk, especially in young children and older adults. Drinking plenty of fluids during any bout of diarrhea matters more than worrying about the color itself.