Green diarrhea is usually caused by food moving through your digestive system faster than normal, which prevents bile from completing its usual color change. Bile, a digestive fluid your liver produces, starts out bright green. As it travels through your intestines, bacteria break it down and it gradually shifts to the familiar brown color. When diarrhea speeds everything up, bile doesn’t have time to make that transition, and your stool comes out green.
This is the single most common explanation, but it’s not the only one. What you’ve eaten, medications you’re taking, and certain medical conditions can all play a role.
Why Rapid Transit Keeps Stool Green
Your liver releases bile into the upper part of your small intestine every time you eat. That bile is yellow-green. Over the course of its journey through roughly 25 feet of intestine, gut bacteria chemically transform bile pigments step by step, eventually producing the brown color most people expect. The whole trip normally takes 12 to 36 hours.
Diarrhea from a stomach bug, food intolerance, or any other cause compresses that timeline dramatically. If stool moves through in a fraction of the normal time, bacteria simply can’t finish the job. The result is stool that’s still visibly green, sometimes bright green, sometimes dark or olive-toned depending on how far along the process got before things sped up. Once your digestion returns to its normal pace, the brown color comes back on its own.
Foods and Drinks That Turn Stool Green
Chlorophyll, the pigment that makes plants green, passes through your digestive system largely intact. Eating generous amounts of spinach, kale, broccoli, or other leafy greens can produce noticeably green stool even without diarrhea. Avocados, fresh herbs, matcha, and pistachios (which get their color from chlorophyll and related plant pigments) can do the same thing.
Artificial food dyes are another common culprit. Brightly colored frosting, sports drinks, candy, ice pops, and flavored drink mixes contain dyes that keep tinting material as it moves through your gut. Blue and green dyes are especially likely to show up in your stool. If you combine a food-dye-heavy snack with something that loosens your stool, like a sugary drink on an empty stomach, the green can look surprisingly vivid.
Medications and Supplements
Iron supplements are well known for changing stool color. They typically produce a very dark green or blackish stool that can look alarming but is harmless. If you recently started an iron supplement and notice this change, the supplement is almost certainly the cause.
Antibiotics can trigger green diarrhea through two separate mechanisms. First, some antibiotics directly tint stool yellow or green as a side effect. Second, and more importantly, antibiotics kill beneficial gut bacteria along with the harmful ones they’re targeting. That disruption, sometimes called dysbiosis, reduces the bacterial population responsible for converting bile to its brown form. It also destabilizes digestion in ways that can cause loose stools on their own. Antibiotic-associated diarrhea is common enough that it has its own medical abbreviation (AAD), and the green color during a course of antibiotics is a predictable combination of faster transit and fewer bile-processing bacteria.
Gallbladder Removal and Bile Acid Diarrhea
If you’ve had your gallbladder removed, green diarrhea may be a recurring issue rather than a one-time event. Your gallbladder’s job is to store and concentrate bile, releasing it in controlled bursts when you eat. Without it, bile flows continuously into your small intestine in a diluted form. After meals, reflexive contractions can push large amounts of that bile into your colon before it’s been fully processed.
Excess bile acids in the colon stimulate the intestinal lining to secrete water and electrolytes, which causes watery, often greenish diarrhea. This is surprisingly common: one multi-center study found diarrhea affected 57.2% of patients after gallbladder removal, and U.S. estimates suggest 5% to 12% of the roughly 750,000 annual gallbladder surgeries are followed by persistent diarrhea. If you’re in this group, the pattern is usually worst right after eating fatty meals, and it tends to improve over months as your body adapts.
Green Diarrhea in Babies
Babies have their own set of reasons for green stool, and most of them are benign. Breastfed infants who don’t fully empty one breast before switching to the other may get more of the lower-fat foremilk and less of the fat-rich hindmilk. This imbalance can speed digestion and produce green, sometimes frothy stools. Babies on protein hydrolysate formula (used for milk or soy allergies) also commonly have green stool as a normal byproduct of how that formula is digested.
Newborns who are exclusively breastfed may also lack the full diversity of intestinal bacteria that older children have, which means bile processing is less complete. Combined with the naturally fast transit time in an infant’s short digestive tract, occasional green stools are expected. Actual diarrhea in a baby, meaning a sudden increase in the frequency and wateriness of stools, is a different matter and warrants closer attention, especially in infants under 12 months.
When Green Diarrhea Signals Something Serious
The green color itself is rarely the problem. What matters more is what’s accompanying it and how long it lasts. In adults, diarrhea lasting more than two days, six or more loose stools per day, or a high fever alongside diarrhea all warrant a call to your doctor. Severe abdominal or rectal pain, stools that are black and tarry, or stools containing red blood or pus point to something beyond a simple stomach bug.
Dehydration is the most immediate risk from any episode of diarrhea, regardless of color. Watch for extreme thirst, dark-colored urine, dizziness or lightheadedness, and urinating much less than usual. A simple skin test can help: pinch the skin on the back of your hand and release it. If it doesn’t flatten back to normal right away, you may be significantly dehydrated.
For children, the thresholds are lower. Diarrhea lasting more than a day, any fever in infants, or a child who refuses to drink for more than a few hours all justify prompt medical attention. In babies, watch for no wet diapers for three hours or more, no tears when crying, sunken eyes, or unusual drowsiness.
Staying Hydrated During Recovery
Replacing lost fluids is the most important thing you can do while green diarrhea runs its course. For mild to moderate dehydration, oral rehydration solutions (available at any pharmacy) are the gold standard. They contain a precise balance of salts and sugars that help your intestines absorb water more efficiently than plain water alone. The World Health Organization recommends reduced-osmolarity formulations, which have been shown to decrease episodes of diarrhea and vomiting and reduce the need for IV fluids.
You don’t need to stop eating. Current guidelines recommend continuing age-appropriate nutrition throughout a diarrheal illness, including breastfeeding for infants. Eating helps your gut lining recover and keeps your energy up. Focus on whatever foods feel tolerable. Small, frequent meals are easier on your system than large ones, and you can gradually return to your normal diet as symptoms improve.
For most people, green diarrhea resolves within a day or two as transit time normalizes. If the cause is dietary (a big kale salad, a bag of artificially colored candy), the color shift can happen with a single meal and clear up just as quickly. If it’s tied to an ongoing factor like antibiotics or gallbladder removal, it may persist as long as that underlying cause is in play.