Diarrhea happens when your intestines push water into your stool faster than your body can reabsorb it. The triggers range from a stomach bug to a medication side effect to a chronic digestive condition, but the underlying problem is always the same: too much fluid ends up in your gut, and your body expels it before it can be absorbed. Globally, there are nearly 1.7 billion cases of childhood diarrheal disease alone each year, making it one of the most common health complaints on the planet.
How Your Gut Normally Handles Water
Your intestines process a surprising amount of liquid every day. Between what you drink and what your body secretes during digestion, roughly 9 liters of fluid pass through your gut in a 24-hour period. Normally, your small and large intestines reabsorb almost all of it, leaving just a small amount of water in your stool.
This reabsorption depends on a finely tuned system of electrolyte transport. Cells lining your intestines actively pump sodium and chloride in specific directions, and water follows those electrolytes through osmotic pressure. When anything disrupts that balance, whether it’s an infection, an undigested sugar, or inflammation, fluid accumulates in the intestinal space and you end up with watery, frequent bowel movements.
Three Ways Diarrhea Works in Your Body
Not all diarrhea is created equal. The mechanism behind it determines how it feels, how long it lasts, and what helps.
Osmotic Diarrhea
This happens when something in your gut pulls water into the intestinal space and holds it there. The classic example is lactose intolerance: if your body can’t break down lactose, that undigested sugar sits in your intestines and draws water toward it. The same thing happens with sugar alcohols (the sweeteners in many “sugar-free” products), certain laxatives, and some medications. Osmotic diarrhea typically stops when you stop eating or drinking whatever your body can’t absorb.
Secretory Diarrhea
In secretory diarrhea, your intestinal cells are actively pumping chloride into the gut lumen. Sodium follows, and water rushes in after both of them. The energy for this process comes from sodium-potassium pumps embedded in the cell walls. Certain bacterial toxins, like those produced by cholera, hijack this chloride channel and force it open, causing your intestines to flood with fluid. Unlike osmotic diarrhea, secretory diarrhea continues even if you stop eating. This is the type most likely to cause dangerous dehydration.
Inflammatory Diarrhea
When the intestinal lining is physically damaged, whether by an invading pathogen or an autoimmune process, immune cells flood the area and release inflammatory compounds. The gut barrier breaks down, allowing fluid to leak into the intestines in an uncontrolled way. Infections like C. difficile cause this by producing toxins that destroy the structural integrity of intestinal cells, triggering a cascade of inflammation. Blood or mucus in the stool is a hallmark of inflammatory diarrhea.
Infections: The Most Common Trigger
Viruses are the leading cause of acute diarrhea worldwide. Rotavirus and norovirus top the list, spreading through contaminated food, water, surfaces, and close contact with infected people. In hospital studies of children with acute diarrhea, rotavirus alone accounts for roughly a third of cases. Norovirus is the most common cause of foodborne diarrheal illness in adults.
Bacterial infections tend to cause more severe symptoms. Various strains of E. coli are among the most frequently identified bacterial culprits. Some strains produce toxins that trigger secretory diarrhea, while others physically attach to and damage the intestinal wall. Salmonella, Campylobacter, and Shigella round out the common bacterial causes, usually transmitted through undercooked meat, contaminated produce, or unsanitary water.
Parasites like Giardia, Cryptosporidium, and Entamoeba histolytica are less common in developed countries but remain significant in areas with limited water treatment. Parasitic diarrhea tends to be more persistent, sometimes lasting weeks, because these organisms colonize the gut and are harder for the immune system to clear.
Antibiotics and Medication Side Effects
Antibiotics are one of the most common non-infectious causes of diarrhea. They work by killing bacteria, but they can’t distinguish between harmful pathogens and the beneficial microbes that keep your gut functioning normally. The result is a drop in microbial diversity and a disruption of key metabolic processes. Specifically, antibiotics reduce populations of anaerobic bacteria that produce short-chain fatty acids and help regulate carbohydrate and bile metabolism. Without them, osmotic imbalances develop in the gut and fluid isn’t absorbed properly.
This disruption also lowers what’s called “colonization resistance,” the ability of your existing gut bacteria to crowd out harmful organisms. When that defense weakens, opportunistic pathogens can take hold. C. difficile is the most well-known example, accounting for 15% to 30% of antibiotic-associated diarrhea cases in adults. C. difficile produces toxins that destroy intestinal cell structure and trigger severe inflammation, sometimes progressing to life-threatening colitis.
Beyond antibiotics, other medications frequently cause diarrhea as a side effect. Antacids containing magnesium, metformin (used for diabetes), and certain chemotherapy drugs are common offenders. In most of these cases, the diarrhea resolves when the medication is stopped or adjusted.
Chronic Conditions That Cause Ongoing Diarrhea
When diarrhea persists for weeks or keeps coming back, a chronic condition is often responsible. The three most common are irritable bowel syndrome, inflammatory bowel disease, and celiac disease. They can look similar on the surface, but they work very differently.
Irritable bowel syndrome with diarrhea (IBS-D) is a functional disorder, meaning it changes how the gut behaves without causing visible damage. There’s no inflammation, no tissue destruction, and no effects beyond the digestive tract. Symptoms are driven by abnormal gut motility and heightened sensitivity in the intestinal nerves. Stress, certain foods, and hormonal changes can all trigger flare-ups.
Inflammatory bowel disease (Crohn’s disease and ulcerative colitis) is fundamentally different. It’s an autoimmune condition that causes real physical damage to the digestive tract. The immune system attacks the intestinal lining, creating ulcers, inflammation, and scarring. Symptoms often extend beyond the gut to include joint pain, skin problems, and fatigue. IBD can affect any part of the digestive system and isn’t always limited to the intestinal lining.
Celiac disease is triggered specifically by gluten, a protein found in wheat, barley, and rye. In people with celiac disease, gluten provokes an immune response that damages the lining of the small intestine, reducing its ability to absorb nutrients. Unlike IBD, the damage is confined to the small intestine and resolves when gluten is removed from the diet.
What Actually Helps During a Bout
The biggest immediate risk from diarrhea is dehydration, especially in young children and older adults. Replacing lost fluids and electrolytes is more important than any dietary strategy. Oral rehydration solutions, which contain a precise balance of salt, sugar, and water, are the most effective way to counteract fluid loss. Sports drinks are a rough substitute but contain more sugar and less sodium than ideal.
The BRAT diet (bananas, rice, applesauce, toast) has been a go-to recommendation for decades, but major health organizations including the American Academy of Pediatrics, the CDC, and the WHO no longer recommend it. Restricting your diet to just those four foods can impair nutritional recovery and, in children, may lead to malnutrition. Current guidance is to return to a normal, balanced diet as soon as you can tolerate it. Your body needs all three macronutrients (protein, fat, and carbohydrates) plus micronutrients to recover, and delaying full nutrition slows that process.
That said, it’s reasonable to temporarily avoid foods that are known gut irritants during a flare: dairy (especially if you suspect lactose intolerance), very fatty or fried foods, caffeine, and alcohol. These can worsen symptoms by increasing osmotic load or stimulating intestinal motility.
Signs That Diarrhea Needs Medical Attention
Most acute diarrhea resolves on its own within a few days. But certain symptoms signal something more serious. In adults, these include diarrhea lasting more than two days without improvement, signs of dehydration (excessive thirst, dark urine, dizziness, very little urination), severe abdominal or rectal pain, bloody or black stools, and fever above 102°F (39°C). More than 10 bowel movements a day, or fluid losses that clearly outpace what you’re drinking, also warrant prompt attention.
In children, the timeline is shorter: diarrhea that doesn’t improve within 24 hours, no wet diaper for three or more hours, fever above 102°F, bloody or black stools, and signs of dehydration like sunken eyes or skin that doesn’t spring back when gently pinched. Young children can become dangerously dehydrated much faster than adults because of their smaller fluid reserves.

