There is no single best medication for IBS because the right choice depends entirely on your primary symptom pattern. IBS with constipation (IBS-C) and IBS with diarrhea (IBS-D) require fundamentally different treatments, and what works well for one subtype can make the other worse. The medications with the strongest clinical evidence fall into a few categories: gut-targeted prescription drugs, low-dose antidepressants for pain, and a handful of over-the-counter options with more limited benefits.
Top Medications for IBS With Constipation
The American College of Gastroenterology gives its strongest recommendation to a class of drugs called guanylate cyclase activators, which includes linaclotide and plecanatide. These medications work by increasing fluid secretion into the intestines, which softens stool and speeds up transit. They also reduce the nerve sensitivity that causes abdominal pain, making them effective for both constipation and discomfort at the same time. In pooled clinical trial data, patients taking linaclotide were about 2.4 times more likely to meet the FDA’s definition of a treatment responder compared to placebo, and plecanatide showed similar results at about 2.6 times.
Lubiprostone, a chloride channel activator, works through a slightly different mechanism but achieves a similar goal: drawing more water into the gut to ease constipation. It also carries a strong recommendation from gastroenterology guidelines, though the overall evidence quality is rated a step below the guanylate cyclase drugs.
One important note: common over-the-counter osmotic laxatives like polyethylene glycol (MiraLAX) may help you go more often, but clinical trials show they do little for the full picture of IBS-C symptoms. Two trials found that while stool frequency improved somewhat, there was no meaningful benefit for abdominal pain or bloating. The ACG specifically recommends against using these products as a primary IBS-C treatment.
Top Medications for IBS With Diarrhea
Rifaximin is the first-line prescription for IBS-D and the only antibiotic recommended for this condition. It works locally in the gut rather than being absorbed into the bloodstream, and it appears to reduce bacterial overgrowth and intestinal inflammation. Unlike most antibiotics you take continuously, rifaximin is given as a short course. Some patients experience lasting relief after a single course, while others need retreatment when symptoms return.
Eluxadoline is another prescription option that works on opioid receptors in the gut to slow motility and reduce pain without the central nervous system effects of traditional opioids. It has one critical restriction: it is contraindicated if you don’t have a gallbladder or if you drink more than three alcoholic beverages per day, due to a risk of pancreatitis.
For severe IBS-D in women who haven’t responded to other treatments, alosetron remains an option, but it comes with significant safety guardrails. The FDA requires a special prescribing program because of rare but serious risks of ischemic colitis (reduced blood flow to the colon) and severe constipation. Patients need to stop the medication immediately if they develop new abdominal pain, constipation, or blood in their stool. It is only FDA-approved for women.
Low-Dose Antidepressants for IBS Pain
If your main complaint is abdominal pain rather than a specific bowel pattern, low-dose tricyclic antidepressants are among the best-studied options. The doses used for IBS are far lower than those prescribed for depression. Amitriptyline, for instance, is typically started at 10 mg at bedtime and increased gradually up to about 30 mg based on symptom response. Nortriptyline is commonly used at 25 to 50 mg at bedtime.
At these doses, tricyclics don’t function as antidepressants. Instead, they dampen the pain signals traveling between the gut and the brain, which is why they’re sometimes called “neuromodulators” in this context. The ATLANTIS trial, one of the largest and most rigorous studies on this approach, found that low-dose amitriptyline significantly reduced IBS symptoms over six months. The effect tends to build gradually, so these aren’t medications that provide relief in the first few days.
SSRIs (the more commonly known class of antidepressants) are sometimes used as well, but the evidence supporting them for IBS symptoms is weaker than for tricyclics. Your doctor may consider an SSRI if you also have anxiety or depression alongside IBS, since it can address both.
Over-the-Counter Options and Their Limits
Loperamide (Imodium) is widely used for IBS-D and can effectively reduce stool frequency and urgency. However, it doesn’t address abdominal pain or bloating, so it works best as a targeted tool for diarrhea-heavy days rather than a comprehensive treatment.
Enteric-coated peppermint oil capsules have been promoted as a natural IBS remedy, and earlier meta-analyses suggested meaningful pain relief. But the largest rigorous trial tells a more cautious story. In a double-blind study published in Gastroenterology, about 47% of patients taking small-intestinal-release peppermint oil reported a pain response, compared to 34% on placebo. That difference was not statistically significant. Overall symptom relief also showed no clear benefit over placebo. Peppermint oil is safe for most people and may offer modest help, but it shouldn’t be expected to replace prescription treatment for moderate to severe symptoms.
Bile Acid Issues Can Mimic IBS-D
Some people diagnosed with IBS-D actually have bile acid diarrhea, a condition where excess bile acids reach the colon and trigger watery stools. Bile acid sequestrants like cholestyramine and colesevelam work by binding to those bile acids before they can cause problems. Colesevelam binds a broader range of bile acids and is generally better tolerated than the older cholestyramine.
The ACG does not recommend bile acid sequestrants as a general IBS-D treatment because there isn’t enough evidence for patients without confirmed bile acid malabsorption. But if your doctor suspects bile acid involvement, sometimes based on a pattern of post-meal urgency or a response to an empiric trial, these medications can be remarkably effective for the right patient.
How to Think About Choosing a Medication
The “best” medication for IBS is ultimately the one that matches your predominant symptom. If constipation dominates your life, linaclotide or plecanatide have the strongest evidence. If diarrhea is the main problem, rifaximin is the typical starting point. If pain is the central issue regardless of bowel pattern, a low-dose tricyclic antidepressant is worth discussing.
Many people with IBS end up using a combination: a gut-targeted medication for their bowel symptoms plus a neuromodulator for pain. IBS is also a condition where the placebo response in clinical trials runs between 20% and 40%, which means finding the right medication sometimes takes trial and error. Most prescription options for IBS take several weeks to show their full effect, so giving a new medication at least four to six weeks before judging it is reasonable. Switching too quickly can mean abandoning something that would have worked with a bit more time.

