Overview
Most diarrhea is from a virus and goes away in a few days. Blood or mucus suggests inflammation of the colon, often from bacteria like Salmonella, Shigella, Campylobacter, or E. coli, or from C. diff after antibiotics.
Diarrhea lasting more than 4 weeks is called chronic. Causes include inflammatory bowel disease, celiac disease, irritable bowel syndrome, microscopic colitis, medicines, and, less often, colon cancer.
When to get medical care
Causes
Bloody diarrhea causes include bacterial infections (Shigella, Salmonella, Campylobacter, E. coli O157), C. diff, ulcerative colitis, Crohn's disease, ischemic colitis, hemorrhoids, and colon cancer. Chronic diarrhea causes include IBS, IBD, celiac disease, lactose intolerance, microscopic colitis, overactive thyroid, parasites, and medicines like metformin and magnesium.
OwieClear has pages on 5 conditions that can cause diarrhea with blood or mucus, or diarrhea for weeks. Each shows how soon to get care.
Common causes
- Amebiasis (Entamoeba infection)Often needs care today
An infection of the gut by the parasite Entamoeba histolytica, picked up from food or water contaminated with stool, mostly in places with poor sanitation.
- Crohn's disease or ulcerative colitis (IBD)See a doctor if it doesn't get better
Long-term inflammation of the gut that causes diarrhea (often with blood or mucus), belly pain, urgency, tiredness, and weight loss.
Less likely causes
- Enteropathy-associated T-cell lymphomaOften needs care today
A rare T-cell lymphoma of the small intestine, linked to long-standing celiac disease.
- Whipple diseaseSee a doctor if it doesn't get better
A rare bacterial infection that mostly affects middle-aged men.
- Whipworm infection (trichuriasis)See a doctor if it doesn't get better
An intestinal worm picked up by swallowing eggs from soil contaminated with stool, mostly in warm regions with poor sanitation.
What you can do at home
- Drink plenty of fluids and use oral rehydration solution.
- Eat small, bland meals
- Wash your hands to avoid spreading infection.
- Avoid anti-diarrhea medicine if there's blood or fever, unless a provider says it's OK.
- Keep a food and symptom diary for long-lasting diarrhea.
Medicines
Some bacterial infections and C. diff need antibiotics. IBD is treated with anti-inflammatory medicines, immune-modifying drugs, and sometimes surgery. Other causes are treated specifically.
At the doctor
The provider will look for infection or inflammation.
Questions you may be asked
- How long you've had it and how many times a day
- Blood, mucus, or black stools
- Fever, pain, or weight loss
- Recent antibiotics, travel, or food exposures
- Family history of IBD or colon cancer
The exam
A physical exam, sometimes a rectal exam.
Tests
- Stool tests for infection, C. diff, and inflammation
- Blood tests
- Celiac blood tests
- Colonoscopy with biopsies
Prevention
You can lower your risk.
- Wash hands and handle food safely
- Use antibiotics only when needed
- Drink safe water when traveling
Check your symptoms
Most symptoms have more than one possible cause. The symptom checker looks at all of your symptoms together, plus your age, and shows how soon to get care.
Sources
Last updated 2026-11-13.