Why Are My Stools Green? Causes and When to Worry

Green stool is almost always harmless and traces back to something you ate, how fast food moved through your gut, or a medication you recently started. The color of your stool is largely determined by bile pigments and how completely gut bacteria break them down during digestion. When that process gets interrupted or overwhelmed by a strong dietary pigment, green is the predictable result. That said, there are a handful of situations where persistent green stool signals something worth investigating.

How Stool Normally Gets Its Color

Your liver continuously produces bile, a digestive fluid that starts out yellow-green. Bile contains a pigment called biliverdin, which is genuinely green, and biliverdin is quickly converted into bilirubin, which is yellow-orange. As bilirubin travels through your intestines, bacteria living in your colon reduce it further into compounds called urobilinogen and eventually stercobilin, the pigment responsible for the familiar brown color of stool. Researchers recently identified the specific gut microbial enzyme, called bilirubin reductase (BilR), that carries out this conversion, confirming that gut bacteria are directly responsible for the final brown color rather than any chemical reaction happening on its own.1PubMed Central. Discovery of the gut microbial enzyme responsible for bilirubin reduction to urobilinogen

This means that anything disrupting the bacterial conversion of bilirubin, whether it is speed of transit, a course of antibiotics, or a shift in your microbiome, can leave biliverdin or partially converted bilirubin in your stool. And since biliverdin is green, your stool comes out green. Think of it as the default upstream color showing through when the downstream processing step does not finish.

Green Vegetables and Food Dyes

The most common and most boring explanation for green stool is diet. Spinach, kale, broccoli, arugula, and other dark leafy greens contain large amounts of chlorophyll, a pigment so intensely green that it can overpower the brown of stercobilin if you eat enough of it. Chlorophyll does not simply pass through your gut unchanged: it undergoes chemical transformations during digestion, producing derivative pigments like pheophytin, but these breakdown products remain green-toned.2Food Research International. Biological transformation of chlorophyll-rich spinach (Spinacia oleracea L.) extracts under in vitro gastrointestinal digestion and colonic fermentation So even though your digestive system actively modifies chlorophyll, the result still looks green when it exits.

Artificial food dyes are another frequent culprit. Blue and green dyes used in candy, sports drinks, ice cream, frosting, and flavored cereals can produce strikingly green stool. A study testing blue food dye at various doses found that all tested amounts produced some degree of stool coloration, typically described as “blue-green and spinach-like-green,” with higher doses producing strong, complete coloration regardless of whether the dye was consumed in solid or liquid form.3MethodsX. Optimizing blue poo: A validated, cost-effective method for measuring whole gut transit time Purple and black foods, like blueberries or black licorice, can also shift stool toward dark green when combined with bile pigments.

If you recently had a big salad, a green smoothie, or a handful of brightly dyed candy, the mystery is probably solved. Dietary green stool clears up within a day or two once you stop eating the offending food.

When Food Moves Through Too Quickly

Rapid gut transit is the second most common cause of green stool, and it does not require eating anything green at all. As described earlier, bile starts out green and is gradually converted to brown by bacterial enzymes in the colon. That conversion takes time. When stool moves through the intestines faster than usual, the bacteria do not get enough contact time to fully process the bile pigments, and you end up with green stool that is essentially bile-stained.

Lots of things can speed up transit. Stress and anxiety activate the gut-brain connection and can trigger faster contractions. A stomach bug or food poisoning often causes rapid diarrhea that flushes everything through before bacterial conversion is complete. Irritable bowel syndrome with diarrhea (IBS-D) is another common cause of intermittent fast transit. Even a large meal after a period of fasting, or a significant increase in fiber intake, can temporarily speed things up.

The giveaway for transit-related green stool is that it tends to be loose or watery. If your stool is green but well-formed and you have not changed your diet, transit speed is less likely to be the explanation.

Medications and Supplements

