PHAR-342 · Lesson 10 of 12 · 21 min

Irritable bowel syndrome, constipation and diarrhea

▶ Video coming soon A video version of this lesson is on the way.

Bowel symptoms are among the most common reasons people consult a pharmacist. Most have a functional cause, but a few have serious disease that must not be missed, and many are caused or worsened by medicines. This lesson covers irritable bowel syndrome (IBS), chronic constipation, opioid-induced constipation and diarrhea in adults, building on the self-care approach in Self-Care and Non-Prescription Therapy (PHAR-221). It follows a hypothetical 35-year-old accountant named Leilani Abernathy-Kowalczyk, who has had abdominal pain and bloating with alternating constipation and loose stools for two years, worse during tax season, and who asks the pharmacist at Larchmere Community Pharmacy in March 2026 whether "there is finally a pill that fixes IBS".

Irritable bowel syndrome

IBS is a disorder of gut-brain interaction. It is diagnosed clinically using the Rome IV criteria: recurrent abdominal pain on average at least one day a week in the last three months, associated with two or more of the following: related to defecation, associated with a change in stool frequency, or associated with a change in stool form, with symptom onset at least six months before diagnosis. Subtypes are based on the predominant stool form on abnormal days: IBS with constipation (IBS-C), with diarrhea (IBS-D), mixed (IBS-M) or unclassified. The mechanisms include visceral hypersensitivity, altered motility, changes in the gut microbiome, low-grade immune activation, post-infectious changes and altered central processing of gut signals, often influenced by stress, anxiety and early life experiences.

Making a positive diagnosis

The ACG 2021 IBS guideline recommends a positive diagnostic strategy rather than a diagnosis of exclusion, with limited testing in people without alarm features. Reasonable tests include a complete blood count, celiac disease serology in people with diarrhea, and C-reactive protein or fecal calprotectin to screen for IBD in people with diarrhea. Alarm features that require further investigation include new symptoms after about age 45 to 50 (or overdue colorectal cancer screening), rectal bleeding, unintended weight loss, nocturnal symptoms that wake the person, iron deficiency anemia, fever, a family history of colorectal cancer, IBD or celiac disease, and a palpable mass. A pharmacist who hears these features refers rather than recommending products.

Non-drug treatment

Explaining the diagnosis, validating the symptoms and setting realistic goals are therapeutic in themselves. Evidence supports:

  • Soluble fiber, such as psyllium, started at a low dose and increased gradually; insoluble fiber such as bran can worsen bloating.
  • A low-FODMAP diet, which restricts fermentable carbohydrates and then reintroduces them to identify triggers, ideally supervised by a dietitian to avoid unnecessary long-term restriction.
  • Gut-directed psychological therapies, including cognitive behavioral therapy and gut-directed hypnotherapy, which have good evidence for global symptoms.
  • Regular physical activity and attention to sleep and stress.

Probiotics are widely bought for IBS, but trials use many different strains, doses and outcomes, and results are inconsistent. The ACG 2021 guideline suggests against probiotics for global IBS symptoms, and the AGA has advised using them mainly in the context of clinical trials. A person who wishes to try one can be advised to choose a product with a specified strain and dose, try it for about four weeks, and stop if there is no clear benefit, rather than continuing indefinitely at ongoing cost. Fiber supplements, by contrast, have more consistent evidence and are inexpensive.

Drug treatment: targeting the dominant symptom

No single drug treats every aspect of IBS. Therapy targets the dominant symptom and subtype. The AGA's 2022 guidelines on pharmacological management of IBS-C and IBS-D, summarized in 2023, and the ACG 2021 guideline provide the evidence base.

A diagram of the bowel wall with drug sites. In the lumen, psyllium and polyethylene glycol retain water; rifaximin reduces bacterial load. On the epithelium, linaclotide and plecanatide activate guanylate cyclase-C to increase chloride and fluid secretion; lubiprostone activates chloride channels; tenapanor inhibits the sodium-hydrogen exchanger NHE3. In the muscle layer, antispasmodics such as hyoscine butylbromide, dicyclomine, pinaverium and peppermint oil relax smooth muscle; prucalopride stimulates 5-HT4 receptors to increase motility. On nerves, loperamide and eluxadoline act on opioid receptors to slow transit; alosetron blocks 5-HT3 receptors. A brain icon shows low-dose tricyclic antidepressants modulating pain signaling.
Figure 1. Sites of action of drugs used for IBS and chronic constipation. Availability differs between Canada and the United States.

