Causes of Mucus in Stool

In babies or adults, a little mucus isn't always reason for immediate concern

Mucus in stool is normal, but it's not usually visible to the naked eye. When it is—you may notice stringy clear, white, or yellow goop in the toilet or clinging to your poop—it could be a sign of a health concern that needs treatment.

Possible causes of mucus in your stool include irritable bowel syndrome (IBS), ulcerative colitis, Crohn's disease, and other digestive disorders. Bacterial infections, bowel obstructions, and anal tears (fissures) also can cause it.

This article explores some of the main reasons mucus can show up in your stool. It also explains when you should seek medical treatment and how a healthcare provider will figure out the cause.

Causes of mucus in stool
Verywell / Nusha Ashjaee 

Mucus in Stool Causes

Several conditions can lead to visible mucus in the stool, including:

  • Ulcerative colitis
  • Irritable bowel syndrome
  • Crohn's disease
  • Anal abscess or fistula
  • Ostomy
  • Bacterial infection
  • Bowel obstruction
  • Cystic fibrosis

Ulcerative Colitis

In ulcerative colitis, the mucus membrane of the large intestine is inflamed. It develops small sores called ulcers. These ulcers can bleed and produce pus. They can also make enough mucus to be seen in the stool.

Irritable Bowel Syndrome

IBS often causes an excess of whitish mucus in the digestive system. It's more often associated with diarrhea-predominant IBS (IBS-D) than with constipation-predominant IBS or alternating type IBS (IBS-A).

Anxiety and stress may cause mucus in the stool when it coexists with IBS-D. That's also true of depression, which has long been associated with IBS symptoms and diagnosis.

IBS cause mucus in stool. Males tend to have IBS-related mucus in the stool more often than females with IBS.

Researchers aren't sure exactly why the condition results in so much extra mucus. Extra mucus with IBS does not mean there's a major problem or that the disease is becoming more serious.

Crohn's Disease

Passing mucus in the stool is less common in people with Crohn's disease. It can sometimes mean that you're developing an anal fissure, or a tear in the lining of the anus.

However, Crohn's disease can affect stool in some people by causing diarrhea. Ileocolitis is the most common form of Crohn's disease. It causes inflammation of the terminal ileum (the end point of the small intestine) as well as the colon (large intestine).

Anal Abscess or Fistula

An abscess is an infection that creates a pocket of pus inside the body. It's a problem that occurs more often in people with Crohn's disease, particularly in the perianal area.

In about 50% of cases, an abscess gets large enough to form a tunnel between two organs, or between the skin and an organ. This is called a fistula. The abscess or fistula may drain mucus into the stool.

Abscesses and fistulas need treatment. Your healthcare provider may prescribe antibiotics or other medications. In some cases, the abscess will need to be surgically drained.


Some people who have had ostomy surgery (either ileostomy or colostomy) may pass mucus from the rectum.

With an ostomy, stool leaves the body through the stoma, not the rectum and anus. But the rectum still creates fluid. If mucus builds up, it can cause discomfort and pressure. This can be passed by sitting on the toilet.

Bacterial Infections

Some bacterial infections can cause mucus in the stool. These infections include:

Bacterial infections may also cause diarrhea, fever, and abdominal cramps. Some bacterial infections get better on their own without treatment. Others may need antibiotics. If you think you may have a bacterial infection, especially after traveling abroad, call your healthcare provider.

Mucus in Infant Stool

Mucus in the stool of an infant could be a sign of infection that needs immediate treatment. It's important to find out if it is truly mucus because normal baby poop comes in all colors. Mucus in your baby's stool might be stringy or slimy and look green. See your healthcare provider.

Bowel Obstruction

If something blocks your bowel, you may notice excess mucus in your stool.

Bowel obstructions can also cause:

A bowel obstruction could be caused by several conditions, including:

  • Impacted stool
  • Adhesions (scar tissue)
  • Hernia (tissue that bulges through a weak or torn muscle)
  • Gallstones
  • Tumor
  • Swallowing an object that isn't food

Obstructions are typically treated in the hospital. Sometimes the blockage has to be removed surgically.

Cystic Fibrosis

Cystic fibrosis is a genetic condition that causes the body to make too much mucus. The mucus most often affects the lungs, but it can also impact the digestive tract.

The lifelong condition is usually diagnosed during childhood. Cystic fibrosis can also cause constipation and abdominal pain.

Other Causes

Mucus in stool can accompany constipation. It may resolve on its own when the constipation is treated.

Dehydration can also lead to excess mucus in the stool. It is likely to go away on its own unless dehydration is a chronic problem. In these cases, treating the underlying problem may resolve the issue of too much mucus.

When to Talk to a Healthcare Provider

If you haven't been diagnosed with a health condition that typically causes excess mucus in stool, it's a good idea to discuss what you're experiencing with a healthcare provider.

