Tuesday, 1 December 2026Plain-language health research · Every claim sourced

Mucus in Stool and Black Stool (Melena): Causes and When to Worry

Your gut makes mucus all the time, so a little in your poo is rarely a problem on its own. Here is what NHS, Australian and US guidance and the research say about the causes that matter, and why black, tarry stool is an emergency sign.

A little mucus is part of a working gut. Blood, black stool or weight loss are not.

Mucus in stool is usually a sign that your bowel is doing its normal job: the gut lining makes mucus all the time to protect itself. It becomes a concern when it comes with blood, diarrhoea that will not settle, tummy pain, weight loss or a lasting change in your bowel habit, and black, tarry stool (melena) is a separate warning sign that needs urgent medical help.

This guide is based on the NHS, Healthdirect Australia, the American College of Gastroenterology (ACG) bleeding guideline, NICE, the CDC and peer-reviewed research.

What is mucus in stool, and why does the gut make it?

Mucus is a slippery gel made by goblet cells, specialised cells scattered through the lining of the intestine. A 2013 review in Nature Reviews Gastroenterology & Hepatology by researchers at the University of Gothenburg describes how the colon has two layers of mucus: an inner layer that is firmly attached to the bowel wall and an outer layer that is looser.

According to the same review, the inner layer is impervious to bacteria and is renewed every hour. A 2016 review in Nature Reviews Immunology describes it as a bacteria-free zone at the gut surface.

Because the bowel produces mucus continuously, seeing a little clear or white jelly on your stool or the toilet paper is not in itself a sign of disease. It tends to become more noticeable when the bowel is irritated or inflamed, as in IBS, colitis or a gut infection, which are covered below.

Slimy, jelly-like or white mucus: what it can mean

None of the NHS, Healthdirect or US government pages we reviewed treat a little mucus on its own as an emergency. What matters is what comes with it:

What you noticePossible causes named in guidanceWhat to do
Occasional clear or white mucus, otherwise wellNormal gut mucus; IBS (the NHS lists "pooing mucus" as an IBS symptom)Watch for other symptoms; see a GP if bowel changes last more than 3 to 4 weeks
Mucus with tummy pain, bloating, diarrhoea or constipation that come and goIrritable bowel syndrome (IBS)See a GP, especially if symptoms have lasted over 4 weeks
Diarrhoea with mucus, blood or pus, urgencyUlcerative colitis or other inflammatory bowel diseaseGet medical advice promptly; urgently if diarrhoea is very bad or bloody
Sudden bloody diarrhoea with clear slime, fever or vomitingGut infection (gastroenteritis), for example ShigellaUrgent GP or NHS 111 for bloody diarrhoea
Slime with blood and a lasting change in bowel habitBowel polyps or, less often, bowel cancerSee a GP; tests are usually needed
Black, sticky, tarry, foul-smelling stoolBleeding higher up the gut (melena)Urgent same-day help; emergency care if faint or dizzy

Common causes of mucus in stool

Irritable bowel syndrome (IBS)

IBS is the most familiar reason for mucus without blood. The NHS IBS symptoms page lists stomach pain or cramps, bloating, diarrhoea and constipation as the main symptoms, and "pooing mucus" among the other symptoms IBS can cause. The US National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) describes it as "whitish mucus in your stool".

The NIDDK notes that IBS can be painful but does not damage the digestive tract. That is why blood is not part of the IBS picture: the NHS says to ask for an urgent GP appointment if you are bleeding from your bottom, have bloody diarrhoea or have lost a lot of weight for no reason.

Ulcerative colitis and inflammatory bowel disease

The CDC describes ulcerative colitis (UC) as the most common type of inflammatory bowel disease (IBD), and says people with UC often have blood or mucus in their stool, caused by ulcers in the bowel lining. The NHS describes diarrhoea "which may contain blood, mucus or pus", along with urgency, tummy pain and bleeding from the bottom.

