III. Lifestyle modulators

III. 7 Medications and the Microbiota

From antibiotics to acid blockers to metformin, chronic medications reshape your microbiome to differing degrees, and this chapter shows what you can safely do about the side effects without ever stopping prescribed treatment on your own.

Chapter 7 is a clinical-pragmatic overview. If you take chronic medication – or are considering one – you'll find here how it affects your microbiome[G] and what can be done safely.

One rule above all: never discontinue a prescribed medication on your own initiative for microbiome reasons. Treatment of the underlying disease is the priority. What's here is the scientific background for adjuncts (with treating physician's approval) and side-effect management.

In one sentence

Most drugs affect the microbiome to some extent – Maier et al. 2018 Nature screened ~1000 human drugs in vitro, and 24% inhibited growth of at least one gut bacterial species. [175] Clinical relevance: antibiotics have the most dramatic effect; chronic PPIs cause meaningful dysbiosis[G]; metformin acts partly via the microbiome; NSAIDs trigger gut barrier damage. The recovery mechanism and the time it requires depend on the drug's indication and the duration of use.

Antibiotics

Antibiotics are simultaneously the most effective and most destructive microbiome-level interventions in medicine: within a few days they can drive a 20–40% diversity drop unlike any other drug class. The clinical decision is therefore never "antibiotic versus microbiome" – it is one of necessity and spectrum narrowing. The subsections below cover how a course shifts species composition, how long the system takes to recover, and what you can do to reduce collateral damage.

Effect mechanism on the microbiota

By antibiotic spectrum:

  • Narrow spectrum (e.g., penicillin V, clindamycin) – targeted, less collateral damage
  • Broad spectrum (e.g., amoxicillin/clavulanate, cephalosporins, fluoroquinolones) – wider microbiome shift
  • Anaerobe-specific (e.g., metronidazole, clindamycin) – destroys especially the obligate anaerobes of the colon, the main C. difficile overgrowth risk factor

The effect is immediate: measurable within 24–48 hours. After a 7-day amoxicillin course, microbial diversity[G] drops 20–40%; full recovery time varies by individual.

Recovery timeline

PhaseWhat happensWhat to do
Acute (0–14 days)Significant diversity loss, inflammatory species dominateDon't take a probiotic together with the AB; increased hydration; plenty of fiber (if tolerated)
Early recovery (2–6 weeks)70–85% of microbiome returnsContinue fermented foods[G], prebiotics; reduce stress
Late recovery (3+ months)Some species absent or returned at different ratioLong-term diversity maintenance (chapter 4); second AB course only if justified
1+ yearSome species never fully return, especially after childhood ABTalk to your doctors about maintenance strategy
Clinical deep-dive

The classic Dethlefsen & Relman 2011 PNAS study measured microbiomes 6 months after 2 ciprofloxacin courses in 3 adults: most species returned, but certain taxa permanently disappeared. [033] Clinical relevance: childhood AB exposure has longer-term consequences (allergy, atopy, asthma risk), especially 0–24 months. [216] This doesn't mean withhold AB when indicated – it means avoiding unnecessary AB is valuable.

Probiotic support during antibiotics

Chapters 3 and 11 detail: S. boulardii CNCM I-745 (500 mg/day) and L. rhamnosus GG (10⁹–10¹⁰ CFU/day) are evidence-based choices for AAD prevention. Timing: start with day 1 of AB, continue +3 days after. This is the current scientific consensus; that said, more and more questions are being raised about combining probiotics with antibiotics and about probiotics' possible tendency to predispose to long-term dysbiosis.

A probiotic[G] taken alongside the AB does not reduce the AB's effectiveness against the target infection (the probiotic strain acts in the gut, not at the infection site) – a common misconception.

Proton pump inhibitors (PPIs)

PPIs are among the most over-prescribed drugs in medicine: prescription durations frequently stretch into the decade range long after the original indication has resolved. Microbiome-wise this matters because gastric acid is not only a digestive aid – it is also a barrier that selects against swallowed bacteria. Chronically suppressing that barrier causes meaningful upper-GI shifts, increased C. difficile susceptibility, and nutrient absorption problems. The following subsections unpack these mechanisms, the clinical consequences, and the logic of deprescribing.

Mechanism

PPIs (omeprazole, pantoprazole, esomeprazole, etc.) strongly suppress gastric acid production. But gastric acid is a natural barrier protecting the rest of the gut from swallowed bacteria. When this barrier weakens, two things happen:

  • Upper GI microbial overgrowth – oral and gastric flora can appear in the small intestine
  • Increased C. difficile and Salmonella susceptibility – swallowed pathogens get through

Clinical consequences

Imhann et al. 2016 Gut – large Dutch cohort: PPI users' microbiomes significantly differ from non-users, with Streptococcaceae and upper-GI species enrichment. [012] Multiple cohort studies (CDC, US; meta-analyses) consistently show 1.3–2× increase in C. difficile, pneumonia, and fracture risk with long-term use.

