Why Is My Poop Green? Causes, Foods, and When to Worry
Green poop almost always traces back to one of two things: you ate something with chlorophyll or food dye, or bile passed through your gut faster than usual. Neither is a medical problem on its own. The color of stool depends on what bile pigments end up in it by the time it exits, and when transit speeds up, the pigments don't have time to finish their normal color change.
What follows is the actual mechanism, every reasonable cause, and the small handful of situations where green stool warrants a call to a doctor.
- Bile starts out green; gut bacteria turn it brown over the normal 30 to 40 hour transit time
- Most green poop is from leafy greens, food dye, iron, or stool moving through the gut too fast to finish browning
- Iron supplements and antibiotics are two of the most common medication causes
- Green diarrhea lasting more than 2 to 3 days, especially with fever, blood, or severe pain, needs medical evaluation
- Green is almost never a sign of cancer; bright red, black tarry, and pale clay-colored stools are the urgent color warnings
- In babies, green poop is usually normal, especially with iron-fortified formula or a foremilk imbalance
The Actual Reason Poop Is Normally Brown
Stool color is essentially a chemistry experiment that runs inside your colon. Old red blood cells get broken down in the liver into a green pigment called biliverdin, which is converted to a yellow-orange pigment called bilirubin. The liver dumps bilirubin into bile, bile flows into the small intestine to help digest fats, and then both bile and stool continue into the colon.
Once they hit the colon, gut bacteria do the work. They reduce bilirubin to colorless urobilinogen, which then gets oxidized to stercobilin, the brown pigment that gives healthy stool its color. The enzyme responsible was only identified in 2023: a microbial bilirubin reductase produced by gut bacteria like Clostridium symbiosum and Ruminococcus gnavus (Hall et al., 2024).
That whole conversion takes time. Average whole-gut transit is around 30 to 40 hours, with an upper limit near 70 (see our Bristol Stool Chart guide for how form and transit time line up). If anything cuts that time short, the bilirubin doesn't fully convert and you get green-tinted stool by default. Speed up enough and you skip the conversion almost entirely.
Cause #1: You Ate Something Green
This is by far the most common explanation, and it's the first thing a gastroenterologist will ask about. Chlorophyll, the pigment that makes plants green, is highly resistant to digestion. Eat enough of it and it passes straight through.
The usual suspects:
- Spinach, kale, arugula, swiss chard, collards. Especially in large servings like smoothies or salads.
- Broccoli, brussels sprouts, asparagus, green beans.
- Matcha and spirulina. A single matcha latte or a scoop of spirulina powder is enough to color a bowel movement.
- Pistachios and avocado in volume.
- Green food coloring. St. Patrick's Day beer, frosting, sports drinks, certain candy, and grape-flavored popsicles (which often use blue and red dye that combine to green in stool). Purple, blue, and black food dyes also commonly produce green stool.
- Iron-fortified cereals. The iron content matters as much as the food matters, which leads to the next cause.
Dietary green stool tends to last one to three bowel movements and resolves on its own. If you scan back over the previous 24 to 48 hours and find an obvious source, that's almost certainly your answer.
Cause #2: Bile Moved Too Fast
This is the second-most-common cause and the reason people get green stool when they swear they haven't eaten anything green. When stool transit accelerates - because of diarrhea, stress, a strong gastrocolic reflex, caffeine, or a magnesium-rich meal - the bile in your colon doesn't have enough time to be converted from bilirubin to stercobilin. The result is stool that retains more of its original green-yellow bile color.
This explains why green stool and loose stool often show up together. The faster the transit (Bristol Type 5, 6, or 7), the more likely the color shifts toward green. Mayo Clinic notes this is a standard, expected finding with diarrhea and is not in itself a sign of anything serious (Mayo Clinic on green stool causes).
Cause #3: Iron Supplements and Prenatal Vitamins
Iron is a notorious stool-color changer. Unabsorbed iron oxidizes in the gut and can produce a stool that ranges from dark green to nearly black. Prenatal vitamins, which typically contain 27 mg of iron or more, are an extremely common reason new and expectant mothers see green stool.
This effect is well documented and considered harmless (MedlinePlus on iron supplementation). It is not a reason to stop taking iron if you've been prescribed it. The only color warning worth knowing about iron is that it can also produce a stool dark enough to be confused with the black, tarry stool of upper GI bleeding, so if you're on iron and unsure, talk to your doctor rather than guess.
Cause #4: Antibiotics and Other Medications
Antibiotics wipe out a portion of your gut bacteria, including the species responsible for converting bilirubin to stercobilin. With fewer of those bacteria around, the conversion is incomplete and stool stays greener for the duration of treatment and sometimes for weeks after. This is the same mechanism that explains why antibiotic-associated diarrhea so often comes with a color shift.
Other medications associated with green or unusually colored stool include:
- Metformin. Speeds intestinal transit and is a recognized cause of color change (gut microbiota and metformin literature).
- Bismuth-containing products. Pepto-Bismol typically darkens stool to gray or black, but during transit changes can look greenish.
- Laxatives, especially stimulant laxatives and magnesium-based products, both of which accelerate transit.
- Some chemotherapy drugs and immunosuppressants. If you're on these, mention any persistent color change to your oncology team.
Cause #5: GI Infections
Bacterial and parasitic gut infections are a common cause of green diarrhea specifically. The mechanism is the same as rapid transit - the gut is trying to flush something out, peristalsis ramps up, and bile doesn't get processed. The pathogens most often implicated:
- Salmonella. Often from undercooked poultry, eggs, or contaminated produce. Comes with cramping, fever, and sometimes blood.
- Giardia lamblia. A parasite picked up from contaminated water, daycare exposure, or international travel. Produces foul-smelling, greasy, often green stools along with bloating and weight loss.
- Clostridioides difficile (C. diff). Usually follows recent antibiotic use. Watery, foul-smelling diarrhea that may be green. Can be serious - call a doctor.
- E. coli and Campylobacter.
- Viral gastroenteritis from norovirus or rotavirus.
The tell with an infection is rarely the color alone. It's the company the color keeps: fever, vomiting, severe cramping, blood, or symptoms lasting more than a couple of days. If you've recently traveled, eaten somewhere with questionable food handling, or finished a course of antibiotics, those are useful clues.
Cause #6: IBS, IBD, Celiac, and Other GI Conditions
Conditions that speed transit or disrupt bile and microbiome balance can cause persistent green stool as a background feature. This includes diarrhea-predominant IBS (IBS-D), inflammatory bowel disease during flares (Crohn's and ulcerative colitis), celiac disease, and bile acid malabsorption, where the small intestine fails to reabsorb bile salts and they spill into the colon at higher volumes.
Color alone won't diagnose any of these. The Bristol form, the frequency, the pattern over weeks, the associated symptoms - that combination is what helps a gastroenterologist sort one from another. If you also notice changes in stool consistency or other symptoms that match, our signs of IBS and SIBO symptoms guides cover the differential in more detail.
Green Poop in Babies
Babies don't follow adult color rules. The American Academy of Pediatrics considers green stool a normal variant in infants, and pediatricians rarely flag it on its own. A few specific patterns:
- Iron-fortified formula commonly produces dark green stools. This is expected.
- Foremilk-hindmilk imbalance in breastfed babies can produce frothy green stools. Often resolves with longer nursing per side.
- Maternal diet. If a nursing mother eats a large portion of leafy greens or food dye, it can pass through.
- Teething can transiently increase gut motility and shift color.
Reasons to call the pediatrician anyway: green watery stool with mucus and blood (possible cow's milk protein allergy), more than 6 to 8 watery stools in 24 hours, signs of dehydration, or fever in an infant under 3 months.
What Different Shades of Green Suggest
Color shade isn't a perfect diagnostic, but the broad pattern is:
- Bright or lime green: Usually rapid transit or food dye. Common with diarrhea and bile that hasn't been processed.
- Dark green: More often diet-related (kale, spirulina, iron). Can also be early-stage bilirubin breakdown that stopped short of brown.
- Olive or muddy green: Frequently antibiotic-related or microbiome-disrupted.
- Green with mucus: Often points to an infection or inflammation; covered in detail in our mucus in stool guide.
When Green Stool Actually Needs a Doctor
Most green stools resolve in a day or two and need nothing. Mayo Clinic's threshold for a call is green stool that lasts more than a few days without an obvious dietary explanation (Mayo Clinic: green stool, when to see a doctor). Beyond duration, the red flags worth knowing:
- Green diarrhea lasting more than 2 to 3 days
- Fever above 102°F (38.9°C) with diarrhea
- Visible blood, or stool that is black and tarry
- Severe or worsening abdominal pain
- Signs of dehydration: dark urine, dizziness, dry mouth, reduced urination
- Recent international travel, antibiotic course, or hospital stay
- Unexplained weight loss alongside chronic color or form changes
- Persistent change in bowel habits lasting more than two weeks
The Cleveland Clinic's guidance is similar: any sudden, lasting change in stool color that you can't trace to diet is worth a conversation with a clinician (Cleveland Clinic on changes in bowel habits). The NIDDK echoes this for any unexplained, persistent bowel change (NIDDK).
The Colors That Actually Are Urgent
Green isn't the color to be scared of. The three that matter:
- Black and tarry with a foul, distinct odor suggests upper GI bleeding from an ulcer or other source. (Iron and bismuth can mimic this; if you're sure it's neither, treat it as urgent.)
- Bright red or maroon can indicate lower GI bleeding from hemorrhoids, fissures, polyps, diverticular disease, or colorectal cancer.
- Pale, clay, or chalk-colored stool suggests bile isn't reaching the intestine, which points to liver, gallbladder, or bile duct issues. Especially urgent if paired with jaundice or dark urine.
For a full breakdown of every stool color and what it suggests, see our stool color chart. For warning bowel symptoms more broadly, we covered the differential for colorectal cancer warning signs separately, since rising rates in adults under 50 make those signals worth taking seriously.
What to Do About Green Poop Today
Practical steps, ordered by usefulness:
- Scan back 48 hours. Smoothies, salads, matcha, iron supplements, prenatal vitamins, food dye, magnesium, a new medication. Most green stool has an answer in this list.
- Check Bristol form. Type 4 with a green tint is rarely meaningful. Type 6 or 7 with green is rapid transit, and the question becomes why transit is fast.
- Note other symptoms. Fever, cramping, blood, weight loss, fatigue. These change the calculation entirely.
- Hydrate. If diarrhea is part of the picture, replacing fluids and electrolytes is the immediate priority.
- Wait one to three days. Most green stool resolves quickly. Persistent or recurrent color change with no dietary explanation is the cue to see a doctor.
- Track it. One green bowel movement is anecdote. A pattern - same color, same time of day, after the same meal, for several days - is data your doctor can actually use.
What the Science Doesn't Say
A few claims that float around the internet about green poop are not supported by the medical literature. Green stool is not a reliable marker for "detoxing," for a "liver cleanse," or for cancer. The pigment chemistry is well understood, the gut microbiome's role in bilirubin conversion has been mapped down to specific enzymes (Nature, 2024), and color alone has poor specificity for serious disease. What matters clinically is duration, associated symptoms, and pattern - not a single odd-looking flush.
Tracking color, form, and what you ate the day before is the fastest way to figure out what's actually causing a change. Number Two logs all of it in seconds.
Download for iOS - Free