What Does It Mean When You Have Green Stool?

Green stool almost always means that bile pigment did not have enough time to fully break down during digestion, or that something you ate or swallowed overwhelmed the usual color chemistry. In most cases it is harmless and temporary. The color can also come from leafy greens, food dyes, iron supplements, or a bout of diarrhea that rushed everything through the gut too quickly for the normal brown hue to develop. Persistent green stool, especially with other symptoms, sometimes points to conditions worth investigating.

How Stool Gets Its Color in the First Place

Your liver produces bile, a digestive fluid that starts out yellow-green. That color comes from a pigment called biliverdin, a byproduct of old red blood cells being recycled. As bile travels through the small intestine and into the colon, bacteria chemically convert biliverdin into bilirubin and then into stercobilin, which is brown. That final pigment is what gives a healthy stool its characteristic color. Anything that short-circuits that conversion, whether by speeding up transit, altering gut bacteria, or flooding the system with green pigments from food, can leave stool looking green.

Foods and Drinks That Turn Stool Green

The most common and most benign explanation is diet. Large servings of spinach, kale, broccoli, arugula, or other dark leafy greens contain chlorophyll, which is intensely green and can tint stool if you eat enough. Blended green smoothies are a frequent culprit because they concentrate a lot of chlorophyll into a single sitting. Matcha, wheatgrass shots, and spirulina supplements can do the same thing.

Artificial food dyes are another overlooked cause. Blue and green dyes used in candy, frosting, sports drinks, popsicles, and brightly colored cereals can turn stool a vivid shade of green. Purple or blue dyes are especially sneaky because when they mix with the yellow-green of bile, the result is green rather than the purple you might expect. If your stool turns green a day or two after a child’s birthday party or after drinking a brightly colored beverage, that is probably the explanation.

Licorice, pistachio ice cream, and foods flavored or colored with plant-based green dyes can also contribute. The effect usually shows up within a day or two of eating the food and goes away once the pigment clears your system.

Supplements and Medications

Iron supplements are one of the most reliable producers of dark green or even black-green stool. Iron that is not fully absorbed in the upper gut reacts with digestive enzymes and bile in the intestine, producing a dark greenish-black color. This is harmless and expected. If you recently started an iron supplement and notice the change, that is almost certainly the reason.

Chlorophyll supplements, marketed for everything from detox to body odor control, can turn stool bright green for the same reason that eating a pile of spinach does. The pigment passes through largely intact.

Certain antibiotics can also cause green stool by disrupting the gut bacteria responsible for converting bile pigments to their final brown form. When those bacterial populations are knocked back, biliverdin and bilirubin pass through without being fully processed. This often coincides with looser stools, since antibiotics can also cause diarrhea. The effect typically resolves once you finish the course and your gut flora recover.

Other medications sometimes associated with green stool include the pain reliever indomethacin, the contraceptive medroxyprogesterone, and some laxatives. If you notice a color change shortly after starting a new medication, check the side-effect information or ask your pharmacist.

Why Diarrhea Often Looks Green

When food moves through your digestive tract faster than normal, bile does not have time to go through its full chemical breakdown. The result is stool that still carries the original green tint of bile. This is one of the most common reasons for green stool that is not food-related. Any cause of diarrhea, from a stomach virus to food poisoning to stress, can produce this effect simply because of speed.

Think of it like a conveyor belt running too fast. The bacterial enzymes in your colon need time to do their work. If the contents are flushed out in hours instead of the usual day or two, those enzymes barely get a chance. The stool exits still wearing bile’s original green color. Once the diarrhea resolves and transit time returns to normal, the brown color comes back.

Bile Acid Malabsorption

For some people, green or yellowish-green stool is not a one-off event but a recurring pattern. One underdiagnosed explanation is bile acid malabsorption, a condition where the small intestine fails to reabsorb bile acids efficiently. The excess bile acids spill into the colon, where they irritate the lining and trigger watery diarrhea that can be green or yellow-green.

This condition is more common than many doctors realize. British Society of Gastroenterology guidelines note that up to 30% of patients diagnosed with diarrhea-predominant irritable bowel syndrome actually have evidence of bile acid diarrhea when tested properly.1BMJ Journals. Guidelines for the investigation of chronic diarrhoea in adults: British Society of Gastroenterology, 3rd edition That means a substantial number of people living with what they think is IBS may actually have a treatable bile acid problem. The same guidelines show that treatment with a bile acid sequestrant works in the majority of confirmed cases, with response rates above 70% even in moderate malabsorption.

People who have had their gallbladder removed are at particular risk. After a cholecystectomy, bile no longer gets stored and concentrated in the gallbladder; instead it flows continuously into the small intestine. This steady drip can overwhelm the colon’s ability to handle bile acids, stimulating the lining to secrete extra water and electrolytes and leading, in severe cases, to chronic diarrhea.2Europe PMC / World Journal of Gastrointestinal Surgery. Diagnosis and treatment of post-cholecystectomy diarrhoea If you had your gallbladder out and have been dealing with loose, greenish stools ever since, bile acid malabsorption is worth discussing with your doctor.

Infections That Can Cause Green Stool

Certain bacterial infections are specifically associated with green-tinged diarrhea. Salmonella, a common cause of food poisoning from undercooked poultry and eggs, often produces watery green or green-brown stools. Clostridioides difficile, the bacterium responsible for many hospital-acquired infections, can cause greenish diarrhea with a distinctively foul smell. Giardia, a waterborne parasite, sometimes produces greasy, pale-green stools along with bloating and cramps.

