What Can Cause Mucus in Stool?

Table of Contents
View All
Table of Contents

Mucus in the stool is normal but it is not usually visible. When there is enough mucus in the stool to be seen with the naked eye, it could be a sign that something in the digestive system is changing.

Mucus in the stool may be considered a common symptom of some digestive conditions, such as irritable bowel syndrome (IBS) and ulcerative colitis (one form of inflammatory bowel disease, or IBD). Other conditions that can cause larger amounts of visible mucus in the stool include bacterial infections, anal fissures, a bowel obstruction, or Crohn's disease (the second main form of IBD).

If the stool is also bloody and there is pain, that's a reason to get in touch with a healthcare provider right away. Normally, mucus is a stringy, clear, white, or yellow substance. Although it may seem gross and cause worry, it's important to understand the reasons for any changes in stool in order to better address them.

Causes of mucus in stool
Verywell / Nusha Ashjaee 


Mucus is produced by the mucus membrane of the large intestine. Mucus is also produced by other organs in the body, such as the lungs, where it helps to trap any foreign particles that are inhaled. In the intestines, mucus protects the inner lining, and because it's slippery, it helps ease along the passage of stool.

Passing mucus in the stool is not harmful in and of itself, because it is a normal part of stool, but too much could also be a sign of a disease or condition that may require treatment. If the mucus layer is shedding too much, it could make the colon more susceptible to bacteria.


Several conditions can lead to visible mucus in the stool.

Ulcerative Colitis

In ulcerative colitis, the mucus membrane of the large intestine (colon) becomes inflamed and develops small sores that are called ulcers. These ulcers bleed and may also produce pus and mucus. The mucus may be voluminous enough that it can be seen as it is passed along with the stool.

Irritable Bowel Syndrome

The reasons why IBS may cause more mucus to be produced by the lining of the large intestine and excreted in stool haven't been studied extensively, so they're not well understood.

Men with IBS tend to have mucus in the stool more commonly than women with IBS.

Mucus is more often associated with diarrhea-predominant IBS than with constipation-predominant IBS or alternating type IBS (IBS-A). The current thought is that mucus in stool that's associated with IBS is not an indication of a major problem or a progression to a more serious disease.

Crohn's Disease

Passing mucus in the stool is a less frequent occurrence in people who have Crohn's disease. If mucus is seen in the stool of a person who has Crohn's disease, it could be associated with developing an anal fissure.

Anal Abscess or Fistula

An abscess is an infection that creates an area filled with pus inside the body. It's a problem that tends to occur more often in people with Crohn's disease, and particularly in the perianal area.

Sometimes, in about 50 percent of cases, an abscess will get large enough to form a tunnel between two organs, or between the skin and an organ, which is a fistula. The abscess or fistula may drain mucus into the stool.

Abscesses and fistulas will need treatment, potentially being drained and usually with the addition of antibiotics or other medications, particularly if there's a diagnosis of IBD.


Some people who have had ostomy surgery (either ileostomy or colostomy) may find that they pass mucus from their rectum. Even though stool is leaving the body through the stoma, and not through the rectum and the anus, the rectum is still producing fluids. There could be mucus, which will need to be passed by sitting on the toilet. A build-up of mucus could cause discomfort and pressure. 

Bacterial Infections

Bacterial infections, such as those from bacteria such as Campylobacter, Salmonella, Shigella, or Yersinia, may cause mucus to be passed in the stool. A bacterial infection may also cause symptoms of diarrhea, fever, and abdominal cramps.

Some bacterial infections may resolve on their own without treatment, but other cases may be serious and require treatment with antibiotics. If you think you may have contracted a bacterial infection, especially after traveling abroad, contact your healthcare provider.

Bowel Obstruction

A bowel obstruction is associated with symptoms of constipation, severe cramps, abdominal distention, and vomiting, as well as the passage of mucus. A bowel obstruction could be caused by one of many conditions, such as impacted stool, adhesions (scar tissue), a hernia, gallstones, a tumor, or swallowing a non-food item.

