Doctors Note Logo

Published on: 9/13/2026

Why does my stomach hurt and poop turn green after antibiotics?

Antibiotics kill off protective gut bacteria along with harmful ones, and that imbalance can trigger stomach pain, cramping, bloating, and loose stools; when waste moves through the intestines too fast, green bile does not have time to break down, so stool can look green. Other explanations include Clostridioides difficile overgrowth, direct irritation of the stomach lining, and dietary factors like iron supplements or leafy greens, so there are several important possibilities to weigh below. Red flags such as severe or worsening pain, fever, watery diarrhea lasting more than two days, or blood or mucus in stool point to a problem that needs prompt evaluation, and the complete answer below explains how to tell these situations apart.

Because green stool with abdominal pain can range from a harmless, self-resolving side effect to an infection that requires treatment, the deciding factors are your specific symptoms, their timing, and their severity. A free, instant, online symptom check lets you enter what you are experiencing and receive personalized insight into likely causes and clear next steps, so you know whether to wait it out, call your prescriber, or seek care today.

Last reviewed for medical accuracy: 09/12/2026

answer background

Explanation

Why does my stomach hurt and poop turn green after antibiotics?

Taking antibiotics can lead to tummy aches and odd-colored poop. Here’s what’s going on, how to manage it, and when to get help.

How antibiotics affect your gut
Antibiotics fight bacteria that make you sick—but they can’t tell “good” bugs from “bad.” In your digestive tract you have trillions of helpful bacteria that

  • Break down food
  • Help you absorb nutrients
  • Keep your immune system balanced

When antibiotics wipe out some of these good bacteria, it disrupts your digestive process. That disruption can lead to:

  • Abdominal cramps or pain
  • Diarrhea or loose stools
  • Changes in stool color, including green poop

Why poop turns green
Your poop gets its color from bile. Bile is a greenish fluid your liver makes to digest fats. Normally, bile changes from green to brown as it moves through your intestines and gets broken down by bacteria. If antibiotics have reduced your gut bacteria or sped up transit time, bile may not have enough time to fully change color. The result? Green stool.

Other factors that can make your poop green include:

  • Eating lots of green vegetables or foods with green dye
  • Iron supplements (often given with some antibiotics)
  • Rapid bowel movements—diarrhea flushes bile out faster

Common causes of pain and green poop after antibiotics

  1. Gut imbalance (dysbiosis)
    • Antibiotics kill off helpful bacteria that maintain normal digestion.
    • Without them, harmful bacteria or yeast can overgrow, causing pain and diarrhea.
  2. Faster transit time
    • When your bowels move too quickly, food and bile don’t get fully digested or broken down.
    • This causes loose, green-colored stool.
  3. Clostridioides difficile infection (C. diff)
    • A small number of people develop C. diff after antibiotics.
    • Symptoms include severe pain, frequent watery diarrhea, and sometimes fever.
  4. Malabsorption
    • If antibiotics irritate the lining of your gut, you may not absorb fats and other nutrients properly.
    • This can lead to crampy pain and pale, green, or greasy stools.

When to expect mild vs. serious symptoms
Most people who get mild antibiotic-associated diarrhea will have it start within a few days of treatment, then clear up in a week or two after finishing antibiotics. You may have:

  • Mild to moderate abdominal cramps
  • A few episodes of loose, greenish poop

Take action if you notice:

  • Diarrhea lasting more than 2 weeks
  • Severe, persistent belly pain
  • Fever over 101°F (38.3°C)
  • Blood or pus in your stool
  • Signs of dehydration (very dry mouth, dark urine, dizziness)

These could signal a more serious infection such as C. diff or another complication.

Tips for easing stomach pain and normalizing your poop
• Stay hydrated
Drink water, clear broth or an oral rehydration solution. Dehydration from diarrhea can make pain and cramping worse.
• Try probiotics
Foods like yogurt with live cultures, kefir or a high-quality supplement can help restore beneficial bacteria. Take them at least 2 hours apart from your antibiotic dose.
• Eat gentle, fiber-rich foods
Bananas, rice, applesauce and toast (the BRAT diet) can be soothing at first. Then reintroduce vegetables, whole grains and lean proteins as you improve.
• Avoid irritants
Caffeine, alcohol, spicy or fatty foods can worsen cramps and diarrhea.
• Give it time
Mild discomfort and green poop often resolve within a week of finishing antibiotics.

Preventing antibiotic-related digestive upset
• Talk to your doctor or pharmacist about adding a probiotic when you start antibiotics.
• Consider taking probiotics 2 hours before or after your antibiotic dose to reduce interaction.
• Don’t skip your full course of antibiotics unless advised by your doctor.
• Eat a balanced diet rich in fiber to support healthy gut flora.

When to seek medical care
Antibiotics can occasionally lead to severe complications. Contact a healthcare provider or go to the emergency department if you have:

  • Severe, unrelenting abdominal pain
  • Very frequent, watery diarrhea (more than 6–8 times in 24 hours)
  • High fever or chills
  • Blood, black, or tarry stool
  • Signs of dehydration that don’t improve with fluids

If you’re unsure about the severity of your symptoms, consider a free, online symptom check, using the doctor approved Ubie Symptom Checker.

Prevent anxiety, get clarity
It’s normal to feel uneasy when your body reacts unexpectedly to medication. Most cases of antibiotic-associated stomach pain and green poop resolve on their own or with simple self-care. But never ignore signs that point to something more serious.

Remember

  • Antibiotics can disrupt gut bacteria and speed up digestion, leading to green stool and cramps.
  • Most mild cases improve within days of finishing antibiotics with hydration, probiotics and diet adjustments.
  • Watch for warning signs like severe pain, blood in stool or high fever.

