Past medication use leaves lasting marks on the gut microbiome, Estonian study finds
Drugs that people stopped taking years ago may still be reflected in the make-up of their gut bacteria, according to researchers at the University of Tartu Institute of Genomics. Using stool samples and prescription records from more than 2,500 people, the team found that most of the medications examined were associated with microbiome differences, and a substantial number left detectable signatures long after use had ended.
A large cohort with long prescription histories
The analysis drew on the Estonian Microbiome cohort, part of the Estonian Biobank. Because participants' stool samples could be matched to electronic prescription records, the researchers could look beyond current drug use and ask whether medicines taken well before sampling were still visible in the microbial community. The work, led by Dr Oliver Aasmets with Professor Elin Org as corresponding author, was published in mSystems in 2025.
Antibiotics are already known to disrupt gut microbes. The Tartu analysis suggests the issue is much broader. Antidepressants, beta-blockers, proton pump inhibitors and benzodiazepines were all linked to differences in microbiome composition. According to Aasmets, past drug use turned out to be a surprisingly strong factor in explaining differences between individuals.
Benzodiazepines comparable to broad-spectrum antibiotics
One of the more notable results concerned benzodiazepines, commonly prescribed for anxiety. Their association with microbiome change was comparable in size to that seen with broad-spectrum antibiotics, which are known to alter microbial communities substantially.
The effects also varied within a drug class. Diazepam and alprazolam are both benzodiazepines used for similar purposes, yet they appeared to differ in how strongly they were linked to changes in gut bacteria. This suggests that class-level groupings may hide meaningful differences between individual compounds.
Checking whether the drugs themselves drive the changes
A cross-sectional association cannot show whether a drug alters the microbiome or whether people who take it differ in other ways, such as underlying illness. To address this, the team collected further stool samples from a smaller group of participants and examined how their microbiomes shifted when they started or stopped particular medications.
The shifts were predictable, which supports a contribution from the drugs themselves. The researchers were able to confirm lasting effects for several categories, including proton pump inhibitors, selective serotonin reuptake inhibitors (SSRIs) and certain antibiotics, such as combinations of penicillins and macrolides. The follow-up group was small, however, so these confirmations rest on limited numbers.
Implications for microbiome research
The main practical consequence is for study design and interpretation. Microbiome studies often adjust for current medication only. If earlier prescriptions are ignored, a microbial difference might be attributed to a disease or lifestyle factor when past drug exposure contributed to it. Prescription history, where available, may therefore need to be treated as a potential confounder; the paper's title describes medications used years before sampling as a hidden confounder.
The findings come with clear limits. The study does not show that the persistent changes are harmful or that they lead to particular health problems. Nor does it establish how long each effect lasts, or the mechanisms by which drugs not designed to target bacteria alter microbial communities.
Org described the work as a systematic evaluation of long-term medication effects using real-world health records, and said the team hopes researchers and clinicians will take medication history into account when interpreting microbiome data. Larger longitudinal studies with repeated sampling, and work in other populations, would help show which of the observed effects are causal and whether any have consequences for health.
Source: Common medications may secretly rewire your gut, with effects lasting for years (ScienceDaily: top science, 23 November 2026).
Image: AI-generated illustration.
Working on this topic? Find a journal for your research or join the discussion on Scholars Post.