When necessary, when worth tapering?

Necessary indications (including long-term):

  • Severe GERD (Los Angeles C/D grade)
  • Barrett's esophagus
  • Active gastric or duodenal ulcer
  • H. pylori eradication (short-term)
  • NSAID-related gastroprotection (in high-risk patients)

Often unnecessarily, or long-term-prescribed:

  • Mild-moderate GERD symptoms[G] instead of lifestyle modification
  • "Prevention" in low-risk patients
  • Courses started without indication and never stopped

How to taper (only under medical supervision):

  • Gradual reduction (not abrupt stop – rebound acid production)
  • H2-blocker transition (famotidine) often helps
  • Lifestyle: weight loss, meal timing (last meal 3+ hours before bed), reduction of triggers (coffee, spicy, alcohol, chocolate)
  • Sleep position: left side, raised head of bed
Clinical deep-dive

AGA Best Practice Advice 2022 (Targownik et al.) provides a concrete PPI deprescribing protocol: annual review for every chronic PPI user, discussion of indication and maintenance need. [085] M.D. note (Munar): PPI rebound (acid hypersecretion after stopping) can last 2–4 weeks – this doesn't mean "PPI is needed," it means the wean is structured.

NSAIDs

Non-steroidal anti-inflammatories (ibuprofen, naproxen, diclofenac, aspirin) cause gut barrier[G] damage via multiple mechanisms: COX-1 inhibition → reduced prostaglandin production → small bowel mucosal inflammation[G] (NSAID enteropathy), plus microbiome dysbiosis.

What does this mean in practice?

  • Occasional NSAID (1–2 times/week) → minimal consequence
  • Chronic daily NSAID (e.g., chronic pain, athletic injury management) → meaningful risk
  • High-dose aspirin (cardiovascular protection 81 mg/day is not high, but occasionally 325 mg daily) → GI bleeding risk

What can be done?

  • Consider alternatives: acetaminophen (paracetamol) for chronic pain has lower GI risk; topical NSAID (gel, cream) avoids systemic absorption
  • PPI protection in high-risk patients (elderly, ulcer history, chronic NSAID + anticoagulant)
  • Microbiome support during chronic NSAID use: increased fiber, probiotic consideration (clinical evidence building), and FMT[G] in severe dysbiosis

Metformin

Metformin is first-line T2DM treatment – and interestingly, its effectiveness is partly mediated through the microbiome. Forslund et al. 2015 Nature showed: some of the microbiome differences observed in T2DM patients are actually metformin[G] effects, not disease effects. [174]

What does metformin do to the microbiome?

  • Increases Akkermansia muciniphila[G] proportion (favorable)
  • Shifts the SCFA[G]-producing profile
  • Decreases Bacteroides fragilis (affecting bile acid metabolism)

Microbiome explanation for classic side effects (diarrhea, bloating): the change is an initial adaptation phase. Gradual dose escalation (250 mg → 500 mg → 1000 mg) significantly reduces it. Extended-release (XR) formulation is also better tolerated.

B12 deficiency: chronic metformin causes it in 10–30%, partly microbiome-mediated. Annual B12 level check recommended.

GLP-1 receptor agonists[G] (Ozempic, Wegovy, Mounjaro)

Semaglutide[G] (Ozempic, Wegovy) and tirzepatide[G] (Mounjaro) are the fastest-spreading drugs for type 2 diabetes and obesity. GLP-1[G] (glucagon[G]-like peptide-1) is a gut hormone secreted by intestinal L-cells in response[G] to eating: it slows gastric emptying, enhances the insulin[G] response, and reduces appetite. These drugs mimic that hormone.

What's the microbiome link? ( open) In two directions. First, the gut bacteria's fiber-fermentation[G] "by-product" (butyrate[G] and other SCFAs) naturally stimulates your own GLP-1 production – so a fiber-rich diet is the "soft" counterpart of the drug on this axis. Second, early (largely animal) data suggest part of semaglutide's metabolic effect may also act through changes to the gut microbiome. [246] Human evidence for the latter is still weak – treat it as a hypothesis.

Muscle protection. 25–40% of the weight lost on GLP-1 agonists can be muscle mass. That's why protein intake (1.2–1.6 g/kg/day) and resistance training are not optional but an integral part of treatment.

Side effects. Most common are GI complaints (nausea, bloating, constipation) – often transient and eased by gradual dose escalation. The slowed gut motility[G] can also shift microbiome composition.

Starting, dosing, and stopping the drug is always the physician's call – this chapter provides background, not a prescription.

🔬 Serendipitous discovery

