Green stool is almost always caused by something you ate, a supplement you’re taking, or food moving through your gut faster than usual. In most cases, it’s completely harmless and resolves on its own within a day or two.
The reason comes down to bile. Your liver produces bile, a yellow-green fluid that helps break down fats in your small intestine. As bile travels through your digestive tract, bacteria chemically transform it from green to brown. That’s what gives normal stool its typical brown color. When something disrupts that process, whether it’s speed, diet, or medication, the green pigment sticks around.
Foods That Turn Stool Green
The most common culprit is simply eating a lot of green or deeply pigmented food. Spinach, kale, broccoli, arugula, and other leafy greens are loaded with chlorophyll, the pigment that makes plants green. Eat enough of it and your body can’t fully break down all that pigment before it exits. Blueberries, green food powders, matcha, spirulina, and wheatgrass shots can all do the same thing.
Artificial food coloring is another frequent cause. Blue and purple dyes mixed with yellow bile create a green result. Brightly frosted cupcakes, blue sports drinks, grape-flavored candy, and green ice cream are common offenders. The dye continues tinting whatever it touches even after you’ve swallowed it. If you ate something vibrantly colored in the last 24 to 48 hours, that’s likely your answer.
Medications and Supplements
Several over-the-counter products can shift stool color toward green. Iron supplements are one of the most well-known causes, often darkening stool to a deep green or greenish-black. Antacids containing aluminum hydroxide can produce greenish stool as a side effect. The active ingredient in some anti-diarrheal medications (the pink liquid variety) reacts with sulfur in your digestive system, which can turn stool dark green or black.
Antibiotics deserve a separate mention. They can disrupt the normal balance of gut bacteria, and since those bacteria are responsible for converting bile from green to brown, killing them off means bile stays greener for longer. If you recently started a course of antibiotics and noticed a color change, the two are likely connected. The color typically returns to normal after you finish the medication and your gut bacteria repopulate.
Rapid Transit: When Food Moves Too Fast
This is the explanation most people don’t think of. When food moves through your intestines faster than normal, bile doesn’t have enough time to be fully broken down by bacteria. The result is stool that still carries that original green-yellow bile pigment. Anything that speeds up digestion can cause this: stress, a stomach bug, too much coffee, food intolerance, or simply a meal that didn’t agree with you.
Diarrhea is the classic fast-transit situation. If your green stool is also loose or watery, the speed of digestion is probably the primary reason for the color. This is also why green stool sometimes shows up during periods of anxiety or intense stress, both of which can accelerate gut motility.
Infections That Cause Green Stool
Bacterial and parasitic infections can produce green diarrhea, often alongside other symptoms like cramping, nausea, fever, or bloating. Salmonella (from undercooked poultry or contaminated produce) and Giardia (a waterborne parasite common in untreated water sources) are two well-known examples. Norovirus and other stomach bugs can also produce green stool simply by pushing everything through your system too quickly for bile to change color.
The key difference between an infection and a dietary cause is the accompanying symptoms. Green stool from spinach feels like nothing. Green stool from an infection usually comes with obvious illness: stomach pain, repeated diarrhea, fever, or vomiting.
Digestive Conditions and Bile Problems
For some people, green stool is a recurring pattern rather than a one-time event. This can point to a condition affecting how your body processes bile. Normally, bile acids are reabsorbed in the lower part of your small intestine and recycled back to the liver. When that reabsorption doesn’t work properly, excess bile acids spill into the large intestine, irritating the lining and triggering watery, urgent diarrhea that can appear green or yellow-green.
This bile acid malabsorption can happen after gallbladder removal, since the gallbladder normally regulates bile flow into the intestine. Without it, bile drips continuously, and the intestine may not reabsorb it all. Celiac disease, chronic pancreatitis, and small intestinal bacterial overgrowth (SIBO) can also damage the part of the intestine responsible for recapturing bile acids, leading to the same result. People with these conditions often notice fatty, foul-smelling stools along with the color change.
Green Stool in Babies
If you’re a parent noticing green in your baby’s diaper, the causes are a bit different. In the first few days of life, newborns pass meconium, a dark greenish-black tar-like stool that’s entirely normal. After that transition, green stool in breastfed babies can happen when the baby doesn’t fully finish feeding on one side. The earlier milk in a feeding session is lower in fat, and missing the higher-fat milk that comes later can affect how the baby digests it, producing green stool.
Babies on hypoallergenic formula (protein hydrolysate formula, used for milk or soy allergies) also commonly have green stool. Breastfed infants who haven’t yet developed a full population of intestinal bacteria may produce green stool as well. And just like adults, babies with diarrhea can have green stool because everything is moving through too fast for bile to fully break down.
When Green Stool Needs Attention
A single episode of green stool after a big salad or a blue slushie is not a concern. But if green stool persists for more than a few days without an obvious dietary explanation, it’s worth checking in with a healthcare provider. The same goes if it’s accompanied by fever, blood, severe cramping, or signs of dehydration like dark urine, dizziness, or (in children) fewer wet diapers than usual. Green stool paired with diarrhea can lead to dehydration quickly, so staying on top of fluid intake matters, especially for young children and older adults.