Constipation after surgery or an anaesthetic
Constipation after an operation is no surprise, because several of its most common causes come together at once: strong painkillers, lying or sitting for long periods, and eating and drinking less than usual.11 Moving as soon as you're allowed and getting back to food and drink usually help;23 not being able to poo or pass wind with tummy pain, a swollen tummy or vomiting needs help straight away.45
Why an operation can bring on constipation
Strong painkillers
You'll always have some pain after surgery, and you'll be given painkillers for it.2 The stronger ones, opioids such as codeine, oxycodone and hydromorphone, are a well-known cause of constipation.6 Constipation is listed as a common side effect of codeine,7 and the NHS names opioid painkillers among the medicines that cause it.1
Other medicines given around an operation can play a part too: Cleveland Clinic's list of medicines that can cause constipation includes anti-sickness medicines like ondansetron.6 Feeling sick or vomiting after a general anaesthetic is common, and nurses often offer medicine for it.2
Don't stop or cut down painkillers you've been given to avoid constipation. Talk to your doctor or pharmacist: they may be able to give you advice about how you can reduce the side effects.7
Moving less
Not moving enough and spending long periods sitting or lying down is one of the most common causes of constipation,1 and that describes the first days after most operations.
Eating and drinking less
Not eating enough fibre and not drinking enough fluids are common causes too.1 Changing your diet or daily routine can also bring it on.1
When the bowel slows right down
Sometimes, after surgery, the muscles and nerves that push food along the gut stop working for a while. This is called ileus, and surgery is its most common cause; surgeons expect and plan for it after operations on the abdomen, but surgery on other parts of the body can trigger it too.5 It can cause bloating, constipation, nausea and vomiting, and not being able to pass gas.5 It's usually temporary.5 If you're still in hospital, your team will be watching for it, but tell them if you notice these signs.5
What can help
- Get moving when you're allowed to. The NHS says the earlier you get out of bed and start walking, eating and drinking after your operation, the better.2 Cleveland Clinic says walking around helps the bowel recover faster after ileus.5
- Eat and drink as usual, unless your hospital team gives you different advice.3
- Drink plenty of fluids and add fibre gradually, such as fruit, oats or linseed.1
- Don't hold on. Give yourself plenty of time on the toilet, and don't delay when you feel the urge.1 Resting your feet on a low stool, with your knees above your hips, can make it easier.1
- Ask a pharmacist if changes to diet and activity aren't helping: they can suggest a suitable laxative.1 Check with them, or with your surgical team, before you take anything, and tell them about the operation and every medicine you're on.
How long is too long without a poo? There's no single number, and our post on how long you can go without pooping covers the usual range. After an operation, the gap matters less than how you feel: pain, a swollen tummy, vomiting and no wind are the signs that count.
Straining after an operation
Straining on the toilet is one of the signs of constipation.1 If you're worried about pushing hard after your kind of operation, ask your surgical team what's safe. On the Bristol stool chart, hard, lumpy types 1 and 2 are the hard ones; our page on constipation and the post on pebble poop say more about why they form.
Common questions
How long after surgery should I poop?
The sources we used don't give a set number of days. What they agree on is that moving, eating and drinking early help,2 and that not being able to poo or pass wind with tummy pain needs urgent help.4
Does a general anaesthetic cause constipation?
The things around it often do: strong painkillers, moving less and eating less are all common causes.11 Surgery can also slow the bowel for a while, which is called ileus.5
Can I take a laxative after surgery?
Ask first. A pharmacist can suggest a suitable laxative,1 but your surgical team may have advice for your kind of operation.
Should I stop my painkillers?
No, not on your own. Talk to your doctor or pharmacist, who can give advice about reducing side effects.7
Know when you last went
Stool Log logs each stool's Bristol type in one tap and marks the days you didn't go, so the gap since your operation is easy to see. You can log your painkillers as daily medicines with a reminder and Taken, and Did it help? compares your stools before and since a change, such as a new medicine.
Sources
- NHS. Constipation, 2023. ↩ a b c d e f g h i j k l m n o
- NHS. Having an operation (surgery): after surgery, 2024. ↩ a b c d e
- NHS. General anaesthesia, 2024. ↩ a b c
- healthdirect. Bowel obstruction in adults, 2024. ↩ a b c d
- Cleveland Clinic. Ileus, 2026. ↩ a b c d e f g
- Cleveland Clinic. Constipation, 2023. ↩ a b
- NHS. Side effects of codeine, 2026. ↩ a b c
This article is general information, not medical advice. Talk to a doctor or nurse about your own symptoms.