← Back to Blog

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.

TL;DR
  • 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:

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:

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:

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:

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:

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:

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:

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:

  1. 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.
  2. 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.
  3. Note other symptoms. Fever, cramping, blood, weight loss, fatigue. These change the calculation entirely.
  4. Hydrate. If diarrhea is part of the picture, replacing fluids and electrolytes is the immediate priority.
  5. 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.
  6. 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
Medical disclaimer: This article is for informational purposes only and does not constitute medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider for medical concerns. Do not delay seeking medical advice because of information in this article. Sources are linked throughout and include peer-reviewed studies, NIH, Mayo Clinic, and Cleveland Clinic guidelines.