Green stool is almost always harmless and traces back to something you ate or how quickly food moved through your digestive tract. The color of your poop depends on a pigment called stercobilin, which is the end product of bile being broken down by gut bacteria. When that process gets interrupted or overwhelmed, the result is a stool that stays green instead of turning its usual brown. Understanding the handful of reasons this happens can save you an anxious evening of Googling.
Why Stool Is Normally Brown
Your liver continuously produces bile, a greenish-yellow fluid that helps digest fats. Bile gets its color from bilirubin, a byproduct of old red blood cells being recycled. As bile travels through your small intestine and into the colon, bacteria break bilirubin down into a series of compounds, ultimately producing stercobilin, the pigment responsible for the familiar brown color of healthy stool.1PubMed Central. Bilirubin in the Liver-Gut Signaling Axis Anything that disrupts this chain of events, whether by adding a competing pigment, speeding up digestion, or altering bile chemistry, can leave your stool looking green.
Green Vegetables and Food Dyes
The most common and least worrisome cause is simply eating a lot of green-pigmented food. Chlorophyll is the molecule that makes plant leaves green, and when you eat large servings of spinach, kale, broccoli, or similar vegetables, that pigment passes into your digestive tract in quantities that can visibly tint your stool.2Wiley Online Library. The Metabolism and Potential Bioactivity of Chlorophyll and Metallo-chlorophyll Derivatives in the Gastrointestinal Tract Green smoothies, matcha lattes, and wheatgrass shots are frequent culprits. The chlorophyll isn’t always fully broken down during digestion, so the leftover pigment colors whatever comes out the other end.
Artificial food dyes can produce even more dramatic results. Blue and green dyes used in candy, frosting, sports drinks, and ice cream are remarkably efficient at changing stool color, sometimes to a startling lime green or even blue-green. One published case report described a 93-year-old patient whose stool appeared dark and tested falsely positive for blood, all because of food additives consumed earlier that day.3PubMed Central. The Case of the Lime-green Stool: A Case Report and Review of Occult Blood Testing in the Emergency Department That case is a good reminder that food dyes can fool not just your eyes but also certain lab tests. If you’ve recently eaten brightly colored processed food and then notice an unusual stool, it’s worth mentioning to your doctor before agreeing to invasive follow-up testing.
Rapid Transit Through the Gut
When food moves through your intestines faster than normal, bile doesn’t have enough time to complete its chemical journey from green to brown. This is probably the most important medical explanation for green stool, and it covers a wide range of triggers. Anything that speeds up gut motility, including a stomach bug, food poisoning, a course of antibiotics, intense anxiety, or plain old stress-related diarrhea, can produce noticeably green output.
The color itself is a useful clue about where in the digestive process things sped up. A bright, vivid green generally means the bile barely had time to be modified at all. A dull olive or dark green usually means some bacterial processing occurred, but the stool moved through the colon before the conversion to brown stercobilin could finish. In either case, the green color is a side effect of the speed, not an independent problem. Once your gut motility returns to normal, the brown color comes back on its own.
Medications, Supplements, and Medical Dyes
Several medications and supplements are known to turn stool green, sometimes as a harmless side effect and other times as a sign the substance isn’t being well absorbed.
- Iron supplements: Oral iron is one of the most common pharmaceutical causes of unusual stool color. Depending on the dose and formulation, it can produce stools that range from dark green to nearly black. This happens because unabsorbed iron reacts with compounds in the gut.
- Antibiotics: By killing off some of the gut bacteria responsible for converting bilirubin to stercobilin, antibiotics can interrupt the pigment pathway and leave stool green until the bacterial population recovers.
- Indomethacin and other NSAIDs: Certain anti-inflammatory drugs are associated with green stool as a recognized side effect, likely related to their effects on bile metabolism and gut lining turnover.
- Medical dyes: Methylene blue and indocyanine green, dyes used during some surgical and diagnostic procedures, are excreted through the body and can turn urine, sweat, and stool a blue-green color.4IP Journal of Diagnostic Pathology and Oncology. Using indocyanine green and methylene blue for axillary reverse mapping in modified radical mastectomy for breast cancer This is temporary and expected; it doesn’t indicate a complication.
If you’ve recently started a new medication or supplement and your stool has changed color, check the prescribing information or ask your pharmacist. Green stool from a medication is rarely a reason to stop taking it, but it’s worth knowing the cause so you don’t panic or undergo unnecessary testing.
Green Stool in Babies and Infants
Parents of newborns quickly learn that baby poop comes in a rainbow of colors. In the first few days of life, meconium, the thick, tar-like first stool, is dark green to black. This is entirely normal and clears within a few days as the baby begins digesting milk. After that transition, breastfed babies tend to have yellow, seedy stools, while formula-fed babies produce slightly firmer stools that range from yellow to tan.
Green stools in infants are more common than many parents expect, and in most cases they are not a cause for concern. A large study comparing different infant formulas found that green stools were significantly more frequent in babies fed iron-fortified formulas than in babies fed low-iron formulas or breast milk.5American Academy of Pediatrics (Pediatrics). Effect of Infant Formula on Stool Characteristics of Young Infants Since most standard infant formulas in the United States are iron-fortified, many formula-fed babies will have occasional green stools as a normal variation.
Other common reasons for green baby poop include a foremilk-hindmilk imbalance in breastfed babies (where the baby gets more of the watery foremilk and less of the fattier hindmilk), the introduction of green vegetables during weaning, and mild viral illnesses that speed up gut transit. Persistent bright-green watery stools in an infant who seems fussy, refuses to eat, or has a fever do warrant a call to the pediatrician, since they can indicate an infection or food sensitivity.
Infections That Change Stool Color
Bacterial and parasitic infections are a less common but clinically important cause of green stool. Salmonella, a frequent cause of food poisoning, is well known for producing green, foul-smelling diarrhea. The mechanism involves both rapid transit (the body is trying to flush the pathogen out) and direct inflammation of the intestinal lining, which increases mucus secretion and further disrupts bile processing.
Giardia, a waterborne parasite, can produce greasy, green-tinged stools along with bloating, cramps, and gas. Clostridioides difficile (C. diff), a bacterium that often takes hold after antibiotic use, can cause green or yellow watery diarrhea that may have a distinctively foul odor. In all of these cases, the green color is a secondary symptom rather than the primary concern. The diarrhea, fever, abdominal pain, and dehydration that accompany these infections are the reasons to seek medical attention; the color just provides an additional clue for the clinician.
After Gallbladder Removal
The gallbladder stores and concentrates bile, releasing it in controlled bursts when you eat fatty food. After a cholecystectomy (gallbladder removal), bile flows continuously from the liver into the small intestine instead of being stored and rationed. In many people this transition is smooth, but a significant number develop what clinicians call post-cholecystectomy diarrhea: loose, frequent, and sometimes green-tinged stools caused by excess bile acids reaching the colon.6PubMed Central. Diagnosis and treatment of post-cholecystectomy diarrhoea
Bile acids that aren’t reabsorbed in the small intestine irritate the lining of the colon and trigger it to secrete water and electrolytes, producing watery stools that move through quickly. Because the transit is fast and the bile load is high, the stool sometimes retains a green or yellowish-green hue. For most people, the body adapts over weeks to months. Those who continue to have persistent diarrhea after surgery can be treated with bile acid binders, medications that soak up the excess bile in the gut and firm up the stool.
Digestive Conditions That Alter Bile Processing
Certain chronic digestive conditions can produce recurring green stools beyond a single episode. Crohn’s disease and ulcerative colitis, the two main forms of inflammatory bowel disease, can speed transit time and impair bile reabsorption when the ileum (the last section of the small intestine, where most bile salts are recaptured) is inflamed or surgically shortened. Celiac disease can do the same when the small intestinal lining is damaged by gluten exposure.
Bile acid malabsorption doesn’t only happen after surgery. Some people have an idiopathic form, meaning their intestine simply doesn’t recapture bile acids efficiently for no obvious structural reason. This can cause chronic loose stools with a greenish tint, often mistaken for irritable bowel syndrome. If you’ve had ongoing green diarrhea without an obvious dietary explanation, bile acid malabsorption is one of the things a gastroenterologist can test for, usually with a trial of a bile acid binder to see if symptoms improve.
When the Color Should Prompt a Doctor Visit
A one-off green stool after a big salad or a course of antibiotics is nothing to worry about. The color alone, in the absence of other symptoms, is almost never a sign of something serious. That said, certain combinations of symptoms alongside green stool do deserve medical attention:
- Green diarrhea lasting more than two or three days: Persistent diarrhea risks dehydration and may indicate an infection that needs treatment.
- Fever above 101°F (38.3°C) with green watery stool: This combination suggests a bacterial or parasitic infection rather than a dietary cause.
- Blood in the stool: Bright red streaks or very dark, tarry stool alongside a green tinge can indicate bleeding somewhere in the digestive tract. As the case report about food-dye-induced false positives showed, dark stool isn’t always blood, but it’s wise to have it checked.3PubMed Central. The Case of the Lime-green Stool: A Case Report and Review of Occult Blood Testing in the Emergency Department
- Severe abdominal pain or cramping: Mild stomach upset with green stool is common during a stomach bug. Intense, localized, or worsening pain is different and warrants evaluation.
- Unintended weight loss: If your stool has been green for weeks and you’re losing weight without trying, something may be interfering with nutrient absorption.
For infants, the threshold is lower. A baby with green watery stool who is also lethargic, refusing feeds, or showing signs of dehydration (dry mouth, fewer wet diapers, no tears when crying) should be seen promptly.
Stool Color as a Rough Diagnostic Guide
Green tends to get outsized attention, but doctors actually pay closer attention to a few other stool colors that more reliably signal trouble. Black, tarry stools (melena) often indicate bleeding in the upper digestive tract, from the stomach or duodenum. Very pale, clay-colored stools suggest a blockage in the bile ducts, since it’s the bile pigments that give stool most of its color in the first place. Bright red blood on the surface of the stool or in the toilet bowl typically points to bleeding in the lower colon or rectum, such as hemorrhoids or a fissure.
Green falls into a much less alarming category. It’s essentially normal bile that didn’t finish its color-changing journey. The bile itself isn’t harmful; it’s just showing up in a form you don’t usually see. Clinicians tend to regard isolated green stool the same way they regard the occasional floating stool or a day of unusually soft output: interesting, but not diagnostic on its own. The context, including what you’ve been eating, what medications you’re on, and whether you have other symptoms, matters far more than the color itself.
Food Dyes and False Alarms in the Emergency Room
The interplay between food dyes and stool color deserves a closer look, because it can lead to real clinical confusion. Emergency departments occasionally see patients whose stool looks dark enough to suggest gastrointestinal bleeding, triggering urgent workups that include fecal occult blood tests, endoscopies, and hospital admissions. In some of these cases, the culprit turns out to be a food dye rather than blood. The published case of the 93-year-old patient with a falsely positive occult blood test is one example, but emergency physicians have reported similar scenarios with blue-frosted cupcakes, grape-flavored drinks, and black licorice.3PubMed Central. The Case of the Lime-green Stool: A Case Report and Review of Occult Blood Testing in the Emergency Department
If you end up in a medical setting over unusual stool color, mentioning everything you’ve eaten in the past 24 to 48 hours, including snacks, drinks, and supplements, can save you from an unnecessary procedure. Doctors are trained to consider dietary causes, but patients don’t always think to volunteer that they ate an entire bag of blue corn chips or drank a pitcher of green sports drink at their kid’s soccer game. That information can be the difference between going home with reassurance and spending a night in the hospital with a scope down your throat.
How Long Green Stool Typically Lasts
When the cause is dietary, green stool usually resolves within one to three bowel movements once the offending food or drink clears your system. If you ate a big kale salad at dinner, you might see green stool the next morning and brown stool by the following day. Food dyes can sometimes linger a bit longer, especially if you consumed a large amount, but even then the color normalizes within a couple of days.
When rapid transit is the cause, such as during a stomach virus, the green color persists for as long as the diarrhea does. Once gut motility slows back to its normal pace and the bacteria in your colon have time to do their job, brown returns. After a round of antibiotics, the bacterial population can take a few weeks to fully rebound, so green-tinged stools may come and go during that recovery window. If green stool persists beyond two weeks without an obvious explanation, that’s a reasonable point to bring it up with your doctor, not because the color itself is dangerous, but because persistent changes sometimes point to an underlying condition worth investigating.