Diarrhea: Causes, Relief, and When to See a Doctor
Diarrhea means loose, watery stools that happen more often than usual, sometimes with cramping, urgency, or bloating. It is one of the most common problems people deal with, and most cases clear up on their own within a day or two. This page walks you through the likely causes, simple ways to feel better, the warning signs that need urgent care, and how to find the right specialist near you.
At a Glance
What diarrhea is and how it feels
Diarrhea is the passing of loose or watery stools more often than is normal for you, usually three or more times in a day. It happens when your intestines either move waste through too quickly or fail to absorb enough water from it, so stool comes out soft, runny, or completely liquid.
Most people notice more than just frequent trips to the bathroom. Along with urgency, you may deal with belly cramps, a gurgling or bloated feeling, nausea, and sometimes a low fever. The discomfort can range from a mild nuisance to draining waves of cramping that leave you tied to the bathroom.
Doctors sort diarrhea by how long it lasts. Acute diarrhea comes on fast and clears within a few days, and is almost always from an infection or something you ate. Persistent diarrhea runs two to four weeks. Chronic diarrhea lasts longer than four weeks and points to an ongoing condition that deserves a workup. Knowing which category fits your situation helps you decide whether to wait it out or call a doctor.
Stool color can offer clues but rarely tells the whole story. Green or yellow stool often just means food moved through quickly before bile had time to change its color, which is common during any bout of diarrhea and usually harmless on its own. Color matters most when paired with other warning signs, which we cover below.
Common causes of diarrhea
Diarrhea is a symptom, not a disease, so the real question is what is driving it. Most short bouts trace back to an infection or something you ate, while diarrhea that keeps coming back usually has a deeper cause in the gut, liver, or pancreas.
Infections and food
- Stomach bugs: Viral and bacterial gastroenteritis is the leading cause of sudden, watery diarrhea, often with nausea and cramps.
- Contaminated food: Food poisoning from bacteria or their toxins can hit within hours of eating.
- Travelers' diarrhea: New water and food bacteria abroad commonly trigger several days of loose stools.
- Stomach lining irritation: Gastritis and infections like Helicobacter pylori can upset digestion.
Food intolerances and digestion problems
- Lactose intolerance: Lactose intolerance causes gas, bloating, and diarrhea after dairy.
- Celiac disease: Celiac disease is an immune reaction to gluten that damages the small intestine.
- Bacterial overgrowth: Small intestinal bacterial overgrowth and malabsorption syndromes keep nutrients and water from being absorbed.
Chronic gut conditions
- IBS: Irritable bowel syndrome is a top cause of recurring diarrhea, cramping, and urgency, often tied to stress or certain foods.
- Inflammatory bowel disease: Crohn's disease and ulcerative colitis cause ongoing diarrhea that may carry blood.
- Pouches in the colon: Diverticulitis and diverticulosis can shift bowel habits.
- Growths: Colon polyps sometimes change stool patterns.
Liver, gallbladder, and pancreas
When bile and digestive enzymes are off, fat is poorly absorbed and stools turn loose, greasy, or pale. Causes include gallstones, bile duct stones, pancreatitis, and liver problems such as hepatitis, hepatitis A, hepatitis B, hepatitis C, fatty liver disease, and cirrhosis.
Medications are an easy-to-miss trigger. Antibiotics, certain antacids, and some diabetes drugs all loosen stools. If diarrhea started soon after a new prescription, mention it to your doctor before stopping anything.
When to seek emergency or urgent care
Most diarrhea is not dangerous, but certain warning signs mean you should not wait it out. The biggest risks are dehydration and a serious underlying cause, and both can move quickly, especially in young children, older adults, and people with weakened immune systems.
Go to the emergency room or call 911 if you have:
- Diarrhea with severe or constant belly pain that does not let up
- Blood in your stool, black tarry stool, or stool that looks like coffee grounds
- A high fever above 102 degrees Fahrenheit
- Signs of serious dehydration: dizziness or fainting, a racing heart, very little or no urine, sunken eyes, or extreme weakness
- Confusion, trouble staying awake, or inability to keep any fluids down
Call your doctor within a day if you have:
- Diarrhea lasting more than two days in an adult, or more than 24 hours with a fever
- Six or more loose stools in 24 hours
- Signs of mild dehydration such as a very dry mouth, dark urine, or strong thirst
- Diarrhea during pregnancy that is severe, bloody, or comes with cramping
Infants and young children get dehydrated fast. Call a pediatrician right away if a child has diarrhea with no wet diaper in three hours, a dry mouth, no tears when crying, sunken eyes, a sunken soft spot on the head, or unusual sleepiness. When in doubt with a baby, do not wait.
How to get relief and self-care
For ordinary diarrhea, the goal is simple: replace what you lose and let your gut settle. The single most important step is staying hydrated, because watery stools pull fluid and salts out of your body fast.
Replace fluids and electrolytes
- Sip water, broth, or diluted juice steadily throughout the day rather than gulping large amounts at once.
- Use an oral rehydration solution or a sports drink to replace lost sodium and potassium. For children, a pediatric electrolyte solution is best.
- Avoid alcohol, very sugary drinks, and a lot of caffeine, since they can pull more water into the gut.
Eat gently as you recover
- Start with bland, easy foods such as bananas, rice, applesauce, toast, plain crackers, and boiled potatoes.
- Add foods back slowly as your stomach calms down, and skip greasy, spicy, or very high-fiber meals for a day or two.
- If dairy seems to make things worse, hold off on milk products until you feel better.
Over-the-counter medicine
Anti-diarrheal medicines like loperamide can slow things down and help you get through a long day, and bismuth subsalicylate can ease cramping and nausea. These work well for plain, watery diarrhea in adults. Do not use them if you have a high fever or bloody stools, because slowing the gut can trap a harmful infection inside. Do not give anti-diarrheal medicines to children without a doctor's guidance, and check with a pharmacist if you take other prescriptions or are pregnant.
How diarrhea is diagnosed
For a short bout, no testing is needed and you simply recover. When diarrhea is severe, bloody, or hangs on for weeks, a doctor looks for the cause with a few straightforward steps.
It usually starts with questions and an exam. Your doctor will ask how long it has lasted, how often you go, what the stool looks like, what you have eaten, where you have traveled, and what medicines you take. This history alone often points to the answer.
From there, testing is matched to your clues:
- Stool tests check for bacteria, parasites, hidden blood, or signs of inflammation.
- Blood tests look for infection, dehydration, celiac disease, thyroid problems, and how your liver and pancreas are working.
- Breath tests can identify lactose intolerance or bacterial overgrowth.
- Colonoscopy or upper endoscopy lets a gastroenterologist see the gut lining directly and take small samples when inflammatory bowel disease, celiac disease, or growths are suspected.
Keeping a simple food and symptom diary before your visit can speed this up considerably. Note what you ate, when diarrhea hit, and anything that made it better or worse. That record often saves time and points your doctor toward the right test on the first try.
When to see a doctor and which specialist
See a doctor if your diarrhea lasts more than a few days, keeps coming back, wakes you at night, or comes with weight loss, blood, or ongoing belly pain. These patterns suggest something beyond a passing bug and deserve a proper look.
Your primary care doctor is the right first stop and handles most cases, including ordering initial stool and blood tests. If diarrhea is chronic, bloody, or unexplained, you will likely be referred to a gastroenterologist, a specialist in the digestive system who can perform endoscopy and manage conditions like inflammatory bowel disease, celiac disease, and chronic infections.
This page is educational and is not a diagnosis. Only a clinician who can examine you and review your history can tell you what is truly causing your symptoms and what treatment fits you best. If anything here matches what you are feeling, use it as a starting point for that conversation, not a replacement for it.
When you are ready to find care, you can search for board-certified digestive specialists near you and compare their training, locations, and the insurance they accept.
Diarrhea in special situations
A few groups need extra care because their bodies handle diarrhea differently.
During pregnancy
Short spells of diarrhea in pregnancy are common and often tied to hormone shifts, diet changes, or prenatal vitamins. Focus on fluids and rest, and call your doctor before taking any anti-diarrheal medicine. Reach out promptly if diarrhea is severe, bloody, lasts more than a day or two, or comes with fever or strong cramping, since dehydration affects both you and the baby.
In babies and young children
Children lose fluids quickly, so dehydration is the main worry. Offer an oral rehydration solution and keep feeding as tolerated. Watch closely for dry mouth, no tears, fewer wet diapers, sunken eyes, or unusual sleepiness, and call a pediatrician if any of these appear. Bright green stool in a newborn is often normal, but if it comes alongside any of those warning signs, call right away.
After eating
If diarrhea reliably follows meals, look for a pattern. Dairy points toward lactose trouble, gluten toward celiac disease, and a mix of foods plus stress toward IBS. Pinning down the trigger with a food diary gives your doctor a strong head start.
Find Help for Diarrhea Near Me
Browse CMS-verified providers who treat diarrhea by state.
Related care
Conditions, procedures, treatments and tests connected to diarrhea.
Related conditions
Tests & screenings
Frequently Asked Questions
Common questions about diarrhea
What is the best over-the-counter medicine for diarrhea?
Loperamide (Imodium) slows the gut and reduces how often you go, while bismuth subsalicylate (Pepto-Bismol or Kaopectate) can ease cramping and nausea. Both work well for plain, watery diarrhea in adults. Do not use them if you have a high fever or bloody stools, and do not give them to children without a doctor's advice.
Why is my diarrhea yellow or green?
Green or yellow stool usually means food moved through your intestines too fast for bile to finish changing its color, which is common during any bout of diarrhea. On its own this is rarely a concern. It matters more if it comes with pale, greasy stools, belly pain, or yellowing skin, which can signal a liver or gallbladder problem worth checking.
How long does diarrhea usually last?
Most acute diarrhea from a stomach bug or food clears up within two to three days. Diarrhea that lasts two to four weeks is called persistent, and anything beyond four weeks is chronic and needs a medical workup. See a doctor sooner if you also have blood, high fever, or signs of dehydration.
What causes diarrhea right after eating?
Diarrhea soon after meals can come from food intolerances like lactose intolerance or celiac disease, irritable bowel syndrome, or a fast-moving gut reflex. Keeping a food diary helps spot the trigger. If it happens often or comes with weight loss or blood, see a doctor for testing.
When should diarrhea send me to the emergency room?
Go to the emergency room or call 911 for severe constant belly pain, blood in your stool, black tarry stool, a fever above 102 degrees, or signs of serious dehydration like fainting, a racing heart, confusion, or no urine. For babies showing no wet diapers, no tears, or extreme sleepiness, seek care right away.
Is diarrhea during pregnancy normal?
Occasional diarrhea in pregnancy is common and often linked to hormones, diet, or prenatal vitamins. Focus on fluids and rest, and ask your doctor before taking any medicine. Call promptly if it is severe, bloody, lasts more than a day or two, or comes with fever or strong cramping.
What is travelers' diarrhea and how do I prevent it?
Travelers' diarrhea comes from eating or drinking food and water contaminated with unfamiliar bacteria, usually in places with different sanitation. Prevent it by drinking sealed or bottled water, avoiding ice and raw produce you cannot peel, and choosing freshly cooked hot food. Most cases clear within a few days with rest and fluids.
Medical disclaimer: This content is for educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider with questions about a medical condition. If you have a medical emergency, call 911. Our editorial standards