Your guide to medications used to treat IBS

Lifestyle changes are the foundation of good IBS management, but sometimes, symptoms persist or flare-up despite your best efforts. In those cases, certain medications can help take the edge off pain, bloating, or bowel pattern changes.

The right option depends on your IBS subtype, that is whether your have mainly constipation (IBS-C), diarrhoea (IBS-D), or a mixture of both (IBS-M).

This article explains what types of IBS medication exist, how they work, and what to be aware of. It’s for education only. It isn’t to diagnose, prescribe, or suggest what you personally should take. Everyone’s IBS pattern and health background are different, so always discuss any treatment with your GP, pharmacist, or specialist before making changes.

Medicines can help control symptoms, but they work best alongside changes to diet, stress management, and daily routines.

Does IBS medication work?

IBS medicines don’t “cure” the condition. Instead, they target specific symptoms such as constipation, diarrhoea, or cramping. Finding the right option often takes patience and professional guidance.

Before we get started, here are a few useful terms to understand:

  • Fibre: The part of plant foods that isn’t digested. Soluble fibre (like oats, linseed, psyllium) is often better tolerated than wheat bran or coarse fibre.

  • Microbiome: The natural community of bacteria in your gut that help with digestion, immunity, and overall gut health.

  • Peristalsis: The wave-like muscle movements that push food through the digestive system.

  • “Unlicensed” or “off-label”: Some medicines are officially licensed for one condition but can also help with others. When used this way, it’s called “off-label” or “unlicensed” use. This doesn’t mean the medicine is unsafe – it’s still approved and quality-checked – but it hasn’t gone through formal licensing for that specific use.

    Doctors may prescribe it when other standard treatments haven’t helped and there’s good clinical experience or evidence to support it.

  • Spasm: A spasm is when a muscle tightens or contracts suddenly and involuntarily.

    In the gut, this can happen in the smooth muscles that move food along your digestive tract. When these muscles squeeze too strongly or out of rhythm, it can cause cramping pain, bloating, or the urgent need to open your bowels.

  • Laxatives: Laxatives are medicines that help relieve constipation by making stools easier to pass. They work in different ways (some draw more water into the bowel to soften stools, while others gently stimulate the bowel muscles to help things move along). Laxatives are meant to support healthy bowel movements, not to make you go more often than normal. They should be used at the right dose and type for your needs, ideally with advice from a GP or pharmacist.

  • Urgency: Urgency means feeling a sudden, strong need to open your bowels that’s hard to delay or control.

  • Heartburn: A burning or uncomfortable feeling in the chest or throat, usually after eating. It happens when stomach acid flows back up into the oesophagus (the tube connecting your mouth and stomach).

For IBS with constipation (IBS-C):

The words 'Manage Your IBS' next to a toilet roll and a jar of pills.

Osmotic laxatives

Example: Macrogol (Movicol)

  • What “osmotic” means: These draw water into the bowel, softening stools and making them easier to pass.

  • When they might help: When constipation is the main problem and lifestyle measures (hydration, fibre, physical activity) haven’t helped.

  • When they may not be suitable: Not suitable if you have a bowel obstruction, severe dehydration, or unexplained abdominal pain.

  • Use: Can be used short- or long-term; drink plenty of fluids.

  • Possible side effects: Bloating, wind, mild cramps.

Did you know lightbulb icon in a circle with a green border

NICE (National Institute for Clinical Excellence) recommends macrogols as first-line treatment for IBS-C.

Stimulant laxatives

Examples: Senna, Bisacodyl

  • What “stimulant” means: These encourage the bowel muscles to contract, moving stools along.

  • When they may help: When stools remain difficult to pass, despite osmotic laxatives.

  • When they may not be suitable: If you have a bowel obstruction or severe abdominal pain of unknown cause.

  • Use: Helpful occasionally, but regular daily use can lead to dependence. Avoid daily long-term use unless advised by a doctor.

  • Possible side effects: Cramps, loose stools.

