Loperamide and Other Anti-Diarrhoeal Medicines

Loperamide can be useful when your IBD is quiet, but it doesn't treat inflammation and can be dangerous in a severe flare-up. Here is how to use it safely.

Last updated 23 November 2026 · 6 min read

On this page
  1. How does loperamide work?
  2. When can it be useful?
  3. When should it not be used?
  4. How to take it
  5. Side effects
  6. Pregnancy and breastfeeding
  7. Other anti-diarrhoeal medicines
  8. Travelling
  9. When to get help

Loperamide, best known by the brand name Imodium, is the most widely used medicine for diarrhoea in the UK. You can buy it in supermarkets and pharmacies, so it is tempting to reach for it when your bowels are troublesome. For people with Crohn's disease (CD) or ulcerative colitis (UC), it has a real place, but only in the right circumstances. This page explains when it can help, when it should be avoided, and how it compares with other anti-diarrhoeal medicines.

How does loperamide work?

Loperamide acts on the nerves in the wall of the gut. It slows the movement of the bowel, so that more water is absorbed and the motions become firmer and less frequent. It also tightens the ring of muscle around the back passage (the anal sphincter), which helps with urgency. At normal doses very little reaches the brain, so it doesn't cause drowsiness the way codeine can.

What it doesn't do is reduce inflammation. If your diarrhoea is caused by active IBD, loperamide will only hide the symptom while the inflammation carries on.

When can it be useful?

Loperamide is reasonable, and sometimes very helpful, in these situations:

  • An important event when your IBD is quiet. A dose before a long trip, an exam, an interview or a wedding can give you confidence. Occasional use like this is fine for most people.
  • Irritable bowel-type symptoms in remission. Some people have loose motions or urgency even when tests show no active inflammation. Your team may suggest loperamide as needed.
  • Bile acid diarrhoea, alongside a bile acid binder. See Bile Acid Diarrhoea in Crohn's Disease.
  • After bowel surgery, for example after part of the small bowel has been removed, or with an ileo-anal pouch, where it can reduce the number of times you need to go. See Surgery in Ulcerative Colitis.
  • A high-output stoma, where it helps to thicken the output and reduce fluid loss. See below.
  • Leakage or soiling (faecal incontinence), where loperamide combined with a bulking agent often works better than either on its own.

In all of these, the key point is that your team has checked that there is no active inflammation or infection driving the diarrhoea.

When should it not be used?

Don't take loperamide, unless a doctor who knows about your IBD has told you to, if:

  • You are having a flare-up of colitis, especially a severe one. Slowing the bowel when the colon is badly inflamed can allow it to swell up with gas (toxic megacolon), which is a medical emergency. It also hides how many times you are opening your bowels, which is one of the main ways doctors judge how severe a flare is.
  • There is blood in your motions, or you have a high temperature.
  • You might have a gut infection, such as food poisoning, or diarrhoea after antibiotics, which can be caused by a germ called C. difficile. Diarrhoea helps to clear infection from the bowel.
  • You have a narrowing of the bowel (stricture), or symptoms of a blockage, such as cramping pain, a swollen tummy and vomiting.
  • You are constipated higher up the colon, which is common in left-sided UC. See Constipation.

If your diarrhoea is worse than usual, the right step is to contact your IBD team and give a stool sample, not to take more loperamide. Treat the inflammation, not just the diarrhoea. See What to Do in a Flare-Up.

How to take it

Loperamide comes as 2 mg capsules and tablets, melt-in-the-mouth tablets and a liquid.

  • Bought from a shop or pharmacy, the usual adult dose for short-term diarrhoea is two capsules (4 mg) to start with, then one capsule (2 mg) after each loose motion. Don't take more than six capsules (12 mg) in 24 hours, and don't use it for more than two days without advice.
  • On prescription, your doctor may advise a regular dose or a higher maximum, and some people take it before meals to reduce the urge to go after eating. Follow the instructions you are given.
  • For a planned event, one or two capsules an hour or so beforehand is the usual approach. Your team can advise what suits you.
  • Shop-bought loperamide is not for children under 12, unless a doctor prescribes it.

Very high doses, far above the recommended amount, have caused serious heart rhythm problems. Never take more than you have been advised.

With a stoma

People with a high-output ileostomy are sometimes prescribed higher doses than usual, under specialist supervision. Taking it 30 to 60 minutes before meals often works best. Capsules can sometimes pass through a fast stoma without dissolving, so your stoma nurse may suggest melt-in-the-mouth tablets, the liquid, or opening the capsules. Don't increase the dose without advice. The glossary has more on a high-output stoma.

Side effects

Most people have no problems with occasional use. Possible side effects include:

  • Constipation, which is the most common
  • Bloating, wind or tummy cramps
  • Feeling sick
  • Dizziness or tiredness
  • A dry mouth

Stop taking it and get advice if your tummy becomes swollen or painful, or you stop passing wind.

Pregnancy and breastfeeding

Loperamide is not usually recommended in pregnancy unless a doctor advises it. If you are pregnant or breastfeeding, ask your doctor, midwife or pharmacist before taking it.

Other anti-diarrhoeal medicines

Codeine phosphate

Codeine is a painkiller that also slows the bowel, and it is sometimes prescribed for diarrhoea after bowel surgery or with a high-output stoma. It carries the same warnings as loperamide in a flare-up, and it also causes drowsiness and can lead to dependence. Most IBD teams prefer loperamide and use codeine only when loperamide alone isn't enough. See Painkillers and IBD.

Bulking agents

Fibre supplements such as ispaghula husk, sterculia and methylcellulose are often thought of as laxatives, but they can also help firm up loose motions by soaking up water. They are often used with loperamide for soiling or after surgery. They are not suitable if you have a narrowing of the bowel, so check with your team first.

Bile acid binders

Colestyramine and colesevelam treat diarrhoea caused by bile acids, which is common in CD affecting the terminal ileum. They are not general anti-diarrhoeals and only help when bile acids are the cause. See Bile Acid Diarrhoea in Crohn's Disease.

Oral rehydration solutions

Rehydration sachets from the pharmacy don't stop diarrhoea, but they replace the water and salts you lose more effectively than plain water. They are useful on any day when you have a lot of diarrhoea, and especially in hot weather or when you are travelling.

Travelling

Many people find it reassuring to carry a few loperamide capsules when you travel. Take them occasionally if you need to, but if you develop diarrhoea abroad, drink plenty of fluids with rehydration salts first. Get medical advice if there is blood, a fever, or the diarrhoea lasts more than 24 to 48 hours, and remember that a holiday tummy bug may also need a stool test when you get home. See Holidays and Everyday Illness and Inflammatory Bowel Disease.

When to get help

Call 999 or go to A&E if you have a swollen, painful tummy with a fever or a fast heartbeat, especially if your diarrhoea has suddenly slowed down or stopped while you otherwise feel worse.

Contact your IBD team the same day, or call NHS 111, if you have more than six bloody motions a day, you can't keep fluids down, or you feel dizzy or are passing very little urine.

Talk to your IBD team if you find you need loperamide most days. Regular diarrhoea usually has a cause that can be treated, whether that is active inflammation, bile acids, a stricture or something else, and it is worth finding out which.