If your doctor handed you a prescription and you’re now staring at the bottle wondering what it actually does, this article is for you. If you haven’t seen a doctor yet but you’re trying to figure out what’s available, this is also for you — but the conclusion will be the same: don’t self-prescribe. Different IBS subtypes need different drugs, and using the wrong one can make things measurably worse.
This is a clinician-friendly overview of what’s actually used, in plain English.
Important: This article is informational, not medical advice. Every drug below has side effects, interactions, and contraindications. Talk to a doctor before starting, stopping, or changing any medication.
How to read this guide
IBS medications fall into five categories by mechanism:
- Motility modifiers — slow down or speed up the gut
- Antispasmodics — calm cramping
- Gut-targeted antibiotics — change the microbiome
- Neuromodulators — change how the gut nervous system processes pain
- Newer agents — recently approved, specific subtype targets
Within each category, the drug only helps if it matches your subtype (IBS-D, IBS-C, or IBS-M). See our IBS subtype guide if you don’t know yours yet.
For IBS-D (diarrhea-dominant)
Loperamide (Imodium)
The single most common IBS-D rescue medication. It works by slowing gut motility — essentially the opposite of what your gut is doing during a flare. Available over the counter in most countries.
- Best for: Predictable flare situations (before a flight, an important meeting, eating out)
- Onset: 30–60 minutes after dose
- Dose: Typically 2 mg, up to 8 mg/day max for adults
- Watch out: Don’t take with a feverish illness (could indicate infection that needs to clear). Don’t combine with constipating drugs. Will lock up an IBS-C patient for days.
Rifaximin (Xifaxan)
A non-absorbed antibiotic that stays in the gut and changes the microbial population. Prescription only.
- Best for: IBS-D, especially with suspected SIBO (small intestinal bacterial overgrowth) overlap
- Dose: Typical course is 14 days, 1650 mg/day in divided doses
- Onset: Improvement usually 1–2 weeks into the course, lasts months
- Watch out: Expensive in the US (without insurance). Can be repeated if symptoms return. Generally well-tolerated because it doesn’t absorb systemically.
Eluxadoline (Viberzi)
A newer drug specific for IBS-D, works on opioid receptors in the gut without crossing into the brain. Prescription only.
- Best for: Moderate-severe IBS-D not responding to first-line treatments
- Watch out: Not for people without a gallbladder (rare but serious pancreatitis risk). Not for heavy drinkers.
Bile acid binders (cholestyramine, colesevelam)
Used when bile acid diarrhea is suspected to overlap with IBS-D. Up to 30% of people diagnosed with IBS-D actually have some bile acid component.
- Best for: Diarrhea worse in the morning, after fatty meals, or after gallbladder removal
- Watch out: Constipating; can interfere with absorption of other medications and fat-soluble vitamins
For IBS-C (constipation-dominant)
Linaclotide (Linzess)
A guanylate cyclase agonist — pulls water into the bowel and softens stool. Prescription only.
- Best for: Moderate-severe IBS-C
- Onset: Often within a week; full effect at 4–6 weeks
- Watch out: Take on an empty stomach 30 min before breakfast. Diarrhea is the main side effect; doses can be adjusted.
Plecanatide (Trulance)
Similar mechanism to linaclotide. Slightly different side effect profile — some patients tolerate one but not the other. Prescription only.
Lubiprostone (Amitiza)
A chloride channel activator that also draws water into the bowel. Prescription only.
- Best for: IBS-C in women (approved indication); off-label for men
- Watch out: Nausea is common; taking with food helps
Tenapanor (Ibsrela)
A newer drug, blocks sodium absorption to retain water in the bowel.
Magnesium oxide / citrate / glycinate (OTC)
Not technically a “drug,” but worth mentioning. Magnesium pulls water into the bowel and is often the first thing a GI specialist suggests for mild IBS-C.
- Dose: 200–400 mg at bedtime
- Glycinate vs citrate: Citrate is more laxative; glycinate is gentler
- Watch out: People with kidney disease should not take magnesium supplements without supervision.
Polyethylene glycol (Miralax, OTC)
An osmotic laxative — pulls water into the bowel. Often the cheapest, gentlest first-line option for mild constipation.
For both subtypes (or IBS-M)
Antispasmodics — for cramping
Several options work for cramps regardless of subtype:
- Hyoscine (Buscopan) — works on the gut smooth muscle, calms cramps in 15–30 min
- Dicyclomine (Bentyl) — similar to hyoscine, prescription in the US
- Peppermint oil (enteric-coated) — multiple trials show it works for cramping; available OTC
Peppermint oil is interesting — it has IBS-specific evidence (response rates around 60% in trials) and is one of the few “natural” remedies with actual data behind it. Enteric-coated capsules only — uncoated peppermint can cause heartburn.
Low-dose tricyclic antidepressants (TCAs)
Amitriptyline, nortriptyline, desipramine — at doses much lower than for depression (10–50 mg, vs 100–300 mg for depression). They’re called “neuromodulators” in this context.
- Best for: IBS with prominent pain, especially IBS-D (they tend to slow transit slightly)
- Onset: 4–6 weeks for full effect
- Watch out: Anticholinergic side effects (dry mouth, mild sedation, constipation)
SSRIs (selective serotonin reuptake inhibitors)
Sertraline, citalopram, paroxetine. Sometimes used for IBS-C (they can speed gut transit) and for IBS patients with significant overlapping anxiety.
- Onset: 4–6 weeks
- Watch out: Need a doctor; not a standard first-line IBS treatment
What’s NOT a great idea
A few things commonly recommended that don’t have strong evidence:
- Probiotic capsules at random — see our probiotics article. Some strains work, but most marketed products don’t, and the “throw probiotics at it” approach rarely helps.
- Activated charcoal — limited evidence; can absorb medications you actually need.
- Random herbal blends “for IBS” — most are unstudied; some have ingredients that interact with medications.
- Aloe vera juice — laxative effect but no IBS-specific evidence; can cause electrolyte issues.
- Long-term opioid antidiarrheals beyond loperamide — risk-benefit usually doesn’t favor.
Putting it together: a typical treatment ladder
This is a generic example. Your doctor’s actual plan should be personalized.
Step 1 (lifestyle + diet): Low-FODMAP elimination + reintroduction, regular meals, sleep, exercise, stress management. This alone helps ~70% of patients.
Step 2 (first-line meds):
- IBS-D: Loperamide as needed; peppermint oil for cramps
- IBS-C: Magnesium / Miralax; kiwifruit; psyllium with water
Step 3 (prescription if step 1-2 insufficient):
- IBS-D: Rifaximin course; consider antispasmodics
- IBS-C: Linaclotide or lubiprostone
Step 4 (refractory IBS):
- Low-dose TCA or SSRI
- Gut-directed hypnotherapy or IBS-CBT (see our article)
- Consider eluxadoline (IBS-D) or tenapanor (IBS-C) for severe cases
When to definitely involve a doctor
- Any new bowel symptom after age 50
- Blood in stool, unexplained weight loss, fever, night-waking symptoms
- Severe pain that’s new or worsening
- Symptoms not responding to OTC measures after 4 weeks
- Anyone considering prescription IBS medication
Bottom line
There are real, effective medications for IBS — but they’re subtype-specific, side effects matter, and self-prescribing is a bad path. The general principle: start with diet and lifestyle, escalate to OTC adjuncts (loperamide, peppermint oil, magnesium), then prescription medications under a doctor’s care if needed.
This isn’t a condition where you have to “just live with it.” It’s a condition where modern medicine has reasonable tools — they just need to be matched to your subtype and your specific situation.