Why Is My Poop Green? Causes and When to Worry

Green stool almost always comes down to one of two things: something you ate, or food moving through your intestines faster than usual. Bile, the digestive fluid your liver produces, starts out green. As it travels through your gut, bacteria chemically transform it into the brown pigment you expect. When that journey gets cut short or when green foods and dyes overpower the natural color, the result shows up in the toilet bowl. Most of the time, green poop is harmless and temporary, but there are a few situations where it signals something worth investigating.

The Bile Color Shift

Your liver continuously makes bile, a greenish-yellow fluid that helps you digest fats. Bile gets stored in your gallbladder and released into the upper part of your small intestine after you eat. Its green color comes from a pigment called biliverdin. As bile works its way through the roughly twenty feet of small intestine and then through the colon, gut bacteria break biliverdin down into bilirubin and then into stercobilin, which is brown. That final conversion is what gives healthy stool its characteristic color.

Anything that speeds up transit through the intestines can interrupt this process. If food and bile move through too quickly, there simply is not enough time for bacteria to finish the job, and the stool retains that original greenish hue. This is the single most common non-dietary reason for green poop, and it explains why a bout of diarrhea from almost any cause tends to produce green or yellow-green stool. The faster things move, the greener the result.

Foods and Dyes That Override the Brown

The most boring explanation for green poop is also the most common one: you ate something green. Spinach, kale, broccoli, arugula, and other dark leafy vegetables contain enough chlorophyll to tint stool visibly, especially if you ate a large serving. Smoothies packed with spinach or kale are a frequent culprit because blending breaks down the plant cells and releases more pigment into your digestive tract at once.

Artificial food dyes can do the same thing, and sometimes the results are more dramatic than you would expect. Blue and green dyes used in candy, frosting, sports drinks, ice cream, and flavored cereals can produce stool that ranges from bright green to nearly blue-green. Purple or black-colored dyes (think grape-flavored drinks or dark-frosted cakes) can sometimes combine with yellow bile to produce an unexpectedly green shade. A published case report described a 93-year-old patient whose stool was so discolored by food additives that it triggered a falsely positive fecal occult blood test, initially raising concern for gastrointestinal bleeding before the dietary cause was identified.1Europe PMC. The Case of the Lime-green Stool: A Case Report and Review of Occult Blood Testing in the Emergency Department That case is a useful reminder that food dye effects can look alarming even to clinicians.

Matcha, spirulina, chlorella, and wheatgrass supplements are another category people sometimes overlook. These are concentrated sources of green plant pigment, and taking them daily can keep stool green for as long as you continue the supplement. The same goes for green food coloring in pesto, green juice cleanses, and even large amounts of pistachios or green grapes in some individuals.

Medications and Supplements

Iron supplements are well known for changing stool color, though they more commonly turn it black or very dark green rather than bright green. The color change happens because unabsorbed iron reacts with compounds in the gut. In a study comparing different iron formulations taken during pregnancy, the frequency of black stools climbed with dose: about 8% of women taking a low-dose iron bisglycinate supplement reported black stools, compared to 22% on a moderate dose of ferrous fumarate and 31% on a higher dose of ferrous sulphate.2PubMed 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 your stool is dark green-black and you recently started an iron supplement, the supplement is almost certainly the cause.

Antibiotics are another frequent trigger for green stool, but through a different mechanism. Rather than adding a pigment, antibiotics disrupt the gut bacteria responsible for converting bile from green to brown. With those bacterial populations reduced, bile passes through partially or fully unconverted, and stool stays green. This effect can persist for days or weeks after finishing a course of antibiotics, until the normal bacterial community recovers. Metformin, some nonsteroidal anti-inflammatory drugs, and certain laxatives can also speed up gut transit enough to produce the same result.

Bismuth subsalicylate, the active ingredient in products like Pepto-Bismol, produces very dark green or black stool by reacting with trace sulfur in the gut. This is harmless and resolves within a day or two of stopping the medication, but it catches people off guard because the color change can look dramatic.

Infections That Turn Things Green

