What Does It Mean When Your Poop Is Green?

Green stool almost always traces back to something you ate or to food moving through your digestive tract faster than usual. Leafy greens, brightly colored processed foods, iron supplements, and a handful of medications are the most common culprits, and in those cases the color is harmless. Less often, green poop signals an infection or an underlying digestive condition worth investigating. The key to telling the difference is whether the color change is a one-off event or whether it comes with other symptoms like cramping, fever, or persistent diarrhea.

Why Stool Is Brown in the First Place

Your liver continuously produces bile, a yellow-green fluid that gets stored in the gallbladder and released into the upper part of your small intestine when you eat. Bile’s job is to help break down fats, but it also acts as a pigment delivery system. As bile travels through the roughly twenty feet of small and large intestine, bacteria chemically modify it step by step. The green pigments are converted into a yellowish compound and eventually into stercobilin, the pigment responsible for the familiar brown color of stool. The entire journey from stomach to toilet typically takes somewhere between 18 and 72 hours in adults, though the range varies widely from person to person.

When something speeds that process up, bile does not have enough time to undergo its full chemical makeover. The result is stool that still carries the original green or yellow-green tint of fresh bile. This “rapid transit” explanation accounts for a large share of green stool episodes, especially those that appear suddenly alongside loose or watery bowel movements.

Foods That Commonly Turn Stool Green

The most straightforward explanation is diet. Spinach, kale, broccoli, arugula, and other dark leafy greens are loaded with chlorophyll, the pigment that makes plants green. When you eat a large salad or a green smoothie, some of that chlorophyll survives digestion well enough to tint your stool. Research on chlorophyll-rich spinach extracts shows that chlorophyll molecules undergo chemical changes during digestion, forming related compounds like pheophytins, but these breakdown products can still carry a greenish hue through the intestinal tract.1PubMed Central. Biological transformation of chlorophyll-rich spinach (Spinacia oleracea L.) extracts under in vitro gastrointestinal digestion and colonic fermentation The more greens you eat in a sitting, the more noticeable the effect.

Artificial food dyes are another frequent cause. Green or purple frosting, brightly colored cereals, grape-flavored drinks, and even some blue sports drinks can produce startlingly green stool. Blue dye in particular tends to mix with the yellow of bile and come out looking green. This sometimes catches people off guard because they forget they ate something blue days earlier. Matcha, spirulina supplements, wheatgrass juice, and green food powders can do the same thing, especially when consumed in concentrated amounts.

Medications and Supplements

Iron supplements are one of the most reliable stool-color changers. They frequently turn stool very dark green or even black, depending on the dose and the form of iron. This is a well-known side effect and is not dangerous on its own, though it can make it harder to spot actual gastrointestinal bleeding, which also turns stool dark. If you recently started an iron supplement and notice a color change, the supplement is almost certainly the cause.

Certain antibiotics can shift stool color by disrupting the balance of gut bacteria that normally process bile pigments. When those bacterial populations are temporarily reduced, bile may pass through in a less-processed state, keeping a greenish tint. Some laxatives, particularly those that speed up intestinal motility, have the same effect by shortening transit time. Indomethacin, a nonsteroidal anti-inflammatory drug, has been specifically associated with green stool as well. Chlorophyll supplements, marketed for everything from body odor to detoxification, can directly dye stool green in much the same way that eating greens does.

Rapid Transit and Diarrhea

Any cause of diarrhea can produce green stool, regardless of what triggered the diarrhea itself. Food poisoning, a stomach virus, stress-related gut motility changes, and even intense exercise can speed contents through the intestines fast enough that bile stays green. In these cases the green color is a secondary effect of the speed, not a sign of a separate problem. Once the diarrhea resolves and transit time returns to normal, stool color typically goes back to brown within a day or two.

People sometimes panic when they see green diarrhea during a bout of gastroenteritis, but the color itself is not making the illness worse. The real concern with any episode of diarrhea is dehydration, especially in young children and older adults. If you are keeping fluids down and the episode runs its course in a couple of days, the green tint is just the visual evidence of a fast-moving gut.

Infections That Cause Green Stool

Certain bacterial and parasitic infections specifically produce green or greenish diarrhea. Salmonella is one of the better-known examples. It infects the lining of the small intestine, causes inflammation, and accelerates motility, all of which conspire to push bile-rich, greenish liquid through before it can be fully processed. Clostridioides difficile (C. diff) infections, which often follow antibiotic use, can also produce foul-smelling green or yellow-green diarrhea.

Giardia, a parasitic infection typically picked up from contaminated water, is another cause. Giardia infections can range from symptom-free carriage all the way to severe malabsorption with greasy, foul-smelling diarrhea that sometimes has a greenish cast.2Turkish Society for Parasitology. Examination of Giardia intestinalis with Direct Microscopy and Direct Fluorescent Antibody in Patients with Diarrhea The malabsorption component means fats are not being properly digested, which further alters stool appearance. If green stool persists for more than a few days alongside cramping, bloating, or foul odor, an infection is worth considering.

Bile Acid Malabsorption

Under normal circumstances, your small intestine reabsorbs most bile acids near its far end, the terminal ileum, recycling them back to the liver. When this recycling system breaks down, excess bile acids spill into the colon, where they irritate the lining and trigger watery diarrhea. The stool that results often has a green or yellow-green appearance because the bile has not been properly reabsorbed or chemically processed.

One common scenario is after gallbladder removal. Without the gallbladder to store and regulate bile release, bile flows more or less continuously into the small intestine. The colon ends up dealing with more bile acids than it can handle, and in some people this leads to chronic loose stools or outright diarrhea.3PubMed Central. Diagnosis and treatment of post-cholecystectomy diarrhoea This is sometimes called post-cholecystectomy diarrhea, and it can persist for months or even years. The greenish tinge of these stools is a direct consequence of the excess bile reaching the colon.

