Medication-induced diarrhea is one of the most common drug side effects, and in most cases you can manage it without stopping the medication that’s causing it. The approach depends on which drug is responsible, how severe your symptoms are, and how long you’ve been dealing with them. A combination of timing adjustments, dietary changes, hydration, and sometimes over-the-counter treatments can make a real difference.
Which Medications Cause Diarrhea Most Often
Antibiotics are the most well-known culprits. They kill harmful bacteria but also wipe out beneficial gut bacteria, disrupting the balance your digestive system relies on. This can happen with nearly any antibiotic, and the diarrhea sometimes starts days into a course or even after you’ve finished it.
Metformin, widely prescribed for type 2 diabetes, causes diarrhea in a significant number of people. The immediate-release version is more likely to cause gut problems than the extended-release formulation. Interestingly, metformin-related diarrhea can develop even after years of taking the drug without issues.
Other common offenders include magnesium-containing antacids, NSAIDs like ibuprofen and naproxen, chemotherapy drugs, immune-suppressing medications, and heartburn medications such as omeprazole and lansoprazole. If your diarrhea started shortly after beginning a new medication or changing a dose, the drug is a likely cause.
Adjust How and When You Take Your Medication
One of the simplest fixes is checking whether your medication should be taken with food. Taking pills with a meal can buffer your stomach and slow the drug’s impact on your gut. That said, some medications (particularly certain antibiotics) absorb better on an empty stomach, so follow the label directions. Taking a drug with food when the label says otherwise can reduce its effectiveness.
For metformin specifically, switching from the immediate-release to the extended-release version often reduces or eliminates diarrhea. If you’re on a high dose, your doctor may temporarily lower it and then gradually increase it back up over a few weeks, giving your gut time to adjust. In clinical case reports, patients who had suffered chronic diarrhea from metformin for months or even years saw dramatic improvement within one to two weeks of pausing the drug, which confirmed it was the source.
Never stop a prescribed medication on your own, but do call your prescriber’s office and describe what’s happening. They can often adjust the dose, change the formulation, or switch you to an alternative that’s easier on your digestive system.
Foods and Drinks to Avoid
What you eat while dealing with medication-induced diarrhea matters more than most people realize. The National Institute of Diabetes and Digestive and Kidney Diseases recommends avoiding several categories that can worsen loose stools:
- Caffeine: coffee, tea, and caffeinated soft drinks speed up your gut
- Alcohol: irritates the digestive tract and promotes fluid loss
- High-fat foods: fried foods, pizza, and fast food are harder to digest
- High-sugar foods and drinks: fruit juices, candy, and sweetened beverages containing fructose can pull water into your intestines
- Sugar alcohols: found in sugar-free gum and candies, these are notorious for causing loose stools
- Dairy: your ability to digest lactose can be temporarily impaired during and after a bout of diarrhea, sometimes for a month or more
Most experts no longer recommend highly restrictive diets like the old BRAT diet (bananas, rice, applesauce, toast) as a formal treatment plan. Instead, return to your normal diet when you feel ready, simply avoiding the triggers listed above until things settle down.
Staying Hydrated
Diarrhea pulls water and electrolytes out of your body quickly. If you’re having multiple loose stools a day, plain water alone isn’t enough because it doesn’t replace the sodium and potassium you’re losing. Sports drinks can help, but they’re often high in sugar, which can make diarrhea worse.
A simple homemade oral rehydration solution works well: mix 4 cups of water with half a teaspoon of table salt and 2 tablespoons of sugar. Sip it throughout the day rather than drinking large amounts at once. Signs of dehydration to watch for include dark urine, dizziness when standing, dry mouth, and feeling unusually thirsty or fatigued.
Over-the-Counter Options
Loperamide (sold as Imodium) is the most effective OTC option for slowing diarrhea. The standard adult dose is two tablets or capsules (4 mg) after the first loose stool, then one tablet (2 mg) after each subsequent loose stool. The OTC tablet maximum is 4 tablets in 24 hours. It works by slowing the movement of your intestines, giving your body more time to absorb water.
There’s one critical exception: do not use loperamide if your diarrhea is caused by a bacterial infection, particularly C. difficile, which can develop after antibiotic use. Slowing the gut when a toxin-producing bacteria is present can make the infection significantly worse. If your antibiotic-associated diarrhea is severe, watery, accompanied by fever, or has blood in it, skip the loperamide and contact your doctor.
Bismuth subsalicylate (Pepto-Bismol) is a gentler alternative. Adults can take 2 tablets every 30 minutes to an hour as needed, up to 16 tablets in 24 hours. It works differently from loperamide, coating the intestinal lining and reducing inflammation rather than slowing gut movement. It can temporarily turn your tongue and stool black, which is harmless.
Probiotics for Antibiotic-Related Diarrhea
If antibiotics are the cause, probiotics have the strongest evidence behind them. A systematic review and meta-analysis published in the American Journal of Gastroenterology found that two strains in particular stood out for preventing antibiotic-associated diarrhea: Saccharomyces boulardii (a beneficial yeast) and Lactobacillus rhamnosus. Both showed consistent benefits across multiple studies with very low variability in results.
Look for supplements or foods that specifically list these strains on the label. Start taking the probiotic as soon as you begin your antibiotic course rather than waiting for diarrhea to develop. Take the probiotic a few hours apart from your antibiotic dose so the antibiotic doesn’t immediately kill the beneficial organisms. Continue for at least a few days after finishing your antibiotic to help your gut flora recover.
Warning Signs That Need Medical Attention
Most medication-induced diarrhea is uncomfortable but not dangerous. However, certain symptoms signal something more serious. Contact your doctor if your diarrhea hasn’t improved after two days, you notice blood or black coloring in your stool, you develop a fever above 101°F (38°C), or you have severe abdominal or rectal pain. For children, the threshold is lower: seek care if diarrhea doesn’t improve within 24 hours, as dehydration develops much faster in small bodies.

