Green poop is usually harmless. In most cases, it means you ate something green or your food moved through your digestive system faster than usual. Both situations are common and resolve on their own within a day or two.
Stool gets its normal brown color from bile, a digestive fluid your liver produces. As bile travels through your intestines, bacteria break it down and gradually shift its color from green to yellow to brown. When that process gets cut short, whether because of diet, illness, or medication, the result is green stool.
Foods That Turn Stool Green
Diet is the most common explanation. Green leafy vegetables like spinach, kale, and broccoli contain chlorophyll, which can tint your stool green when you eat enough of them. This is especially noticeable after a large salad, a green smoothie, or a meal heavy on leafy greens.
Artificial food dyes are another frequent culprit. Green or blue food coloring found in flavored drink mixes, ice pops, cake icing, and candy can change your stool color dramatically. Blue dye in particular can mix with the yellow of bile to produce a vivid green. If your stool turns green after a birthday party or a sports drink binge, the dye is almost certainly the reason. The color typically returns to brown within one to three bowel movements once you stop eating the offending food.
Supplements and Medications
Iron supplements are well known for changing stool color. They most commonly turn stool dark or black, but they can also produce a dark green shade. A systematic review published in the journal PLOS ONE found that gastrointestinal side effects are the most frequently reported problem with oral iron, and color changes to stool are among them. Iron can also shift the balance of gut bacteria, promoting potentially harmful species at the expense of beneficial ones, which may contribute to digestive symptoms like nausea, bloating, or diarrhea alongside the color change.
Antibiotics can have a similar effect. By disrupting the normal bacteria in your gut, antibiotics interfere with the breakdown of bile, leaving it greener than usual when it exits. If you notice green stool during or shortly after a course of antibiotics, this is the likely explanation, and normal color should return once your gut bacteria recover.
Rapid Transit: When Food Moves Too Fast
When food passes through your intestines faster than normal, bile doesn’t have enough time to fully break down. The result is stool that retains bile’s original green tint. This can happen during a bout of diarrhea from any cause, whether it’s a stomach bug, food intolerance, stress, or simply eating something that didn’t agree with you.
Conditions that speed up digestion on a more ongoing basis can also cause persistently green stool. Irritable bowel syndrome (IBS), particularly the diarrhea-predominant type, is one example. If your stool is frequently green and loose, the speed of digestion rather than any specific food is probably the reason.
Infections That Cause Green Stool
Bacterial infections like Salmonella and E. coli can produce green diarrhea. These infections typically come with other symptoms: cramping, fever, nausea, and frequent watery stools. Viral infections like norovirus (often called the stomach flu) can also change stool color to green by speeding up transit time so dramatically that bile has no chance to convert to brown.
In these cases, the green color itself isn’t the concern. It’s the infection driving it. Most stomach bugs resolve within a few days with rest and fluids, but persistent diarrhea, high fever, or signs of dehydration warrant medical attention.
Green Poop in Babies
Green stool in infants is extremely common and rarely a problem. Newborns pass meconium, a thick, dark green-black substance, in their first few days of life. This is completely normal and clears within about 48 hours as feeding gets established.
In breastfed babies, green stool sometimes appears when the baby doesn’t finish feeding on one side before switching. The earlier milk in a feeding session is lower in fat, and missing the higher-fat milk that comes later can affect how the milk is digested, producing greener stool. Babies on protein hydrolysate formula, which is designed for infants with milk or soy allergies, also commonly have green stool. Breastfed infants who haven’t yet developed a full complement of intestinal bacteria may produce green stool as well. In all of these cases, as long as the baby is feeding well and gaining weight, the color is not a concern.
Diarrhea in infants can also produce green stool for the same rapid-transit reasons it does in adults. If a baby has watery green stool along with fewer wet diapers, fever, or unusual fussiness, that’s worth a call to the pediatrician.
When Green Stool Signals a Problem
On its own, green stool that shows up once or twice and then returns to brown is almost never a medical issue. The Cleveland Clinic recommends contacting a healthcare provider if your stool doesn’t return to brown within a few days, especially if you can’t trace it to something you ate or a supplement you’re taking.
Green stool paired with other symptoms is more meaningful. Watch for persistent diarrhea lasting more than a couple of days, fever, severe abdominal pain, or signs of dehydration like dark urine and dizziness. These combinations can point to an infection or inflammatory condition that needs evaluation.
For context, green is far less concerning than some other stool colors. Red or black stool can indicate bleeding in the digestive tract. Pale, clay-colored, or white stool may signal a problem with the liver, gallbladder, or bile ducts. Yellow, greasy stool that floats can suggest fat malabsorption from conditions like celiac disease or pancreatic issues. Green simply means bile didn’t finish its normal color transformation, and in most cases, the reason is straightforward.