For pain and global symptoms (any subtype):

  • Antispasmodics such as hyoscine butylbromide, dicyclomine and, in Canada, pinaverium, and peppermint oil, may reduce pain and cramping. Anticholinergic effects such as dry mouth, constipation and blurred vision limit some agents, especially in older adults.
  • Low-dose tricyclic antidepressants, such as amitriptyline or nortriptyline, modulate visceral pain and have the strongest evidence among neuromodulators, although more people stop them because of adverse effects such as drowsiness, dry mouth and constipation. They suit IBS-D or mixed symptoms more than IBS-C. Low starting doses taken at night, increased gradually, are typical, and people should be told the drug is being used for gut pain, not depression, to avoid confusion and stigma.
  • SSRIs did not improve global symptoms or pain in the AGA analysis, though they may help coexisting anxiety or depression.

For IBS-C:

  • Linaclotide, a guanylate cyclase-C agonist, increases intestinal fluid secretion and accelerates transit, and reduces visceral pain. It had the strongest evidence in the AGA review, with a number needed to treat of about 7; diarrhea is the main adverse effect. It is approved in both countries.
  • Plecanatide works similarly and is approved in the United States.
  • Tenapanor, an inhibitor of the sodium-hydrogen exchanger NHE3 in the gut, reduces sodium absorption and increases stool water; the AGA suggests it based on lower-certainty evidence. It is approved in the United States for IBS-C.
  • Lubiprostone, a chloride channel activator, has modest benefit; nausea is common. It is approved in the United States.
  • Polyethylene glycol improves stool frequency but not pain in IBS-C.
  • Tegaserod, a 5-HT4 agonist, has a complicated history: withdrawn in 2007 over cardiovascular concerns, reintroduced in the United States in 2019 for selected women, and then withdrawn again by its manufacturer in 2022 for business reasons rather than new safety findings.

For IBS-D:

  • Loperamide reduces stool frequency and urgency but not pain or bloating; it is useful before situations where urgency is a problem.
  • Rifaximin, a minimally absorbed antibiotic, improves global symptoms, bloating and stool consistency over a two-week course, and can be repeated for recurrence. It is approved for IBS-D in the United States; check current Canadian labeling for this indication.
  • Eluxadoline, a mixed opioid receptor agent acting locally in the gut, gives modest benefit. It must be avoided in people without a gallbladder, with a history of pancreatitis or biliary disease, or who drink more than three alcoholic drinks a day, because of pancreatitis and sphincter of Oddi spasm.
  • Alosetron, a 5-HT3 antagonist, is restricted in the United States to women with severe IBS-D under a risk management program because of ischemic colitis and severe constipation. It is not marketed in Canada.
  • Bile acid sequestrants help people with suspected bile acid diarrhea, which overlaps with IBS-D.

Pharmacists in Canada and the United States should check local availability, because approval status for several IBS drugs differs between the countries and changes over time.

Worked problem

Interpreting responder rates for Drug V

In a hypothetical 12-week IBS-C trial, 34 percent of people on Drug V and 21 percent on placebo met the responder definition. Calculate the absolute benefit and the number needed to treat.

Show solution
  1. Absolute difference = 34 − 21 = 13 percentage points, or 0.13.
  2. Number needed to treat = 1 ÷ 0.13 = 7.7, rounded up to 8.
  3. Interpretation: about 8 people need treatment for one additional person to respond compared with placebo.
  4. Compare with the adverse effect rate: if diarrhea occurs in 16 percent on drug and 2 percent on placebo, the number needed to harm is 1 ÷ 0.14 = about 7.
  5. Benefit and harm are similar in size, so shared decision-making and a trial with review are appropriate.

Answer: Absolute benefit 13 percentage points; NNT about 8, with a number needed to harm for diarrhea of about 7.

Back to Ms. Abernathy-Kowalczyk

