Green diarrhea usually happens because food is moving through your digestive tract too fast for bile to fully break down. Bile starts out green, and it only turns your stool its usual brown color after gut bacteria have had enough time to process it. When diarrhea speeds everything up, that conversion never finishes, and what comes out stays green. That said, rapid transit isn’t the only explanation. What you’ve eaten, what supplements you’re taking, and certain health conditions can all play a role.
How Bile Creates the Color
Your liver produces bile, a green fluid that helps digest fats. As bile travels through your intestines, specific bacteria break it down through a chain of chemical changes. The green pigment (biliverdin) gets converted into a yellow compound, then further processed by gut bacteria into stercobilin, the pigment responsible for the familiar brown color of stool. Only about four known species of intestinal bacteria can perform this conversion.
When you have diarrhea, food and fluid rush through the large intestine before those bacteria can finish the job. The bile pigment stays green or yellowish-green because it simply didn’t have enough contact time with the microbes that would normally turn it brown. This is the single most common reason for green diarrhea, regardless of the underlying cause of the diarrhea itself, whether it’s a stomach bug, food intolerance, or stress.
Foods That Turn Stool Green
Chlorophyll, the pigment that makes plants green, passes through your digestive system and can tint your stool along the way. The usual suspects include spinach, kale, broccoli, avocados, fresh herbs, and matcha. Pistachios get their green color from chlorophyll too, so eating a large amount can have the same effect. Even blueberries can sometimes produce green shades rather than the dark blue-black you might expect.
Artificial food dyes are another common trigger. Brightly frosted cupcakes, flavored drink mixes, ice pops, and candy can all color your stool in vivid, unnatural shades of green. The dye continues tinting whatever it touches even after you swallow it. If you recently ate something with bold green or blue coloring, that’s very likely your answer.
Medications and Supplements
Iron supplements are well known for turning stool dark green or even black. This is a normal chemical reaction between the iron and your digestive juices, not a sign of a problem. Antibiotics can also cause green stool by disrupting the normal balance of gut bacteria. Since those bacteria are the ones responsible for converting bile pigments to brown, wiping them out with antibiotics can leave your stool green until the bacterial population recovers.
Gallbladder Removal
If you’ve had your gallbladder removed, loose green stools can become a recurring issue. Without a gallbladder to store and regulate bile release, bile flows continuously into the small intestine. More bile acids reach the large intestine than usual, where they act as a laxative, speeding up transit and sometimes causing chronic diarrhea. The combination of excess bile and fast movement means stool often stays green. Bile acid-binding medications can help manage this if it becomes a persistent problem.
Green Stool in Babies
Green stool is especially common in infants and usually harmless. Breastfed babies may produce green stool if they don’t finish feeding on one side before switching. The earlier milk is lower in fat, and missing the higher-fat hindmilk can change how the baby digests it. Babies on protein hydrolysate formula (used for milk or soy allergies) also tend to have green stools. Breastfed newborns sometimes produce green stool simply because their gut bacteria haven’t fully established yet, meaning the bile conversion process isn’t running at full capacity.
When Green Diarrhea Signals Something Bigger
A single episode of green diarrhea, or even a day or two of it, is rarely a concern. It usually resolves once the triggering food, illness, or medication clears your system. The Mayo Clinic recommends contacting a healthcare professional if green stool persists for more than a few days, especially alongside diarrhea.
Chronic green diarrhea can occasionally point to conditions that interfere with nutrient absorption. Celiac disease, for example, damages the lining of the small intestine over time, leading to malabsorption. People with celiac disease often experience persistent diarrhea, bloating, fatigue, and weight loss. Children with the condition may pass pale, foul-smelling, bulky stools. Inflammatory bowel conditions like Crohn’s disease can cause similar problems by damaging the intestinal lining and preventing proper fat absorption.
The most important thing to watch for with any diarrhea, green or otherwise, is dehydration. Drink plenty of fluids, and seek immediate attention if you notice signs of dehydration like dizziness, very dark urine, or dry mouth. In children, watch for fewer wet diapers, no tears when crying, or unusual drowsiness.

