Guide for patients & caregivers
Constipation After Surgery: Why Does It Happen and What Helps?
Constipation after surgery or on opioid painkillers explained: why it happens, what generally helps, warning signs that need urgent care and what to ask.
Prepared with AI assistance and checked against the cited sources. No independent clinician review has been completed. How we prepare articles
Why do people get constipated after surgery?
Constipation after surgery is common and usually has several causes at once. An NHS orthopaedic hospital leaflet explains that painkillers taken after an operation can cause constipation, and that being less mobile and eating and drinking less add to it. Acting early, before stools become very hard, is usually easier than treating severe constipation later.
This guide is for adults recovering from an operation or procedure, including people taking opioid painkillers at home. It gives general information only. Your surgical team's own instructions come first, especially after bowel or abdominal surgery.
Symptoms that need urgent medical advice
Contact your surgical team, an urgent care service or your local emergency number promptly if constipation comes with any of the signs below. NIDDK and Healthdirect both list these as reasons to get care quickly, and Healthdirect notes that constipation can occasionally be a sign of a serious problem such as a bowel blockage.
- Constant or severe pain in the abdomen (tummy), cramping or marked bloating.
- Vomiting.
- Being unable to pass wind (gas).
- Fever.
- Bleeding from the bottom or blood in the stool.
- Lower back pain or weight loss without trying, as listed by NIDDK.
How do opioid painkillers cause constipation?
Opioids are strong painkillers often used for a short time after an operation; the NHS gives codeine as an example used for pain after surgery. Constipation is listed by the NHS as a common side effect of codeine, and a Worcestershire hospitals leaflet describes constipation as the most common side effect of opioids. NIDDK also lists narcotic pain medicines among medicines that can make constipation worse.
Other medicines can contribute too. NIDDK names, for example, iron supplements, some antacids, diuretics, some antidepressants and calcium channel blockers. Bring a full list of what you take, including supplements, to any appointment.
What counts as constipation?
The NHS describes constipation as not having a poo at least 3 times in the last week or going less often than usual, stools that are unusually large or small and dry, hard or lumpy, straining or pain, and a feeling of not fully emptying the bowel. Bloating, tummy ache or feeling sick can come with it.
Normal bowel habits vary widely. Healthdirect says that for adults this ranges from 3 bowel movements a day to 1 every 3 days, so compare with what is usual for you.
If you are caring for an older person, or someone with dementia or a learning disability, the NHS notes that constipation can easily be missed. Changes in behaviour, such as new confusion, may be a sign of pain or discomfort and are worth mentioning to their care team.
What helps constipation after surgery?
These general measures come from NHS, NIDDK and hospital leaflets. Check any limits your team has set, for example on fluids, diet or movement after your particular operation.
- Drink plenty of fluids, unless you have been told to limit them.
- Include fibre-containing foods such as fruit, vegetables, oats and wholegrain cereals, increasing fibre gradually. The NHS mentions fruits containing sorbitol, such as apples, apricots, grapes and berries, and the RNOH leaflet mentions prunes.
- Move as much as your team allows. Sitting out of bed, standing or short walks can help, depending on your surgery.
- The RNOH leaflet adds that warm drinks, chewing sugar-free gum or gentle clockwise tummy massage may help some people; check first if you have a tummy wound.
- Keep a regular toilet time, do not delay when you feel the urge, and try resting your feet on a low stool so your knees are above your hips.
- Ask about laxatives early. The NHS says a pharmacist can suggest a suitable laxative if diet and lifestyle changes are not helping. Hospital leaflets note that people on opioids are often advised to use a laxative while they take them, and that some laxatives soften stools while others help move them along. Which type, and for how long, is a decision for your team or pharmacist.
Can laxatives be overused?
The NHS says laxatives should only be used for a short time. The RNOH leaflet advises seeing a GP if you need laxatives regularly or have taken them for more than two weeks, and notes that overuse can cause diarrhoea, dehydration and salt imbalances.
Long-term constipation can lead to faecal impaction, where hard stool builds up in the rectum. The NHS notes that its main symptom can be diarrhoea leaking around the blockage, so sudden watery stools after days of constipation are worth reporting rather than treating as recovery.
Should I stop the painkiller?
Do not stop or change a prescribed medicine without talking to the prescriber. The NHS advises speaking to a GP before stopping any prescribed medicine and seeing a GP if a medicine such as an opioid painkiller is causing constipation. It also warns that codeine should not be stopped suddenly after long-term use because withdrawal symptoms can occur; the doctor will reduce it gradually.
Hospital leaflets also describe reducing opioids as pain improves, under your team's plan. Ask how long you are expected to need them and how the dose should come down.
Questions to ask your team or pharmacist
Note when you last opened your bowels, whether you are passing wind and which painkillers you take. These details help the person you speak to.
- Is this level of constipation expected after my operation, and how long might it last?
- Should I use a laxative while I take these painkillers, which type suits me, and when should I stop it?
- Are there limits on what I can eat, drink or how much I can move right now?
- Which symptoms mean I should call the ward or seek urgent care?
- Could any of my other medicines or supplements be adding to the problem?
- What is the plan for reducing my painkillers?
How SameCase can help you prepare
On SameCase, patients and verified doctors share de-identified cases. Reading how others' bowels recovered after similar operations, and which questions they asked, can help you prepare for a call with your team. Other cases cannot tell you what is happening in your own body and are not a substitute for urgent care when warning signs appear.
Sources and further reading
- NHS: Constipation symptoms, self-care and when to see a GP (reviewed October 2023)
- NHS: Codeine, side effects and how to stop
- Royal National Orthopaedic Hospital NHS Trust: Management of constipation following surgery (page updated November 2025)
- Worcestershire Acute Hospitals NHS Trust: Managing pain after surgery
- NIDDK: Symptoms and causes of constipation (reviewed May 2018)
- NIDDK: Treatment for constipation (reviewed May 2018)
- Healthdirect Australia: Constipation (reviewed December 2025)
For patients & caregivers
Share your case and learn from others
Learn from doctors and other people's cases to find a way forward with your health problem. New cases are public immediately. Don't add names or identifying details.