Guides
Canfora
Ask your surgical or pre-admission team before taking Imodium (loperamide) in the days before surgery. A dose or two for simple diarrhoea is not usually a problem for anaesthesia, but loperamide must be stopped before bowel surgery and before a colonoscopy, and diarrhoea itself can be a reason to postpone an operation. Tell the team rather than quietly treating it.

The short answer
Loperamide slows the gut by acting on opioid receptors in the bowel wall. That raises three questions before an operation:
| Procedure | Loperamide |
|---|---|
| Colonoscopy, flexible sigmoidoscopy | Stop several days before (follow your prep sheet); also stop iron and fibre supplements as directed |
| Bowel (colorectal) surgery | Stop as directed by the surgical team |
| Gastroscopy | Usually fine before; follow fasting rules |
| Other surgery (orthopaedic, dental, skin, eye, etc.) | Occasional use usually acceptable; tell the team about the diarrhoea; avoid on the day |
| Regular prescribed loperamide (e.g. after bowel resection, IBS-D) | Your team will give a specific plan; don’t stop or start on your own |
Fasting rules and the medicines usually stopped or continued are in the guide to medicines before and after surgery.
For adults with simple diarrhoea, the usual dose is 4 mg (two capsules) at first, then 2 mg after each loose stool, without exceeding the label maximum (6–8 capsules a day over the counter, depending on product and country). Drink plenty of fluids or an oral rehydration solution. Don’t use it if you have a fever, blood or mucus in the stool, or after recent antibiotics without medical advice. Very high doses, often taken by people trying to self-treat opioid withdrawal, have caused serious heart rhythm problems; the US FDA has warned about this. If you need to identify the pills, see what Imodium pills look like.
Constipation is far more common than diarrhoea after surgery, so loperamide is rarely needed. New diarrhoea after surgery, particularly after antibiotics, with fever or abdominal pain, should be reported to the team rather than treated with loperamide, because it can be a sign of C. difficile infection. For the opposite problem, see Colace before and after surgery.
For non-bowel surgery, a single dose the night before is unlikely to matter, but tell the pre-admission nurse or anaesthetist. If you have ongoing diarrhoea, call the hospital beforehand; they may want to postpone.
Most preparation instructions say several days (commonly 3–5). Follow the sheet from your endoscopy unit, because protocols differ.
Loose stools for a day after bowel prep are normal and usually settle without medicine. If diarrhoea persists or comes with pain, fever or bleeding, contact the unit.
More on this topic: which medicines are usually stopped or continued before an operation is set out in Medicines Before and After Surgery: What to Stop, Take and Ask.
Medical disclaimer: this article is general information, not a diagnosis or a personal recommendation. Check with your doctor or pharmacist before starting, stopping or combining medicines. Read the full disclaimer.