Doctors Note Logo

Published on: 1/13/2026

Why is my poop green when i didn't eat anything green?

There are several factors to consider. Most often the color comes from bile moving through the gut too quickly, but hidden food dyes, iron or antibiotics, infections like gastroenteritis or bile acid diarrhea, and rarely gallbladder or liver issues can also do it; see below for details. Seek care if it lasts more than 3 days or with severe pain, fever, blood, or dehydration, and in the meantime hydrate, track your diet, consider a short course of probiotics, or use loperamide as directed; the next steps and tests your doctor might use are outlined below.

answer background

Explanation

Green poop can be surprising—especially if you haven’t eaten anything green. In most cases, it’s harmless and caused by the way bile and gut transit interact. Below, we explain the common reasons for green poop, when to worry, and what to do next.

Why normally brown?
• Bile pigments made in the liver start out green.
• As bile travels through your intestines, bacteria break it down into brown pigments.
• If food (and bile) moves too quickly, there isn’t enough time for this change—so stool stays green.

Common causes of green poop

  1. Rapid gut transit

    • Diarrhea: Loose stools flush bile through the gut too fast.
    • Bile acid diarrhea: Up to 33% of people with chronic diarrhea have bile acid malabsorption (Camilleri M. 2015).
  2. Diet and supplements

    • Artificial food coloring: Drinks, candies, frostings.
    • Iron supplements: Can darken stool to black or green.
    • Green foods: Spinach, kale, spirulina—even if you don’t recall them in a meal, they may be hidden in sauces or smoothies.
  3. Medications and antibiotics

    • Antibiotics can disrupt normal gut bacteria, changing the way bile is metabolized.
    • Some medications contain green dyes or interact with bile flow.
  4. Infections and illnesses

    • Gastroenteritis: Viruses or bacteria speed transit time.
    • Giardia or Salmonella: May cause green, watery diarrhea.
    • Irritable bowel syndrome (IBS) or inflammatory bowel disease (IBD): Flare-ups can alter stool color.
  5. Gallbladder and liver issues

    • Bile duct obstruction: Rarely, blocked ducts force bile into the intestines in abnormal amounts.
    • Liver disease: If bile production or flow is altered (e.g., in cirrhosis or fibrosis), stool color can change. Noninvasive tests like transient elastography (Friedrich-Rust M et al. 2008) and fibrosis indexes (Wai CT et al. 2003) help stage liver disease—but green poop alone is not a primary sign.

When to be concerned

Most episodes of green poop resolve within a day or two. However, see a doctor if you experience any of the following:

  • Stools that stay green for more than 3 days
  • Severe abdominal pain or cramping
  • Fever higher than 100.4°F (38°C)
  • Blood or black, tarry stools
  • Signs of dehydration (dizziness, dry mouth, little urine)

If you’re not sure how serious your symptoms are, you might consider doing a free, online symptom check for to guide your next steps.

Simple steps to try at home

  1. Track your diet
    • Note every food and drink—sometimes green dyes hide in unexpected places.
  2. Stay hydrated
    • Diarrhea can deplete fluids quickly. Sip water, broths, or an electrolyte solution.
  3. Probiotics
    • A short course may help balance gut bacteria.
  4. Over-the-counter anti-diarrheals
    • Loperamide (Imodium) can slow transit time; only use as directed.

Tests and evaluation

If green poop persists or is accompanied by serious symptoms, your doctor may recommend:

  • Stool analysis: Checks for infections, blood, or malabsorption markers.
  • Blood tests: Liver function tests (LFTs) can evaluate bile production and liver health.
  • Imaging: Ultrasound or MRI to look at the gallbladder and bile ducts.
  • Bile acid breath tests or SeHCAT scan: Specialized tests for bile acid diarrhea (as outlined by Camilleri M. 2015).

When to see your doctor

Speak to a doctor if you notice any of the “when to be concerned” signs above. While green poop is often harmless, it can occasionally signal:

  • Bile acid malabsorption
  • Infection requiring antibiotics
  • Gallbladder or liver problems

Your healthcare provider can tailor tests and treatment to your situation. Always seek medical attention for symptoms that could be life-threatening or seriously impact your health.


Green poop usually isn’t a cause for panic—it often reflects rapid transit or dietary factors. But persistent changes, pain, fever, or blood in your stool warrant professional evaluation. Remember, you can do a free online symptom check for if you’re unsure what to do next. And for anything severe or worrying, please speak to a doctor right away.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Learn more about symptoms

Bloated stomach

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.