Green diarrhea usually means food moved through your digestive system too quickly for bile to fully break down. Bile is a bright green fluid your liver produces to help digest fat. As it travels through your intestines, bacteria chemically transform it from green to the familiar brown color. When transit speeds up, bile keeps its green pigment, and your stool comes out green. This is the single most common explanation, and it’s usually harmless on its own.
That said, several other factors can turn diarrhea green, from the foods you ate yesterday to an active infection. Here’s how to tell what’s going on.
Rapid Transit: The Most Likely Cause
Your liver releases bile into the upper part of your small intestine every time you eat something with fat in it. Normally, 95% of those bile acids get reabsorbed in the last segment of the small intestine before waste enters the colon. Along the way, gut bacteria convert the green pigment into brown. The whole process takes roughly 24 to 72 hours in a healthy gut.
When something triggers diarrhea, whether it’s stress, a stomach bug, or food intolerance, the muscles lining your intestines contract faster than usual. Food and bile rush through before that color conversion can finish. The result is loose, green stool. If the diarrhea clears up in a day or two and you feel fine otherwise, rapid transit is almost certainly the explanation.
Foods That Turn Stool Green
Sometimes the color has nothing to do with bile at all. Chlorophyll, the pigment that makes plants green, can dye your stool directly. The biggest culprits are spinach, kale, broccoli, avocados, fresh herbs, and matcha. Pistachios contain enough chlorophyll to do it too. Even blueberries can produce green shades as they’re digested.
Artificial food dyes are another common cause. Bright frosting, sports drinks, candy, and colored cereals continue tinting whatever they touch as they move through your gut. If you ate something with vivid green or blue dye in the last day or two, that’s likely your answer. The color passes once the dye clears your system, usually within one to three bowel movements.
Infections That Cause Green Diarrhea
Several bacterial, viral, and parasitic infections can produce green diarrhea, usually alongside other symptoms that make it clear you’re sick.
- Salmonella typically comes from contaminated food and causes watery diarrhea, stomach cramps, and fever. The diarrhea often has a green tint because the infection speeds up gut motility dramatically.
- Norovirus and rotavirus are highly contagious viruses that cause sudden-onset vomiting, stomach pain, and watery diarrhea. The rapid transit time means bile doesn’t have time to change color.
- E. coli infections from contaminated food or water can cause stomach cramps, vomiting, and sometimes bloody diarrhea, though green stools are also common early in the illness.
- Giardia is an intestinal parasite that produces distinctively foul-smelling, greasy, green diarrhea along with gas, bloating, and stomach cramps. It spreads through contaminated water and can persist for weeks without treatment.
- C. difficile is a bacterial infection that often develops after a course of antibiotics disrupts normal gut bacteria. It causes frequent watery diarrhea that can appear green or yellow.
If your green diarrhea came on suddenly with fever, vomiting, or severe cramps, an infection is the most likely explanation. A stool sample can identify the specific pathogen if symptoms don’t resolve on their own.
Bile Acid Malabsorption
If you have recurring green diarrhea that doesn’t seem tied to food or infection, bile acid malabsorption may be the cause. Normally your small intestine recycles almost all the bile it receives. But when the last section of the small intestine is damaged or missing, excess bile acids spill into the colon. There they irritate the lining, trigger extra fluid secretion, and speed up muscle contractions, producing frequent, urgent, green diarrhea with cramping.
This can happen after gallbladder removal, in people with Crohn’s disease affecting the lower small intestine, or after surgical removal of part of the small bowel. Radiation therapy to the abdomen can also cause it. The pattern is distinctive: chronic, watery diarrhea that flares after fatty meals. If this sounds familiar, it’s worth bringing up with a doctor, because targeted treatment exists and works well.
Green Diarrhea in Babies
Green stool in infants is extremely common and rarely a concern. Breastfed babies can develop green stools if they don’t finish feeding on one side before switching. The earlier milk (foremilk) is thinner and lower in fat, while the later milk (hindmilk) is richer. Missing that higher-fat portion changes how the milk is digested and can produce green, frothy poop. Letting the baby finish one breast before offering the other often resolves it.
Babies on hypoallergenic formula (protein hydrolysate formulas used for milk or soy allergies) commonly have greenish stools as a normal side effect. Breastfed newborns who haven’t yet developed a full population of gut bacteria may also produce green stool in the early weeks of life. In all these cases, the color is harmless as long as the baby is feeding well and gaining weight.
Antibiotics and Supplements
Antibiotics are one of the most common medication-related causes of green diarrhea. They kill off the gut bacteria responsible for converting bile from green to brown, and they often speed up transit time as a side effect. The combination produces unmistakably green, loose stools. This typically resolves within a few days of finishing the course.
Iron supplements can produce dark green or black-green stools, though the stool is more often formed than loose. If you recently started an iron supplement and noticed the color change, that’s likely the connection.
Staying Hydrated During Green Diarrhea
Regardless of the cause, the main risk from any episode of diarrhea is dehydration. Oral rehydration solutions containing water, sugar, and salt are the most effective way to replace lost fluids and electrolytes. Zinc supplementation can shorten a diarrhea episode by about 25% and reduce stool volume by roughly 30%, which is why the World Health Organization recommends it alongside rehydration for acute diarrhea.
Watch for signs of dehydration: extreme thirst, dry mouth, dark urine, urinating much less than usual, dizziness, or lightheadedness. In infants, warning signs include no wet diapers for three or more hours, no tears when crying, sunken eyes, or unusual drowsiness.
Signs That Need Prompt Attention
Green diarrhea on its own is rarely dangerous. But certain combinations of symptoms signal something more serious. For adults, these include diarrhea lasting more than two days, high fever, six or more loose stools per day, severe abdominal pain, bloody or black tarry stools, or signs of dehydration. For children, the threshold is lower: diarrhea lasting more than one day, any fever in infants, refusal to eat or drink, or frequent loose stools. Babies under 12 months, premature infants, and children with existing medical conditions warrant earlier attention.
A change in mental state, like unusual irritability or lack of energy, in either adults or children is a sign of significant dehydration and needs immediate care.