If you experience anything life-threatening or serious, speak to a doctor right away.

(References)

  • * Miller AI, Smith B, Rogers AI. Phlegmonous gastritis. Gastroenterology. 1975 Feb;68(2):231-8. PMID: 1116671.

  • * Pimentel M, Lembo A, Chey WD, Zakko S, Ringel Y, Yu J, Mareya SM, Shaw AL, Bortey E, Forbes WP, TARGET Study Group. Rifaximin therapy for patients with irritable bowel syndrome without constipation. N Engl J Med. 2011 Jan 6;364(1):22-32. doi: 10.1056/NEJMoa1004409. PMID: 21208106.

  • * Gans SL, Pols MA, Stoker J, Boermeester MA, expert steering group. Guideline for the diagnostic pathway in patients with acute abdominal pain. Dig Surg. 2015;32(1):23-31. doi: 10.1159/000371583. Epub 2015 Jan 28. PMID: 25659265.

  • * Stringer MD. Acute appendicitis. J Paediatr Child Health. 2017 Nov;53(11):1071-1076. doi: 10.1111/jpc.13737. Epub 2017 Oct 17. PMID: 29044790.

  • * Routy B, Le Chatelier E, Derosa L, Duong CPM, Alou MT, Daillère R, Fluckiger A, Messaoudene M, Rauber C, Roberti MP, Fidelle M, Flament C, Poirier-Colame V, Opolon P, Klein C, Iribarren K, Mondragón L, Jacquelot N, Qu B, Ferrere G, Clémenson C, Mezquita L, Masip JR, Naltet C, Brosseau S, Kaderbhai C, Richard C, Rizvi H, Levenez F, Galleron N, Quinquis B, Pons N, Ryffel B, Minard-Colin V, Gonin P, Soria JC, Deutsch E, Loriot Y, Ghiringhelli F, Zalcman G, Goldwasser F, Escudier B, Hellmann MD, Eggermont A, Raoult D, Albiges L, Kroemer G, Zitvogel L. Gut microbiome influences efficacy of PD-1-based immunotherapy against epithelial tumors. Science. 2018 Jan 5;359(6371):91-97. doi: 10.1126/science.aan3706. Epub 2017 Nov 2. PMID: 29097494.

  • * Suez J, Zmora N, Zilberman-Schapira G, Mor U, Dori-Bachash M, Bashiardes S, Zur M, Regev-Lehavi D, Ben-Zeev Brik R, Federici S, Horn M, Cohen Y, Moor AE, Zeevi D, Korem T, Kotler E, Harmelin A, Itzkovitz S, Maharshak N, Shibolet O, Pevsner-Fischer M, Shapiro H, Sharon I, Halpern Z, Segal E, Elinav E. Post-Antibiotic Gut Mucosal Microbiome Reconstitution Is Impaired by Probiotics and Improved by Autologous FMT. Cell. 2018 Sep 6;174(6):1406-1423.e16. doi: 10.1016/j.cell.2018.08.047. PMID: 30193113.

  • * Asharaf A, Desai P, Sanati M. Emphysematous Gastritis. J Am Osteopath Assoc. 2019 Dec 1;119(12):848. doi: 10.7556/jaoa.2019.140. PMID: 31790130.

  • * Di Saverio S, Podda M, De Simone B, Ceresoli M, Augustin G, Gori A, Boermeester M, Sartelli M, Coccolini F, Tarasconi A, De' Angelis N, Weber DG, Tolonen M, Birindelli A, Biffl W, Moore EE, Kelly M, Soreide K, Kashuk J, Ten Broek R, Gomes CA, Sugrue M, Davies RJ, Damaskos D, Leppäniemi A, Kirkpatrick A, Peitzman AB, Fraga GP, Maier RV, Coimbra R, Chiarugi M, Sganga G, Pisanu A, De' Angelis GL, Tan E, Van Goor H, Pata F, Di Carlo I, Chiara O, Litvin A, Campanile FC, Sakakushev B, Tomadze G, Demetrashvili Z, Latifi R, Abu-Zidan F, Romeo O, Segovia-Lohse H, Baiocchi G, Costa D, Rizoli S, Balogh ZJ, Bendinelli C, Scalea T, Ivatury R, Velmahos G, Andersson R, Kluger Y, Ansaloni L, Catena F. Diagnosis and treatment of acute appendicitis: 2020 update of the WSES Jerusalem guidelines. World J Emerg Surg. 2020 Apr 15;15(1):27. doi: 10.1186/s13017-020-00306-3. Epub 2020 Apr 15. PMID: 32295644; PMCID: PMC7386163.

  • * Maier L, Goemans CV, Wirbel J, Kuhn M, Eberl C, Pruteanu M, Müller P, Garcia-Santamarina S, Cacace E, Zhang B, Gekeler C, Banerjee T, Anderson EE, Milanese A, Löber U, Forslund SK, Patil KR, Zimmermann M, Stecher B, Zeller G, Bork P, Typas A. Unravelling the collateral damage of antibiotics on gut bacteria. Nature. 2021 Nov;599(7883):120-124. doi: 10.1038/s41586-021-03986-2. Epub 2021 Oct 13. PMID: 34646011; PMCID: PMC7612847.

  • * Mohammad M, Alaoui-Ismaili Z, Abdi S, Hermanrud T, Barzanji AF. Lemierre syndrome. Ugeskr Laeger. 2023 Aug 21;185(34). PMID: 37622605.

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.

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.