Green diarrhea usually happens because food is moving through your digestive system too fast for bile to fully break down. Bile, the fluid your liver produces to help digest fat, starts out green. It only turns brown as bacteria in your large intestine process it over time. When diarrhea speeds everything up, bile passes through before that color change is complete, and the result is green stool.
This is the single most common explanation, but it’s not the only one. What you’ve eaten, what supplements you’re taking, and occasionally an infection can all play a role.
How Bile Creates the Green Color
Your liver continuously releases bile into the upper part of your small intestine. Fresh bile is a yellow-green color. As digested food travels through the roughly 25 feet of intestine below that point, bacteria chemically alter the bile pigments, gradually shifting the color from green to yellow to brown. The longer stool spends in your colon, the browner it gets.
Diarrhea shortens that transit time dramatically. Instead of the usual 12 to 36 hours it takes for food to make the full journey, everything rushes through in a fraction of that time. The bile pigments never get fully processed, so what comes out is still green. This is why a single bout of diarrhea from any cause, whether it’s food poisoning, a stomach virus, or stress, can produce green stool even if you haven’t eaten anything green.
Foods and Dyes That Turn Stool Green
A diet heavy in green vegetables like spinach, kale, broccoli, or arugula can tint your stool green on its own, diarrhea or not. These foods are rich in chlorophyll, the pigment that makes plants green, and large amounts of it can overwhelm the color change that normally happens during digestion.
Artificial food dyes are another common culprit. Green or blue dyes found in flavored drink mixes, ice pops, candy, frosting, and some cereals can color stool vividly. Blue dye mixed with the natural yellow of bile produces a striking green. If you recently ate or drank something with noticeable food coloring, that’s a likely explanation, especially when combined with loose stools that move through quickly.
Iron Supplements and Antibiotics
Iron supplements are well known for changing stool color. They typically make stool darker, sometimes black, but they can also give it a dark green hue. This is a harmless chemical reaction between iron and digestive fluids, not a sign of a problem. If you recently started an iron supplement and noticed the change, that’s almost certainly the cause.
Antibiotics work differently. They can disrupt the normal balance of bacteria in your gut, and since those bacteria are responsible for converting bile from green to brown, wiping them out with antibiotics can leave stool greener than usual. Antibiotics also commonly cause diarrhea on their own, which compounds the effect by speeding transit time. This combination of fewer bile-processing bacteria plus faster movement is why antibiotic-associated diarrhea often looks green.
Infections and Stomach Bugs
Viral gastroenteritis (the common stomach bug) and bacterial infections from contaminated food are frequent causes of sudden green diarrhea. The mechanism is the same rapid-transit explanation: your intestines are inflamed and pushing contents through before bile has time to change color. Norovirus, rotavirus, salmonella, and E. coli infections can all produce this pattern.
With infections, you’ll usually have other symptoms too, like nausea, vomiting, cramping, or fever. Most viral stomach bugs resolve on their own within one to three days. Bacterial infections can take longer and sometimes need treatment, particularly if you develop a high fever or see blood in your stool.
Green Diarrhea in Babies and Young Children
Green stool in infants has a few unique causes worth knowing about. Breastfed babies who don’t finish feeding on one side may miss the higher-fat hindmilk that comes later in a feeding session. The lower-fat foremilk moves through faster and can produce green, sometimes frothy stools. This isn’t dangerous, but adjusting feeding patterns usually resolves it.
Babies on protein hydrolysate formula (the type used for milk or soy allergies) also commonly have green stool. This is a normal response to how that formula is digested. Breastfed newborns who haven’t yet developed a full population of intestinal bacteria may also pass green stools in the early weeks of life. In all of these cases, green color alone isn’t a concern. Diarrhea in infants, however, warrants closer attention because small children dehydrate much faster than adults.
Signs That Need Medical Attention
Green diarrhea by itself is rarely a reason to worry. It almost always reflects rapid transit, dietary causes, or a self-limiting illness. But certain combinations of symptoms signal something more serious:
- Duration: Diarrhea lasting more than two days in adults, or more than one day in infants and young children.
- Frequency: Six or more loose stools per day.
- Fever: High fever alongside diarrhea, or any fever at all in young infants.
- Blood or pus: Stools that are black and tarry or contain visible red blood or pus.
- Severe pain: Intense abdominal or rectal pain beyond normal cramping.
- Mental state changes: Unusual irritability or lack of energy, particularly in children.
Dehydration is the most common complication of any diarrhea, green or otherwise. Watch for extreme thirst, dry mouth, dark urine, urinating less than usual, dizziness, and fatigue. In infants, signs include no wet diapers for three or more hours, no tears when crying, a sunken soft spot on the skull, and unusual drowsiness. If you notice skin that stays “tented” when you pinch and release it rather than flattening back immediately, that’s a sign of significant dehydration.
For most people, green diarrhea resolves once the underlying trigger passes. Staying hydrated, eating bland foods as tolerated, and giving your gut time to recover is usually all that’s needed.

