Alternating between constipation and diarrhea is one of the most common gastrointestinal complaints, and it almost always has an identifiable explanation. The pattern can result from something as straightforward as diet or laxative use, or it can signal a functional gut disorder like irritable bowel syndrome. About 14% of the global population has IBS, and the mixed subtype (where people cycle between both extremes) is actually the most common form, affecting roughly 31% of all IBS cases.
How IBS Causes Both Extremes
Irritable bowel syndrome with mixed bowel habits, sometimes called IBS-M, is the single most likely explanation for this pattern. Your gut essentially oscillates between moving too slowly and too quickly, producing hard, difficult-to-pass stools one day and loose, urgent ones the next. The shift can happen over days or even within the same day.
IBS is classified as pain-predominant, meaning abdominal cramping or discomfort is a central feature alongside the irregular stools. If your primary complaint is bloating rather than pain, a related condition called small intestinal bacterial overgrowth (SIBO) may be involved instead. SIBO occurs when excess bacteria colonize the small intestine, and depending on which bacterial species are overrepresented, it can cause diarrhea, constipation, or both. Gastroenterologists frequently consider SIBO when patients report bloating with unpredictable bowel habits.
Overflow Diarrhea: When Constipation Itself Causes Loose Stools
This is the cause people find most surprising. When a large, hardened mass of stool gets stuck in the rectum (a condition called fecal impaction), liquid stool from higher up in the colon can seep around the blockage and leak out as watery diarrhea. You feel like you have diarrhea, but the underlying problem is severe constipation. Treating the diarrhea with anti-diarrheal medication in this situation actually makes things worse because it slows the gut further while the impaction remains.
Overflow diarrhea is more common in older adults, people with limited mobility, and those taking medications that slow the gut (opioids, certain antidepressants, iron supplements). The key clue is persistent bloating and a sense of fullness in the lower abdomen that doesn’t resolve after a bowel movement.
The Laxative Rebound Cycle
If you’ve been using stimulant laxatives like bisacodyl (Dulcolax) or senna (Senokot) to manage constipation, the medications themselves can create an alternating pattern. Stimulant laxatives work by forcing the intestinal wall to contract and pushing fluid into the colon. The result is often diarrhea, followed by a rebound period where the gut is sluggish and unresponsive, producing constipation again.
Over time, the intestines lose muscle tone and nerve responsiveness, meaning you need increasingly higher doses to get the same effect. This creates a self-reinforcing loop: constipation leads to laxative use, which causes diarrhea, which leads to rebound constipation, which prompts more laxative use. Breaking the cycle typically requires switching to a gentler approach (like soluble fiber) and gradually weaning off stimulant products.
Foods That Trigger the Pattern
Certain poorly absorbed sugars can pull excess water into your intestines, causing diarrhea after meals, while leaving you constipated during periods when you avoid those foods. The most common culprits are lactose (in dairy), fructose (concentrated in apples, pears, cherries, dates, and fruit juices), and sugar alcohols like sorbitol, mannitol, and xylitol found in sugar-free gum, mints, and protein bars.
These sugars aren’t fully absorbed in the small intestine. When they reach the colon, bacteria ferment them, producing gas and drawing water into the bowel. The result is bloating, cramping, and loose stools. Between exposures, your gut may swing back toward sluggish motility and constipation, especially if your baseline diet is low in fiber. A low-FODMAP elimination diet, which temporarily removes these fermentable sugars, has shown the strongest benefit for people with IBS-D and IBS-M subtypes.
Inflammatory Bowel Disease and Structural Causes
Chronic inflammatory conditions like Crohn’s disease and ulcerative colitis can produce alternating bowel habits through a different mechanism. Over time, repeated inflammation causes scarring in the intestinal wall, which can narrow the passage (called a stricture). A mild stricture makes stool harder to pass and may cause constipation, while the ongoing inflammation simultaneously triggers episodes of diarrhea. The combination of abdominal pain, constipation, and diarrhea is a hallmark presentation.
With a moderate stricture, stools become noticeably narrower and more difficult to pass. Severe narrowing can cause complete blockage, which is a medical emergency. IBD typically also involves symptoms that IBS does not: bloody stool, unintentional weight loss, fevers, and fatigue.
Signs That Need Prompt Evaluation
Most alternating bowel habits are functional, meaning they’re uncomfortable but not dangerous. However, certain red flags alongside changing bowel patterns warrant a timely workup. Visible blood in your stool is the most significant: it’s present in roughly 45% of early-onset colorectal cancer cases. Persistent abdominal pain (reported in about 40% of cases) and unexplained anemia are also associated with higher likelihood of a serious diagnosis.
Other signals to take seriously include unintentional weight loss, symptoms that wake you from sleep (functional disorders like IBS almost never cause nighttime symptoms), and a new change in bowel habits after age 45 to 50 with no prior history. A family history of colorectal cancer or IBD lowers the threshold for investigation further.
Stabilizing Your Bowel Pattern
The most broadly effective first step is soluble fiber supplementation, particularly psyllium husk. Unlike stimulant laxatives, soluble fiber works as a regulator rather than a one-directional push. It absorbs water to soften hard stools during constipation-dominant phases, and it adds bulk to firm up loose stools during diarrhea-dominant phases. Clinical evidence supports psyllium for all IBS subtypes, including the mixed form.
The target range is 20 to 35 grams of total dietary fiber per day, but the critical detail is to increase slowly. Adding no more than 5 grams per day each week prevents the gas, bloating, and cramping that cause many people to abandon fiber too quickly. Starting with a small dose (one teaspoon of psyllium in a full glass of water) and building up over three to four weeks gives your gut bacteria time to adapt.
Beyond fiber, keeping a simple food and symptom diary for two to three weeks can reveal personal triggers. Track what you eat, when symptoms appear, and what your stool looks like. Patterns often emerge quickly, especially around dairy, high-fructose foods, or sugar-free products. If a clear dietary trigger shows up, removing it for two to four weeks and then reintroducing it confirms whether it’s driving the cycle.