It's especially important to see your provider about the following:

  • Blood in the stool or mucus
  • Diarrhea
  • Abdominal pain
  • Constipation
  • Vomiting

If you have a health condition that affects your colon and your stool, make sure you keep track of any changes to your stool and discuss any changes with your healthcare provider.

The mucus produced by your colon protects the lining, creates a healthy environment for good gut bacteria, and eases the passage of stool. If the mucus layer is shedding too much, it could make the colon more vulnerable to harmful bacteria.


If you are first noticing mucus in stool, see your healthcare provider. Diagnosing the cause will start with a thorough medical history. They will ask what your bowel movements were like in the past and what has changed.

Your healthcare provider may also order some tests to help pinpoint the cause. Stool cultures, blood tests, and imaging studies like CT scans, MRIs, or X-rays are often used as diagnostic tools.

In some cases, a healthcare provider may need to do other testing, such as an endoscopy, to figure out why there is mucus in your stool. Endoscopy is a test in which a small camera on a flexible tube is used to see the inside of the colon and rectum. In many cases, though, it's not necessary to do invasive testing to find the cause.


Mucus in stool itself isn't harmful, but the cause may require treatment. What you need depends on what's affecting you.

If inflammation is the problem, for example, treatment will focus on reducing the inflammation before it causes other symptoms.

When the mucus is caused by IBS or IBD, getting those conditions under control will help to reduce mucus production in the large intestine.

Excess mucus might mean a current treatment is no longer working well and a change needs to be made. 


Mucus is produced in the intestine, where it helps to foster a healthy digestive system. Mucus in stool isn't necessarily serious. But excess mucus could mean that something new is happening in your digestive tract.

A number of health conditions, including IBS or a bacterial infection, can ramp up your body's mucus production. So can anal fissures and bowel obstructions. Mucus may appear in a baby's stool too.

Seek medical care if mucus happens along with abdominal pain, blood in your stool, vomiting, and diarrhea or constipation. You may need tests, including stool cultures, blood tests, imaging studies, or endoscopy to get a proper diagnosis and begin effective treatment.

Frequently Asked Questions

  • What does white mucus in stool mean?

    White mucus in stool is a symptom of irritable bowel syndrome (IBS). This may be accompanied by abdominal pain (often related to a bowel movement), diarrhea or constipation, and bloating.

  • What does bloody mucus in stool mean?

    Bloody mucus in stool may be due to hemorrhoids, anal fissures, polyps, gastroenteritis, angiodysplasia (caused by weakened blood vessels in the gut), or, less often, cancer. See your healthcare provider.

  • What foods cause mucus in stool?

    Foods high in sugars, or those linked to food allergies like gluten, may cause more mucus in stool. Researchers think high-fat and low-fiber foods may contribute to intestinal inflammation that alters mucus production.

  • Does gastritis cause mucus in stool?

    Gastritis is more often associated with blood in the stool. It can be caused by a bacterial infection, but other factors including stress, diet, and smoking may contribute to its development. So can certain chronic illnesses.

10 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. National Institutes of Health. How mucus in the colon prevents inflammation and injury.

  2. Cornick S, Tawiah A, Chadee K. Roles and regulation of the mucus barrier in the gut. Tissue Barriers. 2015;3(1-2):e982426. doi:10.4161/21688370.2014.982426

  3. Soares RL. Irritable bowel syndrome: a clinical review. World J Gastroenterol. 2014;20(34):12144-60. doi:10.3748/wjg.v20.i34.12144

  4. Lu J, Shi L, Huang D, Fan W, Li X, Zhu L, et al. Depression and Structural Factors Are Associated With Symptoms in Patients of Irritable Bowel Syndrome With Diarrhea. J Neurogastroenterol Motil. 2020 Sep 30;26(4):505-513. doi:10.5056/jnm19166

  5. Crohn's & Colitis Foundation. Overview of Crohn's disease.

  6. Crawford SE, Ramani S, Tate JE, et al. Rotavirus infectionNat Rev Dis Primers. 2017;3:17083. doi:10.1038/nrdp.2017.83

  7. Kamphuis JBJ, Mercier-bonin M, Eutamène H, Theodorou V. Mucus organisation is shaped by colonic content; a new view. Sci Rep. 2017;7(1):8527. doi:10.1038/s41598-017-08938-3

  8. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms and causes of irritable bowel syndrome.

  9. Parrish A, Boudaud M, Kuehn A, Ollert M, Desai MS. Intestinal mucus barrier: a missing piece of the puzzle in food allergy. Trends Mol Med. 2022 Jan;28(1):36-50. doi:10.1016/j.molmed.2021.10.004.

  10. Johns Hopkins Medicine. Gastritis.

Additional Reading

By Amber J. Tresca
Amber J. Tresca is a freelance writer and speaker who covers digestive conditions, including IBD. She was diagnosed with ulcerative colitis at age 16.