GLP-1 drugs owe their existence to a venomous lizard. In the 1980s a researcher was curious how the Gila monster (Heloderma suspectum) can eat only a few times a year. In 1992, John Eng isolated a peptide from its venom (exendin-4) that resembles human GLP-1 but – as a fortunate "accident" – resists rapid breakdown, so it acts for hours. This became the first GLP-1 agonist (exenatide, 2005), and later today's semaglutide and tirzepatide. [243]

Antipsychotics

Second-generation antipsychotics (olanzapine, quetiapine, clozapine, risperidone) have metabolic syndrome[G] and weight gain as prominent side effects. The mechanism is partly microbiome-mediated – animal studies and small human studies show Firmicutes[G] shifts and LPS[G] elevation.

What can be done (while maintaining treatment)?

  • Dietary awareness (especially carbohydrate intake)
  • Movement (challenging for many patients, but meaningful)
  • Annual metabolic panel review (HbA1c[G], lipids, BMI, waist circumference)
  • Probiotic or prebiotic[G] experimentally – discuss with the psychiatrist

Drug discontinuation is never an option on patient self-initiative – disease recurrence is far worse than the side effect.

Hormonal agents

The relationship between sex hormones and the microbiome runs in both directions: estrogen[G] and progesterone[G] levels influence species composition (especially Lactobacillus[G] dominance in the vaginal microbiome and the activity of β-glucuronidase-producing colonic bacteria), while the microbiome itself participates in estrogen recycling – the so-called estrobolome. Hormonal therapies tilt this balance – generally less dramatically than antibiotics, but with clinically measurable effects under long-term use. The subsections below cover oral contraceptives, hormone replacement therapy, and drugs affecting the androgen axis.

Oral contraceptives and HRT

The estrogen-microbiome link ("estrobolome") is an interesting area of recent years. Intestinal estrogen reabsorption is regulated by microbial β-glucuronidase activity – meaning your microbiome influences your estrogen level and vice versa. [218]

Clinical relevance:

  • Oral contraceptive use can cause meaningful microbiome shifts, but usually not at clinically significant magnitude
  • HRT (post-menopause hormone replacement) longer-term microbiome effects under investigation
  • In IBD[G] patients, contraceptive use carries modestly elevated activity risk – discuss with treating physicians

Hormone replacement elsewhere

Thyroid hormone (levothyroxine[G]) absorption can be affected by gut microbiome signature; this explains why some patients appear "dose-resistant."

Chemotherapy

Chemotherapy has enormous effects on both the gut mucosa (mucositis) and the microbiome. Two directions:

Side-effect reduction: probiotic support (LGG, S. boulardii) for chemotherapy-associated mucositis and diarrhea – limited but existing evidence. AGA 2020 recommendation is cautious: only in immunocompetent patients, decided by the treating oncologist. FMT support is in the experimental phase.

Oncology response predictor: see chapter 3 – checkpoint inhibitor therapy effectiveness is affected by microbiome signature. Clinical implication in oncology care: avoid unnecessary AB during chemo.

Clinical deep-dive

Pre- and post-chemo microbiome signature measurement is currently research-level; the Vetizou et al. 2015 Science foundational work has built the evidence base. [167] In clinical practice: prolonged antibiotic use during chemo worsens outcomes – discuss with the treating oncologist.

Other important drug groups (brief overview)

  • Antidepressants (SSRIs[G]): serotonin[G] mediation is partly microbiome-related; chronic use mildly affects serotonin-producing microbial species
  • Statins: small microbiome shifts, low clinical relevance
  • Antihypertensives (ACEi, ARBs, calcium channel blockers): variable and small microbiome effects
  • Bisphosphonates (osteoporosis): GI side effects are gut-microbiome relevant

Relevant supplements and vitamins from a microbiome perspective

The vitamin and supplement market is huge, and most products' microbiome effect is overstated. The brief overview below focuses on where there is meaningful evidence.

Vitamin D. Well-known modulator of gut mucosal immune function and gut barrier integrity. Most European adults are at subclinically insufficient levels by late winter. Clinical deep-dive: 2000 IU/day supplementation October–March is usually enough; higher dose or year-round use is guided by serum level measurement but, except in a few specific cases, is not recommended. From microbiome perspective, Faecalibacterium prausnitzii[G] and other butyrate producers show abundance-positive correlation with adequate vitamin D level. [211]

Vitamin B12 (cobalamin). Some gut bacteria produce B12, but this is not absorbed in the small intestine (not accessible from the colon). Vegan/vegetarian diet and chronic PPI, metformin users are prone to B12 deficiency. Indication for supplementation: blood level measurement + lifestyle/pharmacological risk. Form: cyanocobalamin or methylcobalamin.

