Skip to main content
Read about

Causes of Mucus in Diarrhea

Diarrhea with a lot of mucus can be caused by a viral infection, food poisoning, a food intolerance, irritable bowel syndrome, inflammatory bowel disease, or hemorrhoids. It can usually be treated with diet and medications.
An illustration of a light pink intestine with green, dripping stool.
Tooltip Icon.
Last updated April 16, 2024

Mucusy diarrhea quiz

Take a quiz to find out what's causing your mucusy diarrhea.

Mucusy diarrhea quiz

Take a quiz to find out what's causing your mucusy diarrhea.

Take mucusy diarrhea quiz

⚡️ Powered by AI

Get personalized answers to your health questions

Our clinically-backed AI will ask you questions and provide an answer specific to your unique health situation.


Your response today was provided by ChatGPT trained on the proprietary content of this page. Please note, this tool is for information purposes only and not intended to be used as a substitute for professional advice. You assume responsibility for decisions made with your individual medical situation.

Was this information helpful?

Thank you! Buoy values your feedback. The more we know about what’s working – and what could improve – the better we can make our experience.

Diarrhea with mucus can be caused by a viral infection, food poisoning, or a sign of a chronic problem in your intestines.

Mucus is produced by your intestines to keep your colon lubricated, which makes it easier for stool to pass. Stool normally has small amounts of mucus, but usually you do not notice it.

Diarrhea that looks like mucus or contains a larger amount of mucus may signal an underlying inflammatory condition, such as a food intolerance, gastrointestinal infection, irritable bowel syndrome (IBS), inflammatory bowel disease (IBD), or hemorrhoids.

Pro Tip

Mucus in stool is not abnormal. Mucus is produced by the colon to help lubricate the stool. It becomes abnormal when you notice a lot more mucus than usual with ongoing diarrhea or if it is accompanied by blood. —Dr. Judith Kim


1. Irritable bowel syndrome


Irritable bowel syndrome (IBS) is a chronic digestive disorder. Symptoms can include abdominal cramping and bloating, diarrhea or constipation (or both), and having little control over when you need to go.

IBS may affect gut motility (how quickly it digests food) and gut inflammation, which increases mucus production in the intestines. Up to 50% of people with IBS say they have mucus in their stool. IBS can have flare-ups that can be more intense and uncomfortable than other times. Stress, diet, and other factors may cause flare-ups.

If you notice changes in your bowel movements, such as increased mucus, incontinence, or urgency, you should see a doctor to discuss these symptoms. Diet changes or medications may be recommended to help with your symptoms.

2. Bacterial infection


Bacterial infections can lead to increased mucus in the gut. The mucus may be yellow or greenish. Bacterial infections can be caused by foodborne illnesses, such as salmonella or E.coli, and other infections like Campylobacter, Shigella, and Yersinia.

Some infections can be treated with antibiotics. Gastroenteritis usually gets better on its own and it’s important to drink lots of fluids.

If you notice blood in your stool or your temperature is above 100.4°F, call your doctor. You may need to have a stool test to find out what type of infection you have. Your doctor may prescribe antibiotics.

If there is a lot of blood in your stool or you can’t keep any food or water down, you should go to the ER since there is a risk of serious dehydration.

3. Inflammatory bowel disease


  • Diarrhea or constipation, with stools that may have mucus or blood
  • Urgency or incontinence of stool
  • Abdominal cramps or discomfort

Inflammatory bowel disease (IBD) is a chronic condition that creates inflammation in the digestive tract. There are two types: ulcerative colitis and Crohn’s disease. Colitis affects the rectum and extends up through the entire colon, while Crohn’s looks like patches of inflammation throughout the colon or small intestine.

Both types of IBD can lead to frequent loose stools with mucus and blood. You may also have crampy abdominal pain, rushing to the bathroom, discomfort when having a bowel movement, and feeling like you haven’t completely emptied your bowel. If you notice these symptoms, you should see a gastroenterologist (digestive disease doctor).

Your doctor may recommend further tests or a colonoscopy to make a diagnosis. If you have IBD, you will need to start medications to help decrease the inflammation in your colon. Some patients may need surgery if their disease is severe.

Dr. Rx

If I hear that there is a small amount of blood only on the toilet paper, then I would think about hemorrhoids. If there is a lot of blood in addition to abdominal pain, I would be worried about inflammatory bowel disease or a different disease that needs a colonoscopy to better differentiate. —Dr. Kim

4. Food intolerance


  • Diarrhea, which may be streaked with mucus
  • Abdominal pain or discomfort
  • Gas or bloating

Food intolerances can lead to increased mucus in stool.

Some people may find certain foods cause abdominal discomfort and diarrhea. A common one is lactose intolerance, which is a reaction to lactose that’s found in dairy foods and drinks. Others include intolerance to gluten or spicy food. Treatment is to avoid these dietary triggers.

Keep track of what you’re eating in a food diary and bring it to your doctor who can help identify what is causing the symptoms. Trying an elimination diet where you stop eating trigger food groups may improve your symptoms.

An allergy doctor can help to pinpoint your allergies and intolerances through a skin test or blood test. Seeing a nutritionist can also help you create a diet plan that avoids your dietary triggers.

