You took antibiotics for a sinus infection, a urinary tract infection or a stubborn tooth, and the infection cleared. But your gut did not get the memo. A few weeks later you are bloated, crampy and running to the bathroom more than you used to, or not running at all. It is natural to wonder: can antibiotics cause IBS?
The honest answer is that antibiotics may contribute to IBS in some people, but the evidence is still developing, and it is much weaker than the evidence linking gut infections to IBS. Antibiotics clearly disturb the gut microbiome, and many people with IBS have an altered microbiome. Some studies find that people who took more antibiotics are more likely to have IBS. But it is hard to prove that the drug itself is responsible, because people take antibiotics when they are ill, and the illness, the stress and the infection can all affect the gut too.
This guide walks through what the research really shows, how antibiotics change the gut, why other antibiotic-related gut problems can look like IBS, who may be more vulnerable, and what you can do if your digestion changed after a course. Every claim is linked to its source, and where we are working from preliminary data we say so.
What this guide covers
- The short answer: do antibiotics cause IBS?
- What antibiotics do to your gut
- What the research says about antibiotics and IBS
- The infection problem: is it the drug or the illness?
- Antibiotics during a stomach infection
- Childhood antibiotics and later IBS
- Other antibiotic gut problems that look like IBS
- Antibiotics as a treatment for IBS: rifaximin
- Who may be more vulnerable
- What to do if your gut changed after antibiotics
- Should you avoid antibiotics?
- When to see a doctor
- Related reading
- Frequently asked questions
- Sources
The short answer: do antibiotics cause IBS?
Antibiotics have been linked to IBS in several observational studies, but no study has proven that antibiotics cause IBS. What we can say with confidence is that antibiotics disrupt the gut microbiome, that this disruption is a plausible way for IBS to start, and that some people notice IBS-type symptoms after a course.
Here is how to think about the strength of the evidence:
- Strong: antibiotics change the gut microbiome, sometimes for months.
- Moderate: a gut infection can trigger IBS, and treatment with antibiotics during an infection is linked to higher risk of IBS afterward.
- Limited and preliminary: antibiotic exposure itself is associated with higher odds of IBS in a few cohort studies, but the studies are small, early or only presented as conference abstracts.
- Unproven: that taking an antibiotic for an unrelated reason, such as a sinus infection, directly causes IBS in a previously healthy gut.
What antibiotics do to your gut
Your large intestine is home to trillions of bacteria, collectively called the gut microbiome. They help digest fiber, make short-chain fatty acids that feed the gut lining, train the immune system and keep harmful organisms in check. Antibiotics are designed to kill bacteria, and they cannot tell the helpful ones from the harmful ones, so they often reduce the diversity of the whole community.
A well-known study shows how long the effect can last. In 2018, Palleja and colleagues gave 12 healthy men a four-day course of three strong antibiotics (meropenem, gentamicin and vancomycin) and tracked their gut bacteria for six months. They saw a bloom of potentially harmful bacteria and a drop in beneficial ones like Bifidobacterium and butyrate producers. The overall makeup returned close to baseline within about six weeks, but nine species that every participant had before treatment were still undetectable in most of them after 180 days. The authors described it as a mild but long-lasting imprint (Palleja et al., Nature Microbiology, 2018). That was a small study with a very powerful antibiotic combination, so it does not predict what a short course of one common antibiotic will do to you. But it demonstrates that the gut can take a long time to fully rebuild.
Why would that matter for IBS? Researchers have found differences in the gut bacteria of many people with IBS compared with people without it, and a disturbed microbiome is one of the main proposed explanations for how IBS begins. For a broader look at what drives IBS, see our guide on whether IBS can start suddenly in adults.
What the research says about antibiotics and IBS
The studies that look directly at antibiotics and IBS are few, and most are early.
The Swedish birth cohort
A study of 2,853 participants from the Swedish BAMSE birth cohort linked prescription records to IBS at age 24. After adjusting for sex and family socioeconomic status, antibiotic exposure was associated with about 1.5 times the odds of IBS, and the odds rose to about 1.7 times for people who had received six or more prescriptions compared with fewer. The researchers presenting the data cautioned that the findings do not prove antibiotics cause IBS (summary, Medical Dialogues report). This was a conference presentation, so it is preliminary and has not been through the full peer-review process in what I found.
Antibiotics after colonoscopy
A retrospective cohort of more than 400,000 people who had screening colonoscopies, presented as a conference abstract in 2020, found that people given antibiotics in the 14 days afterward had higher odds of later being diagnosed with IBS (adjusted odds ratio 1.77, 95% CI 1.31 to 2.39). Only 0.2% of the cohort received an IBS diagnosis, and sex and age were the only adjustments in the final model, so the result is best seen as a signal worth following up (MDedge report).
A related disease: inflammatory bowel disease
Larger, better-controlled work exists for a different condition. A Danish nationwide registry study published in Gut found that antibiotic exposure was associated with a higher risk of inflammatory bowel disease (IBD) in every age group, with the strongest estimates in older adults (Gut study). That is not IBS, and the diseases are very different, but it supports the broader idea that antibiotics can influence gut health.
I did not find a meta-analysis pooling antibiotic studies for IBS specifically, so there is no solid summary number. That gap is itself an important finding.
The infection problem: is it the drug or the illness?
This is the biggest challenge in studying the question, and it has a name: confounding by indication. People get antibiotics because they have an infection. The infection, the fever, the missed sleep, the stress and sometimes a gut infection are all potential triggers on their own. If more antibiotic users later get IBS, is it the drug or the illness that prompted the drug?
Researchers try to adjust for these factors, but they can never fully separate them in observational data. A few clues help:
- Dose response. If more prescriptions mean higher odds, as in the Swedish cohort, that fits with a drug effect, but it also fits with people who are simply sicker or more prone to infections.
- Timing. If symptoms start soon after a course, the drug is a plausible culprit, but so is the illness.
- Biological plausibility. The known effect of antibiotics on the microbiome makes a causal role plausible rather than proven.
Bottom line: the association is real in some studies, the cause is unproven, and both the drug and the illness could be contributing.
Antibiotics during a stomach infection
The clearest link between antibiotics and IBS comes from the world of gut infections. A major 2017 meta-analysis of post-infectious IBS identified antibiotic therapy during the infection as one of the clinical markers linked to a higher chance of developing IBS afterward, alongside female sex, a clinically severe infection and psychological distress (MDedge coverage). The Rome Foundation lists the same factors in its report on post-infection IBS.
Again, it is hard to separate cause from severity: doctors prescribe antibiotics for gastroenteritis mainly in more serious cases, which are the cases already at higher risk. Many mild stomach infections do not need antibiotics at all, and in some cases they can make things worse. Our guide to post-infectious IBS goes into the numbers: about 10% to 15% of people with infectious gastroenteritis develop IBS within a year.
Childhood antibiotics and later IBS
Early life is a critical time for building a healthy microbiome. The Swedish study followed children from birth, with prescription records starting at ages 9 to 11, and IBS assessed at age 24. The link between repeated antibiotic courses and IBS in young adulthood is interesting because it suggests that early disruption could leave a lasting mark. It is also, again, a single preliminary dataset. It should be taken as a hypothesis for further research, not as a reason to withhold antibiotics from a child who needs them.
Other antibiotic gut problems that look like IBS
Not every gut change after antibiotics is IBS. Several other conditions are linked to antibiotics and can look similar, and some need specific treatment:
- Antibiotic-associated diarrhea. Loose stools are one of the most common side effects of antibiotics. This usually settles within days to a couple of weeks after finishing the course.
- Clostridioides difficile (C. difficile) infection. Antibiotics can allow this bacterium to overgrow. It causes watery diarrhea, belly pain and sometimes fever, and needs medical treatment. If you have severe or persistent diarrhea after antibiotics, tell your doctor, as testing for C. difficile is important. The American College of Gastroenterology guideline does not recommend routine stool pathogen testing in IBS, but a history of recent antibiotics is exactly when doctors will consider it (ACG guideline).
- Small intestinal bacterial overgrowth (SIBO). Bloating, gas and diarrhea from excess bacteria in the small intestine can overlap with IBS. See our article on IBS vs. SIBO for how they differ.
- Yeast overgrowth. Antibiotics can cause thrush or vaginal yeast infections, which are common and treatable, but the claim that gut yeast overgrowth causes IBS is not well supported by good evidence.
- Medication side effects. Some antibiotics cause nausea, cramping or altered bowel habits directly, independent of the microbiome.
The practical point: if your gut changed after antibiotics, do not assume IBS. Ask your doctor to rule out C. difficile and other treatable causes first.
Antibiotics as a treatment for IBS: rifaximin
Here is an interesting twist: antibiotics are also used to treat one type of IBS. Rifaximin is a poorly absorbed antibiotic that stays mostly in the gut. In two large phase 3 trials known as TARGET 1 and 2, about 40.7% of people with IBS-D who took rifaximin 550 mg three times a day for two weeks reported adequate relief of their IBS symptoms, compared with 31.7% on placebo. The U.S. Food and Drug Administration approved rifaximin for IBS-D in May 2015. A follow-up trial, TARGET 3, tested repeat treatment in people whose symptoms returned and found significant benefits compared with placebo, with a similar rate of side effects (TARGET 3 trial record, trial coverage).
A secondary analysis found that rifaximin caused only modest, transient reductions in certain gut bacteria (microbiota analysis). This is a good illustration that it is not antibiotics as a class that cause or fix IBS, but how they act on the gut. Rifaximin is a prescription drug for specific patients, so this is not a reason to ask for antibiotics on your own. Always ask your gastroenterologist whether it could suit you.
Who may be more vulnerable
There is no validated way to predict who will develop IBS after antibiotics, but the research and clinical experience suggest some patterns:
- People who had repeated courses. The Swedish cohort found rising odds with six or more prescriptions.
- People treated for a gut infection. Antibiotics during gastroenteritis is a risk marker for PI-IBS.
- People with existing gut sensitivity. Someone who has mild, unrecognized IBS may find it flares after antibiotics.
- People under high stress or with anxiety or depression. Psychological distress is a risk factor in post-infectious IBS and in IBS onset generally.
- Women. IBS is diagnosed more often in women. Our guide to IBS statistics covers the numbers.
What to do if your gut changed after antibiotics
- Give it a few weeks, but not forever. Mild bloating or loose stools commonly settle within days to a couple of weeks after finishing a course.
- See a doctor if symptoms persist or are severe. Ask about C. difficile, celiac disease, SIBO and other treatable causes, especially if diarrhea is watery or you are getting worse.
- Eat regular, simple meals. Gentle, varied foods, enough water and regular mealtimes support recovery.
- Keep a symptom diary. Note stool type, pain, meals, sleep and stress for two weeks to bring to your appointment.
- Ask your doctor about probiotics rather than guessing. Evidence for specific strains in IBS and antibiotic-associated diarrhea is mixed. Your doctor or a dietitian can suggest whether a particular product is worth trying.
- Eat a variety of plant foods as tolerated. Fiber from different plants feeds a diverse microbiome. If you are sensitive, introduce them gradually, and consider working with a dietitian rather than self-restricting.
- Manage stress and sleep. These affect gut sensitivity regardless of the cause.
- Avoid unnecessary repeat antibiotics. Do not take leftover antibiotics or ask for them for viral illnesses.
If symptoms continue, treatment follows the same principles as for IBS in general, including the low-FODMAP diet under dietitian guidance, gut-directed hypnotherapy, cognitive behavioral therapy and symptom-targeted medication. Our IBS Recovery Roadmap lays out these steps in order.
Should you avoid antibiotics?
No. This is important. Antibiotics save lives and treat serious infections. The possible link to IBS is based on limited, observational evidence, and the risk of untreated bacterial infection is far greater than the possible risk of IBS. Never skip or stop a prescribed antibiotic because of a fear of IBS.
What is reasonable is to use antibiotics when they are needed and not when they are not. Antibiotics do nothing for colds, flu or most sore throats and stomach bugs caused by viruses. Talk with your doctor or pharmacist about whether an antibiotic is really necessary and whether a shorter course or a narrower-spectrum drug is appropriate. That approach protects your microbiome and slows antibiotic resistance.
When to see a doctor
See a doctor promptly if, during or after antibiotics, you have:
- Watery diarrhea several times a day, especially with fever or severe belly pain (possible C. difficile)
- Blood in your stool or black stools
- Unexplained weight loss
- Signs of dehydration, such as dizziness, very dark urine or a dry mouth
- Diarrhea that wakes you at night
- Symptoms that last more than a few weeks or keep getting worse
- New symptoms if you are over 50
Bring a list of every antibiotic you have taken in the past year, with dates, along with your symptom diary. That information can be very helpful.
Related reading
- Post-infectious IBS: how food poisoning can trigger IBS
- Can IBS start suddenly in adults?
- IBS vs. SIBO: are they the same thing?
- How common is IBS? IBS statistics and facts
- How to Recover From IBS
Frequently asked questions
Can antibiotics cause IBS?
They may contribute in some people, but this is not proven. Antibiotics disrupt the gut microbiome, and some studies link antibiotic exposure to higher odds of IBS, but the evidence is limited, mostly observational and hard to separate from the effect of the infection being treated.
How long does it take for the gut to recover after antibiotics?
It depends on the antibiotic and the person. In one small study using a strong three-drug combination, overall gut bacteria returned close to baseline in about six weeks, but some species were still missing after six months. Symptoms such as loose stools after ordinary courses usually settle within days to a couple of weeks.
Can antibiotics cause IBS-D or IBS-C?
Antibiotic-related symptoms more often involve diarrhea, but studies have not established that antibiotics cause one IBS subtype over another. Any type of IBS can follow a disturbance to the gut.
Can antibiotics make existing IBS worse?
Yes, many people report flares after a course, which is understandable given the effect on gut bacteria. Tell your doctor about your IBS when you are prescribed antibiotics, and ask whether the antibiotic is truly necessary.
Are antibiotics used to treat IBS?
Yes, in a specific case. Rifaximin is FDA approved for IBS with diarrhea. In trials about 41% of people on rifaximin had adequate symptom relief compared with about 32% on placebo, and repeat courses can be used if symptoms return. It requires a prescription and is not suitable for everyone.
Should I take probiotics after antibiotics?
The evidence is mixed and depends on the strain and the condition. Some people feel better with certain probiotics, but they are not proven to prevent IBS. Ask your doctor or a dietitian before spending money on one.
Could my symptoms after antibiotics be C. difficile?
It is possible. Watery diarrhea several times a day, belly pain and fever after a course of antibiotics should be checked by a doctor, because C. difficile needs treatment.
Is it safe to stop an antibiotic if I fear it will cause IBS?
No. Always finish a prescribed antibiotic unless your doctor tells you otherwise. The risk of an untreated infection is far greater than the possible risk of IBS.
Sources
- Palleja A, et al. Recovery of gut microbiota of healthy adults following antibiotic exposure. Nat Microbiol. 2018;3(11):1255-1265. Record.
- Antibiotic use during childhood and IBS in young adulthood (Swedish BAMSE cohort, preliminary): Powers Health summary; Medical Dialogues.
- Post-colonoscopy antibiotics and IBS (conference abstract, 2020): MDedge.
- Antibiotic exposure and inflammatory bowel disease (Danish registry): Gut.
- Klem F, et al. IBS after infectious enteritis. Gastroenterology. 2017. MDedge coverage.
- Rifaximin in IBS-D: TARGET 3 record; coverage; microbiota analysis.
- Lacy BE, et al. ACG Clinical Guideline: Management of Irritable Bowel Syndrome. 2021. PubMed.
- NIDDK. Irritable Bowel Syndrome.
Medical note: This article is for education and does not replace advice from your doctor. Never stop a prescribed antibiotic on your own. If you have severe watery diarrhea, blood in your stool, fever, signs of dehydration or symptoms that persist for weeks, see a doctor promptly.


