Skip to content
PoopCheck PoopCheck
Conditions September 27, 2026

Alternating Constipation and Diarrhea: What the Pattern Means

Alternating hard and loose stools usually point to IBS-M, but overflow diarrhea and other causes look identical. Here's how to tell them apart.

By PoopCheck Team

Alternating constipation and diarrhea most often points to IBS with mixed bowel habits (IBS-M), the subtype defined by having at least 25% hard, lumpy stools and at least 25% loose, watery stools on abnormal days (Rome Foundation). It’s not the only cause: overflow diarrhea from fecal impaction, food-triggered swings, and a handful of medications can produce the same pattern. The difference matters because the treatments diverge, and one of these patterns (persistent alternation with weight loss or blood) is a reason to see a clinician, not to try another elimination diet.

Key takeaways

  • IBS-M is the most common driver. Rome IV defines it as ≥25% Bristol type 1–2 (hard) and ≥25% type 6–7 (loose) on days with at least one abnormal bowel movement (Rome Foundation).
  • The subtype is unstable. In one prospective cohort, roughly 50% of IBS-M patients switched to a different subtype within 12 weeks, and most patients move between IBS-M and IBS-C rather than between IBS-D and IBS-C (Rej et al., 2022 review).
  • Overflow diarrhea is a mimic. Liquid stool leaking around a hardened, impacted mass looks like diarrhea but is actually severe constipation. It’s especially common in older adults and shouldn’t be treated with anti-diarrheals (Cleveland Clinic — IBS).
  • Red flags override the “probably IBS” default. Rectal bleeding, unintentional weight loss, nocturnal diarrhea, or a change in bowel habits lasting more than a few weeks after age 45 warrant a clinician visit, not another dietary tweak (Mayo Clinic — IBS).
  • Timeline data beats memory. A dated log of Bristol types is more diagnostic than “I’ve been going back and forth for months,” because clinicians classify subtypes by percentages, which you can only calculate from records.

What “alternating” actually means

Alternating constipation and diarrhea is not a diagnosis on its own. Clinicians classify it by counting Bristol Stool Scale types over time. The Bristol scale rates stool form from 1 (hard, separate lumps) to 7 (entirely liquid), with types 3–5 considered normal. Under the Rome IV criteria for IBS, subtype is assigned by the fraction of abnormal-day stools that fall into each extreme:

  • IBS-C — ≥25% type 1–2 and under 25% type 6–7
  • IBS-D — ≥25% type 6–7 and under 25% type 1–2
  • IBS-M — ≥25% type 1–2 and ≥25% type 6–7
  • IBS-U — abnormal habits that don’t fit the other three

The key change in Rome IV is that percentages are calculated only on days with at least one abnormal bowel movement, not on total stools. That correction matters because many people with IBS have long stretches of normal stool between flares; scoring on total stools inflated the “unclassified” bucket and hid mixed patterns (Rome Foundation). If you’re trying to identify your own pattern, our Bristol stool chart explainer walks through what each type looks like.

Why IBS-M produces the pattern

IBS itself is a disorder of gut–brain interaction: the two-way signaling between the enteric nervous system and the brain becomes hypersensitive, and gut motility swings between too slow and too fast. In IBS-M, both directions of the swing show up in the same person, sometimes within the same week. The gut–brain axis explainer covers the biology in more depth; the practical takeaway is that stool consistency is the visible output of a motility system that has lost its regulation.

That instability is baked into the subtype. A 2022 review in Alimentary Pharmacology & Therapeutics summarizing multiple prospective cohorts found that IBS-M was the least stable of the subtypes, with about half of IBS-M patients reclassifying to a different subtype within 12 weeks. Most transitions happen between IBS-M and IBS-C, or between IBS-M and IBS-D. Direct swings between pure constipation and pure diarrhea are relatively rare (Rej et al., 2022). So “some weeks I’m constipated, other weeks I have diarrhea” is a textbook IBS-M presentation.

If you already know you have IBS, the IBS overview covers subtype definitions and evidence-based management. If you’re at the beginning of that conversation, the alternation itself is often the first thing worth mentioning to a clinician.

Other causes that look the same

Overflow (paradoxical) diarrhea

Chronic constipation can end in fecal impaction: a hardened stool mass in the rectum or lower colon. Liquid stool from higher up bypasses the mass and leaks out, producing what looks like diarrhea but is actually severe constipation. Anti-diarrheal medication makes it worse. The pattern is more common in older adults, in people on opioids or high-dose anticholinergics, and after long stretches of physical inactivity (Cleveland Clinic — IBS). If “diarrhea” is small-volume, foul-smelling, and shows up in someone who has otherwise been visibly constipated for weeks, overflow is the working hypothesis until a clinician disimpacts and reassesses.

Diet triggers on repeat

FODMAP-heavy meals, alcohol binges, sugar-alcohol-sweetened foods, and a sudden fiber ramp can each cause a shift toward loose stool; low-fluid weeks, low-fiber travel eating, and codeine-containing painkillers push in the opposite direction. When the two happen on different days of the same week, you get alternation without any underlying disease. The low-FODMAP diet guide covers the diagnostic elimination protocol; the practical starting point is a two-week food-and-stool log that surfaces the pattern.

Medications

Common offenders that swing the system in both directions:

  • Opioids and anticholinergics: slow transit, cause hard stool
  • Metformin, magnesium-containing antacids, SSRIs: speed transit, cause loose stool
  • Iron supplements: hard, dark stool in some people; loose stool in others

