Green stool is almost always harmless. All shades of brown and even green are considered normal, and only rarely does stool color point to a serious intestinal condition. In most cases, something you ate, a supplement you’re taking, or simply faster-than-usual digestion explains the color change.
How Stool Gets Its Color
Your liver produces bile, a yellow-green fluid that helps break down fats during digestion. As bile travels through your intestines, bacteria and enzymes gradually transform it from green to yellow to brown. That final brown color is really just fully processed bile. When anything disrupts or speeds up that process, stool can retain its earlier green pigment.
Foods That Turn Stool Green
The most common reason for green stool is simply eating green things. Spinach, kale, broccoli, avocados, herbs, and matcha (powdered green tea) all contain chlorophyll, the pigment that gives plants their color. Eat enough of these and your stool will reflect it. Pistachios get their green color from the same chlorophyll, and they can have the same effect. Even blueberries can produce shades of green.
Artificial food coloring is another frequent culprit. Bright frosting on a cupcake or a vividly colored sports drink continues tinting whatever it touches as it moves through your digestive system. If your green stool appeared a day or two after eating something with bold artificial colors, that’s likely your answer.
Iron Supplements and Medications
Iron supplements commonly cause stools to turn 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 the color change bothers you, lowering your dose with your doctor’s guidance will typically resolve it.
Certain antibiotics can also cause green stool by disrupting the balance of gut bacteria. Since those bacteria play a key role in converting bile from green to brown, killing off a portion of them with antibiotics can leave stool greener than usual until your gut flora recovers.
Rapid Digestion and Diarrhea
When food moves through your intestines faster than normal, bile doesn’t have enough time to fully break down. The result is dark green diarrhea. This is one of the most common explanations when green stool appears alongside loose or watery bowel movements. Anything that speeds up transit, from a stomach bug to food intolerance to stress, can produce this effect. The green color itself isn’t the problem here; it’s just a visible sign that digestion was rushed.
Infections That Cause Green Stool
Green diarrhea paired with stomach pain, vomiting, or fever may signal an infection. Norovirus is one of the most contagious causes, spreading through contaminated food, surfaces, or contact with infected people. It typically brings on stomach pain, diarrhea, and vomiting that resolve within a few days. E. coli infections can cause stomach cramps, vomiting, and sometimes bloody diarrhea. Other bacterial and parasitic infections produce similar patterns.
The green color in these cases comes from the same rapid-transit mechanism: your inflamed intestines push everything through too quickly for bile to complete its color change. If diarrhea lasts more than 48 hours, or you notice blood or mucus in your stool, persistent stomach pain, fever, fatigue, or signs of dehydration, those are signals to get medical attention.
Green Stool in Babies
Green stool is especially common in infants and usually not a concern. Newborns pass meconium in their first days of life, a thick, dark green-black stool that’s completely normal. As feeding begins, stool transitions through various shades of green before settling into the yellowy color typical of breastfed babies or the tan of formula-fed babies.
Beyond those early days, several things can keep an infant’s stool green. A baby who doesn’t finish breastfeeding entirely on one side may miss some of the higher-fat breast milk that comes later in a feeding, which affects how the milk is digested. Babies on protein hydrolysate formula, used for milk or soy allergies, often have greenish stool as well. Breastfed infants who haven’t yet developed a full complement of intestinal bacteria may also produce green stool simply because their gut is still maturing. Diarrhea in infants causes green stool for the same rapid-transit reason it does in adults.
How Long Green Stool Typically Lasts
If a food or supplement caused the color change, green stool usually resolves within one to three days once you stop eating the triggering food or adjust your dosage. If an infection is responsible, the green color fades as the illness clears and digestion returns to its normal pace. Contact a healthcare professional if green stool persists for more than a few days without an obvious dietary explanation, or if diarrhea accompanies it. Green stool with diarrhea increases the risk of dehydration, so staying well hydrated is important, especially for young children.

