Constipation After Surgery

Why It Occurs and How to Treat It

Your body endures a lot during surgery. It may not be surprising, then, to hear that patients often have bouts of constipation after surgery. Constipation is when stools are dry or hard and you have trouble passing them.

This article will discuss the causes of constipation after surgery. It will also discuss some of the complications of this problem and how to prevent and treat it.

Man with constipation holding his stomach
Peter Dazeley / Getty Images

What Are Normal Bowel Movements?

Normal bowel movements are different for everyone. If you usually have two or three bowel movements a day, three in a week means you are constipated. For some people, though, three bowel movements a week is normal.

"Normal" stools are soft, formed, and are not painful. Normal bowel movements can also be controlled.

There is no rule for how often you should have a bowel movement. Constipation is when your bowel movements are less frequent than what is normal for you.

The longer you go between bowel movements, the harder your stools will be. This is because the stool dries out in the colon as water is absorbed back into the bloodstream.

Causes of Constipation After Surgery

There are a few reasons why surgery patients are prone to constipation. The most common culprit is the prescription drugs given for pain relief.

Pain Medication

Opioids are a powerful type of pain medication. These drugs are often given after surgery for pain control. Unfortunately, constipation is a well-known side effect of all opioids.

Opioids slow the movement of food through the intestinal tract. This gives the body more time to remove water. This can lead to a drier than typical stool.

Opioids may also increase the amount of water absorbed from the gastrointestinal tract.

Finally, opioids may decrease the urge to have a bowel movement. This also allows more time for the body to remove water.

Food and Drink After Surgery

You may have been instructed not to eat or drink before surgery. After surgery, you may have been told to drink only small amounts. You may also have been told not to eat at all for a day or two.

Too little fluid and no food can work against your body’s normal routine of elimination.

Too little fluid in the body means less fluid in your stools. This can cause hard, dry bowel movements.

Food stimulates the digestive system and keeps things moving. If you aren't eating, “food in, food out” doesn’t work as well.

Your food choices may have also changed after surgery. Even the food you ate in the hospital may be a major change from your normal diet. These kinds of changes can cause constipation.


Physical activity can help trigger a bowel movement. After surgery, you spend most of your time in bed recovering. This can slow down your bowels.


Anesthesia paralyzes your muscles. This stops movement in the intestinal tract. Until your intestines "wake up," there is no movement of stool.

Complications of Constipation

You will feel more comfortable if you can avoid post-surgical constipation. There are also other reasons why you will want to prevent it.

Constipation can progress to impaction. This is when the stool is so hard and dry that you cannot have a bowel movement.

When this happens, the hardened stool must be removed in another way, such as:

  • Enemas, where a doctor injects liquid into your rectum to help remove the stool
  • Digital evacuation, where a doctor uses fingers to dislodge the hardened stool
  • Surgery, in advanced cases

Severe, prolonged constipation can cause permanent damage. Sometimes, segments of the intestine must be removed.

This often means the patient will need a colostomy. A colostomy is when a surgeon creates an opening in the abdomen that allows stool to pass into a collection device. 

Constipation and impaction can lead to straining. Straining to force a bowel movement can cause other problems, such as:

  • Unusual heart rhythms
  • Rectal prolapse, in which the rectum pushes out of the anus
  • Hemorrhoids, swollen veins in the rectum or anus
  • Shortness of breath

In surgery patients, straining can cause stress on incisions. An incision is the cut the surgeon made during the procedure.

Straining may stress both internal and external incisions. In extreme cases, it can cause the incisions to open

Open heart surgery patients can be at particular risk. For these patients, straining to have a bowel movement may cause heart rhythm changes. 


Constipation can lead to complications like impaction, hemorrhoids, rectal prolapse, and abnormal heart rhythms. Straining may also cause stress on incisions.

Preventing Constipation After Surgery

It's much easier to prevent constipation than deal with it once it starts. These tips will help you stay regular and avoid as much discomfort as possible.


Your surgeon may prescribe a stool softener to take along with your pain medication. Be sure to follow your surgeon's instructions even if you have never had constipation before.

It is also important not to use over-the-counter (OTC) treatments without first discussing them with your doctor. There is a large variety of OTC medications for constipation. Some may be poor choices. For example, a bowel stimulant may be too hard on your body after surgery. 

Drink More Fluids

