Alternating Constipation & Diarrhea: Causes & Relief

Alternating Constipation & Diarrhea: Causes & Relief

What does alternating constipation and diarrhea mean?

One week you’re straining with hard, lumpy stools. The next, you’re rushing to the bathroom with loose, watery ones. This back-and-forth pattern — alternating constipation and diarrhea — is more common than most people realize, and it can be genuinely disruptive to daily life.

Rather than being two separate problems, this pattern often points to a single underlying issue affecting how your gut regulates motility, fluid absorption, or both. Understanding why it happens is the first step toward finding consistent relief.

Common causes

Irritable bowel syndrome — mixed type (IBS-M)

The most frequent explanation for alternating bowel habits is IBS-M (also called IBS-A for “alternating”). It accounts for roughly one-third of all IBS diagnoses. In IBS-M, the gut oscillates between moving too slowly (constipation) and too quickly (diarrhea), often triggered by stress, certain foods, or hormonal shifts.

IBS-M is diagnosed using the Rome IV criteria after other conditions have been ruled out. Key features include recurrent abdominal pain related to bowel movements and a change in stool frequency or form.

Stress and the gut-brain axis

Your gut and brain are in constant communication through the vagus nerve and enteric nervous system. Chronic stress, anxiety, or poor sleep can dysregulate gut motility — slowing it one day and accelerating it the next. Many people notice their bowel pattern worsens during high-pressure periods at work or during emotional upheaval.

Diet and food triggers

Inconsistent eating habits can push your gut in both directions:

  • Low fiber intake followed by sudden high-fiber meals can swing you from constipation to diarrhea.
  • Dairy products may cause diarrhea in lactose-intolerant individuals, while processed foods eaten on other days promote constipation.
  • Artificial sweeteners (sorbitol, mannitol) draw water into the bowel, causing loose stools between bouts of constipation.
  • Irregular meal timing disrupts the gastrocolic reflex that normally keeps your gut rhythm steady.

Medication side effects

Several common medications can contribute to this pattern:

MedicationEffect on bowels
Opioid pain relieversConstipation, followed by rebound diarrhea when stopped
AntibioticsDisrupt gut bacteria, causing diarrhea that may alternate with sluggish motility
Iron supplementsConstipation that leads to compensatory loose stools
Magnesium antacidsOsmotic diarrhea between constipated episodes
Laxative overuseCreates a cycle of constipation and laxative-induced diarrhea

Small intestinal bacterial overgrowth (SIBO)

When bacteria that normally live in the colon migrate into the small intestine, they ferment food prematurely. This produces gas, bloating, and unpredictable stool changes — sometimes constipation (especially with methane-dominant SIBO) and sometimes diarrhea (hydrogen-dominant SIBO). Mixed presentations are common.

Hormonal fluctuations

Many women notice their bowel habits shift with their menstrual cycle. Progesterone slows gut motility in the luteal phase (often causing constipation), while prostaglandins released during menstruation speed things up (causing loose stools or diarrhea). This monthly swing can mimic or worsen IBS-M.

Other medical conditions

Less commonly, alternating bowel habits may signal:

  • Celiac disease — Gluten-triggered intestinal damage with variable symptoms.
  • Inflammatory bowel disease (IBD) — Crohn’s disease or ulcerative colitis, especially in early or mild forms.
  • Thyroid disorders — Hypothyroidism causes constipation; hyperthyroidism causes diarrhea. Fluctuating thyroid levels produce both.
  • Colorectal issues — Partial obstruction from polyps or strictures can cause constipation alternating with overflow diarrhea.

How to find relief

Stabilize your fiber intake

Rather than swinging between too little and too much, aim for a consistent daily fiber intake of 25 to 30 grams. Increase gradually — adding more than 5 grams per day can worsen symptoms. Soluble fiber (oats, psyllium, chia seeds) is generally better tolerated than insoluble fiber for people with IBS-M, as it forms a gel that regulates stool consistency in both directions.

Follow a structured elimination diet

A low-FODMAP diet under the guidance of a dietitian is the most evidence-based dietary approach for IBS-M. It involves removing fermentable carbohydrates for two to six weeks, then systematically reintroducing them to identify personal triggers. Studies show it improves symptoms in 50 to 80% of IBS patients.

Manage stress proactively

Since the gut-brain connection drives much of this pattern, stress management is not optional — it’s therapeutic:

  • Gut-directed hypnotherapy has strong evidence for IBS symptom reduction.
  • Cognitive behavioral therapy (CBT) helps break the anxiety-symptom cycle.
  • Regular moderate exercise (30 minutes most days) improves gut motility and reduces stress hormones.
  • Consistent sleep schedule — poor sleep worsens gut sensitivity the following day.

Establish regular habits

  • Eat meals at consistent times to train your gastrocolic reflex.
  • Stay well hydrated — dehydration hardens stool, while overcompensating with large volumes can loosen it.
  • Avoid skipping meals — long gaps followed by large meals destabilize gut rhythm.

Talk to your doctor

If the pattern persists for more than a few weeks, see your doctor. They may recommend:

  • Blood tests to check for celiac disease, thyroid function, and inflammation markers.
  • Stool tests for infections, calprotectin, and malabsorption indicators.
  • Breath testing for SIBO or lactose intolerance.
  • Colonoscopy if you’re over 45, have red-flag symptoms, or haven’t had age-appropriate screening.

When to seek urgent care

See a doctor promptly if your alternating symptoms come with:

  • Blood or mucus in your stool
  • Unintentional weight loss
  • Fever or night sweats
  • Persistent pain that doesn’t improve after a bowel movement
  • Symptoms that wake you from sleep
  • Family history of colorectal cancer or IBD

These red flags suggest something beyond functional IBS and warrant further investigation.

Track your patterns with Flushy

The most useful thing you can bring to a doctor’s appointment is data. Flushy lets you log each bowel movement on the Bristol Stool Scale, tag contributing factors like stress, diet, coffee, and medications, and review your history over weeks and months. Spotting the constipation-diarrhea cycle in your own logs — and identifying what triggers each phase — puts you in a stronger position to get an accurate diagnosis and effective treatment.

This article is for informational purposes only and does not constitute medical advice. Consult a healthcare professional for personalized guidance.