Green poop is almost always harmless. It usually means that something you ate was packed with green pigment, or that food moved through your digestive system faster than normal. To understand why, it helps to know what makes stool brown in the first place.
How Stool Gets Its Normal Color
Your liver produces bile, a digestive fluid that starts out yellow-green. Bile gets its color from a compound called biliverdin, which forms when your body breaks down old red blood cells. Once bile enters your intestines, bacteria in your colon slowly transform it through several chemical steps, ultimately producing a pigment called stercobilin. Stercobilin is what gives stool its familiar brown color.
This conversion takes time. About 80% of the bile pigment that reaches your colon gets processed by bacteria into stercobilin before leaving your body. When anything disrupts that process, whether by speeding things up or overwhelming the system with green pigments from food, the result is green stool.
Rapid Transit: The Most Common Cause
When food moves through your intestines faster than usual, bile doesn’t have enough time to be fully broken down by gut bacteria. The original green pigment passes through largely intact, coloring your stool green. This is the single most common explanation.
Anything that causes diarrhea can trigger this. A stomach bug, a meal that didn’t agree with you, stress, or even a strong cup of coffee on an empty stomach can speed up transit time enough to produce noticeably green stool. The green color in these cases is simply unprocessed bile, and it resolves on its own once digestion returns to its normal pace.
Foods That Turn Stool Green
Chlorophyll, the pigment that makes plants green, can do the same to your stool if you eat enough of it. The most common culprits are leafy greens like spinach and kale, but broccoli, avocados, pistachios, fresh herbs, and matcha (powdered green tea) all contain significant amounts of chlorophyll. A big salad or a green smoothie is often all it takes.
Artificial food dyes can have the same effect. Blue and green dyes used in candy, ice pops, frosting, and brightly colored drinks mix with yellow bile to produce green stool. Purple dyes can do this too. If you recently ate or drank something with vivid artificial coloring, that’s a likely explanation.
Iron Supplements and Medications
Iron supplements are well known for changing stool color. The NHS notes that darker stool is a common, expected side effect of taking iron. Depending on the dose and your diet, this can appear dark green or even black. As long as the stool isn’t tar-like, sticky, or accompanied by other symptoms, the color change from iron is harmless.
Certain antibiotics can also cause green stool by disrupting the balance of gut bacteria responsible for converting bile pigments. With fewer of those bacteria doing their job, bile passes through less fully processed. The color typically returns to normal after you finish the course of medication and your gut bacteria recover.
Infections and Digestive Illnesses
Bacterial infections like Salmonella and E. coli, viruses like norovirus, and parasites like Giardia can all cause green diarrhea. These infections trigger a rapid “gush” of unabsorbed bile through the intestines, and because transit is so fast, there’s no time for normal color conversion. Green stool from an infection is almost always accompanied by other symptoms: cramping, nausea, fever, or watery diarrhea.
Chronic digestive conditions can have a similar effect. In Crohn’s disease and other inflammatory bowel disorders, bile may move through the intestines too quickly on an ongoing basis. Celiac disease and other conditions that impair nutrient absorption can also interfere with the normal breakdown of bile, leading to persistently greenish stool.
Green Stool in Babies
Green poop is especially common in newborns and infants. In the first few days of life, babies pass meconium, a dark green-black substance that built up in the intestines before birth. This is completely normal and transitions to yellow or tan stool within a few days.
In breastfed babies, green stool can happen when a baby doesn’t fully finish feeding on one side before switching to the other. The earlier milk that flows during a feeding is lower in fat, and missing the higher-fat milk that comes later can affect how the baby digests it, resulting in green, sometimes frothy stool. For formula-fed babies, the iron added to formula is a common cause of green or dark green poop, just as iron supplements affect adults.
When Green Stool Needs Attention
A single episode of green stool, or even a few days of it after a big spinach binge or a stomach bug, is not a concern. The Mayo Clinic recommends contacting a healthcare professional if green stool persists for more than a few days without an obvious dietary explanation. Green stool that comes with diarrhea also warrants attention to hydration, particularly in young children, who can become dehydrated quickly.
The color itself is rarely the problem. What matters more is context. Green stool paired with severe abdominal pain, fever, blood or mucus in the stool, or unexplained weight loss points to something beyond a dietary quirk. On its own, though, green poop is one of the least worrying color changes your stool can make.