Drinking more fluids can help prevent constipation. Avoid caffeinated beverages. Instead, choose beverages like water and juice. These will keep you well hydrated and lower your risk of constipation.

Fluids can also help you recover after developing constipation.

Remember to take your pain medication with water. Keep drinking water throughout the day.

The recommended daily intake of water is typically about 64 ounces. This may not be enough when taking opioids. 

Eat More Fiber

What you eat can increase or decrease your risk of constipation. Increase your fiber intake by eating fruits and vegetables.

It is best to eat fruits and vegetables in as close to their natural state as possible. A whole orange, for example, provides more fiber than pulp-free orange juice.

You can also add fiber to your diet with fiber supplements. Remember, though, that adding supplemental fiber can increase constipation if you're not drinking enough water.

Avoid foods known to cause constipation. Cheese, for example, can cause constipation. So can a diet with lots of meat and few fruits and vegetables.

Regular Meals and Snacks

Your body naturally eliminates stool when more food is introduced. This is why many people have a bowel movement after breakfast. Food goes in, so stool must go out. This is also why small, frequent meals can help you have regular bowel movements.

Physical Activity

Physical activity can decrease the risk of constipation. This can be something as simple as walking. It is important, though, to follow your surgeon's instructions if you have limits on exercise.


To prevent post-surgical constipation, drink plenty of fluids and eat more fiber. If your doctor says it's okay, physical activity can also help. Ask your doctor before taking any OTC medications to prevent constipation.

Treatment of Constipation After Surgery

The above tips for preventing constipation will also help if you develop constipation. When you are constipated, it is important to increase your fluid intake. It is also important to add fiber to your diet.

There are many OTC and prescription treatments for constipation. If you have recently had surgery, though, consult your doctor before using them.

Treatments for constipation vary in how gentle or aggressive they are. Some can cause severe abdominal distress. Overly stimulating medications may cause:

These side effects may also happen if you take too much of these medications.

Common types of anti-constipation therapies include:


If you do develop constipation after surgery, drink lots of fluids and increase the amount of fiber in your diet. Your doctor can also help you find the right medication to treat your constipation.


Constipation is when you have fewer bowel movements than what is normal for you. It is common after surgery.

Pain medication, what you eat and drink, inactivity, and anesthesia can all contribute to post-surgery constipation. 

It is best to avoid developing constipation, since it can lead to impaction. This is when your stool is so hard that you cannot pass it. Straining can also lead to problems like unusual heart rhythms and hemorrhoids.

You can help prevent constipation after surgery by taking medications as recommended by your doctor or surgeon. Drinking more fluids and eating more fiber can also help. Eat regular meals and snacks and stay active if your doctor approves. 

If you do develop constipation, increase your fluid intake and eat more fiber. Your doctor can recommend medications that may also help.

A Word from Verywell

Constipation should never be ignored. This is especially true after a stressful experience like surgery.

If you do develop constipation, though, don't worry. With your doctor's help, and possibly some medication, you can get your bowels back on track. 

Frequently Asked Questions

  • How common is constipation after surgery?

    Constipation is very common after surgery and is caused by pain medications, changes in diet, inactivity, and stress. Between 40% and 95% of patients report constipation as a side effect of taking opioids for pain relief after surgery.

  • How long does it take for your intestines to wake up after surgery?

    It can take your bowels and GI tract a few days to fully recover from the paralyzing effect of anesthesia and resulting post-surgery constipation.

5 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Aurilio C, Caterina M, Pota V, Sansone P. Opioid induced constipationConstipation - Causes, Diagnosis and Treatment. doi:10.5772/28602.

  2. Obokhare I. Fecal impaction: a cause for concern? Clin Colon Rectal Surg. 2012;25(01):053-8. doi:10.1055/s-0032-1301760

  3. National Institute of Diabetes and Digestive and Kidney Diseases. Treatment for constipation.

  4. HSS. Managing constipation after surgery.

  5. Keller D, Stein S. Facilitating return of bowel function after colorectal surgery: alvimopan and gum chewingClinics in Colon and Rectal Surgery. 2013;26(03):186-190.

Additional Reading

By Jennifer Whitlock, RN, MSN, FN
Jennifer Whitlock, RN, MSN, FNP-C, is a board-certified family nurse practitioner. She has experience in primary care and hospital medicine.