Bright green stool is almost always caused by something you ate or by food moving through your digestive system faster than usual. In both cases, the explanation comes back to bile, a yellow-green digestive fluid your liver produces to help break down fats.
As bile travels through your intestines, enzymes gradually change its color from green to dark brown. That process takes time. If something speeds up digestion or if you’ve loaded up on green-pigmented foods, the result is stool that stays visibly green instead of turning the expected brown.
How Bile Determines Stool Color
Your liver constantly produces bile and releases it into the upper part of your small intestine. From there, bile works its way through roughly 25 feet of intestine, and along the way bacteria and enzymes chemically alter its pigments. By the time waste reaches your colon, the pigments have usually shifted to brown. When waste moves through the large intestine too quickly, bile doesn’t have time to break down completely. The result is stool that retains that original green tint, sometimes vividly so.
This is why diarrhea and green stool so often go together. Anything that accelerates transit, whether it’s a stomach bug, anxiety, or a strong cup of coffee on an empty stomach, can push waste through before the color change is complete.
Foods That Turn Stool Green
The most common dietary culprit is chlorophyll, the pigment that makes plants green. Eating a large amount of spinach, kale, broccoli, avocados, fresh herbs, or matcha can deliver enough chlorophyll to visibly tint your stool. Pistachios can do the same thing, since their green color comes from the same pigment family along with other plant compounds called flavonoids and carotenoids.
Artificial food coloring is another frequent cause, and it tends to produce more startling shades of green than vegetables do. Brightly frosted cupcakes, green-dyed candy, sports drinks, ice cream, and holiday-themed cereals all contain synthetic dyes that continue coloring whatever they touch as they pass through your gut. If you recently ate something with vivid blue or green frosting and your stool looks neon, that’s almost certainly the explanation.
Once the food is out of your system, your stool should return to brown. If the color doesn’t normalize within a few days of removing the trigger, that’s worth checking out with a doctor.
Medications and Supplements
Iron supplements are a well-known cause of dark green or near-black stool. Some physicians actually consider this color change a sign the supplement is being absorbed properly. If the color bothers you, lowering your dose (with your doctor’s guidance) will typically resolve it.
Certain antibiotics can also shift stool toward green or yellow. They do this by disrupting the balance of gut bacteria that normally help convert bile pigments to brown. The effect usually fades once you finish the course of medication.
Infections That Cause Green Stool
Gut infections are a less pleasant but important explanation, especially if bright green stool shows up alongside diarrhea, cramping, nausea, or fever. Three organisms are particularly associated with green-colored stool: the bacteria salmonella, the parasite giardia, and norovirus. All three speed up gut transit dramatically, which prevents normal bile processing. They can also trigger excess mucus production, which adds its own greenish tinge.
With most food poisoning or viral gastroenteritis, symptoms resolve within a few days. Green stool that persists for more than a week, or that comes with blood, high fever, or signs of dehydration, points to something that may need treatment.
Green Stool in Babies
Green stool in infants has its own set of causes and is extremely common. Breastfed babies may produce green stool if they don’t finish nursing on one side before switching. The earlier, thinner milk (foremilk) is lower in fat than the richer hindmilk that comes later in a feeding, and that difference in fat content changes how the milk is digested.
Babies on protein hydrolysate formula, the type used for milk or soy allergies, also tend to have greenish stool. So do some breastfed newborns who haven’t yet developed a full population of intestinal bacteria. In all of these cases, the green color is normal and not a sign of illness on its own. Green stool combined with diarrhea, poor feeding, or irritability in an infant is a different situation and warrants a call to the pediatrician.
Signs That Warrant Medical Attention
Green stool by itself, without other symptoms, is rarely a medical concern. The color changes worth taking seriously are different ones. Tarry, foul-smelling black stool can indicate bleeding from the stomach or upper small intestine, where stomach acid converts blood from red to black. That always requires immediate medical attention. Bright red blood in or on the stool, especially in larger amounts or accompanied by lightheadedness, also calls for urgent evaluation.
Pale, clay-colored stool suggests a blockage in bile flow and is often accompanied by jaundice (yellowing of the skin and the whites of the eyes) and dark, cola-colored urine. If you notice that combination, contact a healthcare provider promptly.
For green stool specifically, the practical test is simple: think back over the last day or two. If you ate a big spinach salad, drank a green smoothie, took iron pills, or had brightly dyed food, you almost certainly have your answer. Give it a few days, and the color should return to normal on its own.