Omega-3 fatty acids[G] (EPA + DHA). Anti-inflammatory effect, indirect microbiome benefit via gut barrier integrity and SCFA production support. Clinical deep-dive: 1–2 g EPA+DHA/day documented to reduce IBD activity and depressive symptoms; microbiome shift measurable within 8 weeks (more Bifidobacterium[G], Roseburia). Marine (fish oil) or algae-based form. [066]

Magnesium. Magnesium deficiency is common and can lead to gut motility problems, muscle cramps, sleep disturbance. Magnesium bisglycinate form is well tolerated, magnesium oxide tends to cause diarrhea (can be useful as side effect for constipation). Microbiome effect indirect – via gut motility improvement.

Vitamin K2 (menaquinone, MK-7). Colonic bacteria produce part of vitamin K; K2 deficiency may be suspected after long antibiotic courses. Due to bone and vascular effects, natural dietary sources (natto, hard cheeses) or MK-7 supplement are good forms.

Inulin[G], FOS, GOS (prebiotic fibers as supplements). See chapter 4 – obtainable from diet, as supplement 5–10 g/day is the starting dose. PHGG (partially hydrolyzed guar gum) is often better tolerated by IBS[G] patients than inulin.

What not to take with a "microbiome-boosting" label:

  • "Detox" packages, colon cleansing teas – no evidence, can cause harm
  • High-dose vitamin mega-complex (without deficiency measurement) – money waste or hyperdose toxicity
  • Generic "gut-friendly" multi-strain probiotic without strain designation (see chapter 11 detailed table)
  • "Cell-renewing" or "epigenetic" premium packages – marketing price

Surgical context – medications in the perioperative period

Before and after surgery, several medication changes often happen, and the microbiome effect doesn't always reach the planning table. Some common considerations:

Prophylactic antibiotic. As part of surgical protocol, 1 dose (or 24-hour) AB prophylaxis is recommended before almost every surgical procedure. This is warranted, but the microbiome effect (transient diversity decrease, C. difficile risk) is realistically accountable. S. boulardii co-administration to reduce diarrhea risk is considerable – coordinated with surgeon.

PPI in the perioperative period. Stress ulcer prevention is justified during ICU stay. Continuation beyond 4–8 weeks post-op is to be re-evaluated – patients often stay on PPI longer than necessary. GP follow-up review is warranted.

Opioids and gut motility. Postoperative opioid use (even for 24–72 hours) causes gut paralysis; this through microbiome shift can leave prolonged diarrhea, constipation, SIBO[G] risk. Goal: switch to non-opioid analgesia as early as possible.

Bariatric surgery special considerations. After gastric bypass and sleeve gastrectomy, the microbiome transforms long-term (up to 1–2 years). Vitamin and mineral supplementation is mandatory (B12, D, iron, calcium), and the bariatric surgical dietitian's protocol is the leading guide.

Colorectal surgery. Colon segment resection changes microbiome function. Postoperative nutritional rehabilitation and probiotic supplementation are decided by the surgical team. After IBD surgery, VSL#3 / De Simone formula is evidence-based for pouchitis[G] prevention (chapter 11).

Clinical deep-dive

Perioperative microbiome management is not yet standard clinical practice, but three principles protect the patient:

  1. Indication-driven AB prophylaxis: only per protocol, only as long as needed
  2. PPI tapering within 4–8 weeks if no active indication remains
  3. Early mobilization and normal nutrition protocol as soon as surgical status allows – long fasting rapidly worsens microbiome diversity [235]

What you can do tomorrow

  1. Antibiotic course: ask your doctor whether it's truly needed (don't decide yourself). If yes, S. boulardii CNCM I-745 or LGG from day 1.
  2. Chronic PPI: talk to your doctor – is it still needed? Annual review is appropriate.
  3. Chronic NSAID: consider alternatives (acetaminophen, topical, physiotherapy) – with your treating physician.
  4. New medication start: ask the prescriber or pharmacist about microbiome/GI side effects and the option of gradual introduction.
  5. Multiple chronic meds: annual pharmacist deprescribing review – especially in the elderly.
⚠️ When to see a doctor
  • Diarrhea persisting 2 weeks after AB → C. difficile test (stool GDH/toxin)
  • Never discontinue PPI on your own – medical supervision
  • NSAID side effect (gastric pain, melena, black stool) → urgent
  • New drug + unusual GI symptom → prescriber
  • Severe diarrhea / mucositis during chemo → oncology center + FMT

Detailed red flags: Appendix V When to See a Doctor chapter.

What's next

Chapter 8 addresses life stages – your microbiome isn't the same in infancy, adulthood, and old age. Knowing age-specific patterns helps with your own and family members' microbiome questions.

Authors:
PG
Dr. Patay Gábor
physician, microbiota specialist
BA
Dr. Bezzegh Attila
medical director, clinical microbiologist
AM
Dra. Anna Munar
physician, exposome specialist
MicroBiome Bank — medically reviewed professional content. Last updated: 2026.