Her symptoms meet Rome IV criteria for IBS-M, she is under 45, and she has no alarm features; her physician has checked a blood count and celiac serology, both normal. The pharmacist explains that IBS is real and common, that treatment aims to reduce symptoms rather than cure, and that combining approaches works best. Recommendations are psyllium increased slowly, referral to a dietitian for a supervised low-FODMAP trial, peppermint oil or an antispasmodic for pain flares, and information about gut-directed CBT. If pain remains troublesome, a low-dose tricyclic could be discussed with her physician. Follow-up is booked for six weeks.

Bloating, overlap and special situations

Bloating and distension are among the most bothersome IBS symptoms and among the hardest to treat. Approaches include the low-FODMAP diet, treating constipation, avoiding sugar alcohols and excess insoluble fiber, rifaximin in IBS-D, and gut-directed psychological therapy; simethicone has little evidence. IBS often overlaps with functional dyspepsia, fibromyalgia, migraine, chronic pelvic pain, anxiety and depression, and treatment choices can address several at once, for example a low-dose tricyclic for IBS pain and migraine prevention.

In older adults, new bowel symptoms are more likely to have an organic cause, anticholinergic antispasmodics and tricyclics carry higher risks of confusion, urinary retention and falls, and polypharmacy is a frequent contributor to constipation. In pregnancy, dietary measures, psyllium and polyethylene glycol are preferred for constipation, and many IBS drugs lack safety data, so they are generally avoided unless a specialist advises otherwise. People who report food intolerance often benefit from dietitian support to avoid unnecessarily restrictive diets, particularly when there is a history of disordered eating.

Microscopic colitis

Microscopic colitis causes chronic watery, non-bloody diarrhea, mostly in older adults, and is diagnosed only by biopsies from a colonoscopy that looks normal. It is strongly associated with drugs, including PPIs, NSAIDs, SSRIs, statins and others, as well as smoking and autoimmune conditions such as celiac disease. Stopping a likely culprit drug is the first step. Oral budesonide is the most effective therapy for inducing remission, with loperamide for mild symptoms and bile acid sequestrants as alternatives. Because PPIs are a common trigger, it is another reason to review long-term PPI use, as described in Lesson 6.

Why the medication history matters

For any person with changed bowel habits, a medication history that includes prescription, non-prescription and natural health products is essential. Magnesium supplements, vitamin C in large doses, metformin started recently, a new SSRI, sorbitol-containing syrups and laxative use for weight control can all cause diarrhea; iron, calcium, opioids, anticholinergics and verapamil can cause constipation. Correcting a medication cause is safer and cheaper than adding another drug.

Chronic constipation

Chronic idiopathic constipation is defined by infrequent, hard or difficult-to-pass stools for at least three months without predominant pain. Causes to consider include medications (opioids, anticholinergics, calcium channel blockers, iron, calcium, aluminum antacids, 5-HT3 antagonists), hypothyroidism, hypercalcemia, diabetes, neurological disease, pelvic floor dysfunction and colorectal cancer. A stepwise approach is used:

  • Fiber and fluids, with soluble fiber preferred.
  • Osmotic laxatives: polyethylene glycol is first-line for most adults, effective and well tolerated; lactulose causes more bloating and gas; magnesium salts are avoided in kidney impairment.
  • Stimulant laxatives: senna and bisacodyl, effective for regular or rescue use; the old idea that long-term use damages the colon is not supported by good evidence.
  • Prescription options when over-the-counter laxatives fail: prucalopride, a selective 5-HT4 agonist without the cardiac effects of older agents, and secretagogues such as linaclotide, plecanatide and lubiprostone.
  • Pelvic floor assessment and biofeedback for people with evacuation disorders.

Opioid-induced constipation

Opioids reduce motility and secretion through mu receptors in the gut, and tolerance to this effect does not develop. Every person starting regular opioids should start a laxative, typically a stimulant with or without an osmotic agent; stool softeners alone such as docusate are ineffective. When laxatives fail, peripherally acting mu-opioid receptor antagonists (PAMORAs), such as methylnaltrexone, naloxegol and naldemedine, block gut opioid receptors without reversing analgesia. They are contraindicated in known or suspected bowel obstruction. Opioid stewardship and the safe use of naloxone are covered in Toxicology (PHAR-321).

Diarrhea

Acute diarrhea

