Antibiotics are known to disturb gut bacteria while people take them. A study from the University of Tartu in Estonia asked a longer question: do medications people took years ago still show up in their gut microbiome? Its answer, for several drug classes, was yes.

The study

The paper was published in mSystems, a journal of the American Society for Microbiology, in September 2025. The team used the Estonian Microbiome cohort: stool samples from 2,509 adults, analyzed by whole-genome sequencing of the bacteria in them. They linked each person's sample to electronic health records holding up to five years of prescription history, so they could compare people who had used a drug in the past with people who had not.

It is an observational study. It shows associations between past drug use and the makeup of gut bacteria, not proof that the drugs caused the differences.

What it found

Past use of medications was associated with the gut microbiome even when the drug had been stopped. The effects of antibiotics, psycholeptics (a class that includes sedatives and antipsychotics), antidepressants, proton pump inhibitors for acid reflux and beta-blockers for blood pressure and heart conditions were detectable several years after use.

The researchers also describe an additive pattern: the more a medication had been used, the stronger its association with the microbiome. Benzodiazepine derivatives and glucocorticoids were among the non-antibiotic drugs with carryover effects.

A subgroup of 328 people gave a second stool sample later. When people started or stopped a medication between the two samples, their gut bacteria changed in the same direction the larger analysis predicted, which the authors say may point to a causal effect.

What it does not show

The study covered prescription drugs recorded in health records, not over-the-counter medicines. It does not show that the microbiome differences caused any symptoms or disease, and it says nothing about whether diet or any product can reverse them. The authors' main point is aimed at other researchers: studies that link the microbiome to a disease may be confounded by medications people took years earlier.

Funding came from the Estonian Research Council, the Estonian Center of Genomics, the Biocodex Microbiota Foundation and the European Molecular Biology Organization.

What it means for a reader

A finding about gut bacteria is not a reason to stop a prescribed drug. Antidepressants, beta-blockers and acid reducers treat real conditions, and the study did not test what happens when people stop them for their gut. A reasonable use of the study is a question for the next appointment: whether a long-running prescription is still needed, and at what dose.

This article reports research and expert guidance. It is not medical advice. Talk to your clinician before changing medication, treatment or a medical diet.

Sources