Medicines that you stopped taking years ago can still influence the bacteria living in your gut. A large study from the Institute of Genomics at the University of Tartu found that many commonly prescribed medications cause lasting changes in the gut microbiome, even long after people stop using them.
The gut microbiome is the large community of bacteria and other microorganisms that inhabit the digestive tract. These microbes play an important role in digestion, immune function and overall health. Although antibiotics are well known for disrupting gut bacteria, the new findings suggest that many other medications may also have effects that persist for years.
To study these links, researchers examined stool samples and prescription histories of more than 2,500 participants in the Estonian Microbiome Cohort of the Estonian Biobank. They found that most of the drugs studied were associated with changes in gut bacteria. Even more surprising, a substantial number left detectable microbial “fingerprints” years after patients stopped taking them.
Common medications cause lasting changes in gut bacteria
The results go far beyond antibiotics. Antidepressants, beta blockers, proton pump inhibitors and benzodiazepines were all linked to differences in the gut microbiome.
These medications are widely used to treat everyday health problems. Beta blockers are commonly prescribed for high blood pressure and certain heart conditions, while proton pump inhibitors reduce stomach acid and are frequently used to treat acid reflux. Benzodiazepines are often prescribed to treat anxiety, and antidepressants help manage depression and other mental health problems.
“Most microbiome studies only consider current medications, but our results show that past drug use may be just as important as a surprisingly important factor in explaining individual differences in the microbiome,” said lead author Dr. Oliver Aasmets.
This finding suggests that focusing only on the medications a person is currently taking could overlook an important part of their gut health history. Previous prescriptions could help explain why the composition of gut bacteria differs so much from person to person.
Anti-anxiety medications show effects comparable to antibiotics
One of the most striking findings involved benzodiazepines, a class of drugs commonly used to treat anxiety.
Researchers found that these drugs were associated with changes in the gut microbiome comparable to those seen with broad-spectrum antibiotics. These antibiotics target a wide variety of bacteria and are known to significantly alter the microbial communities living in the digestive system.
Researchers also found that drugs within the same drug class did not necessarily produce the same effects. For example, diazepam and alprazolam are both benzodiazepines used to treat similar conditions, but they appear to differ in how they disrupt gut bacteria.
This suggests that the effects of medications on the microbiome may depend not only on the type of medication taken, but also on the specific medication.
Gut bacteria can change when medications are started or stopped
To determine whether the drugs were actually contributing to these microbial changes, the researchers collected additional stool samples from a smaller group of participants.
By examining how the microbiome changed when people started or stopped certain medications, the team identified predictable changes in gut bacteria. These results provided further evidence that the medications themselves contributed to the changes, rather than simply being associated with differences already present in patients.
Although the number of participants in this follow-up analysis was relatively small, researchers were able to verify lasting effects associated with several categories of medications. These included proton pump inhibitors, selective serotonin reuptake inhibitors, and certain antibiotics, including combinations of penicillins and macrolides.
Selective serotonin reuptake inhibitors, often called SSRIs, are a widely prescribed type of antidepressant. Macrolides are a class of antibiotics used to treat various bacterial infections.
Why your medication history may be more important than previously thought
The findings highlight an important consideration for researchers studying the relationship between gut bacteria and disease. Differences in the microbiome may reflect not only a person’s current health status and medication use, but also treatments received years earlier.
If previous medications are not taken into account, scientists could wrongly attribute some microbial differences to a disease or other health factor when previous exposure to a drug could have contributed.
The results also highlight how much remains to be understood about the long-term relationship between medications and the gut microbiome. Although the study identified persistent microbial changes, these results do not establish that these changes are necessarily harmful or that they lead to specific health problems.
“This is a comprehensive systematic assessment of the long-term effects of drugs on the microbiome using real medical records,” said corresponding author Professor Elin Org. “We hope this will encourage researchers and clinicians to consider medication history when interpreting microbiome data.”
Gn Health