Linaclotide (Constella)

  • How it works: Increases fluid in the bowel and helps reduce abdominal pain in moderate to severe IBS-C.

  • When it may help: May be considered (often under specialist advice) when other types of laxatives – even at the best or highest doses you can comfortably take – haven’t worked, and you’ve had ongoing constipation for around a year or more.

  • When it may not be suitable: If you have a bowel obstruction or develop severe diarrhoea.

  • Possible side effects: Diarrhoea (sometimes severe), bloating, or abdominal discomfort.

For IBS with diarrhoea (IBS-D):

Loperamide (Imodium)

  • How it works: Slows bowel movement and reduces urgency, helping stools become firmer.

  • When it may help: If loose stools or urgency are the main issues.

  • When it may not be suitable: If you have bloody diarrhoea, high fever, or a suspected infection.

  • Use: Often taken during flare-ups or before travel/events.

  • Possible side effects: Constipation, bloating, cramps.

Bile Acid Sequestrants (unlicensed for IBS)

Examples: Colestyramine, Colesevelam

  • How they work: Bind to bile acids that may irritate the bowel if not reabsorbed properly.

  • When they may help: For diarrhoea caused by bile acid malabsorption (BAM).

  • When they may not be suitable: If you have complete biliary obstruction or severe constipation.

  • Testing: BAM is diagnosed by a SeHCAT scan (specialist test).

  • Prescribed by: A gastroenterologist (gut specialist). These are not routine IBS treatments but may be used in specific cases.

Did you know lightbulb icon in a circle with a green border

Bile acids are natural substances made by your liver to help digest fats. Normally, they’re reabsorbed in the last part of the small intestine.

In BAM, this recycling process doesn’t work properly, and too much bile acid passes into the large bowel. This can irritate the gut and cause chronic diarrhoea, bloating, and urgency – symptoms that can sometimes look like IBS-D.

A SeHCAT scan is a simple, painless hospital test that helps diagnose BAM:

  • You swallow a small capsule containing a harmless radioactive marker that behaves like bile acid.

  • After a week, a second scan measures how much of the marker remains in your body.

  • If the level is low, it suggests your body is losing bile acids too quickly, therefore confirming BAM.

The SeHCAT scan can be done on the NHS, but availability differs by area. It’s usually performed in hospital nuclear medicine or gastroenterology departments, as it involves a small, safe radioactive tracer.

The test can be requested by a hospital specialist, such as a gastroenterologist, after your GP or another clinician suspects BAM. Most GPs can’t order it directly. Instead, they’ll refer you to a specialist if your symptoms suggest BAM or if diarrhoea hasn’t improved with standard IBS treatment.

For pain, cramps, and bloating:

Antispasmodics

Examples: Mebeverine, Alverine, Hyoscine (Buscopan)

  • How they work: They relax the bowel muscles, which may reduce spasms and cramping in some cases.

  • When they may help: If you experience cramping, bloating, or pain, often around meals.

  • When they may not be suitable: If you have glaucoma, severe heart problems, or difficulty passing urine (for hyoscine).

  • Use: Taken before meals or as needed.

  • Possible side effects: Dry mouth, dizziness, blurred vision.

Peppermint oil capsules

  • How they work: A natural plant-based antispasmodic that helps relax gut muscles and reduce cramping and bloating.

  • Form: Usually taken as enteric-coated capsules (e.g., Colpermin, Mintec) about 30–60 minutes before meals, to help the capsule reach the small intestine before dissolving.

  • When they may help: If you experience abdominal pain, bloating, or cramping, peppermint oil may offer some relief as part of your wider personal IBS Action Plan.

  • When they may not be suitable: If you have acid reflux or heartburn, peppermint oil can sometimes worsen symptoms.

  • Possible side effects: Mild heartburn, nausea, or indigestion may occur, especially if the capsule coating is damaged.

For stress, anxiety, and gut–brain pain modulation:

Tricyclic antidepressants (TCAs)

Examples: Amitriptyline, Nortriptyline

  • How they work: In very low doses, they may help calm pain signals between your gut and brain and improve sleep quality.

  • When they may help: If pain, poor sleep, or heightened gut sensitivity persist despite lifestyle measures.

  • When they may not be suitable: If you have untreated glaucoma or heart rhythm disorders, or have had a recent heart attack.

  • Time to effect: 2–4 weeks.

  • Side effects: Drowsiness, dry mouth, constipation, weight gain.

  • Use: These medicines are used at very low doses for gut sensitivity, not as antidepressants, which can help people feel more comfortable about trying them. Although TCAs are “off label”, they’re still recommended by NICE when laxatives, loperamide, and antispasmodics are ineffective.