5. Hemorrhoids


  • Blood on toilet paper or blood or mucus in stool
  • Rectal pain
  • Itching in the anal area

Hemorrhoids are swollen veins in the rectum. You may feel or see some hemorrhoids outside the rectum (external hemorrhoids), while others are inside (internal hemorrhoids).

They are common and can cause bleeding, itching or pain. There can also be mucus in the stool or toilet paper.

Hemorrhoids can be caused by hard stools or straining when going to the bathroom. They often improve with over-the-counter medications, such as stool softeners, fiber, or topical creams (like Preparation H or witch hazel). Daily sitz baths are also helpful.

If your symptoms do not improve or you notice a lot of blood in your stool, see your doctor. If the hemorrhoids are severe, your doctor may recommend a colonoscopy or procedure to remove them.

Other possible causes

A number of conditions may also cause mucus in diarrhea.


  • Infectious: Bacterial, viral, and parasitic infections can cause diarrhea that looks like mucus. They can directly infect the cells of the digestive tract and cause irritation that causes diarrhea. Common foreign invaders include rotavirus, norovirus, E. coli, salmonella, and giardia. When traveling in developing countries, diarrhea caused by bacteria and parasites is often called traveler's diarrhea.
  • Genetic: Many genetic conditions, such as cystic fibrosis, can cause chronic irritation that leads to diarrhea.
  • Autoimmune: Conditions with an autoimmune component can also cause diarrhea with mucus. This includes celiac disease, which is an immune reaction to gluten.


Environmental causes can be related to certain exposures or lifestyle habits.

  • Diet: Not only can viruses and bacteria infect the digestive tract through contaminated food and drink, but a specific diet can also contribute to diarrhea that looks like mucus. Allergies to foods such as cow’s milk, soy, cereal grains, eggs, and seafood may cause chronic diarrhea.
  • Medications: Many medications have diarrhea as a side effect. For example, antibiotics destroy both good and bad bacteria and disturb the natural balance of bacteria in the intestines. That can lead to diarrhea with mucus or another infection, like C. Difficile colitis. Many other drugs that also destroy or distress the intestines, such as cancer drugs, can also cause diarrhea.

When to call the doctor

  • You continue to see mucus in stool even after changing your diet.
  • You see blood in the toilet or mixed with your stool.
  • You have abdominal or anal pain.

Pro Tip

Ask your doctor if you may need further evaluation with blood work or stool studies, especially if your symptoms are very bothersome or lasting a long time. —Dr. Kim

Should I go to the ER for mucus in diarrhea?

You should go to the emergency department if you have diarrhea with mucus and these symptoms:

  • You have severe abdominal pain or cramps.
  • You see significant blood in the stool.
  • You are feeling dehydrated and cannot drink enough liquids.


At-home care

  • Make sure you are drinking enough liquids.
  • Avoid dietary triggers, such as dairy products if you’re lactose intolerant.
  • Take a sitz bath (sitting in warm water) or use topical creams if you have anal pain.

Here are some OTC options and advice on when you might need to see a doctor:

Anti-diarrheal medications: Products like Imodium (Loperamide) can help reduce the frequency of diarrhea. This can be particularly useful if you're experiencing frequent, watery bowel movements.

Probiotics: These can help restore the natural balance of bacteria in your gut, which can be upset by various causes of diarrhea.

Hydration solutions: Electrolyte powders or fluids are crucial to prevent dehydration caused by diarrhea.

Other treatment options

  • Medications such as antibiotics or anti-diarrheal agents.
  • Procedures such as a colonoscopy to help with a diagnosis.
Hear what 2 others are saying
Once your story receives approval from our editors, it will exist on Buoy as a helpful resource for others who may experience something similar.
The stories shared below are not written by Buoy employees. Buoy does not endorse any of the information in these stories. Whenever you have questions or concerns about a medical condition, you should always contact your doctor or a healthcare provider.
Chemotherapy side-effects?Posted February 2, 2024 by H.
I have had diarrhoea consisting of mostly clear jelly-like mucus for one day accompanied by cramp-like pain in the abdomen just before it happens. it is not possible to hold on and I have to rush to the bathroom. This is unusual as I am usually constipated due to cancer medication and various other medications. I was on 10mg lenalidomide capsules for Multiple Myeloma until one week ago, then my Oncologist increased the dose to 15mg capsules. After consulting Buoy I now feel that the increase in Chemotherapy drug has affected my digestion. I will await developments in the next 2-3 days.
Clear dischargePosted February 6, 2022 by G.
Hi i had a very bad urge to use the bathroom while at the cinema. This has happened a lot. Later when I got home I had the urge again, this time it was a lot of clear discharge, then 2 clear and white blood streaked lumps--never happened before. Has this happened to anyone else?
Dr. Kim is a Gastroenterology Fellow at New York Presbyterian Hospital/Columbia University where she also completed her residency training in Internal Medicine. She received her medical degree at Washington University in St. Louis and earned her BA in Biology at Harvard College. Her specialty is Gastroenterology, with a research interest in gastric cancer and clinical outcomes.

Was this article helpful?

71 people found this helpful
Tooltip Icon.
Read this next
Slide 1 of 5