Several medications can turn stool green, and knowing which ones helps avoid unnecessary alarm.

  • Antibiotics: By killing off some of the gut bacteria responsible for converting bilirubin to stercobilin, antibiotics can leave bile pigments partially processed. The result is green or yellow-green stool that usually resolves after you finish the course and your microbiome recovers.
  • Iron supplements: Iron is one of the most well-known stool-color changers, though the color it produces is typically dark green to black rather than bright green. Unabsorbed iron reacts with compounds in your gut to create dark pigments. Research on iron supplementation in pregnancy notes that black stools indicate that the iron formula is either poorly absorbed or prescribed at a dose that exceeds the intestine’s absorption capacity.4PubMed Central. Low-Dose Prophylactic Oral Iron Supplementation (Ferrous Fumarate, Ferrous Bisglycinate, and Ferrous Sulphate) in Pregnancy Is Not Associated With Clinically Significant Gastrointestinal Complaints: Results From Two Randomized Studies If you are taking iron and your stool is very dark green or black, the supplement is the most likely cause.
  • Bismuth subsalicylate: The active ingredient in some over-the-counter stomach remedies can turn stool dark green to black through a similar chemical reaction involving sulfur in the digestive tract.
  • Laxatives and bowel prep solutions: These speed transit dramatically, which triggers the same mechanism as any rapid-transit scenario: bile does not have time to be fully converted.

If you recently started any new medication and notice a color change, check the drug’s known side effects before worrying. Stool color changes from medications are almost always harmless and reverse once the medication is stopped.

Infections That Can Cause Green Stool

Certain gut infections produce green stool, often alongside other symptoms like cramping, nausea, and watery diarrhea. The mechanism is usually a combination of rapid transit (your body trying to flush out the pathogen) and direct effects of the infection on bile processing.

Giardia, a common waterborne parasite, is one of the better-documented examples. Stool samples from patients with Giardia infections have been described as characteristically “green-apple colored” by researchers examining specimens under microscopy.5Turkiye Parazitol Dergisi. Examination of Giardia intestinalis with Direct Microscopy and Direct Fluorescent Antibody in Patients with Diarrhea Giardia is typically picked up from contaminated water during camping, travel, or in areas with poor sanitation, and it causes greasy, foul-smelling diarrhea that can persist for weeks without treatment.

Salmonella and other bacterial food-poisoning infections can also produce green diarrhea, again mainly because the infection triggers such rapid intestinal contractions that bile rushes through without being converted. Norovirus and rotavirus do the same. In most cases the green color is the least of your concerns compared to the dehydration, fever, and cramping that accompany the infection. The color itself is not dangerous; it is just a visible sign that your gut is moving contents through at an unusually fast clip.

Gallbladder Removal and Bile Acid Changes

If you have had your gallbladder removed (cholecystectomy), you are more prone to green or yellow-green stool, especially in the months after surgery. The gallbladder normally stores and concentrates bile, releasing it in controlled bursts when you eat fat. Without it, bile drips continuously from the liver directly into the small intestine. The colon then receives a steady stream of bile acids that it was not designed to handle in that volume.

Excess bile acids in the colon stimulate the lining to secrete water and electrolytes, which can cause diarrhea.6PubMed Central. Diagnosis and treatment of post-cholecystectomy diarrhoea That diarrhea tends to be watery and can have a green or yellow-green tint because the higher bile load overwhelms the bacteria’s ability to convert all of it to brown pigments. For most people this improves over weeks to months as the body adapts. A smaller percentage develop chronic post-cholecystectomy diarrhea that benefits from bile acid binders prescribed by a doctor.

Conditions that affect bile production or flow more broadly, like certain liver diseases or bile duct obstructions, can also alter stool color, though in those cases the stool more often becomes pale or clay-colored (from too little bile reaching the intestine) rather than green. Green stool from bile issues specifically tends to mean too much bile arriving too fast, not too little.

Green Stool in Babies and Toddlers

Parents searching for this topic are often panicking about a diaper that looks alarmingly green. In almost every case, it is normal. Breastfed newborns commonly produce yellow, seedy stool, but green is a perfectly normal variation, especially in the first week of life when the baby is passing meconium (the tarry, dark green-black stool that accumulated before birth). By about day four or five, stool transitions through shades of green and yellow-green before settling into the more typical yellow.

Beyond the newborn period, green stool in breastfed babies often reflects a foremilk-hindmilk imbalance. Foremilk, the thinner milk at the beginning of a feeding, is lower in fat. If a baby gets a lot of foremilk and less of the fattier hindmilk (because of short or frequent feedings on alternating sides), the stool can turn green and frothy. This is not harmful to the baby, though it sometimes indicates the baby is not getting as much calorie-dense milk per feeding as they could be.

Formula-fed babies who switch brands or formulas sometimes produce green stool for a few days as their gut adjusts. Iron-fortified formulas are a common trigger, since unabsorbed iron darkens stool just as iron supplements do in adults. Teething is also anecdotally associated with green stool, possibly because increased saliva production speeds up gut transit, though the evidence for this is thin. In toddlers, green stool often simply means they ate something green, whether it was peas, green popsicles, or crayons.