When green stool arrives alongside cramping, fever, nausea, or frequent watery diarrhea, the cause is more likely infectious than dietary. Bacterial infections from Salmonella, Clostridioides difficile (C. diff), and certain strains of E. coli can all produce green diarrhea. The mechanism is partly the same one described above: the infection triggers rapid intestinal motility, which shortens transit time and prevents bile from converting to brown. But some bacteria also provoke the intestinal lining to secrete extra fluid and mucus, which further dilutes and alters stool color.

Giardia, a waterborne parasite, is another cause of persistent green, greasy-looking diarrhea. Giardia infections tend to cause bloating and foul-smelling stools that float, because the parasite interferes with fat absorption. If you have been camping, traveling in a developing country, or drinking untreated water and develop green diarrhea that lasts more than a couple of days, giardia is worth considering.

Viral gastroenteritis (stomach flu) can also produce green stool, mainly because the diarrhea moves everything through so fast. Norovirus and rotavirus infections rarely last more than a few days, and the green color resolves on its own once bowel movements return to normal.

Green Stool After Gallbladder Removal

If you have had your gallbladder removed (cholecystectomy), green stool may show up more often than it did before surgery, and the reason is straightforward. Without a gallbladder to store and meter out bile, your liver releases it directly into the small intestine in a more or less continuous stream rather than in concentrated bursts timed to meals. Research on postcholecystectomy patients found that this change stimulates bowel motility and can decrease gut transit time by about 20%.3PubMed Central. Alteration of the fecal microbiome in patients with cholecystectomy: potential relationship with postcholecystectomy diarrhea – before and after study That faster transit means bile has less time to undergo its full color transformation, and stool can arrive at the other end still tinted green.

For many people this effect is most pronounced in the first few months after surgery, while the body adjusts. Some experience it as an ongoing pattern, especially after fatty meals that trigger a larger-than-usual bile release. If you had your gallbladder out and green, loose stools persist beyond the initial recovery period, it is worth mentioning to your doctor. Bile acid binders are sometimes prescribed to slow things down in people whose postcholecystectomy diarrhea becomes disruptive to daily life.

Conditions That Accelerate Transit Chronically

Green stool that keeps showing up over weeks or months, without an obvious dietary cause, may reflect a chronic condition that speeds intestinal transit. Irritable bowel syndrome with diarrhea (IBS-D) is one of the more common examples. Research has found that certain genetic markers associated with IBS-D correspond to measurably faster small bowel transit times.4PubMed Central. HLA-DQ Genotype Is Associated with Accelerated Small Bowel Transit in Patients with Diarrhea-Predominant Irritable Bowel Syndrome For people in that category, green-tinged stools during flare-ups are a predictable consequence of the underlying motility pattern rather than a sign of something new or dangerous.

Celiac disease, Crohn’s disease, and other inflammatory conditions of the small intestine can also produce green stool, though they typically come with additional symptoms like weight loss, persistent abdominal pain, or visible blood or mucus in the stool. Hyperthyroidism is an underappreciated cause as well: an overactive thyroid revs up gut motility alongside everything else in the body, and some people notice green or yellow-green stools as one of many symptoms. In all these situations, the green color is a downstream signal of faster transit or impaired absorption rather than a disease in its own right.

Green Poop in Babies and Young Children

Green stool in infants is so common that pediatricians spend a significant amount of time reassuring worried parents about it. In breastfed newborns, the transition from dark meconium to mature milk stools passes through several shades of green in the first week or two. Once breastfeeding is well established, stools typically settle into a yellow or mustard color, but occasional green stools remain normal and usually reflect a minor shift in how quickly milk moved through the baby’s gut.

Formula-fed babies are even more likely to have green stool on a regular basis. A study tracking healthy term infants found that when formula was introduced into the diet, stools became less yellow and more green.5Pediatrics. Formula Tolerance in Postbreastfed and Exclusively Formula-fed Infants By three months of age, roughly half the stools of formula-fed infants were green, and the researchers concluded that green-colored stools in standard formula-fed infants should be considered normal.6Archives of Disease in Childhood. The defecation pattern of healthy term infants up to the age of 3 months Hydrolyzed or hypoallergenic formulas tend to produce even greener stools than standard formulas, because the protein breakdown changes how bile interacts with the formula during digestion.