Severity varies a lot. The NIDDK describes mild UC as fewer than four bowel movements a day with occasional blood, while a severe (fulminant) flare can mean more than 10 bloody bowel movements a day. Laboratory research suggests the protective inner mucus layer may become penetrable to bacteria in some types of UC.

Gut infections

Gastroenteritis can produce mucus suddenly. The NHS links "bloody diarrhoea with clear slime, feeling and being sick" to a tummy bug. The CDC says Shigella infection usually starts 1 to 2 days after exposure, with diarrhoea that can be bloody or last more than 3 days, fever, stomach pain and a feeling of needing to pass stool when the bowel is empty. Symptoms usually last 5 to 7 days.

Bowel polyps and bowel cancer

The NHS lists blood in poo, a change in bowel habit (looser poo, diarrhoea or constipation) and "slime with poo" together as possible signs of bowel polyps or early bowel cancer. Mucus alone is rarely the issue. Our guide to colon cancer symptoms covers the full list of warning signs and screening.

Bleeding is the stronger signal in the research. In a US study of 5,075 people diagnosed with bowel cancer before age 50 and 22,378 controls (Fritz and colleagues, described in a 2023 JNCI editorial), rectal bleeding was linked to about 5 times the odds of early-onset colorectal cancer and iron-deficiency anaemia to about twice the odds. A 2024 systematic review and meta-analysis of 81 studies reached the same conclusion: visible blood in the stool was associated with at least a 5-fold higher risk. Neither paper reported mucus as a red flag.

These are odds compared with people without the symptom, not the chance that one person with bleeding has cancer. Healthdirect stresses that most reasons for blood in poo are not serious.

Mucus with blood: what the colour tells you

Where blood comes from changes how it looks. Healthdirect explains that spots of red blood suggest bleeding from the large intestine or rectum, while stools that are black like tar and smell bad suggest blood from higher up the gut. The NHS describes bright red blood on toilet paper, streaks on poo or pink toilet water as typical of piles (haemorrhoids) or small tears (anal fissures).

In the ACG guideline's terms, haematochezia (hematochezia) means passing red or maroon blood from the bottom and melena means black, tarry stool. Very brisk bleeding from the upper gut can still come out red, StatPearls notes.

Melena (black, tarry stool): causes and why it is urgent

Melena is black, sticky, tar-like stool with a distinctive strong smell. MedlinePlus, from the US National Library of Medicine, explains that the blood turns dark because it is digested on its way through the gut. It usually means bleeding in the upper digestive tract: the oesophagus (food pipe), stomach or duodenum, the first part of the small intestine.

What is the main cause of melena?

The 2021 ACG clinical guideline on upper gastrointestinal and ulcer bleeding names ulcer bleeding as the most common cause, and MedlinePlus agrees that peptic ulcers are the most common cause of sudden upper gut bleeding. The StatPearls chapter on upper GI bleeding gives the wider picture:

  • Peptic ulcers: mostly triggered by Helicobacter pylori infection or anti-inflammatory painkillers (NSAIDs such as ibuprofen).
  • Inflammation of the food pipe, stomach or duodenum: StatPearls cites oesophagitis in 24% of cases, gastritis in 18% to 22% and duodenitis in 13%.
  • Varices: swollen veins in the upper gut, in about 11%.
  • Mallory-Weiss tears: tears in the lining where the food pipe meets the stomach, in 5% to 15%.
  • Blood thinners: anticoagulant and antiplatelet medicines raise the risk of gut bleeding, and combining aspirin with a second antiplatelet drug increases upper GI bleeding cases 2- to 3-fold.

These percentages come from different studies, so they do not add up to 100% and will vary by country and hospital.

How serious is melena?

StatPearls puts the yearly rate of upper GI bleeding at roughly 80 to 150 per 100,000 people, with a death rate of 2% to 10%, though most people with ulcer bleeding who die do so from other illnesses. The ACG guideline says gut bleeding is the most common digestive diagnosis leading to hospital admission in the US, and nearly 80% of people who go to an emergency department with upper GI bleeding are admitted.

