Symptom guide
Alternating constipation and diarrhoea: causes, red flags and when to get it checked
Bowel habit that swings between hard stools and loose ones, with abdominal cramps eased by opening the bowels, is the pattern of irritable bowel syndrome with mixed habit. It is the commonest explanation, but a new change in bowel habit, particularly over 50, or with blood, weight loss or anaemia, calls for investigation to exclude bowel cancer or inflammation.
Last checked: 2026-10-03
Key facts
At a glance.
-
Typical pattern
Abdominal pain relieved by a bowel movement, with bloating and alternating stool consistency, suggests IBS-M.
-
Overflow
In constipation, liquid stool can leak around hard stool, mimicking diarrhoea.
-
Age matters
A new change in bowel habit persisting beyond six weeks in someone over 50 needs investigation.
-
Red flags
Blood, weight loss, anaemia, night-time symptoms or a family history of bowel cancer.
-
Who to see
GP; colorectal or gastroenterology if red flags or no response.
What this symptom usually means
The bowel responds to what you eat, your stress levels, hormones and the bacteria it carries. When its rhythm is disturbed, hard stool and loose stool can alternate within days. In constipation, watery stool may seep past a blockage of hard stool, giving a false impression of diarrhoea.
Possible causes, from most to least common
-
Irritable bowel syndrome (mixed type): cramps, bloating, urgency and incomplete emptying, often lasting for months or years, triggered by food or stress.
-
Constipation with overflow diarrhoea, particularly in older or less mobile people.
-
Diet changes: low fibre, high fat or irregular meals, dehydration and food intolerances.
-
Medicines: opioids, iron, calcium channel blockers and antidepressants (constipation), alongside laxatives and metformin (diarrhoea).
-
Diverticular disease, with episodes of cramping and altered stool.
-
Coeliac disease, inflammatory bowel disease or an underactive or overactive thyroid.
-
Pelvic floor dysfunction or rectal prolapse with incomplete emptying.
-
Bowel cancer, which may present with a change in bowel habit, blood, weight loss and tiredness.
Features that point to something more serious
Blood in stool, unintentional weight loss, anaemia, a persistent change over six weeks in someone over 50, a lump in the abdomen, night-time diarrhoea, symptoms starting after 50 for the first time, a family history of bowel cancer or inflammatory bowel disease and severe or worsening pain are warning signs.
Red flags: when to seek help
-
Call 999 or go to A&E: severe abdominal pain with distension and vomiting, or inability to pass wind or stool.
-
Urgent GP referral: new bowel habit change over six weeks with rectal bleeding, weight loss or anaemia, particularly over 50.
-
GP within weeks: alternating bowel habit with pain lasting more than a few weeks.
-
Pharmacist or routine GP: occasional swings with diet or travel.
What a doctor will ask and examine
The doctor asks how long, what the stools look like, pain pattern and relief, bloating, urgency, blood, weight change, appetite, diet, medicines, stress, family history and periods. They examine the abdomen, perform a rectal examination if appropriate and check for anaemia.
Tests that are commonly used and why
-
Blood tests: full blood count, ferritin, CRP, coeliac screen and thyroid function.
-
Faecal calprotectin and FIT: exclude inflammation and screen for bowel cancer risk.
-
Colonoscopy: for red flags, anaemia, abnormal stool tests or persistent symptoms.
-
CT colonography or flexible sigmoidoscopy: alternatives in some cases.
-
Anorectal tests: for suspected pelvic floor dysfunction.
Self-care and the usual route
Eat regular meals, drink enough fluids, increase soluble fibre gradually (oats, ispaghula), stay active and keep a symptom diary. Peppermint oil may help cramps. Try to build a regular toilet routine after breakfast and do not strain. Avoid overuse of laxatives and anti-diarrhoeals.
The NHS route is a GP with dietetics or gastroenterology referral as needed. Private colorectal and gastroenterology clinics offer direct access to endoscopy and tests.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
Why do I get constipation and diarrhoea in turns?
Often IBS with mixed habit, or constipation with overflow. A change in diet, stress and medicines can also contribute.
-
Can constipation cause diarrhoea?
Yes. Liquid stool can leak around a mass of hard stool, a situation called overflow diarrhoea.
-
When is a change in bowel habit worrying?
When it persists over six weeks, especially over 50, or comes with blood, weight loss or anaemia.
-
Do I need a colonoscopy?
If you have red flags, abnormal stool tests or persistent unexplained symptoms, a colonoscopy is typically recommended.
-
What fibre helps?
Soluble fibre such as oats and ispaghula is better tolerated than insoluble bran in IBS. Increase gradually.
-
Can stress cause IBS?
Stress can trigger or worsen symptoms. Psychological therapies such as CBT are effective for some people.
-
What is pelvic floor dysfunction?
Poor coordination of the pelvic floor muscles during defecation, causing straining, incomplete emptying and altered bowel habit.
-
Are probiotics useful?
Some people notice improvement. Evidence is mixed, and a four-week trial of a single product is a reasonable approach.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-03, next review 2027-10-03.
-
NHS: Irritable bowel syndrome (IBS) (nhs.uk/conditions/irritable-bowel-syndrome-ibs/)
-
NICE guideline CG61: Irritable bowel syndrome in adults
-
NICE guideline NG12: Suspected cancer - recognition and referral