Once solid foods enter the picture, green poop often gets even easier to explain. Pureed peas, green beans, spinach, and avocado all tint stool green in toddlers just as leafy greens do in adults. The same is true for brightly colored snack foods and treats aimed at children. A green popsicle or a cupcake with vivid frosting can produce a diaper that looks startling but is entirely harmless.

The situations where green stool in a baby genuinely warrants attention are the same as in adults: if it comes with fever, blood or mucus, persistent watery diarrhea, refusal to eat, or signs of dehydration such as fewer wet diapers, it is time to call the pediatrician. Green stool by itself, in an otherwise happy and growing baby, is not a problem.

Stress, Anxiety, and the Gut-Brain Connection

Some people notice green stool during periods of intense stress or anxiety, and there is a physiological basis for it. The gut and brain communicate through the vagus nerve and a web of signaling molecules, and acute stress can accelerate gut motility through this pathway. The classic example is the urgent need to use the bathroom before a public speaking event or a job interview. If stress-induced motility is strong enough to produce loose or watery stools, the same transit-time mechanism kicks in: bile stays green because it did not have time to change.

Chronic anxiety can maintain a similar pattern over longer periods. People with anxiety disorders sometimes report intermittent green stools during high-stress stretches without any dietary trigger they can identify. This overlap with IBS-D is not a coincidence; a large proportion of people with IBS-D also meet criteria for anxiety, and the motility disruption feeds both conditions. If you find that green stool correlates with your stress levels rather than your diet, that pattern is itself useful information to share with a doctor, because it points toward a motility issue rather than a structural one.

When Green Poop Actually Deserves Medical Attention

The color alone is rarely the problem. Green stool accompanied by any of the following is the combination that warrants a call to a healthcare provider:

  • Blood: Bright red streaks or dark, tarry material mixed in with green stool can indicate bleeding somewhere in the digestive tract. Even food dyes can sometimes mimic this appearance, so a clinician may need to confirm with testing.1Europe PMC. The Case of the Lime-green Stool: A Case Report and Review of Occult Blood Testing in the Emergency Department
  • Fever and severe cramping: The combination suggests an infectious cause, especially if diarrhea is watery and frequent.
  • Duration beyond two to three days: A single green bowel movement after a kale smoothie is nothing. Green diarrhea that continues for more than a few days without an obvious dietary explanation is worth investigating.
  • Weight loss: Persistent green, greasy, or floating stools alongside unintended weight loss can indicate fat malabsorption from conditions affecting the pancreas or small intestine.
  • Dehydration signs: Dark urine, dizziness, dry mouth, or (in infants) fewer wet diapers alongside green diarrhea means the fluid loss is the immediate concern, regardless of the color.

Clinicians evaluating unusual stool color typically start with a history of recent diet, medications, and supplements, because those account for the vast majority of cases. Stool testing, when needed, can check for infection, inflammation markers, or hidden blood. A macroscopic evaluation of stool characteristics including color, consistency, and the presence of mucus is often the first step in pediatric gastroenterology as well.7Europe PMC. The importance of stool tests in diagnosis and follow-up of gastrointestinal disorders in children

Why Pale or White Stool Is a Bigger Concern Than Green

While green stool reflects too much bile pigment reaching the end too fast (or being masked by dietary color), the absence of color is a more serious signal. Pale, clay-colored, or white stool means bile is not reaching the intestine at all, which can indicate a blockage in the bile duct from gallstones, a tumor, or liver disease. This is one of those situations where the color change itself is the alarm bell, not a side symptom. If your stool turns persistently pale, gray, or chalky, that warrants prompt medical evaluation regardless of how you feel otherwise.

Black, tarry stool also occupies a different category from green. While iron supplements and bismuth can harmlessly darken stool, true melena (black, sticky, tar-like stool with a distinctive foul odor) suggests bleeding in the upper gastrointestinal tract and needs urgent attention. The difference between supplement-related darkening and melena is often obvious in texture and smell, but if you are unsure, err on the side of getting it checked.