A study of more than 2,500 people in Estonia, published in mSystems in 2025, found that commonly prescribed medications can alter the composition of gut bacteria, with some changes remaining detectable years after treatment has ended.
The work came from the University of Tartu Institute of Genomics and used the Estonian Biobank, which links each person's gut microbiome sample to their medical records.
What the study found
Researchers looked at 186 different drugs. Of those, 167 were linked to some kind of shift in the gut microbiome. And 78 still showed effects long after people had stopped taking them.
The strongest and longest-lasting fingerprints came from broad-spectrum antibiotics such as penicillins and macrolides.
Also read: A simple light box could nearly double your chances of beating depression
But several non-antibiotic drugs showed similar staying power.
These included antidepressants, beta-blockers for high blood pressure, and benzodiazepines used for anxiety and sleep.
The list also included proton pump inhibitors, the stomach-acid drugs sold under names like Prilosec and Nexium.
The authors noted that for antibiotics, benzodiazepines and antidepressants, traces of the drug's effect on the microbiome lingered.
Also read: Going to bed at different times could double your risk of heart attack
They could still be detected more than three years after people had stopped using them.
Why it may matter for your gut
The microbiome is the community of bacteria and other microbes that live in the intestines.
It helps digest food, trains the immune system, and makes vitamins and short-chain fats the body uses.
When that mix is knocked off balance, other research has linked the disruption to issues with digestion, mood and metabolism.
Also read: The daily aspirin for heart health that millions take may not be recommended for most
The paper did not test whether these specific lasting changes actually make people sick.
The team also said past drug use turned out to be a surprisingly strong factor in explaining why one person's microbiome looks so different from another's.
That, they argue, means future microbiome studies may need to ask about pills taken years ago, not just about current prescriptions.
How to support your gut after a course
The findings are not a reason to stop a prescription on your own.
Also read: Parents who vape may be putting their teenagers at greater risk, study finds
The drugs in the study are used for serious reasons, from infections to depression, and stopping them without medical advice can be harmful.
If you have just finished a course of antibiotics, there are gentler ways to support the gut in the weeks that follow.
Gastroenterologist Michael Passarella at the University of Alabama at Birmingham says a diverse, fiber-rich diet helps the gut bounce back more quickly.
He recommends plenty of fruits and vegetables.
Also read: Hormone drugs found in kids' toothpaste: check your bathroom cabinet
He also points to fermented foods as natural sources of probiotic bacteria, naming yogurt with live cultures, kimchi, sauerkraut, miso and kombucha.
For most people, Passarella says the microbiome returns close to its baseline within two to eight weeks of finishing antibiotics, though some subtle changes can linger.
Anyone worried about gut symptoms, or about long-term medication use, should bring it up with the doctor who prescribed the drug.
This article is made and published by Ida-Marie Palm Varbæk, who may have used AI in the preparation.
