Green poop is almost always harmless, most commonly caused by eating large amounts of leafy vegetables, consuming foods with green or blue dye, or having stool pass through the intestines faster than usual. The color of a normal bowel movement depends on a pigment called stercobilin, and anything that disrupts its formation or overwhelms it with another color can shift your stool toward green. That said, certain infections, medications, and digestive conditions can produce green stool too, so the context around the color change matters more than the color itself.
Why Stool Is Usually Brown in the First Place
Your liver constantly produces bile, a yellowish-green fluid that helps you digest fats. When bile enters your small intestine, bacteria get to work on it, gradually converting a compound called bilirubin into stercobilin. Stercobilin is what gives stool its characteristic brown color by the time it reaches the exit.1The Conversation. Why is my poop brown? Anything that interrupts that conversion process or adds a competing pigment can shift the final color. Green stool, then, is really just a sign that one of those two things happened.
Leafy Greens and Other Dietary Triggers
The single most common reason for green stool is diet. Chlorophyll, the pigment that makes plant leaves green, survives digestion well enough to tint your stool when you eat a lot of it.2PubMed Central. The Metabolism and Potential Bioactivity of Chlorophyll and Metallo-chlorophyll Derivatives in the Gastrointestinal Tract Spinach, kale, broccoli, arugula, wheatgrass shots, green smoothies, and matcha are all frequent culprits. If you recently went on a health kick and started blending handfuls of greens every morning, a vivid green stool a day or two later is entirely predictable.
Food dyes are another major contributor that people often overlook. Blue and green artificial dyes in candy, frosted cake, sports drinks, ice cream, and even some cereals can produce strikingly green stool. Purple and black dyes occasionally do the same because blue dye mixed with the yellow-brown of bile can come out looking green. Parents sometimes panic after a child’s birthday party for exactly this reason.
Certain supplements and health foods can also be responsible. Iron supplements are well known for darkening stool to a near-black or very dark greenish-black shade, which is sometimes confused with the tarry black stool associated with gastrointestinal bleeding.3Western Undergraduate Research Journal: Health and Natural Sciences. A Rewarding Medical Internship – Documenting the Case of a Colorectal Cancer Patient with Hematochezia and Melena Spirulina, chlorella, and concentrated green-vegetable powders can do the same in brighter shades. If you recently started any new supplement, it is worth checking whether green stool is a known side effect before assuming something is wrong.
When Food Moves Too Fast
Bile starts out green. As it travels through your intestines, bacteria metabolize it through a series of chemical changes that slowly shift it from green to yellow-brown. This process takes time. If something speeds up your digestion so that stool passes through the colon faster than usual, bile does not have enough time to complete that color transition, and what comes out still looks green.
This is called rapid transit, and it is one of the most common non-dietary explanations for green stool. Anything that accelerates your bowel can trigger it: a stomach virus, food poisoning, a large dose of caffeine, a stressful event, certain laxatives, or even a hard workout. Diarrhea itself tends to be greenish for exactly this reason, regardless of what caused the diarrhea in the first place. The stool simply did not spend long enough in the colon for the brown pigment to form.
If you had a bout of loose or watery stool that happened to be green and then things returned to normal within a day or two, rapid transit is almost certainly the explanation. There is nothing to treat here; the color is just a visible marker of speed.
Medications and Antibiotics
Several medications can turn stool green through different mechanisms. Antibiotics are the most common. They work by killing bacteria, and your gut is full of the bacteria that normally convert bile pigments to brown. When an antibiotic disrupts those bacterial populations, the bile conversion process stalls, and green-tinged stool can appear for the duration of the course and sometimes for a few weeks afterward, until the gut flora recovers.
Beyond antibiotics, some other medications have been associated with green stool. Nonsteroidal anti-inflammatory drugs taken at high doses can irritate the gut lining and speed transit. Certain antidepressants and the diabetes drug metformin can cause diarrhea as a side effect, and that diarrhea is sometimes green for the transit-speed reasons described above. The iron supplement issue is worth repeating here: the dark greenish-black color iron produces is so common that doctors routinely warn patients about it when prescribing iron, specifically because it looks alarming and can be mistaken for internal bleeding.
Infections That Produce Green Stool
Several gastrointestinal infections can produce green diarrhea, usually because the infection itself causes rapid transit, inflammation, or both. Salmonella is one of the most commonly cited culprits. Bacterial food poisoning from contaminated eggs, undercooked poultry, or raw produce can cause profuse watery diarrhea that is often green, accompanied by cramps, fever, and sometimes vomiting. The color in these cases comes from the speed at which fluid is being pushed through the intestines, combined with the body’s inflammatory response, which can include mucus.
Parasitic infections can do the same. Giardia, a waterborne parasite picked up from contaminated streams, lakes, or sometimes municipal water, causes a range of symptoms from no symptoms at all to chronic diarrhea with abdominal pain and nausea.4PubMed Central. Extra-intestinal and long term consequences of Giardia duodenalis infections The diarrhea from giardiasis is frequently described as greasy, foul-smelling, and sometimes greenish or yellow-green. If you have been camping, traveling to areas with uncertain water quality, or accidentally swallowed water from a lake or pool and then developed persistent loose green stool, a stool test for Giardia is reasonable to request.
Clostridioides difficile (C. diff) infection, which often follows antibiotic use, can also produce green or yellow-green watery stool, sometimes with a distinctive foul odor. This is a more serious infection, especially in older adults and hospitalized patients, and warrants prompt medical attention.
Green Stool After Gallbladder Removal
Your gallbladder stores and concentrates bile, then releases it in controlled bursts when you eat fatty food. After a cholecystectomy (gallbladder removal), bile flows continuously from the liver directly into the small intestine rather than being stored and released on demand. This means your intestines are dealing with a more constant stream of bile, and the colon sometimes gets more bile acids than it can comfortably reabsorb.5PubMed Central. Diagnosis and treatment of post-cholecystectomy diarrhoea
Excess bile acids in the colon stimulate the intestinal lining to secrete extra water and electrolytes, which can speed transit and cause loose stools. Bile acid levels in the blood roughly double after cholecystectomy, reflecting this increased production and flow.6PubMed. Bowel habits and bile acid malabsorption in the months after cholecystectomy The combination of extra bile and faster transit is a recipe for green-tinged stool, especially in the weeks and months after surgery. For most people this settles down over time, but some experience persistent post-cholecystectomy diarrhea. Bile acid binders, which are prescription medications that soak up excess bile in the intestine, can help in those cases.
Green Stool in Babies
New parents spend an extraordinary amount of time scrutinizing diaper contents, and green stool in infants is one of the most common triggers for a worried phone call to the pediatrician. The good news is that green stool in babies is even more often benign than in adults.
A newborn’s first stools, called meconium, are a dark greenish-black, sticky substance that was present in the intestines before birth. Over the first few days of life, stool transitions through shades of dark green, then lighter green, then yellow-brown or mustard-yellow as the baby begins digesting milk.7Midwifery. Relationships between baby feeding types and patterns, gut transit time of meconium and the incidence of neonatal jaundice This color journey is completely normal and expected. Breastfed babies often have yellowish, seedy-looking stools, but green stools can appear if the baby feeds quickly, takes in a lot of foremilk (the thinner, more watery milk at the beginning of a feed), or if the mother has eaten something with strong pigments. Formula-fed babies tend to have darker tan or greenish-tan stools as a baseline.
In older infants and toddlers, green stool frequently coincides with teething (possibly because excess saliva speeds gut transit), eating green vegetables for the first time, or a mild stomach bug. Unless the green stool is accompanied by fever, blood, mucus, or signs of dehydration like fewer wet diapers and lethargy, it is rarely a concern.
When Green Stool Deserves Medical Attention
The color green on its own is almost never an emergency. What matters is the combination of green stool with other symptoms. You should see a doctor if green stool comes with any of the following:
- Persistent diarrhea: More than two or three days of loose, watery green stools, especially with dehydration signs like dizziness, dry mouth, or reduced urination.
- Fever above 101°F (38.3°C): Suggests an infection that your body is fighting, particularly if it comes with cramping and nausea.
- Blood or black tarry stool: Bright red blood mixed in, or stool that is jet-black and sticky (not the dark greenish-black of iron supplements), can indicate bleeding somewhere in the digestive tract.
- Severe abdominal pain: Cramping that is worsening, localized, or accompanied by bloating and inability to pass gas.
- Unexplained weight loss: Green stool combined with weight loss over weeks or months can point to malabsorption issues or chronic infection.
- Recent antibiotic use with worsening symptoms: Could indicate a C. diff infection, which needs specific treatment.
For babies, the red flags are similar but adjusted for age: fewer than four wet diapers in 24 hours, sunken fontanelle (the soft spot on the head), persistent vomiting, or blood or mucus in the diaper. A single green diaper in an otherwise happy, feeding baby is not a reason to rush to the emergency room.
What Doctors Look For When You Report Green Stool
If you do bring up green stool with a doctor, the evaluation depends entirely on the accompanying symptoms. If you are otherwise healthy and the green stool is isolated, your doctor will likely ask about diet, supplements, and medications and reassure you. If there is reason to suspect something more, stool testing is the standard next step.
A stool sample can be examined for white blood cells (which indicate inflammation or infection), hidden blood, fat content (which suggests malabsorption), pH levels, and the presence of bacteria, viruses, or parasites.8PubMed Central. The importance of stool tests in diagnosis and follow-up of gastrointestinal disorders in children If Giardia or another parasite is suspected, specific antigen tests can detect it reliably. If C. diff is a concern, a toxin assay on the stool sample can confirm it. These tests are straightforward, non-invasive, and usually covered by insurance when ordered for a clinical reason.
Blood tests are rarely needed for isolated green stool but may be helpful if bile acid malabsorption is suspected, as in someone with ongoing diarrhea after gallbladder removal. Measuring bile acid precursors in the blood can help guide treatment decisions.
Telling Iron Supplements Apart from Bleeding
This specific concern is worth its own discussion because it causes genuine anxiety. Iron supplements darken stool to a shade that ranges from dark green to near-black, and people who know that black tarry stool (melena) is a warning sign of upper GI bleeding understandably worry. The distinction matters, and luckily it is usually not subtle once you know what to look for.
Iron-darkened stool is typically dark greenish-black, firm or formed, and does not have the sticky, tar-like consistency associated with melena. Melena, which results from blood being digested as it passes through the intestines, tends to be jet-black, very sticky, and has a distinctly foul, metallic smell that most people describe as unmistakable. Clinicians are specifically trained to distinguish these two presentations because iron supplementation is so common.3Western Undergraduate Research Journal: Health and Natural Sciences. A Rewarding Medical Internship – Documenting the Case of a Colorectal Cancer Patient with Hematochezia and Melena If you are on iron and uncertain, stopping the supplement for two to three days will clear the color if iron was the cause. If the dark color persists after stopping, that warrants a call to your doctor.
How Long Green Stool Typically Lasts
For dietary causes, green stool usually resolves within one to three bowel movements after the offending food clears your system. A big spinach salad at dinner might produce a green stool the next morning, and everything is back to brown by the following day. Food dye can sometimes linger for two days, depending on how much was consumed and your personal transit time.
For rapid transit caused by a stomach bug, green stool generally clears when the illness does, usually within three to five days for most viral gastroenteritis episodes. Antibiotic-related changes can last for the duration of the course and a week or two beyond, though the gut flora eventually rebalances.
If green stool persists for more than two weeks without an obvious dietary explanation, that is a reasonable threshold to bring it up with a healthcare provider. Not because two weeks of green stool is dangerous in itself, but because it suggests either a sustained dietary factor you have not identified, an ongoing medication effect, or a condition like bile acid malabsorption or chronic infection that can be easily diagnosed and treated. Most people who see a doctor for persistent green stool walk out with a straightforward explanation and a simple fix, whether that is adjusting a supplement, treating a parasite, or just being reassured that their kale habit is the culprit.