Green feces usually means food moved through your intestines faster than normal, or you ate something with strong green pigment. In most cases, it’s harmless and resolves on its own within a day or two.
To understand why, it helps to know what gives stool its usual brown color. Your liver produces bile, a green fluid that helps digest fats. As bile travels through your intestines, bacteria break it down through a series of chemical reactions, eventually converting it into a brown pigment. This process requires time. If anything speeds up digestion or disrupts your gut bacteria, bile doesn’t fully convert, and your stool stays green.
Foods That Turn Stool Green
The most common cause is simply eating a lot of green foods. Chlorophyll, the pigment that makes plants green, can color your stool the same way. Spinach, kale, broccoli, avocados, herbs, pistachios, and matcha powder are all common culprits. The more you eat, the more vivid the green.
Artificial food dyes can do the same thing. Brightly frosted cupcakes, colored drink mixes, ice pops, and candies continue tinting whatever they touch as they move through your digestive system. Blue and purple dyes are especially likely to produce green stool, since they mix with the yellow-green bile already present in your intestines. If you recently ate something with bold artificial coloring, that’s probably your answer.
Rapid Transit Through the Gut
When food moves through your intestines faster than usual, bile doesn’t have enough time to break down fully. The result is stool that retains bile’s original green color. This is one of the most frequent explanations for an unexpected green bowel movement.
Several things can speed up transit time. Diarrhea from a stomach bug, food poisoning, or stress is the obvious one. But even a large meal, a sudden increase in fiber, or a strong cup of coffee can accelerate things enough to produce a greenish tint. If you’ve had loose stools alongside the color change, rapid transit is the likely cause.
Iron Supplements and Medications
Oral iron supplements frequently turn stool a very dark green, sometimes so dark it looks almost black. This is normal and some physicians actually consider it a sign the supplement is being absorbed properly. If you recently started taking iron, that color shift is expected and not a reason for concern.
Certain antibiotics can also cause green stool by disrupting the balance of bacteria in your gut. Those bacteria are responsible for the chemical reactions that turn bile brown, so when their populations are reduced, bile passes through with its green color intact. This effect typically resolves after you finish the antibiotic course and your gut bacteria repopulate.
Green Stool in Babies
Green stool in infants has its own set of causes, and most of them are benign. Newborns pass meconium in their first few days of life, a dark greenish-black substance that’s completely normal.
In breastfed babies, green stool can happen when a baby doesn’t finish feeding entirely on one side. This means the baby gets more of the thinner, lower-fat milk at the beginning of a feeding and misses the higher-fat milk that comes later, which affects how the milk is digested. Babies who lack the typical balance of intestinal bacteria (common in early breastfeeding) may also produce green stool. Formula-fed babies on protein hydrolysate formula, used for milk or soy allergies, often have greenish stool as well. Diarrhea in infants can also cause the same color change it does in adults, by speeding food through the gut too quickly for bile to break down.
When Green Stool Signals a Problem
A single green bowel movement, or even a few days of green stool after eating a big salad or starting iron supplements, is not a medical concern. The color alone is almost never dangerous.
What matters more is what accompanies the color change. Green stool paired with persistent diarrhea lasting more than a few days, fever, significant abdominal pain, or blood in the stool points to something that needs medical attention, such as an infection or inflammatory condition. Stool that is consistently green for weeks without an obvious dietary explanation is also worth bringing up with a doctor, since it could indicate a problem with bile production or chronic malabsorption.
For babies, watch for signs of dehydration (fewer wet diapers, no tears when crying, a sunken soft spot) alongside green diarrhea. These warrant a prompt call to a pediatrician.

