Diarrhea after surgery is common and usually temporary. Most people experience some change in bowel habits during recovery, and loose stools are one of the most frequent complaints in the first few days. The causes range from antibiotics and anesthesia to the specific type of surgery performed, and in most cases, things resolve on their own as your body adjusts.
Why Surgery Disrupts Your Digestion
Several things happen during and after surgery that can throw your gut off balance. General anesthesia slows down your entire digestive system, and as it wears off, your intestines can become temporarily overactive as they “wake up.” This rebound effect sometimes produces loose or watery stools in the first day or two.
Antibiotics are another major factor. Nearly every surgical patient receives antibiotics before, during, or after the procedure to prevent infection. These medications don’t just kill harmful bacteria. They also wipe out the beneficial bacteria in your gut that help regulate digestion. Without that healthy balance, your intestines absorb less water than usual, leading to diarrhea. The risk increases the longer you’re on antibiotics. In one large study of orthopedic surgery patients, those who received antibiotics for more than seven days had a significantly higher rate of a serious gut infection called C. difficile compared to those on shorter courses.
Stress and fasting also play a role. The physical stress of surgery triggers inflammation throughout the body, and your digestive tract is particularly sensitive to it. Going without food for 12 or more hours before the procedure, then reintroducing meals afterward, can cause cramping and loose stools as your gut readjusts.
Surgeries With Higher Diarrhea Risk
While any surgery can cause short-term diarrhea, certain procedures carry a much higher risk of prolonged or chronic loose stools.
Gallbladder Removal
Your gallbladder stores bile, a digestive fluid that helps break down fat. Once it’s removed, bile flows continuously into your small intestine instead of being released in controlled bursts after meals. This excess bile irritates the lining of your colon and pulls water into the intestine. Some people develop ongoing diarrhea from this bile acid overflow, particularly after fatty meals. The problem often improves over weeks to months as your body adapts, though some people need medication to bind the excess bile.
Bariatric Surgery
Gastric bypass and sleeve gastrectomy carry some of the highest rates of post-surgical diarrhea. A condition called dumping syndrome, where food moves too quickly from the stomach into the small intestine, affects up to 75% of gastric bypass patients and up to 45% of sleeve gastrectomy patients. Within 10 to 30 minutes of eating, you may experience cramping, nausea, and watery diarrhea, especially after sugary or high-fat meals. Eating smaller, more frequent meals and avoiding simple sugars helps manage symptoms for most people.
Colorectal Surgery
Surgery on the colon or rectum directly changes how your body absorbs water and forms stool. In a multicenter study of colorectal cancer patients, about 18% of those without a stoma developed postoperative diarrhea. For patients with a temporary ileostomy (where the small intestine is rerouted to an opening in the abdomen), the rate was even higher, with some studies reporting it in 16% to 43% of patients after rectal surgery.
Pain Medications and Bowel Changes
The pain medications you take during recovery can affect your gut in opposite directions. Opioid painkillers like oxycodone and morphine are well known for causing constipation because they slow intestinal movement. But here’s the twist: if you’re taking an opioid and then stop abruptly, or if you’re prescribed medications specifically designed to counteract opioid-related constipation, diarrhea can follow. These reversal agents commonly list diarrhea, abdominal pain, and nausea among their side effects.
Non-opioid pain relievers like ibuprofen and naproxen can also irritate the stomach and intestinal lining, potentially contributing to loose stools. If you notice that diarrhea starts or worsens after beginning a new pain medication, it’s worth flagging this for your surgical team.
How Long It Normally Lasts
For most people, post-surgical diarrhea resolves within a few days as anesthesia clears, antibiotics finish, and normal eating resumes. Your bowel habits should return to their baseline once you’re back on your regular diet and moving around normally.
Diarrhea lasting more than 24 hours in the immediate days after surgery is worth reporting to your surgeon. If loose stools continue beyond two days without improvement, or if you notice blood, black-colored stool, a fever above 102°F, or signs of dehydration like dark urine, dizziness, dry mouth, or extreme thirst, seek medical attention promptly. These can signal a complication like C. difficile infection, which occurs in roughly 8 out of every 1,000 surgical procedures and requires specific treatment.
What to Eat During Recovery
A bland, low-fiber diet helps calm your digestive system while it recovers. Focus on foods that are easy to digest: white rice, plain toast or crackers made with refined flour, bananas, applesauce, eggs, lean poultry, baked whitefish, broth-based soups, and cooked or canned vegetables. Potatoes, gelatin, and hot cereals like cream of wheat are also gentle options.
Avoid anything that’s likely to stimulate your intestines further. That includes raw vegetables, whole grains, nuts, seeds, dried fruits, spicy foods, fried or greasy dishes, and gas-producing vegetables like broccoli, cabbage, and cauliflower. Skip alcohol and caffeinated drinks, which can worsen diarrhea by speeding up gut motility or pulling more water into the intestine.
Eat smaller meals spread throughout the day rather than three large ones. Chew slowly and thoroughly. This gives your digestive system less work to do at once and reduces the chances of cramping or urgency after eating.
Staying Hydrated
Diarrhea pulls fluid and electrolytes out of your body quickly, and dehydration is a real concern during surgical recovery. There’s no single magic number for how much to drink, because it depends on the severity of the diarrhea, your body size, and what fluids you’re already receiving. But the practical goal is straightforward: drink enough that your urine stays light yellow and you’re not feeling dizzy or excessively thirsty.
Water is the foundation, but if diarrhea is frequent, you’re also losing sodium, potassium, and other electrolytes. Broth, diluted fruit juice, and oral rehydration solutions help replace what plain water can’t. Sip fluids steadily throughout the day rather than drinking large amounts at once, which can trigger more cramping.