Anyone on a rotating medication list, especially in older age, can present with alternating patterns that resolve when the drug schedule is reviewed.

Small intestinal bacterial overgrowth (SIBO)

SIBO can produce a mixed picture of constipation and diarrhea, particularly when methane-producing organisms dominate. Our SIBO explainer covers the breath-test workup. It’s not the first thing to test, but it’s a real second-line consideration when standard IBS management stalls.

Serious causes that mimic IBS-M

The one presentation that separates a functional pattern from a structural one is new alternating bowel habits after age 45, especially when paired with unintentional weight loss, rectal bleeding, iron-deficiency anemia, nocturnal diarrhea, or a strong family history of colorectal cancer or inflammatory bowel disease. Those aren’t rearrangement-of-diet problems; they’re the picture the colon-cancer symptom guide is written to catch.

How to sort out your own pattern

If you’re not sure whether your swings are IBS-M, overflow, or diet-triggered, track two weeks of stools with PoopCheck and count what percentage fall into Bristol 1–2 versus 6–7. That single number tells a clinician far more than “I go back and forth” and separates IBS-M (a real 25/25 split) from mostly-normal-with-occasional-flares (which usually isn’t). Bring the log to the appointment. The broader IBS overview covers what happens next.

Red flags: when this isn’t a diet problem

Book an appointment (sooner, not later) if any of these show up alongside the alternating pattern:

  • Rectal bleeding or black, tarry stools
  • Unintentional weight loss of more than a few pounds
  • Nocturnal diarrhea that wakes you from sleep
  • Iron-deficiency anemia on routine bloodwork
  • New onset after age 45 without a clear dietary or medication trigger
  • A first-degree relative with colorectal cancer, IBD, or celiac disease
  • Fevers, joint pain, or eye inflammation alongside gut symptoms (possible IBD)
  • A persistent shift lasting more than three weeks with no benign explanation

None of these individually confirms anything serious, but any one of them shifts the workup from “manage IBS” to “rule out something else first.”

FAQ

Is alternating constipation and diarrhea normal? A short-term swing after a stomach bug, a course of antibiotics, or a travel week is normal and self-resolves within one to two weeks. A persistent alternating pattern lasting three months or longer, especially with abdominal pain that improves after a bowel movement, meets Rome IV criteria for IBS and warrants a clinician visit for confirmation.

How do I know if my pattern is IBS-M or just occasional variability? Track your Bristol type for two to four weeks. IBS-M requires ≥25% type 1–2 hard stools and ≥25% type 6–7 loose stools on abnormal-bowel-movement days, along with recurrent abdominal pain related to defecation. If the percentages don’t clear both thresholds, it’s not IBS-M by Rome IV.

Can I have IBS-M without abdominal pain? No, at least not by the formal criteria. Rome IV requires recurrent abdominal pain, on average at least one day per week over the last three months, related to defecation or associated with a change in stool frequency or form. Bowel habit changes without pain point to functional constipation, functional diarrhea, or a non-IBS cause.

Does overflow diarrhea always mean fecal impaction? Not always, but the term is usually reserved for the impaction pattern. If diarrhea is small-volume, foul-smelling, and appears in someone who has been visibly constipated, overflow is the leading hypothesis and needs a rectal exam to confirm. Anti-diarrheals worsen impaction, so the diagnostic sequence matters.

Can food cause alternating constipation and diarrhea without IBS? Yes. A pattern of high-fiber, high-FODMAP days followed by low-fiber travel days can produce alternation in a healthy gut. Sugar alcohols (sorbitol, mannitol, xylitol) in “sugar-free” products are a common under-recognized cause, as are alcohol-heavy weekends followed by dehydration and low fluid intake. A two-week food-and-stool log usually surfaces the driver.

Should I stop tracking during good weeks? No. Those weeks are the numerator. Rome IV subtypes are defined by the mix across abnormal-bowel-movement days over three months. Skipping normal days is fine (the criteria discount them), but skipping abnormal ones during a “good stretch” biases your classification and makes it harder to spot a slow drift back toward a flare.

The bottom line

Alternating constipation and diarrhea usually reflects IBS-M, an unstable, gut–brain-driven pattern that swings between hard and loose stools and often changes subtype from month to month. The important mimics are overflow diarrhea from fecal impaction, diet-driven swings, common medications, and (in a smaller fraction) SIBO. The presentations that leave the IBS lane are the classic red flags: bleeding, weight loss, nocturnal diarrhea, new onset after 45, or a strong family history. Everything else is easier to solve when you can show a clinician a real percentage split rather than describe a foggy memory of last week.

Sources

  1. Rome IV Criteria — The Rome Foundation.
  2. Irritable Bowel Syndrome (IBS): Symptoms, Causes & Treatment — Cleveland Clinic.
  3. Irritable bowel syndrome — Symptoms and causes — Mayo Clinic.
  4. Review article: irritable bowel syndrome — natural history, bowel habit stability and overlap with other gastrointestinal disorders — Rej et al., Aliment Pharmacol Ther, 2022.

Ready to track your gut health?

Download PoopCheck free and get your first AI stool analysis in seconds.

Scan your first photo free
P
PoopCheck Team

The PoopCheck team is dedicated to making digestive health tracking accessible, accurate, and private for everyone.

4.8 · Get the app free