SSRIs (Selective Serotonin Reuptake Inhibitors)

Examples: Sertraline, Citalopram

  • How they work: May improve mood regulation and may ease IBS symptoms through serotonin pathways.

  • When they may help: If anxiety, low mood, or emotional stress strongly drive symptoms.

  • When they may not be suitable: If you have a bleeding disorder or take certain other antidepressants.

  • Side effects: Nausea, restlessness, sleep changes, gastrointestinal upset initially.

  • Use: SSRIs are sometimes used when the emotional side of IBS feels hard to manage.

Other / specialist treatments:

TreatmentWhen it may helpNotes
Rifaximin (antibiotic)In selected IBS-D cases linked to bacterial imbalance (Small Intestinal Bowel Overgrowth).Specialist or private prescription only; short course.
Gabapentin / PregabalinSevere nerve-related pain unresponsive to other medicines.Unlicensed for IBS; used only under specialist advice.

⚠️ Medication tips

5 upwards pointing arrows on wooden circles, 4 are blue and one is orange. All the arrows point towards an orange icon of an arrow in the centre of a target in a bullseye position on a wooden circle. All on a blue background.

  • Trial one medicine at a time for at least 2–4 weeks before judging the effectiveness of it. Finding the right treatment can take time, and it’s normal to try one approach at a time and review it with your GP every few months.

  • Keep a symptom diary noting changes in pain, stool pattern, or mood.

  • Avoid mixing medicines for similar symptoms without checking with a clinician.

  • IBS medicines help manage symptoms but they don’t reverse the condition itself.

  • Avoid online or over-the-counter remedies that claim to “cure” IBS – most lack scientific evidence and can worsen symptoms or interact with other medicines.

  • Combine medications with diet, exercise, stress management, and sleep for the best long-term benefit.

  • If medicines alone don’t give enough relief, combining them with gut-focused behavioural therapies, like CBT or hypnotherapy, can sometimes help reduce symptom flare-ups.

Warning in a circle with a green border

This article is for information and education purposes only. It aims to help you understand available IBS treatments – not to recommend specific medicines or replace medical advice.

Always consult your GP, pharmacist, or specialist before starting, stopping, or changing any medication. Your treatment should be tailored to your health history, other conditions, and possible medicine interactions.

Some medicines discussed may be off-label, unavailable on the NHS, or require specialist approval.

Seek urgent medical help if you notice:

– Blood in your stool (bright red or black)

– Unexplained weight loss

– Severe or persistent abdominal pain

– Fever, vomiting, or dehydration

– Night-time diarrhoea

– A new change in bowel habit over age 50

If unsure, contact your GP, NHS 111, or attend an emergency department, if symptoms are severe.

  1. Ingrosso MR, Ianiro G, Nee J, et al. Systematic review and meta-analysis: efficacy of peppermint oil in irritable bowel syndrome. Aliment Pharmacol Ther. 2022 Sep;56(6):932-941. doi: 10.1111/apt.17179.
  2. NICE (n.d.) Gabapentin.
  3. NICE (2008, updated 2017) Irritable bowel syndrome in adults: diagnosis and management.
  4. NICE (n.d.) Linaclotide.
  5. NICE (2025) Loperamide.
  6. NICE (n.d.) Pregabalin.
  7. NICE (2008, updated 2017) Recommendations.
  8. NICE (n.d.) Rifaximin.
  9. Vasant DH, Paine PA, Black CJ, et al. British Society of Gastroenterology guidelines on the management of irritable bowel syndrome. Gut 2021;70:1214-1240.
Picture of Dr Claire Marie Thomas

Dr Claire Marie Thomas

Claire is a dedicated General Practitioner, with a passion for lifestyle/integrative medicine, women’s health, quality improvement processes, and integrated working across health and social care systems.

MORE ARTICLES LIKE THIS