Crohn’s disease is another condition that can disrupt bile acid recycling. Because Crohn’s most commonly affects the terminal ileum, the very segment responsible for reabsorbing bile, inflammation or surgical removal of that area leads to bile acid malabsorption and the same pattern of watery, green-tinged diarrhea.4PubMed Central. Lipid and Bile Acid Dysmetabolism in Crohn’s Disease Celiac disease can impair bile acid recycling in a similar way when inflammation extends into the lower small intestine, though this is less common.

When chronic green diarrhea raises suspicion of bile acid malabsorption, one diagnostic route involves measuring bile acids directly in stool. A specialized test uses a multi-day stool collection while the patient follows a controlled fat intake, and the bile acid levels are measured by chromatographic analysis.5PubMed Central. Fecal Bile Acid Testing in Assessing Patients With Chronic Unexplained Diarrhea: Implications for Healthcare Utilization This is not a routine test for a single episode of green stool; it is reserved for people with ongoing unexplained diarrhea where bile acid malabsorption is a leading suspect.

Green Stool in Babies and Young Children

Few things alarm new parents faster than opening a diaper and finding green poop. The good news is that green stool in infants is even more often harmless than it is in adults. Breastfed newborns go through a well-known color progression in their first week: tarry black meconium gives way to dark green transitional stool, which then shifts to yellow or mustard-colored stool as the mother’s milk fully comes in. Green stool that persists beyond the first few days of life in a breastfed baby sometimes indicates a foremilk-hindmilk imbalance, where the baby is getting more of the thinner, earlier milk and less of the fat-rich later milk. Adjusting feeding technique often resolves the color change.

Formula-fed babies may have greenish stool simply because of the iron fortification in most formulas, much like iron supplements produce dark green stool in adults. Introducing solid foods is another common trigger, especially first encounters with pureed peas, spinach, or green beans. As with adults, food dyes in toddler snacks and drinks can produce vividly green diapers. The cases that warrant a call to the pediatrician are the same as in adults: green stool that comes with fever, blood or mucus in the diaper, persistent diarrhea, or signs of dehydration like fewer wet diapers and a dry mouth.

When to Talk to a Doctor

A single episode of green stool, or even several days of it after a big salad binge or while taking iron pills, does not require medical attention. The scenarios that do warrant a conversation with a healthcare provider include:

  • Persistent green diarrhea: Lasting more than three days without an obvious dietary cause, especially with cramping, bloating, or foul odor.
  • Fever and green stool together: This combination suggests an infection that your body may need help clearing.
  • Blood or black tarry stool: Very dark green can sometimes be confused with black stool, which may indicate bleeding higher up in the digestive tract. If you are not taking iron and your stool looks black, that is worth urgent evaluation.
  • Unexplained weight loss: Chronic green stools alongside unintentional weight loss could point to malabsorption from conditions like Crohn’s disease or celiac disease.
  • Recent antibiotic use: Green, foul-smelling diarrhea after a course of antibiotics raises the possibility of a C. diff infection, which sometimes requires specific treatment.

For chronic or recurrent green stool, doctors generally start with a medical history and physical exam, ask about diet and medications, and may order stool tests to look for infections or inflammatory markers. More specialized testing, like the bile acid measurement described above, comes into play when simpler explanations have been ruled out.

Stool Color as a Broader Diagnostic Clue

Green gets the most search queries, but stool color in general can be surprisingly informative. Yellow, greasy, and foul-smelling stool points toward fat malabsorption, often from conditions affecting the pancreas or small intestine. Clay-colored or very pale stool suggests a blockage in the bile ducts, because without bile reaching the intestines, stool loses its pigment entirely. Red stool can come from beets, red food dye, or, more concerning, bleeding in the lower digestive tract. Black stool, when not caused by iron supplements or bismuth medications like Pepto-Bismol, can signal bleeding in the stomach or upper intestine.

The point is that color alone is just one data point. Doctors look at color alongside consistency, frequency, presence of blood or mucus, and whether the change is new or chronic. A sudden shift to green in someone who normally has brown stool and who has not changed their diet or medications is a more meaningful signal than ongoing green stool in someone who drinks a spinach smoothie every morning. Context does most of the diagnostic work. Green poop, taken on its own, is one of the least worrying color changes you can see, especially when it shows up once and resolves on its own.

Common Misconceptions About Green Stool

One widespread belief is that green stool always means you have a liver or gallbladder problem. While it is true that bile comes from the liver and is stored in the gallbladder, green stool by itself does not indicate liver disease. Actual liver problems tend to produce the opposite color change, making stool pale or clay-colored because bile cannot reach the intestine at all. If anything, green stool confirms that bile is being produced and delivered; the color just means it has not had time to fully break down.

Another misconception is that green stool means you are not absorbing nutrients properly. Rapid transit can occasionally reduce nutrient absorption, but a single green bowel movement does not mean you are malnourished. Genuine malabsorption from conditions like Crohn’s disease or celiac disease produces a pattern of symptoms over weeks and months: weight loss, fatigue, bloating, and persistently abnormal stools. One weird-looking trip to the bathroom does not fit that picture.

Parents sometimes hear that green stool in a breastfed baby means the mother ate something wrong or that her milk is inadequate. In reality, minor color variations in infant stool are normal and rarely reflect anything about the mother’s diet or milk quality. The composition of breast milk shifts throughout a feeding and throughout the day, and a baby’s immature gut processes it with varying efficiency. Unless the baby is showing other signs of distress, green diapers in the first few months of life are more of a laundry problem than a medical one.