Not everyone needs to stay in hospital. Doctors use the Glasgow-Blatchford score, a risk score built from several clinical findings, in which melena itself scores 1 point. Both the ACG guideline and StatPearls say people with a score of 0 or 1 can usually go home with outpatient follow-up; the ACG reports that 19% to 24% of people with upper GI bleeding fall into this very low-risk group. For people admitted to hospital, the ACG suggests an endoscopy (a camera test) within 24 hours.

Black stool that is not blood

Several things turn stool dark without bleeding. The NHS, Healthdirect, MedlinePlus and StatPearls list:

  • iron tablets
  • bismuth medicines for upset stomach or diarrhoea (such as Pepto-Bismol)
  • liquorice (black licorice), blueberries and blood sausage (black pudding)
  • activated charcoal

Beetroot, tomatoes and red food colouring can make stool look red. If you are not sure, the NHS notes that a GP can test a stool sample for hidden blood. If you take iron and your stool is black, sticky and smells unusually bad, or you feel faint, do not assume it is the tablets.

How doctors find the cause

Tests depend on your symptoms and age, and commonly include:

  • Stool tests: for infection, inflammation or hidden blood. MedlinePlus notes that a simple chemical test can check stool for blood.
  • Faecal immunochemical test (FIT): in England, NICE recommends a quantitative FIT to guide referral for suspected bowel cancer in adults with a change in bowel habit, iron-deficiency anaemia or other specified symptoms. A result of 10 micrograms of haemoglobin per gram of faeces or more usually leads to further investigation, though referral should not be delayed if a doctor has strong clinical concern.
  • Blood tests: a full blood count checks for anaemia (a low MCV can point to iron deficiency from slow blood loss). In suspected upper GI bleeding, StatPearls notes that a BUN to creatinine ratio above 30 suggests an upper gut source.
  • Endoscopy or colonoscopy: camera tests of the upper gut or large bowel.

Treatment for mucus in poop depends entirely on the cause: there is no treatment for the mucus itself, so the aim of these tests is to find out whether IBS, inflammation, infection or bleeding is behind it, and to treat that.

When to see a doctor about mucus or black stool

Get emergency help (999 in the UK, 000 in Australia, or your local emergency number) if you are bleeding non-stop from your bottom, there is a lot of blood or there are large clots, or you have blood in your stool and feel faint, dizzy or light-headed. The NHS advises not to drive yourself to A&E.

Ask for an urgent same-day appointment (or NHS 111) if your poo is black or dark red, you have bloody diarrhoea, you vomit blood, or you have lost a lot of weight for no reason.

See a GP if you have had blood in your poo for 3 weeks, your poo has been softer, thinner or longer than normal for 3 weeks, IBS-type symptoms have lasted over 4 weeks, or your child has blood in their poo or white, red or black stools.

Guidance is broadly the same across the UK, Australia and the US; what differs is the service you call. Healthdirect says to see your doctor right away for large amounts of blood or black stools, and MedlinePlus advises contacting your provider right away about blood or a change in stool colour.

How strong is the evidence?

This is a guide-level article. The advice on when to seek help comes from current national guidance (NHS, Healthdirect, NICE, CDC) that agrees closely across countries. The facts on melena rest on the 2021 ACG peer-reviewed clinical guideline, cross-checked against StatPearls.

The evidence on cancer red flags comes from a case-control study and a meta-analysis of mostly cross-sectional studies. These show strong associations between bleeding and early-onset bowel cancer, but they rely on medical records and cannot show how often bleeding means cancer in any individual. We found no good-quality study measuring how often mucus alone signals serious disease, so this article does not give a figure. More on bowel cancer research is on our cancer research topic page.

Frequently asked questions

What does slimy mucus poop mean?

Usually that the bowel is a little irritated, as mucus is made constantly by the gut lining. It is a recognised symptom of IBS. If the slime comes with blood, diarrhoea that will not settle, tummy pain or weight loss, see a doctor, as it can point to inflammation, infection or, less often, polyps or bowel cancer.

What does IBS mucus poop look like?