Obstructions are typically treated in the hospital, while surgery to remove the blockage is necessary in some cases.

Cystic Fibrosis

Cystic fibrosis is a genetic disorder that can cause the overproduction of mucus in the body. This life-threatening condition most often affects the lungs, but the digestive tract can also be affected. It is usually diagnosed in childhood and is associated with other digestive symptoms such as constipation and abdominal pain.

Mucus in Infant Stool

Seeing mucus in the stool of an infant could mean that the baby has an infection. It's going to be important to find out if it is truly mucus, because normal baby poop comes in all colors. Mucus in baby stool might be stringy or slimy and look green.

Changes in infant poop should be discussed with a healthcare provider or pediatrician, because if there is an infection, it will need to be treated right away.

Other Causes

Mucus could be associated with constipation, which is a common problem. In that case, it might resolve on its own when the constipation is treated.

Dehydration is another common situation that could cause excess mucus in the stool, and again this would likely go away on its own unless the dehydration is a chronic problem. In these cases, treating the underlying problem may help in stopping the passing of mucus.

For some people, mucus in the stool may be something that only happens once. Still, it should be mentioned to your healthcare provider.

When to Talk to a Healthcare Provider

For anyone who has not already been diagnosed with a condition where passing mucus could be considered a typical symptom, seeing mucus in or on your stool is a reason to see a healthcare provider. This is especially true if the mucus is accompanied by other digestive symptoms such as blood in the stool, diarrhea, abdominal pain, constipation, or vomiting.

If mucus in the stool is a fairly regular occurrence because of an already diagnosed condition like IBS or ulcerative colitis, it's still important to monitor it.

Marking down what time of day it happens and estimating how much mucus is present (including if it is more or less than in the past) is important. Bringing this information to a healthcare provider will help in finding out what might be causing the increase in mucus.


Making a diagnosis when mucus in the stool is a new symptom will start with a careful medical history. A healthcare provider will ask what bowel movements have been like in the past and if they've changed recently.

Depending on what is suspected of causing the mucus, different types of tests might be ordered. The tests that are used could be a stool culture and blood tests, or potentially imaging studies like a CT scan, MRI, or plain X-ray.

In some cases, a healthcare provider may need to do other testing, such as an endoscopy procedure, to figure out what is happening. But, in many cases, it's not necessary to do invasive testing to determine the cause of the mucus.


Treatment for mucus in the stool is going to depend on what is causing the problem. Mucus might be a result of inflammation, and in that case, there's going to be a need to treat it before it causes further problems.

When the mucus is caused by, for instance, IBS or IBD, getting those conditions under control is going to help in stopping the mucus production in the large intestine. The increased mucus production might mean that a change in treatment may be needed, or that a current treatment is no longer as effective as it once was. 

A Word From Verywell

Passing mucus in the stool when someone has IBS or ulcerative colitis is not necessarily a cause for alarm, because it can be a sign of those conditions. However, passing mucus in the stool, especially if it is a new symptom, should still be mentioned to a healthcare provider at the next office visit.

Mucus without an underlying cause, such as one of the pre-existing conditions mentioned above, is a change in bowel habits and should be discussed with a healthcare provider as soon as possible.

Was this page helpful?
5 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. 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

  2. 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

  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. Tai IC, Huang YC, Lien RI, Huang CG, Tsao KC, Lin TY. Clinical manifestations of a cluster of rotavirus infection in young infants hospitalized in neonatal care units. J Microbiol Immunol Infect. 2012;45(1):15-21. doi:10.1016/j.jmii.2011.09.023

  5. Waljee AK, Joyce JC, Wren PA, Khan TM, Higgins PD. Patient reported symptoms during an ulcerative colitis flare: a Qualitative Focus Group Study. Eur J Gastroenterol Hepatol. 2009;21(5):558-64. doi:10.1097/MEG.0b013e328326cacb

Additional Reading