Green stool usually means one of two things: you ate something with a strong green pigment, or food moved through your digestive system faster than usual. In most cases, it’s completely harmless and resolves on its own within a day or two. Understanding the common causes can help you figure out whether your green poop is just a quirk of digestion or something worth paying attention to.
The color of your stool is largely determined by bile, a yellow-green digestive fluid your liver produces to help break down fats. As bile travels through your intestines, bacteria chemically transform it from green to brown. When that process gets cut short, either because food is moving too quickly or because something disrupts your gut bacteria, stool can retain its greenish color.
Foods That Turn Stool Green
Diet is the most common explanation. Chlorophyll, the pigment that makes plants green, passes through your digestive tract and can tint your stool bright green if you eat enough of it. Spinach, kale, and broccoli are the usual culprits, but avocados, fresh herbs, pistachios, and matcha powder all carry enough chlorophyll to have the same effect. Even blueberries can produce green-tinged stool in some people.
Artificial food coloring is another frequent cause. The dyes used in brightly frosted cupcakes, candy, sports drinks, and colored cereals keep tinting whatever they touch as they move through your gut. If you ate something with vivid green or blue dye in the last 24 to 48 hours, that’s likely your answer. The color change is temporary and passes once the dye clears your system.
Medications and Supplements
Iron supplements are well known for darkening stool, often producing a deep green or blackish color. This happens because unabsorbed iron reacts with compounds in your digestive tract. It looks alarming, but it’s a predictable side effect and not a sign of a problem.
Some antibiotics can also shift stool color toward green or yellow. Antibiotics disrupt the normal balance of gut bacteria, and since those bacteria are responsible for converting bile from green to brown, fewer of them means the bile keeps more of its original color. If your stool turns green partway through a course of antibiotics, this is almost certainly why.
Rapid Transit Through the Gut
When food moves through your intestines faster than normal, bile doesn’t have enough time to fully break down. The result is stool that’s still green when it reaches the end of the line. Anything that speeds up digestion can cause this: a stomach bug, food poisoning, stress, caffeine, or even a particularly large meal.
Diarrhea from any cause tends to produce greener stool for exactly this reason. The faster things move, the less time bacteria have to do their work on bile pigments. If you have a brief bout of loose, green stools that clears up in a day or two, rapid transit is the most likely explanation.
Infections That Cause Green Stool
Several common infections can produce green diarrhea by forcing your gut to flush its contents quickly. Salmonella (from contaminated food), norovirus (the “stomach flu”), and giardia (a waterborne parasite) all speed up digestion enough to leave stool green. These infections typically come with additional symptoms like nausea, cramping, fever, or vomiting, so the green color is rarely the only clue.
Gastroenteritis, the general term for an inflamed stomach and intestines, is one of the more common infectious causes. Most cases resolve within a few days with rest and fluids, but green stool that persists beyond that window or comes with blood, high fever, or signs of dehydration warrants medical attention.
Malabsorption and Digestive Conditions
Conditions that interfere with how your body absorbs nutrients can also affect stool color. Celiac disease, for example, damages the lining of the small intestine and can lead to stools that are greasy, loose, bulky, and pale or greenish. The underlying issue is poor fat absorption: when fats aren’t properly broken down, they pass through in the stool, sometimes giving it an oily appearance and foul smell.
Other malabsorption conditions and inflammatory bowel disorders can produce similar changes by disrupting the normal digestive process. If your stool is consistently abnormal in color, texture, or smell over weeks rather than days, that pattern is more informative than a single green bowel movement.
Green Stool in Babies
Parents often worry about green poop in infants, but it’s almost always normal. Newborns start with dark, tarry stool called meconium, and once that passes, the full range of yellow, brown, and green shades are all considered healthy. Breastfed babies tend toward a mustardy yellow, while formula-fed babies often have yellow-tan stool with hints of green.
Occasional bright green diapers can happen when a baby takes in more of the thinner, lower-fat milk at the beginning of a feeding (sometimes called foremilk) or when they’re dealing with a mild stomach virus. As long as the baby is feeding well, gaining weight, and not showing signs of distress, green stool in infants is rarely a concern.
When Green Stool Signals a Problem
A single episode of green stool, or even a few days of it after eating a big spinach salad, is not a reason to worry. The color alone is almost never dangerous. What matters more is the pattern and what comes with it.
Green stool that persists for more than a few days without an obvious dietary explanation is worth bringing up with a doctor. The same goes for green stool accompanied by abdominal pain, fever, blood in the stool, or nausea. Because green stool often shows up alongside diarrhea, dehydration is the most immediate practical risk, especially in young children. Drinking plenty of fluids is the single most important thing you can do while waiting for things to return to normal.

