Green diarrhea happens most often because food moves through your intestines too quickly for bile to fully break down. Bile starts out green when your liver releases it, and enzymes in your gut gradually change it to brown as it travels through. When something speeds up that journey, whether an infection, a food reaction, or a medication, the bile stays green and colors your stool.
That rapid transit explanation covers most cases, but green diarrhea can also come from what you eat, what you take, and occasionally from an underlying condition worth knowing about.
How Bile Creates the Green Color
Your liver produces bile to help digest fats. When bile enters your small intestine, it’s a yellow-green color. As it moves through the digestive tract, enzymes chemically alter it, shifting the pigment from green to yellow-brown. This process takes time. If everything is working at a normal pace, your stool ends up the familiar brown color by the time it reaches the end of the line.
Diarrhea disrupts this process by pushing contents through your large intestine before those enzymes can finish their work. The faster things move, the greener the result. This is why a single bout of diarrhea from any cause, whether it’s food poisoning or stress, can produce green stool even if you haven’t eaten anything green.
Foods That Turn Stool Green
Chlorophyll, the pigment that makes plants green, passes through your digestive system and can color your stool on the way out. The biggest culprits are leafy greens like spinach, kale, and broccoli, especially when eaten in large amounts. Avocados, fresh herbs, and matcha (powdered green tea) can do the same thing. Pistachios are another source, since their green color comes from the same chlorophyll found in vegetables. Even blueberries can sometimes produce greenish shades rather than the dark blue or purple you might expect.
Artificial food coloring is another common trigger. Brightly frosted cupcakes, green sports drinks, or candy with synthetic dyes can tint your stool striking shades of green. The dye keeps its color all the way through digestion. If the food also contains ingredients that loosen your stool (like sugar alcohols in candy or large amounts of fructose), you get green diarrhea specifically rather than just green stool.
Infections That Cause Green Diarrhea
Bacterial, viral, and parasitic infections are among the most common causes of sudden green diarrhea. Salmonella and E. coli infections trigger rapid, forceful intestinal contractions that rush bile through before it can be broken down. Norovirus does the same thing, often alongside vomiting. The parasite Giardia, typically picked up from contaminated water, can also produce green, watery stool.
These infections create what’s essentially a “gush” of unabsorbed bile mixed into loose stool. The green color in this context is really just a side effect of how fast everything is moving. It’s not that the infection itself produces green pigment. It’s that the infection causes such rapid transit that normal bile processing can’t keep up.
Most infectious diarrhea resolves on its own within a few days. Signs that something more serious is happening include a fever above 101°F (38.5°C), blood in your stool, signs of dehydration like persistent rapid heart rate or dizziness, or symptoms lasting beyond a week. Elderly adults and people with weakened immune systems may need earlier evaluation.
Medications and Supplements
Iron supplements are a well-known cause of green (and sometimes very dark green or black) stool. Iron irritates the gut through two mechanisms: it generates free radicals along the intestinal lining that can promote inflammation, and it disrupts the balance of gut bacteria, favoring potentially harmful species over beneficial ones. These effects commonly cause diarrhea, nausea, and abdominal pain alongside the color change. If you’re taking iron and notice green diarrhea, the supplement is very likely the cause.
Antibiotics can also turn stool green or yellow-green. They do this partly by killing off the gut bacteria responsible for converting bile pigments to their final brown color, and partly by speeding up intestinal transit as a side effect. The color change is usually temporary and resolves after you finish the course of medication.
After Gallbladder Removal
If you’ve had your gallbladder removed, green diarrhea may be a recurring problem rather than a one-time event. The gallbladder’s job is to store and concentrate bile, releasing it in controlled amounts when you eat. Without it, bile drips continuously into your small intestine in a diluted, unconcentrated form.
After a meal, your body’s digestive reflexes can cause a large wave of this bile to move from the small intestine into the colon. The excess bile in the colon stimulates the lining to secrete water and electrolytes, producing diarrhea. The concentration of certain bile acids in the stool also increases, which heightens rectal sensitivity and creates a sudden urge to go. Some people find their bowel habits shift from once a day before surgery to four or five times a day afterward. The greenish tint comes from that same bile that hasn’t had time to fully convert to brown.
Digestive Conditions
Any condition that speeds up intestinal transit or impairs nutrient absorption can produce green diarrhea as a recurring symptom. Crohn’s disease, particularly when it affects the ileum (the last section of the small intestine where bile is normally reabsorbed), can lead to excess bile reaching the colon. Celiac disease and other malabsorption conditions have a similar effect: when the intestinal lining is damaged and can’t properly process bile, the green pigment passes through unchanged.
Irritable bowel syndrome with diarrhea (IBS-D) can produce green stool during flare-ups, again because of rapid transit rather than any specific disease process. If you’re seeing green diarrhea repeatedly over weeks or months without an obvious dietary explanation, that pattern is worth investigating further.
Green Diarrhea in Babies
Green stool in infants is extremely common and usually harmless. Breastfed babies may produce green diarrhea when they don’t finish feeding on one side before switching. The earlier milk (foremilk) is lower in fat, and missing the higher-fat hindmilk that comes later in the feeding can change how the milk is digested, resulting in green, sometimes frothy stool.
Babies on protein hydrolysate formula, the type used for milk or soy allergies, often have greenish stool as a normal side effect. Breastfed infants who haven’t yet developed a full complement of intestinal bacteria may also produce green stool simply because their gut flora isn’t mature enough to complete the bile conversion process. In most cases, green stool in an otherwise happy, feeding baby is not a concern. Diarrhea in infants that’s accompanied by fever, refusal to feed, or fewer wet diapers is a different situation and warrants prompt attention, regardless of color.