The situations where green stool in a baby warrants a call to the pediatrician are the same as in adults: when it is accompanied by fever, blood or mucus, persistent diarrhea, vomiting, or signs of dehydration like fewer wet diapers and a sunken fontanelle.

When Green Stool Deserves Medical Attention

Green stool by itself, with no other symptoms, is rarely a reason to see a doctor. The color alone is not a disease. But there are specific combinations of symptoms where green stool is part of a picture that does need evaluation.

  • Green stool with blood or black tarry stool: Blood in the stool can come from several places in the digestive tract and always warrants investigation. True black, tarry stool (as opposed to the dark green-black caused by iron supplements) can indicate bleeding in the upper GI tract. If you are not taking iron or bismuth and your stool is very dark, get it checked.
  • Persistent green diarrhea lasting more than a few days: This pattern, especially if accompanied by cramping and foul smell, raises the possibility of an infection like Giardia or a bacterial pathogen that may need specific treatment.
  • Green stool with significant weight loss or malnutrition signs: Chronic malabsorption conditions like celiac disease or Crohn’s disease can alter stool color and consistency. The green color itself is a minor clue compared to the weight loss, fatigue, and nutritional deficiencies that accompany these conditions.
  • Green stool with fever and vomiting: This combination suggests an active infection, and the dehydration risk from fluid loss is the real concern, particularly in young children and older adults.
  • Pale or clay-colored stool: This is worth mentioning because it is sometimes confused with green. Truly pale stool, which looks whitish or clay-like, means bile is not reaching your intestine at all. This can indicate a bile duct blockage, liver disease, or pancreatic problem and should be evaluated promptly. Green stool, paradoxically, means bile is present and flowing. It is the absence of bile pigment that is more concerning.

The Microbiome Connection

The discovery of the bilirubin reductase enzyme in gut bacteria has added an interesting layer to understanding stool color. The enzyme was identified in Ruminococcus gnavus, a common member of the human gut microbiome, and belongs to a family of enzymes called Old Yellow Enzymes that catalyze the reduction of bilirubin into urobilinogen.1PubMed Central. Discovery of the gut microbial enzyme responsible for bilirubin reduction to urobilinogen This finding confirmed what had been suspected for over a century but never pinpointed at the molecular level: specific bacteria, not just “the microbiome” in general, are doing the biochemical work of turning your stool brown.

This has practical implications beyond academic curiosity. People whose microbiomes are disrupted, whether by antibiotics, chronic illness, or simply individual variation in bacterial composition, may produce less bilirubin reductase and therefore have a tendency toward greener stool even without changes in diet or transit time. Newborns, whose guts are still being colonized by bacteria, lack robust populations of these bilirubin-converting species, which partly explains why infant stool cycles through so many colors in the early weeks. Similarly, people who have taken repeated courses of antibiotics or who have inflammatory bowel disease may notice their stool is greener on a baseline level than they would expect. The color is not a sign of disease in these cases so much as a reflection of which bacterial species are present and in what numbers.

Research into the microbiome and bile pigment metabolism is still relatively young. Whether supplementing with specific probiotic strains could normalize stool color in people with chronic greenish stool is an open question that nobody has convincingly answered yet. For now, the practical takeaway is that your gut bacteria are the final gatekeepers of stool color, and anything that shifts their population can shift the shade.

How Long Green Stool Should Last

If the cause is dietary, green stool typically resolves within one to three days after you stop eating the food responsible. If the cause is a stomach bug, the green diarrhea phase usually passes within three to five days as the infection clears and transit time normalizes. Antibiotic-related green stool may persist for the duration of the course plus a few days to a week afterward as your microbiome recovers.

Post-cholecystectomy patients may notice intermittent green or yellow-green stool for several months. This is common enough that surgeons consider it part of the expected recovery pattern. If it persists beyond six months and is accompanied by frequent watery diarrhea, bile acid binders are the standard treatment and tend to work well.

The general rule: green stool that comes and goes, correlates with something you ate or a medication you are taking, and is not accompanied by pain, bleeding, or systemic symptoms like fever and weight loss is something you can safely ignore. Green stool that persists for more than two weeks without an obvious dietary explanation, or that appears alongside worrying symptoms, is worth bringing up with your doctor. Even then, the conversation will almost certainly end with reassurance rather than a serious diagnosis. Green stool is common, benign, and stubbornly uninteresting from a clinical perspective in the vast majority of cases.