8 Common Medications That Can Be Surprisingly Tough on an IBD Gut

You may be aware that stress or certain foods can affect your inflammatory bowel disease (IBD). But did you know that some medications — including those that you can get over-the-counter — could also add to your symptoms?
Certain meds are known for causing gastrointestinal (GI) side effects that you may already be dealing with as part of your Crohn’s disease or ulcerative colitis (UC). Others could affect your gut microbiome or have other effects that could make a flare more likely. In both cases, understanding the risks and talking with your gastroenterologist can help you make better-informed choices and sidestep any surprises.
So, which medications should you be wary of? Here are eight drugs to be careful with when you have IBD.
1. NSAIDs
“The higher the frequency, the greater the risk,” says Kelsey Able, DO, a gastroenterologist at Consultants in Gastroenterology and a supervising clinical practitioner at Kansas City University College of Osteopathic Medicine in Kansas City, Missouri.
In certain situations, your doctor might decide that the benefits of a certain NSAID may outweigh the risks. “Low-dose aspirin for cardiovascular reasons is generally okay. And in pregnant patients with IBD, we recommend two low-dose aspirin in collaboration with obstetrics and gynecology to prevent preeclampsia after week 12 of pregnancy,” says Iana Stonier, MD, a codirector of the inflammatory bowel disease center at Henry Ford Health in Detroit.
Next up video playing in 10 seconds
6 Ultra-Processed Foods to Avoid if You Have IBD
2. Certain Antibiotics
3. Proton Pump Inhibitors (PPIs)
If you’re struggling with acid reflux, let your gastroenterologist know. They may start by recommending lifestyle changes or a histamine 2 (H2) blocker like famotidine (Pepcid) or ranitidine (Zantac), Dr. Able says.
If those options don’t give you the relief you need, you can talk about ways to use a PPI as safely as possible. “We may prescribe one for short-term use. It’s important to use the lowest dose with maximum effect,” says Stonier.
4. Antidiarrheal Meds
If you’re having trouble with urgency or loose stools, let your gastroenterologist know. Together you can decide if an antidiarrheal is appropriate for you, and if so, how much to take.
5. Laxatives
6. GLP-1s
7. Opioid Pain Relievers
If you’re struggling with chronic pain, let your doctor know so you can discuss your options. Pain that’s related to your Crohn’s or UC in particular could be a sign that your IBD isn’t well-controlled, Stonier says. In that case, you and your gastroenterologist can talk about making changes to your treatment plan.
8. Magnesium Supplements
- Hijos-Mallada G et al. NSAIDs, Gastrointestinal Toxicity and Inflammatory Bowel Disease. Gastroenterología y Hepatología. March 2022.
- Cohen-Mekelburg S et al. The Association Between Non-Steroidal Anti-Inflammatory Drug Use And Inflammatory Bowel Disease Exacerbations: A True Association Or Residual Bias? The American Journal of Gastroenterology. November 2022.
- Hijos-Mallada G et al. NSAIDs, Gastrointestinal Toxicity and Inflammatory Bowel Disease. Gastroenterología y Hepatología. March 2022.
- Zhang Y et al. Association Between Antibiotic Use for Nongastrointestinal Infections and Inflammatory Bowel Disease Flare-Ups: A Self-Controlled Case Series Study. The American Journal of Gastroenterology. January 13, 2026.
- Liang Y et al. Effects of Proton Pump Inhibitors on Inflammatory Bowel Disease: An Updated Review. World Journal of Gastroenterology. June 7, 2024.
- Other Treatments. Crohn’s & Colitis UK. December 2023.
- Constipation. Crohn’s & Colitis UK. December 2023.
- Chang L et al. American Gastroenterological Association-American College of Gastroenterology Clinical Practice Guideline: Pharmacological Management of Chronic Idiopathic Constipation. Gastroenterology. June 2023.
- Colwill M et al. Glucagon-Like Peptide-1 (GLP-1) Receptor Agonists in Inflammatory Bowel Disease: Mechanisms, Clinical Implications, and Therapeutic Potential. Journal of Crohn’s & Colitis. September 2025.
- Jablońska B et al. Nutritional Status and Its Detection in Patients with Inflammatory Bowel Diseases. Nutrients. April 20, 2023.
- Pain Management for IBD Patients. Crohn’s & Colitis Foundation.
- Magnesium Glycinate: Is This Supplement Helpful for You? Mayo Clinic. February 7, 2024.

Kristina D. Carter, PharmD
Medical Reviewer
Kristina D. Carter, PharmD, is a clinical pharmacist and freelance health writer who currently works in a managed care setting, performing quality audits on utilization management ...

Marygrace Taylor
Author
Marygrace Taylor is an award-winning freelance health and wellness writer with more than 15 years of experience covering topics including women’s health, nutrition, chronic conditi...