In these cases, the green color is partly due to rapid transit, as the infection triggers the gut to flush contents through quickly, and partly due to increased bile secretion as the body responds to the invading organism. The color itself is not dangerous, but the underlying infection often requires treatment. If green diarrhea comes with fever, severe cramping, blood or mucus in the stool, or lasts more than a few days, those are signs to get evaluated rather than wait it out.

Green Stool in Babies

New parents often worry about stool color because babies produce an astonishing range of greens, yellows, and browns in their first weeks and months. In the first few days after birth, newborns pass meconium, a thick, dark greenish-black substance made up of amniotic fluid residue and cellular debris from the womb. This is entirely normal and clears within a few days.

In breastfed babies, stool color can fluctuate quite a bit. One well-known pattern is the so-called foremilk-hindmilk imbalance. When a baby takes in a large volume of the thinner, lower-fat milk at the beginning of a feed without getting enough of the fattier milk that comes later, the lower fat content can speed gastric emptying. This rapid transit may lead to looser, greener stools.3PubMed. Colic, “overfeeding”, and symptoms of lactose malabsorption in the breast-fed baby: a possible artifact of feed management? The fix is usually a feeding adjustment rather than a medical intervention.

Formula-fed babies sometimes have green stool because certain formulas, especially hydrolyzed or hypoallergenic varieties, are processed in ways that change how bile interacts with the proteins. Iron-fortified formulas can also darken stool toward a greenish hue. In toddlers and older children, the same food-dye and leafy-green explanations that apply to adults hold true, with the added factor that kids tend to eat brightly colored snacks and drinks in large quantities relative to their body size.

Pediatricians generally do not consider green stool in an otherwise healthy, growing baby to be a concern. The colors that do warrant a phone call are white or clay-colored stool (which can signal a liver or bile duct problem), red stool (potential bleeding), and jet-black stool in an infant who is not on iron supplements.

Celiac Disease and Other Malabsorption Conditions

Conditions that interfere with nutrient absorption in the small intestine can produce persistently abnormal stool colors, including green. Celiac disease, Crohn’s disease affecting the small bowel, and chronic pancreatitis all reduce the gut’s ability to process fats and bile properly. When fat is poorly absorbed, it can combine with unprocessed bile to produce pale green, yellow, or greasy-looking stools that float and smell particularly strong.

These conditions typically come with other symptoms beyond just color change: unintentional weight loss, bloating, fatigue, and nutrient deficiencies that show up on blood work. Green stool alone, without these accompanying signs, is unlikely to indicate a malabsorption disorder. But if you have been noticing green or unusually pale stools for weeks alongside fatigue, bloating, or unexplained weight loss, those combined signals are worth bringing up at a medical appointment.

Stress, Anxiety, and the Gut-Brain Connection

Emotional stress can genuinely change your stool color, though indirectly. When you are anxious or under acute stress, your nervous system can accelerate gut motility, the speed at which food moves through the digestive tract. The result is the same rapid-transit mechanism described earlier: bile does not have time to break down, and the stool comes out green. People with anxiety disorders or those going through a particularly stressful period sometimes notice this pattern, especially if they are also eating irregularly or drinking more coffee, which further stimulates gut motility.

This is not a sign that stress is damaging your intestines. It is just the gut-brain axis doing what it does: when your brain is on high alert, your digestive system speeds up or slows down in response. The green color resolves when the stress passes or when transit time normalizes.

When Green Stool Deserves Medical Attention

A single episode of green stool after eating a salad, taking iron, or having a day of loose stools is not a reason to call anyone. The threshold for concern is persistence and context. Consider seeing a doctor if green stool persists for more than a few weeks without an obvious dietary explanation, if it comes with chronic diarrhea that disrupts your daily life, or if it is accompanied by any of the following:

  • Blood or mucus: Red streaks, black tarry stool, or visible mucus suggest bleeding or inflammation somewhere in the GI tract.
  • Fever and severe cramps: These point toward an infection that may need treatment.
  • Unintentional weight loss: Losing weight without trying, especially alongside abnormal stools, raises the possibility of malabsorption or another systemic issue.
  • Pale or clay-colored stool: If the stool is not just green but very pale or whitish, bile may not be reaching the intestine at all, which can indicate a blockage in the bile duct or a liver problem.

For chronic unexplained diarrhea with a greenish tint, bile acid malabsorption testing is something to ask about specifically, since it is underdiagnosed and responsive to treatment in most confirmed cases.1BMJ Journals. Guidelines for the investigation of chronic diarrhoea in adults: British Society of Gastroenterology, 3rd edition

The Color Chart That Does Not Exist

You may have seen infographics circulating online that assign specific diagnoses to specific stool colors, as if your colon were a paint swatch book. In reality, stool color exists on a wide and shifting spectrum influenced by dozens of variables at once: what you ate, how hydrated you are, how fast your gut is moving, what medications you take, and what your gut bacteria are doing at any given moment. Two people eating the same meal can produce different-colored stool the next day.

The genuinely concerning colors are few and specific. White or clay-colored stool suggests bile is not reaching the intestine. Bright red suggests lower GI bleeding. Black and tarry suggests upper GI bleeding (or iron supplements). Everything else, including the full range of greens, yellows, and browns, falls within what a healthy gut can produce on any given day. If green stool showed up once and went away, it was almost certainly something you ate, something you took, or something that sped up your digestion. If it keeps showing up, the question is not the color itself but what is driving the pattern.