Most acute diarrhea in adults is viral and self-limiting. The priorities are hydration, using oral rehydration solutions for moderate losses, and recognizing red flags: high fever, bloody stools, severe abdominal pain, signs of dehydration, recent hospitalization or antibiotic use (raising concern for Clostridioides difficile, Lesson 11), immunosuppression and travel. Loperamide reduces stool frequency in adults with non-bloody, afebrile diarrhea, but it is avoided when there is fever or blood in the stool. Bismuth subsalicylate is an alternative, with the salicylate cautions noted in Lesson 7. Antibiotics are reserved for specific indications such as severe traveler's diarrhea or confirmed bacterial infections, as covered in Pharmacotherapy III: Infectious Diseases (PHAR-341).

Chronic and drug-induced diarrhea

Chronic diarrhea lasting more than four weeks needs medical assessment for celiac disease, IBD, microscopic colitis, bile acid diarrhea, pancreatic insufficiency, infection and medications. Common drug causes include metformin, magnesium-containing products, SSRIs, colchicine, PPIs (associated with microscopic colitis), antibiotics, laxative overuse, sugar alcohols such as sorbitol in liquid formulations, and many cancer therapies. Reviewing the medication list is often the fastest route to a diagnosis.

Loperamide misuse at very high doses to self-treat opioid withdrawal or for euphoria has caused serious cardiac arrhythmias. Regulators in both countries have warned about this, and US packaging limits were introduced. Pharmacists should be alert to repeated large purchases.

Common mistakes

  • MistakeDiagnosing IBS in a 60-year-old with new symptoms and rectal bleeding.

    InsteadAlarm features require investigation, including colonoscopy.

  • MistakeRecommending bran for bloating in IBS.

    InsteadSoluble fiber such as psyllium is preferred; insoluble fiber can worsen bloating.

  • MistakeUsing docusate alone for opioid-induced constipation.

    InsteadUse a stimulant with or without an osmotic laxative; consider a PAMORA if these fail.

  • MistakePrescribing eluxadoline to a person who has had a cholecystectomy.

    InsteadEluxadoline is contraindicated without a gallbladder because of pancreatitis risk.

  • MistakeGiving loperamide for bloody diarrhea with fever.

    InsteadAvoid antimotility agents with dysentery features; seek assessment.

Summary and key terms

  • IBS is a disorder of gut-brain interaction diagnosed positively with Rome IV criteria and limited testing when alarm features are absent.
  • Non-drug care includes explanation, soluble fiber, a supervised low-FODMAP diet, gut-directed psychological therapy and exercise.
  • Pain and global symptoms: antispasmodics, peppermint oil and low-dose tricyclics; SSRIs do not improve global IBS symptoms.
  • IBS-C: linaclotide has the strongest evidence; plecanatide, tenapanor and lubiprostone are alternatives; PEG helps stools but not pain.
  • IBS-D: loperamide for stools, rifaximin, eluxadoline (avoid without gallbladder or with heavy alcohol use) and, in the US, alosetron under restrictions.
  • Constipation: fiber, PEG, stimulant laxatives, then prucalopride or secretagogues; start a laxative with regular opioids and consider a PAMORA.
Disorder of gut-brain interaction
A condition in which altered communication between gut and brain causes symptoms without structural disease.
Rome IV criteria
Symptom-based criteria for diagnosing IBS and other functional GI disorders.
Low-FODMAP diet
Restriction then reintroduction of fermentable carbohydrates to identify triggers.
Guanylate cyclase-C agonist
A drug such as linaclotide that increases intestinal fluid secretion.
PAMORA
Peripherally acting mu-opioid receptor antagonist for opioid-induced constipation.
Visceral hypersensitivity
Increased perception of normal gut stimuli as painful.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. What are the Rome IV criteria for IBS?

    Show answer

    Recurrent abdominal pain at least one day a week in the last three months with two or more of: related to defecation, change in frequency, change in form; onset at least six months earlier.

  2. Which IBS-C drug had the strongest evidence in the AGA review?

    Show answer

    Linaclotide.

  3. Name two contraindications to eluxadoline.

    Show answer

    No gallbladder, history of pancreatitis or biliary disease, or more than three alcoholic drinks a day.

  4. Which laxative is first-line for most adults with chronic constipation?

    Show answer

    Polyethylene glycol.

  5. Why does tolerance not help opioid-induced constipation?

    Show answer

    Tolerance to opioid effects on gut motility does not develop.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz