Updated:

Diarrhea: Causes, Treatment & When to See a Doctor

Diarrhea is a common condition characterized by loose, watery stools. This article explores the various causes of diarrhea, from infections to chronic conditions, and provides practical advice on what you can do to manage symptoms, stay hydrated, and prevent complications. Learn when it's crucial to see a doctor.
diarrhea causes

2-minute self-check Is a gut microbiome test useful for you? Answer a few quick questions and find out if a microbiome test is actually useful for you. ✔ Takes 2 minutes ✔ Based on your symptoms & lifestyle ✔ Clear yes/no recommendation Check if a test is right for me

Diarrhea is one of the most common digestive complaints worldwide, and it can range from a brief inconvenience to a sign of a serious medical condition. Understanding the possible diarrhea causes helps you respond appropriately, avoid dehydration, and recognize when self-care is enough and when medical evaluation is needed. This guide explains acute and chronic diarrhea, the infections, medications, food intolerances, and digestive disorders that can trigger it, practical home care, prevention strategies, and the warning signs that require prompt attention. It also clarifies how the gut microbiome may relate to digestive symptoms and why measuring the gut microbiome can sometimes add useful context.

What Is Diarrhea?

Diarrhea is defined as passing loose, watery, or unformed stools more often than is normal for you. Health organizations often use a threshold of three or more loose or watery bowel movements in 24 hours, but frequency alone does not tell the whole story. A sudden change from your usual stool pattern, especially to Bristol stool scale types 6 or 7, is equally important. Some people pass frequent solid stools; others pass fewer but very watery stools. Both patterns can matter.

Diarrhea is a symptom, not a disease in itself. It reflects that the intestines are secreting more fluid, absorbing less fluid, or moving contents through more quickly than usual. Many different conditions can produce this effect, which is why the same symptom can have very different underlying causes.

Acute, Persistent, and Chronic Diarrhea

Clinicians often classify diarrhea by duration. Acute diarrhea lasts less than 14 days and is most often caused by infection or food poisoning. Persistent diarrhea lasts 14 to 30 days. Chronic diarrhea lasts more than four weeks and may point to an ongoing condition such as irritable bowel syndrome, inflammatory bowel disease, malabsorption, or a medication effect. The distinction matters because acute diarrhea is usually self-limited, while chronic diarrhea often requires a more structured medical evaluation.

Typical symptoms that accompany diarrhea include abdominal cramps, urgency, bloating, nausea, vomiting, and fatigue. Fever or blood in the stool suggests a different level of concern than watery diarrhea alone. Dehydration is the most common complication, especially in infants, older adults, and people who are immunocompromised.


Discover the Microbiome Test

ISO-certified EU lab • Sample stays stable during shipping • GDPR-secure data

Microbiome Test Kit

Common Causes of Diarrhea

When people ask what causes diarrhea, the answer usually falls into several broad categories: infections, food-related illness, medications, food intolerances, and digestive disorders. Most acute cases are infectious, while chronic cases more often involve non-infectious mechanisms. The table below provides a quick reference, and the sections that follow explain each category in more detail.

Cause category Common examples Typical pattern Key clues When to seek care
Viral infection Norovirus, rotavirus, adenovirus, astrovirus Acute, often 1–3 days Watery diarrhea, nausea, vomiting, low-grade fever, household or community outbreak Signs of dehydration, symptoms beyond 2 days in adults, any concerning symptoms in infants
Bacterial infection Campylobacter, Salmonella, Shigella, E. coli, C. difficile Acute, sometimes prolonged Fever, bloody stools, severe cramps, recent antibiotics, travel, or unsafe food Bloody diarrhea, high fever, severe pain, recent antibiotics, immunocompromised state
Parasitic infection Giardia, Cryptosporidium, Entamoeba Prolonged, often 1–2 weeks or longer Greasy stools, bloating, weight loss, travel to endemic areas, contaminated water Persistent diarrhea, weight loss, blood or mucus in stool
Food poisoning Staphylococcus aureus toxin, Bacillus cereus, Salmonella, E. coli Rapid onset, often within hours Sudden vomiting and diarrhea after a shared meal, short incubation period Severe dehydration, bloody stools, high fever, symptoms lasting more than 2 days
Medication side effects Antibiotics, laxatives, metformin, NSAIDs, chemotherapy, proton pump inhibitors Variable, often after starting a new drug Temporal relationship to medication, improvement after stopping Bloody diarrhea, severe symptoms, suspected C. difficile after antibiotics
Food intolerance or malabsorption Lactose, fructose, sorbitol, gluten-related disorders Recurrent, related to specific foods Bloating, gas, symptoms after dairy or certain sugars, weight loss in malabsorption Weight loss, anemia, persistent symptoms despite dietary changes
Irritable bowel syndrome (IBS) Diarrhea-predominant IBS Chronic, fluctuating Recurrent abdominal pain with altered stool form, no blood, no nighttime symptoms typically New symptoms after age 50, weight loss, blood, fever, family history of colon cancer or IBD
Inflammatory bowel disease (IBD) Crohn’s disease, ulcerative colitis Chronic, often progressive Bloody diarrhea, urgency, weight loss, fatigue, fever, anemia Blood in stool, persistent symptoms, systemic signs
Other causes COVID-19, hyperthyroidism, bile acid diarrhea, small intestinal bacterial overgrowth, anxiety Variable Associated systemic symptoms, chronic pattern, relation to stress Persistent or unexplained symptoms

Infectious Causes: Viral, Bacterial, and Parasitic

Viral gastroenteritis is the most common cause of acute diarrhea in both adults and children. Norovirus is highly contagious and often spreads through food, water, or contaminated surfaces. Rotavirus primarily affects infants and young children, though vaccination has reduced its impact in many countries. Viral diarrhea is usually watery, self-limited, and does not respond to antibiotics.

Bacterial infections can produce more severe illness. Campylobacter, Salmonella, Shigella, and certain strains of E. coli may cause fever, abdominal pain, and sometimes bloody stools. Clostridioides difficile (C. difficile) is particularly important after antibiotic use, because antibiotics can disrupt the normal gut microbiome and allow this bacterium to overgrow. C. difficile can cause watery diarrhea, fever, and abdominal tenderness. Parasites such as Giardia and Cryptosporidium often cause prolonged, greasy, or watery diarrhea and may be linked to contaminated water or travel.

Food poisoning deserves special mention because it can be caused by either toxins or live organisms. Toxin-mediated food poisoning, such as that from Staphylococcus aureus, can cause vomiting and diarrhea within hours of eating contaminated food. Infection-based food poisoning may take longer to develop. Most cases resolve with hydration, but some bacterial infections require antibiotics or other specific treatment.


View example recommendations from the InnerBuddies platform

Preview the nutrition, supplement, food diary and food recipe platform recommendations that InnerBuddies can generate based on your gut microbiome test

View example recommendations

Medication Side Effects

Many medications can cause diarrhea. Antibiotics are among the most common, partly because they alter the gut microbiome and partly because they can allow harmful bacteria to flourish. Laxatives, magnesium-containing antacids, metformin, NSAIDs, chemotherapy drugs, and proton pump inhibitors can also contribute. If diarrhea begins shortly after starting a new medicine, it is worth reviewing the medication list with a pharmacist or clinician. Do not stop a prescribed medication without medical advice.

Food Intolerances and Malabsorption

Lactose intolerance occurs when the small intestine does not produce enough lactase, the enzyme needed to digest lactose in milk and dairy products. Symptoms include bloating, gas, cramps, and diarrhea after dairy consumption. Fructose and sorbitol intolerance can produce similar symptoms. These are not true allergies and do not involve the immune system in the same way.

Malabsorption is different: it means the intestines are not absorbing nutrients properly. Conditions such as celiac disease, pancreatic insufficiency, and bile acid malabsorption can cause chronic diarrhea, weight loss, and nutritional deficiencies. Celiac disease is an immune-mediated condition, not simply a food intolerance, and requires medical testing before starting a gluten-free diet.

Digestive Disorders: IBS, IBD, and Others

Irritable bowel syndrome (IBS) is a common functional disorder that can cause diarrhea, constipation, or both, along with abdominal pain and bloating. IBS does not cause visible inflammation or damage to the intestines, but it can significantly affect quality of life. Inflammatory bowel disease (IBD), which includes Crohn’s disease and ulcerative colitis, involves chronic inflammation and can cause bloody diarrhea, weight loss, fatigue, and systemic symptoms. IBD requires medical diagnosis and treatment.

Other digestive causes include microscopic colitis, small intestinal bacterial overgrowth (SIBO), bile acid diarrhea, and post-infectious IBS. Some people develop persistent bowel changes after a gastrointestinal infection. The gut microbiome may play a role in these conditions, although the relationships are complex and still being studied. If you are exploring your gut health, a gut microbiome test can provide educational insight into your bacterial composition, but it cannot diagnose IBS, IBD, or the cause of diarrhea on its own.

When to See a Doctor for Diarrhea

Most episodes of acute diarrhea resolve without medical care. However, some situations require prompt attention. The key is to recognize warning signs early, especially in people who are more vulnerable to dehydration or serious infection.

Red Flags That Require Urgent Attention

  • Blood in the stool or black, tarry stools
  • High fever, especially above 38.5°C (101.3°F) or with shaking chills
  • Severe abdominal pain that is not relieved by passing stool or gas
  • Signs of dehydration: confusion, dizziness, fainting, very dark urine, little or no urination, dry mouth, sunken eyes, or rapid heartbeat
  • Persistent vomiting that prevents you from keeping fluids down
  • Diarrhea lasting more than two days in adults, or more than 24 hours in young children, unless a clinician has advised otherwise
  • Recent antibiotic use followed by diarrhea, especially with fever or abdominal pain, which may suggest C. difficile
  • Recent travel to an area with poor sanitation, especially with fever or bloody diarrhea
  • Immunocompromised state, including chemotherapy, transplant, HIV, or long-term steroid use

Vulnerable Groups: Infants, Older Adults, and Immunocompromised People

Infants can become dehydrated very quickly. Seek medical advice if a baby has fewer wet diapers, no tears when crying, a sunken soft spot, unusual sleepiness, or persistent vomiting. For older adults, dehydration may present atypically, with confusion, weakness, or falls rather than thirst. People who are immunocompromised may develop severe or prolonged infections and should have a lower threshold for contacting a clinician. Pregnant people should also seek advice early, because dehydration and certain infections can affect both mother and baby.

A Quick Decision Guide

Category What it may look like Action
Self-care likely appropriate Mild watery diarrhea, no fever, able to drink, no blood, improving within 24–48 hours Hydrate, rest, monitor for worsening
Contact a clinician promptly Diarrhea beyond 2 days in adults, fever, worsening symptoms, recent antibiotics, travel, or belonging to a vulnerable group Seek medical advice, especially if unable to keep fluids down
Emergency care Bloody stools, severe dehydration, confusion, severe abdominal pain, fainting, high fever with chills Call emergency services or go to an emergency department

What You Can Do: Home Remedies and Diarrhea Treatment

For most mild, acute cases, the main goals are preventing dehydration and allowing the intestines to recover. Diarrhea treatment at home focuses on fluids, electrolytes, sensible eating, and, when appropriate, over-the-counter medications. It is also important to know what not to do.

Hydration Comes First

Fluid loss is the most important complication of diarrhea. Water alone may not replace electrolytes lost in stool and vomit. Oral rehydration solution (ORS) is specifically designed with a balance of water, salt, and sugar that helps the intestines absorb fluid. It is widely available at pharmacies and is especially useful for children, older adults, and anyone with significant diarrhea. Sports drinks are not ideal because they often contain too much sugar and too little sodium, but they can be used in mild cases if ORS is unavailable. Avoid sugary sodas, fruit juices, caffeine, and alcohol, which can worsen diarrhea or dehydration.

2-minute self-check Is a gut microbiome test useful for you? Answer a few quick questions and find out if a microbiome test is actually useful for you. ✔ Takes 2 minutes ✔ Based on your symptoms & lifestyle ✔ Clear yes/no recommendation Check if a test is right for me

In adults, a simple home alternative is a mixture of one liter of clean water, six level teaspoons of sugar, and half a teaspoon of salt. This is not a perfect substitute for commercial ORS and should not be used for infants without medical advice. For infants, breast milk or formula should continue, and ORS should be given as directed by a clinician.

Eating Sensibly, Not Starving

Modern guidance generally supports early eating rather than prolonged fasting. Bland, easy-to-digest foods may be easier to tolerate, but the old BRAT diet (bananas, rice, applesauce, toast) is not mandatory and may be nutritionally limited if used for too long. Many people do well with cooked rice, potatoes, pasta, lean protein, cooked vegetables, and bananas. Dairy may worsen symptoms in people with lactose intolerance, but not everyone needs to avoid it. Fatty, spicy, fried, or very sugary foods may be harder to digest. Listen to your body and resume a normal diet as tolerance improves.

Over-the-Counter Antidiarrheal Medications

Several nonprescription options are available, but they are not appropriate for every case. Loperamide (Imodium) slows intestinal motility and can reduce stool frequency. However, it should not be used for bloody diarrhea, high fever, or suspected C. difficile infection, because slowing motility may trap harmful organisms. Bismuth subsalicylate (Pepto-Bismol) has antisecretory and antibacterial properties, but it should not be used in children or teenagers because of the risk of Reye’s syndrome, and it can interact with certain medications. Adsorbents such as kaolin-pectin are not strongly supported by evidence and are not recommended as first-line treatment.

Medication type Examples How it works Best used for Important cautions
Loperamide Imodium Slows intestinal movement Mild, non-infectious diarrhea; travel-related diarrhea in selected cases Avoid with bloody stools, high fever, suspected C. difficile, or in young children unless advised
Bismuth subsalicylate Pepto-Bismol Reduces fluid secretion and may have antibacterial effects Mild diarrhea, upset stomach Avoid in children and teenagers; caution with aspirin allergy, bleeding disorders, or pregnancy
Probiotics Specific strains such as Saccharomyces boulardii or Lactobacillus rhamnosus GG May support gut microbial balance Some cases of antibiotic-associated or infectious diarrhea Evidence is strain-specific; avoid in immunocompromised people unless advised
Adsorbents Kaolin-pectin Bind water and toxins in the gut Not routinely recommended Limited evidence; may interfere with other medications

If you are unsure whether an antidiarrheal is safe for you, a pharmacist or clinician can help. Do not take antibiotics for diarrhea unless they have been prescribed for a specific infection. Viral diarrhea does not respond to antibiotics, and unnecessary antibiotic use can disrupt the gut microbiome and promote resistance.

The Microbiome and Recovery

The gut microbiome is the community of bacteria, viruses, fungi, and other microorganisms that live in the digestive tract. It helps with digestion, immune regulation, and protection against harmful organisms. Diarrhea, especially infectious diarrhea or antibiotic treatment, can temporarily alter the composition and function of the gut microbiome. Some research suggests that the microbiome may contribute to individual differences in recovery and to the risk of post-infectious IBS.

That said, the microbiome is not a simple switch. Probiotic supplements, fiber, and fermented foods may influence gut bacteria, but the effects vary by person, strain, and clinical context. If you are curious about your gut microbial community, microbiome testing can provide a snapshot of bacterial composition and diversity. It is an educational tool, not a diagnostic test, and it should not replace medical evaluation for persistent or concerning symptoms.

What Not to Do

  • Do not force yourself to fast for long periods unless a clinician advises it.
  • Do not use antidiarrheal medication if you have bloody diarrhea or high fever without medical advice.
  • Do not take leftover antibiotics or antibiotics from another person.
  • Do not rely on sugary drinks or caffeine for hydration.
  • Do not ignore signs of dehydration, especially in children or older adults.

Prevention Tips for Diarrhea

Many infectious causes of diarrhea can be prevented with simple hygiene and food safety measures. Prevention is especially important for people who are immunocompromised, for families with young children, and for travelers.

Hand Hygiene and Food Safety

Wash your hands thoroughly with soap and water for at least 20 seconds after using the toilet, changing diapers, handling raw meat, and before preparing or eating food. Alcohol-based hand sanitizers can reduce many pathogens, but they are less effective against norovirus and some parasites, so soap and water are preferred when available. In the kitchen, separate raw meat from ready-to-eat foods, cook meat and eggs thoroughly, wash produce, and refrigerate leftovers promptly. Avoid unpasteurized dairy products and undercooked seafood.


Become a member of the InnerBuddies community

Perform a gut microbiome test every couple of months and view your progress while following-up on our recommendations

Take an InnerBuddies membership

Traveler’s Diarrhea Prevention

When traveling to areas where sanitation may be limited, drink bottled or boiled water, avoid ice cubes made from tap water, and eat foods that are freshly cooked and served hot. Peel fruits yourself and avoid raw salads or unpeeled produce. Bismuth subsalicylate and certain antibiotics are sometimes used for prevention in specific high-risk situations, but this should be discussed with a travel medicine clinician because of side effects and antibiotic resistance concerns.

Vaccination and Medication Stewardship

Rotavirus vaccination is recommended for infants in many countries and significantly reduces severe rotavirus diarrhea. Other vaccines, such as those for cholera or typhoid, may be considered for certain travelers. Using antibiotics only when medically necessary helps preserve the gut microbiome and reduces the risk of C. difficile infection and antibiotic resistance. If you are prescribed antibiotics, ask your clinician whether a probiotic is appropriate for you.

Key Takeaways

  • Diarrhea is a symptom with many possible causes, including infections, food poisoning, medications, food intolerances, IBS, and IBD.
  • Acute diarrhea lasts less than 14 days and is most often infectious; chronic diarrhea lasts more than four weeks and may require medical evaluation.
  • Hydration with water and oral rehydration solution is the most important home treatment for most cases.
  • Seek medical advice for bloody stools, high fever, severe abdominal pain, signs of dehydration, or diarrhea lasting more than two days in adults.
  • Infants, older adults, pregnant people, and immunocompromised individuals should have a lower threshold for seeking care.
  • Antidiarrheal medications can help some people but are not safe for every situation, especially bloody diarrhea or suspected C. difficile.
  • Good hand hygiene and food safety reduce the risk of infectious diarrhea.
  • The gut microbiome may influence recovery and individual variability, but microbiome testing is educational and not a diagnostic substitute.

Frequently Asked Questions

What foods should I eat when I have diarrhea?

Bland, easy-to-digest foods such as rice, potatoes, pasta, bananas, cooked vegetables, and lean protein are often well tolerated. The traditional BRAT diet is not mandatory, and prolonged restrictive eating is not usually necessary. Avoid very fatty, spicy, or sugary foods if they worsen symptoms, and resume a normal diet as you feel better.

How long does diarrhea usually last?

Most acute infectious diarrhea improves within one to three days, although some cases last up to a week. Bacterial infections or parasitic infections may last longer. Diarrhea lasting more than two days in adults, or more than 24 hours in young children, should prompt medical advice, especially if other warning signs are present.

What is the fastest way to stop diarrhea?

There is no safe instant cure. Hydration and time are the mainstays for most cases. Loperamide can slow bowel movements and reduce frequency in selected non-infectious cases, but it is not appropriate for everyone. If you have fever, bloody stools, or severe pain, do not use antidiarrheal medication without medical advice.

Can diarrhea be a sign of COVID-19?

Yes, COVID-19 can cause gastrointestinal symptoms, including diarrhea, nausea, and vomiting, sometimes without respiratory symptoms. Diarrhea is not the most common symptom, but it can occur. If you have diarrhea along with other COVID-19 symptoms or have been exposed, testing and public health guidance may be appropriate.

What should I drink to avoid dehydration from diarrhea?

Oral rehydration solution is the best choice because it contains a balanced mix of water, salt, and sugar. Water and broth can help in mild cases, but sports drinks are often too sugary and low in sodium to be ideal. Avoid soda, juice, caffeine, and alcohol, which can worsen fluid loss.

When should I see a doctor for diarrhea?

Seek medical advice if diarrhea lasts more than two days in adults, if you have bloody stools, high fever, severe abdominal pain, signs of dehydration, recent antibiotic use, or recent travel. Infants, older adults, pregnant people, and immunocompromised individuals should seek advice earlier.

Can stress cause diarrhea?

Stress and anxiety can affect gut motility and the gut-brain axis, and some people experience loose stools or urgency during stressful periods. However, stress is rarely the sole cause of persistent diarrhea. If symptoms are chronic or accompanied by blood, fever, or weight loss, medical evaluation is important.

2-minute self-check Is a gut microbiome test useful for you? Answer a few quick questions and find out if a microbiome test is actually useful for you. ✔ Takes 2 minutes ✔ Based on your symptoms & lifestyle ✔ Clear yes/no recommendation Check if a test is right for me

Are probiotics helpful for diarrhea?

Some probiotic strains, such as Saccharomyces boulardii and Lactobacillus rhamnosus GG, have evidence for certain types of diarrhea, including antibiotic-associated diarrhea. However, effects are strain-specific, and probiotics are not appropriate for everyone, especially people who are immunocompromised. A clinician or pharmacist can advise on whether a probiotic is suitable.

What causes chronic diarrhea?

Chronic diarrhea lasting more than four weeks can be caused by IBS, IBD, celiac disease, malabsorption, bile acid diarrhea, medication effects, chronic infections, or other conditions. Because the causes are diverse, persistent diarrhea usually requires a structured medical evaluation rather than repeated self-treatment.

Is diarrhea a common symptom of IBS?

Yes, diarrhea-predominant IBS is a common subtype of IBS. It typically causes recurrent abdominal pain with loose or frequent stools, often without blood or nighttime symptoms. However, IBS is a diagnosis of exclusion, so alarm features such as weight loss, blood, fever, or new symptoms after age 50 should be evaluated.

Should I take antidiarrheal medication?

Antidiarrheal medications can be helpful for mild, non-infectious diarrhea, but they are not safe for every situation. Avoid loperamide if you have bloody stools, high fever, or suspected C. difficile. If you are unsure, ask a pharmacist or clinician before using an antidiarrheal.

How can I prevent traveler’s diarrhea?

Drink bottled or boiled water, avoid ice from tap water, eat freshly cooked hot foods, and peel fruit yourself. Wash your hands frequently. Preventive medications are sometimes used in high-risk situations, but they should be discussed with a travel medicine clinician because of side effects and resistance concerns.

Conclusion

Most episodes of diarrhea are short-lived and improve with hydration and rest, but the causes are diverse and sometimes serious. Understanding the difference between acute and chronic diarrhea, recognizing warning signs, and using home care appropriately can help you manage symptoms safely. Individual variability matters: the same symptom can reflect an infection, a medication effect, a food intolerance, IBS, IBD, or another condition. When symptoms are persistent or concerning, medical evaluation is the right next step.

The gut microbiome may add useful context to digestive health, particularly in chronic or recurrent symptoms, but it is not a stand-alone diagnostic tool. Personalized microbiome analysis can support greater understanding of your gut bacterial community when interpreted alongside clinical information. This article is educational and is not a substitute for professional medical advice, diagnosis, or treatment.

Keywords

diarrhea causes, what causes diarrhea, diarrhea treatment, how to stop diarrhea, when to see a doctor for diarrhea, acute diarrhea, chronic diarrhea, food poisoning, viral gastroenteritis, bacterial infection, parasites, medication side effects, lactose intolerance, irritable bowel syndrome, inflammatory bowel disease, dehydration, oral rehydration solution, electrolytes, BRAT diet, antidiarrheal medications, bloody stools, abdominal cramps, nausea, vomiting, stool frequency, hydration, prevention, food safety, hand hygiene, traveler’s diarrhea, gut microbiome, microbiome testing

See all articles in The latest gut microbiome health news