The NIDDK describes whitish mucus in the stool, and the NHS lists pooing mucus among IBS symptoms. IBS does not cause bleeding, so mucus with blood, bloody diarrhoea or unexplained weight loss needs an urgent GP appointment.

Why do I have jelly-like mucus when I wipe?

A small amount of jelly-like mucus can come with IBS or mild irritation of the bowel. If you also see blood, have had looser or thinner stools for 3 weeks, or the mucus keeps coming back, see a GP, who can test a stool sample.

What is the main cause of melena?

Bleeding from a peptic ulcer in the stomach or duodenum is the most common cause, according to the American College of Gastroenterology. Other causes include inflammation of the food pipe or stomach, swollen veins (varices), tears in the lining and blood-thinning medicines.

How do you treat mucus in poop?

There is no treatment for the mucus itself; treatment depends on the cause. A doctor may arrange stool tests, a faecal immunochemical test (FIT), blood tests or a camera test to look for IBS, inflammatory bowel disease, infection or bleeding.

Sources

  1. NHS. Bleeding from the bottom (rectal bleeding). Last reviewed 13 November 2026. nhs.uk
  2. NHS. Symptoms of IBS (irritable bowel syndrome). Last reviewed 17 March 2025. nhs.uk
  3. NHS. Ulcerative colitis. Last reviewed 20 August 2026. nhs.uk
  4. Healthdirect Australia. Blood in stool. Last reviewed December 2025. healthdirect.gov.au
  5. Healthdirect Australia. Stool changes. Last reviewed June 2025. healthdirect.gov.au
  6. National Institute for Health and Care Excellence. Quantitative faecal immunochemical testing to guide colorectal cancer pathway referral in primary care (HTG690, formerly DG56). nice.org.uk
  7. Laine L, Barkun AN, Saltzman JR, Martel M, Leontiadis GI. ACG Clinical Guideline: Upper Gastrointestinal and Ulcer Bleeding. Am J Gastroenterol. 2021;116(5):899-917. doi:10.14309/ajg.0000000000001245
  8. Demb J, Kolb JM, Dounel J, Fritz CDL, Advani SM, Cao Y, et al. Red Flag Signs and Symptoms for Patients With Early-Onset Colorectal Cancer: A Systematic Review and Meta-Analysis. JAMA Netw Open. 2024;7(5):e2413157. doi:10.1001/jamanetworkopen.2024.13157
  9. Yen T, Patel SG. Symptoms and early-onset colorectal cancer: red flags are common flags! J Natl Cancer Inst. 2023;115(8):883-885. doi:10.1093/jnci/djad093 (discussing Fritz CDL et al. J Natl Cancer Inst. 2023, doi:10.1093/jnci/djad068)
  10. Johansson MEV, Sjövall H, Hansson GC. The gastrointestinal mucus system in health and disease. Nat Rev Gastroenterol Hepatol. 2013;10(6):352-361. doi:10.1038/nrgastro.2013.35
  11. Johansson MEV, Hansson GC. Immunological aspects of intestinal mucus and mucins. Nat Rev Immunol. 2016;16:639-649. doi:10.1038/nri.2016.88
  12. StatPearls. Upper Gastrointestinal Bleeding. Updated 17 August 2024. statpearls.com
  13. MedlinePlus, US National Library of Medicine. Black or tarry stools. Reviewed 27 April 2026. medlineplus.gov
  14. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms and Causes of Ulcerative Colitis. niddk.nih.gov
  15. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms and Causes of Irritable Bowel Syndrome. niddk.nih.gov
  16. Centers for Disease Control and Prevention. Ulcerative Colitis Basics. 2024. cdc.gov
  17. Centers for Disease Control and Prevention. Signs and Symptoms of Shigella Infection. 2024. cdc.gov

This article is for general information and isn't a substitute for advice from your doctor or another qualified health professional. See our medical disclaimer and editorial standards. Spotted an error? Tell us.

The Atlas Digest

The week's health research, explained.

One email each week: the studies that mattered, what they really found, and how much weight they can bear. No sponsored content.

Unsubscribe at any time. See our privacy policy.