Why Am I Having Green Diarrhea? Causes Explained

Green diarrhea usually happens because food moved through your digestive system too fast for bile to fully break down. Bile is a yellow-green fluid your liver produces to help digest fat. Normally, as digested food travels through your intestines, bacteria transform bile from green to its familiar brown color. When something speeds up that transit, whether it’s an infection, a dietary trigger, or a medication, bile stays green and so does your stool.

How Bile Creates the Green Color

Your liver releases bile into your small intestine every time you eat. As food waste moves through the large intestine, gut bacteria chemically alter the bile pigments, gradually shifting them from green to yellow to brown. The whole process takes roughly 12 to 36 hours in a healthy gut. Diarrhea shortens that window dramatically, sometimes to just a few hours, so the bile pigments never complete their color change. This is the single most common explanation for green diarrhea regardless of the underlying cause.

Foods and Drinks That Turn Stool Green

Large servings of leafy greens like spinach, kale, or broccoli contain enough chlorophyll to tint your stool green even without diarrhea. When those foods also cause loose stools (high-fiber meals can do this), the green becomes more vivid. Green food coloring is another frequent culprit, especially in flavored drink mixes, ice pops, frosted baked goods, and brightly colored candy. Blue and purple dyes can also produce green stool once they mix with yellow bile.

If your green diarrhea started within a day of eating something unusually green or artificially colored, food is the most likely explanation. It typically resolves on its own once that food clears your system.

Medications and Supplements

Iron supplements are a well-known cause of dark green or black-green stool. The iron itself oxidizes in the gut, changing color as it passes through. If you recently started an iron supplement and noticed the change, that’s almost certainly the connection.

Several other common medications can do the same thing. Bismuth subsalicylate, the active ingredient in some over-the-counter antidiarrheal products, reacts with sulfur in your digestive tract and can turn stool dark green or black. Antacids containing aluminum hydroxide sometimes produce greenish stool as a side effect. Antibiotics are a particularly important trigger because they disrupt the normal balance of gut bacteria, which are the very microbes responsible for converting bile from green to brown. A course of antibiotics can cause green, loose stools that persist for days or even weeks after you finish the prescription.

Infections That Cause Green Diarrhea

Bacterial and parasitic infections are a more serious explanation, especially if your green diarrhea came on suddenly with other symptoms. Salmonella typically causes diarrhea, stomach cramps, and fever, often 6 to 72 hours after eating contaminated food. E. coli infections tend to bring stomach cramps, vomiting, and sometimes bloody diarrhea. Clostridioides difficile (C. diff), an infection that often follows antibiotic use, can also produce green watery diarrhea.

Giardia, a waterborne parasite, is one of the more distinctive causes. It produces foul-smelling, greasy, green stools along with gas, bloating, and stomach cramps. People often pick it up from contaminated water while camping, traveling, or swimming in lakes and streams.

Signs that an infection may be driving your symptoms include fever, vomiting, blood or mucus in your stool, severe abdominal cramps, or signs of dehydration like dark urine, dizziness, and dry mouth. Green diarrhea accompanied by any of these warrants prompt medical attention.

Gallbladder Removal and Bile Issues

If you’ve had your gallbladder removed, green diarrhea may be a recurring problem rather than a one-time event. Without a gallbladder to store and regulate bile release, bile drips continuously into your small intestine. Some people develop bile acid malabsorption, where excess bile acids reach the colon and irritate its lining. This triggers the colon to secrete extra fluid and speed up its contractions, producing frequent, urgent diarrhea that can be green or yellow-green. Cramping is common. If this pattern sounds familiar and started after surgery, bile acid malabsorption is worth discussing with your doctor, since targeted treatments exist.

Green Stool in Babies

Green stool in infants is extremely common and rarely a sign of anything serious. Breastfed babies may produce green stools if they aren’t finishing a full feeding on one side before switching. The earlier milk in a feeding session is lower in fat, and when a baby gets mostly this thinner milk, it can speed through the gut and come out green. Babies on protein hydrolysate formula, which is designed for infants with milk or soy allergies, also tend to have greenish stool. So do some breastfed newborns who haven’t yet developed a full population of intestinal bacteria.

If your baby has green diarrhea (watery, frequent stools beyond their normal pattern) along with fever, vomiting, or signs of dehydration like fewer wet diapers, that’s a different situation and needs medical evaluation quickly. Infants dehydrate faster than adults.

What to Do About It

The most important step with any diarrhea is staying hydrated. Water is a good start, but you’re also losing electrolytes like sodium and potassium, so oral rehydration solutions or broths can help replace what’s being lost. Most episodes of acute diarrhea in otherwise healthy adults are self-limiting, meaning they resolve on their own within a few days with nothing more than fluid replacement.

Probiotics are sometimes recommended for shortening diarrhea episodes. A large review of 82 clinical trials found that probiotics reduced the risk of diarrhea lasting beyond 48 hours by about 36% and shortened the average duration by roughly 21 hours. Specific strains like Lactobacillus rhamnosus GG and Saccharomyces boulardii have the most evidence behind them. That said, the American Gastroenterological Association has noted that much of the supporting research comes from countries outside North America, and the few North American studies showed no clear benefit. If you want to try a probiotic, it’s unlikely to cause harm, but rehydration remains the priority.

Green diarrhea that persists for more than a few days, keeps coming back, or arrives with fever, blood in your stool, or signs of dehydration deserves a medical evaluation. A stool test can identify bacterial or parasitic infections, and your doctor can assess whether bile malabsorption or another chronic condition is involved.