Digestive Health More Digestive Diseases Causes of Mucus in Stool A little mucus may not be a reason for concern, but watch for other symptoms By Amber J. Tresca Updated on December 14, 2023 Medically reviewed by Robert Burakoff, MD Print Table of Contents View All Table of Contents Potential Causes When to See a Doctor Diagnosis Treatment 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. This 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, bowel obstructions, and other digestive disorders. Bloody mucus in stool may be due to hemorrhoids, anal tears (fissures), bacterial infections like gastroenteritis, or, less often, cancer. 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. Illustration by Nusha Ashjaee for Verywell Health Mucus in Stool Causes Several conditions can lead to visible mucus in the stool, including: Ulcerative colitis Proctitis Allergic colitis Irritable bowel syndrome Crohn's disease Anal abscess or fistula Rectal cancer Ostomy Bacterial infections (including food poisoning) Bowel obstruction Cystic fibrosis Parasites Ulcerative Colitis In ulcerative colitis, the mucous 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. Ulcerative Colitis Symptoms: Everything You Need to Know Proctitis Proctitis is a condition that affects the rectum, the last part of the digestive tract before it reaches the anus and waste passes from the body. It can have several causes, including a form of ulcerative proctitis that's related to ulcerative colitis. Other causes of mucus-related proctitis include infections (sexually transmitted infections among them). Some people develop radiation proctitis during prostate and other pelvic-area cancer treatments. Common Causes of Rectal Pain and How to Find Relief Allergic Colitis Allergic colitis is related to food allergies and often is diagnosed in infants and children whose symptoms are linked to cow's milk and related dairy products. Bloody stools also occur, along with higher levels of allergy-related elements in the mucus in certain types of allergic colitis. Mild to Severe Dairy Allergy Symptoms 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 whitish 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. Signs, Symptoms and Complications of IBS 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. An abscess can become 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. Rectal Cancer People diagnosed with rectal, colon, or anal cancers often have mucus in the stool, either as a symptom of disease or as a result of their cancer treatment. A study of 187 people treated for anal cancer in the UK found mucus and blood in the stool improved within a year of treatment. An Overview of Rectal Cancer Ostomy 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. Normal Stool After Ostomy Surgery Bacterial Infections and Food Poisoning Some bacterial infections can cause mucus in the stool. Mucus in the digestive tract also plays a key role in protecting against infections that include: Campylobacter Salmonella Shigella Yersinia Food sources can lead to these bacterial infections, with symptoms of 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. What Causes Gastritis and How to Treat It Bowel Obstruction If something blocks your bowel, you may notice excess mucus in your stool. Bowel obstructions can also cause: Constipation Severe cramps Abdominal bloating Vomiting 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 and lead to distal intestinal obstruction syndrome (DIOS), with potentially life-threatening bowel obstruction. Cystic fibrosis can also cause constipation and abdominal pain. The lifelong condition is usually diagnosed during childhood. Parasites Mucus in the stool can be a sign of parasite infection, and it's especially important to check for parasites when children experience gastrointestinal symptoms. Giardia parasites can sometimes be detected with a single stool sample, but parasite infections often require repeat tests. People with compromised immune systems, including children diagnosed with and treated for cancer, may be more susceptible to parasite infection. How Do Chemo and Radiation Affect the Immune System? Diet and 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. 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. 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 mucusDiarrheaAbdominal painConstipationVomiting 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. Diagnosis 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. These tests may include: Stool cultures (stool samples that are collected and sent to the lab) Blood tests (these samples can help diagnose related conditions like anemia, which is common in digestive conditions like Crohn's disease or ulcerative colitis) X-rays, or more sophisticated imaging tools including computed tomography (CT scans) or magnetic resonance imaging (MRIs) Colonoscopy, 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. Treatment 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. Or, as with some cancer care, the mucus in stool may resolve after treatment. Summary 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. Some 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, diarrhea, or constipation. You may need tests, including stool cultures, blood tests, imaging studies, or colonoscopy to get a proper diagnosis and begin effective treatment. 20 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. National Institutes of Health. How mucus in the colon prevents inflammation and injury. 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 Skolmowska D, Głąbska D, Guzek D, Lech G. Association between Dietary Isoflavone Intake and Ulcerative Colitis Symptoms in Polish Caucasian Individuals. Nutrients. 2019 Aug 17;11(8):1936. doi:10.3390/nu11081936. Coelho R, Ribeiro T, Abreu N, Gonçalves R, Macedo G. Infectious proctitis: what every gastroenterologist needs to know. Ann Gastroenterol. 2023 May-Jun;36(3):275-286. doi:10.20524/aog.2023.0799. Dahiya DS, Kichloo A, Tuma F, Albosta M, Wani F. Radiation Proctitis and Management Strategies. Clin Endosc. 2022 Jan;55(1):22-32. doi:10.5946/ce.2020.288. Yamada Y. Recent topics on gastrointestinal allergic disorders. Clin Exp Pediatr. 2023 Jun;66(6):240-249. doi: 10.3345/cep.2022.01053. Soares RL. Irritable bowel syndrome: a clinical review. World J Gastroenterol. 2014;20(34):12144-60. doi:10.3748/wjg.v20.i34.12144 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 National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms and causes of irritable bowel syndrome. Crohn's & Colitis Foundation. Overview of Crohn's disease. Schwartz DA, Tagarro I, Carmen Díez M, Sandborn WJ. Prevalence of Fistulizing Crohn's Disease in the United States: Estimate From a Systematic Literature Review Attempt and Population-Based Database Analysis. Inflamm Bowel Dis. 2019 Oct 18;25(11):1773-1779. doi:10.1093/ibd/izz056. Gilbert A, Drinkwater K, McParland L, Adams R, Glynne-Jones R, Harrison M, et al. UK national cohort of anal cancer treated with intensity-modulated radiotherapy: One-year oncological and patient-reported outcomes. Eur J Cancer. 2020 Mar;128:7-16. doi: 10.1016/j.ejca.2019.12.022. OakMed Healthcare. Stoma discharge – what’s normal and what’s cause for concern. Ducarmon QR, Zwittink RD, Hornung BVH, van Schaik W, Young VB, Kuijper EJ. Gut Microbiota and Colonization Resistance against Bacterial Enteric Infection. Microbiol Mol Biol Rev. 2019 Jun 5;83(3):e00007-19. doi:10.1128/MMBR.00007-19. Crawford SE, Ramani S, Tate JE, et al. Rotavirus infection. Nat Rev Dis Primers. 2017;3:17083. doi:10.1038/nrdp.2017.83 Gilchrist FJ, Green J, Carroll W. Interventions for treating distal intestinal obstruction syndrome (DIOS) in cystic fibrosis. Cochrane Database Syst Rev. 2021 Dec 22;12(12):CD012798. doi: 10.1002/14651858.CD012798.pub3. Kasırga E. The importance of stool tests in diagnosis and follow-up of gastrointestinal disorders in children. Turk Pediatri Ars. 2019 Sep 25;54(3):141-148. doi:10.14744/TurkPediatriArs.2018.00483 El-Badry AA, El Sayed SS, Hussein RR, Said YM, Al-Antably AS, Hassan MA. Intestinal parasitism in pediatric oncology children receiving chemotherapy: unexpected low prevalence. Heliyon. 2019 Aug 12;5(8):e02228. doi:10.1016/j.heliyon.2019.e02228. 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. 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 Additional Reading Sun J, Shen X, Li Y, et al. "Therapeutic Potential to Modify the Mucus Barrier in Inflammatory Bowel Disease." Nutrients. 2016 Jan 14;8. pii: E44. doi: 10.3390/nu8010044 Zhu L, Huang D, Shi L, et al."Intestinal symptoms and psychological factors jointly affect quality of life of patients with irritable bowel syndrome with diarrhea." Health Qual Life Outcomes. 2015 Apr 18;13:49. doi: 10.1186/s12955 By Amber J. Tresca Tresca is a freelance writer and speaker who covers digestive conditions, including IBD. She was diagnosed with ulcerative colitis at age 16. See Our Editorial Process Meet Our Medical Expert Board Share Feedback Was this page helpful? Thanks for your feedback! What is your feedback? Other Helpful Report an Error Submit