How Does Diarrhea Work? What Happens in Your Gut

Diarrhea happens when your gut loses the delicate balance between absorbing and secreting fluid, and the result is more water staying in (or flooding into) the intestinal space than your body can pull back out. Under normal conditions, your intestines process a staggering volume of liquid each day and reclaim almost all of it. When something disrupts that recovery, whether a bacterial toxin, a virus, inflammation, or simply the wrong meal, the excess fluid rushes through and you end up making urgent trips to the bathroom. But the specific way things go wrong varies dramatically depending on the cause, and understanding those differences matters for knowing what actually helps.

Your Gut’s Normal Water Traffic

Most people are surprised to learn how much liquid passes through the intestines on a typical day. Between what you drink, the saliva you swallow, stomach acid, bile, and pancreatic secretions, something like seven to nine liters of fluid enters your small intestine every 24 hours. Your gut reabsorbs the vast majority of that, leaving only a small fraction to pass out as formed stool. The process depends heavily on sodium transport. In the upper small intestine, sodium and water absorption are largely driven by the presence of glucose. A protein on the surface of intestinal cells called the sodium-glucose cotransporter pulls sodium and glucose together across the cell membrane, and water follows passively.

This coupling is so reliable that it becomes the basis for one of the most important medical interventions in history, oral rehydration therapy, which we will get to later. The point here is that normal stool formation is not about your colon “drying out” waste. It is the end product of an enormous, active, finely tuned reabsorption process happening along the entire length of the intestinal tract. When any part of that system gets overwhelmed or disrupted, the downstream result is loose or watery stool.

Secretory Diarrhea, or When the Faucet Gets Stuck Open

The most dramatic form of diarrhea involves your intestinal cells actively pumping fluid into the gut lumen. This is secretory diarrhea, and cholera is its poster child. Cholera toxin, along with certain toxins produced by strains of E. coli, hijacks a chloride channel called CFTR on the surface of intestinal cells. Normally, CFTR opens and closes in a regulated way. But these toxins lock it in the “on” position by ramping up signaling molecules inside the cell that keep the channel open. Chloride ions pour into the intestinal space, sodium follows to maintain electrical balance, and water rushes after both of them.

The volume of fluid loss can be extraordinary. A person with severe cholera can lose liters per hour. What makes secretory diarrhea distinctive is that the intestinal lining itself is not damaged. The cells are structurally intact; they have just been chemically tricked into secreting instead of absorbing. Research on blocking this process has shown that a compound targeting CFTR can reduce cholera toxin-induced fluid secretion by about 90% in animal models, which underscores how central this single channel is to the whole cascade.1Gastroenterology. Prevention of toxin-induced intestinal ion and fluid secretion by a small-molecule CFTR inhibitor Secretory diarrhea also does not stop when you stop eating, because the fluid source is not food but the body’s own secretions.

Osmotic Diarrhea, or When Something Traps Water Inside

Osmotic diarrhea works by a completely different principle. Here, the problem is that something in the gut is pulling water in and holding it there. If you swallow a substance your intestines cannot absorb well, that substance creates osmotic pressure that draws water from the surrounding tissue into the intestinal space. The classic examples are sugar alcohols like sorbitol (found in sugar-free gum and candy), magnesium-based antacids or laxatives, and lactulose, a synthetic sugar sometimes prescribed for liver disease. People with normal gut function will develop osmotic diarrhea if they ingest enough of these substances.2JCI Insight. Intestinal ion transport and the pathophysiology of diarrhea

Lactose intolerance works through the same mechanism. If you lack sufficient lactase enzyme, undigested lactose sits in the small intestine pulling water in, and then gets fermented by bacteria in the colon, producing gas and more osmotically active byproducts. The key clinical feature of osmotic diarrhea is that it stops when you stop consuming the offending substance. If you fast, the diarrhea resolves. This makes it distinguishable from secretory diarrhea, which continues regardless of food intake, and it is one reason stool tests measuring things like osmolality and electrolyte concentrations can help clinicians figure out which mechanism is at play.3American Journal of Gastroenterology. When and What to Test for Diarrhea: Focus on Stool Testing

Inflammatory Diarrhea and the Leaky Gut

A third mechanism involves actual damage to the intestinal wall. In inflammatory diarrhea, bacteria, parasites, or autoimmune processes physically compromise the barrier between the gut lumen and the underlying tissue. Campylobacter, one of the most common bacterial causes of food poisoning worldwide, illustrates this well. The bacteria invade the intestinal lining as a first step, then disrupt the tight junctions that normally hold intestinal cells snugly together. The result is a breakdown in barrier integrity that allows water and dissolved salts to leak into the gut, a process researchers call “leak flux” diarrhea. This barrier damage also lets harmful molecules from the gut cross into the body, contributing to the inflammation and immune response that accompanies the infection.4PubMed. Diarrheal Mechanisms and the Role of Intestinal Barrier Dysfunction in Campylobacter Infections

Inflammatory diarrhea tends to look different from the watery output of secretory diarrhea. It often contains mucus or blood, because the lining itself is being damaged. Conditions like Crohn’s disease and ulcerative colitis produce chronic versions of this, where ongoing immune activity erodes the intestinal surface. Celiac disease works through a related pathway: gluten triggers inflammatory damage to the small intestinal lining, flattening the tiny finger-like projections (villi) that increase surface area for absorption. With fewer functional villi, the gut cannot absorb nutrients or fluid efficiently, and the inflammatory damage itself increases fluid leakage.5PubMed Central. Frequency of Celiac Disease in Patients With Chronic Diarrhea

How Viruses Like Rotavirus Cause Diarrhea

Viral gastroenteritis, the “stomach flu” that most people have experienced at some point, uses yet another trick. Rotavirus, which remains one of the leading causes of severe diarrhea in young children globally, produces a protein called NSP4 that acts as a toxin all on its own. NSP4 triggers intestinal cells to release calcium from their internal stores and also open calcium channels on their outer membrane. This calcium surge activates chloride secretion, pushing fluid into the gut in a way that partially resembles secretory diarrhea but through a different signaling pathway.6PubMed Central. The rotavirus enterotoxin NSP4 mobilizes intracellular calcium in human intestinal cells by stimulating phospholipase C-mediated inositol 1,4,5-trisphosphate production

Interestingly, the secretory response driven by NSP4 appears to be self-limiting to a degree. Research suggests that the protein triggers both secretory and anti-secretory actions, which means the resulting chloride secretion is weaker than what you see with, say, cholera toxin.7PubMed Central. How do the rotavirus NSP4 and bacterial enterotoxins lead differently to diarrhea? Rotavirus also damages the intestinal lining directly, killing mature absorptive cells and replacing them with immature cells that are less efficient at taking up fluid and nutrients. So the diarrhea you get from a rotavirus infection is really a combination of mechanisms: some active secretion, some reduced absorption, and some osmotic effect from undigested sugars sitting in the damaged intestine.

Your Gut Has Its Own Nervous System, and It Panics

One piece of the diarrhea puzzle that often gets overlooked is the enteric nervous system, sometimes called the “second brain.” Your gut wall contains a dense network of neurons that coordinate motility, secretion, and blood flow independently of your brain. When something threatening enters the gut, this network can activate what researchers describe as a defensive program: a coordinated sequence of copious fluid secretion, increased blood flow, and powerful forward-moving contractions designed to flush the threat out.8PubMed. Serotonergic Integration In the Intestinal Mucosa The cramping, urgency, and watery stool that accompany acute diarrhea are not just passive consequences of fluid overload. They are your gut actively executing a clearance program.

Serotonin plays a central role in this process. Most of the body’s serotonin is produced in the gut, not the brain, and it acts as a signaling molecule between the intestinal lining and the enteric neurons. When serotonin levels rise in the gut wall, it increases the firing rate of neurons that control both secretion and motility. People with the diarrhea-predominant subtype of irritable bowel syndrome have been found to have increased serotonin production and availability in the gut, which helps explain why they experience chronic diarrhea and abdominal pain even without an active infection.9PubMed Central. How Serotonin Level Fluctuation Affects the Effectiveness of Treatment in Irritable Bowel Syndrome

Diarrhea as an Active Defense Strategy

It is tempting to think of diarrhea purely as a symptom of something going wrong, but accumulating evidence points to diarrhea as something the body deliberately triggers to protect itself. A 2025 study found that the innate immune system can sense the presence of viral genetic material in the gut and rapidly induce diarrhea through an interferon-mediated pathway. The researchers described this not as collateral damage from infection but as an active host defense mechanism aimed at flushing pathogens out before they can establish a deeper foothold.10Cell Host & Microbe. Type III interferon-mediated dsRNA sensing triggers rapid diarrhea as an active host defense mechanism

Even at the cellular level, there is evidence that the gut deliberately loosens its own barrier in response to infection. A protein called claudin-2, which forms water-permeable pores between intestinal cells, gets rapidly upregulated within two days of bacterial infection, well before there is any visible tissue damage or inflammation. This appears to be a proactive step: by increasing paracellular water flow into the gut lumen, the intestine creates a flushing current that helps clear the pathogen.11Cell Host & Microbe. Claudin-2-Mediated Diarrhea Is a Novel Mechanism of Innate Host Defense This reframing is important because it changes how we think about treating diarrhea. Aggressively stopping all diarrhea with anti-motility drugs during an acute infection could, in theory, slow the body’s ability to clear the pathogen.

Bile Acid Diarrhea, a Common but Underdiagnosed Cause

Not all chronic diarrhea traces back to infection or food intolerance. Bile acid diarrhea occurs when excess bile acids reach the colon instead of being reabsorbed in the last part of the small intestine. Once in the colon, these bile acids trigger a cascade of effects: they stimulate fluid secretion through the same CFTR chloride channel involved in cholera, increase mucus production by directly acting on goblet cells, raise the permeability of the colonic lining, and provoke powerful propulsive contractions that accelerate transit.12Gut and Liver. Bile Acid Diarrhea: Prevalence, Pathogenesis, and Therapy The result is urgent, watery diarrhea that can hit shortly after meals, since eating triggers bile release.

A cell-surface receptor called TGR5 has emerged as a key mediator of these effects. Bile acids activate TGR5 on colonic neurons and other cell types, driving both the increased motility and the secretory response.12Gut and Liver. Bile Acid Diarrhea: Prevalence, Pathogenesis, and Therapy Bile acid diarrhea is thought to affect a meaningful fraction of people diagnosed with diarrhea-predominant IBS, and it is treatable with bile acid sequestrants. But it remains underdiagnosed, partly because testing for it is not part of routine workups in many clinical settings.13PubMed Central. Bile acid diarrhoea: pathophysiology, diagnosis and management

What Diarrhea Does to the Rest of Your Body

The fluid lost in diarrhea is not pure water. It carries sodium, potassium, chloride, and bicarbonate with it, which is why severe or prolonged diarrhea can cause dangerous electrolyte imbalances and acid-base disturbances. In one study of patients hospitalized for diarrheal illness, about 80% had electrolyte disturbances, with low sodium being the most common finding at 56%, followed by low potassium at 46%. Metabolic acidosis, a drop in blood pH caused by bicarbonate loss, was present in 94% of the cases where it was measured.14PubMed. Acid base and electrolyte disturbance in diarrhoea

These shifts are not just lab curiosities. Low potassium can cause muscle weakness and dangerous heart rhythm changes. Severe metabolic acidosis triggers rapid breathing as the body tries to blow off carbon dioxide to compensate. Dehydration itself reduces blood volume, which can lead to dangerously low blood pressure, particularly in very young children and older adults. This is why rehydration, not symptom suppression, is the priority in managing diarrheal illness.

Why Children Are Especially Vulnerable

Young children are disproportionately affected by diarrheal illness worldwide, and their physiology explains why. A newborn’s body is roughly 75% water by weight, compared to about 60% in an adult. This higher proportion of total body water, combined with a higher metabolic rate and a larger surface-area-to-weight ratio, means young children turn over fluid much faster relative to their size.15Frontiers. Management of Diarrhoeal Dehydration in Childhood: A Review for Clinicians in Developing Countries A volume of fluid loss that an adult could tolerate represents a far greater percentage of a small child’s total reserves. Their kidneys are also less mature, making it harder to concentrate urine and conserve water under stress. These factors converge to make dehydration from diarrhea a medical emergency in young children far more quickly than in adults.

How Oral Rehydration Therapy Exploits the System

Oral rehydration solution, developed in the 1960s and 1970s, is built on the sodium-glucose coupling described earlier. Even when diarrhea is raging, the sodium-glucose cotransporter on the intestinal surface often remains functional. By providing a precise ratio of sodium and glucose, oral rehydration solution activates this transporter, pulling sodium and glucose into the cell and dragging water along with them. The ratio matters: too much glucose overwhelms the system and can worsen osmotic diarrhea, while too little fails to maximize absorption.16PubMed Central. Potency of Oral Rehydration Solution in Inducing Fluid Absorption is Related to Glucose Concentration

Oral rehydration solution does not stop diarrhea. The fluid keeps coming, and caregivers sometimes perceive it as ineffective because the stool does not firm up.17PubMed Central. Racecadotril in the management of diarrhea: an underestimated therapeutic option? But what it does is maintain hydration and electrolyte balance while the body fights off the underlying cause, which is usually what saves lives. The development of oral rehydration therapy has been called one of the most important medical advances of the twentieth century, precisely because it works with the gut’s own absorption machinery rather than trying to override the diarrheal process.

When Diarrhea Lingers After the Infection Is Gone

For some people, a bout of acute gastroenteritis resolves, the pathogen clears, but the diarrhea and abdominal symptoms persist for weeks, months, or even years. This is post-infectious irritable bowel syndrome, and roughly one in ten IBS patients can trace the start of their symptoms back to a specific episode of infectious diarrhea.18PubMed Central. Post-infectious irritable bowel syndrome: mechanistic insights into chronic disturbances following enteric infection The mechanisms are not fully understood, but the evidence points to persistent low-grade inflammation, changes in intestinal permeability, and lasting shifts in the gut microbial community.19PubMed Central. Post-infectious irritable bowel syndrome

One finding that helps explain this: in people with diarrhea-predominant IBS, including the post-infectious form, there is evidence of increased expression of claudin-2 in the lining of the small intestine, the same pore-forming protein that the gut upregulates as a defense during acute infection.20PubMed Central. Claudin-2 expression is upregulated in the ileum of diarrhea predominant irritable bowel syndrome patients In other words, the intestinal barrier may remain in a “leaky” defensive posture long after the original threat has passed. The inflammatory response that was supposed to shut down after clearing the infection fails to fully resolve, and the gut stays in a state of heightened permeability and reactivity.21Gut and Liver. Postinfection Irritable Bowel Syndrome This is a frustrating outcome for patients, because standard tests for infection come back negative and the gut looks structurally normal on imaging, yet the symptoms are very real and driven by measurable molecular changes.

The Gut Microbiome and Short-Chain Fatty Acids

The trillions of bacteria living in your colon are not just passive residents. They ferment dietary fiber into short-chain fatty acids, which nourish the cells lining the colon, regulate water absorption, and modulate gut motility. When this microbial community gets disrupted, whether by antibiotics, infection, or dietary changes, the consequences often include diarrhea. In people with diarrhea-predominant IBS, levels of acetate, propionate, and butyrate have been found to be altered compared to healthy controls, and the populations of bacteria responsible for producing butyrate are diminished.22Journal of Neurogastroenterology and Motility. The Role of Short Chain Fatty Acids in Irritable Bowel Syndrome

Antibiotic-associated diarrhea is the most straightforward example of this. Broad-spectrum antibiotics wipe out large swaths of the normal gut flora, reducing the production of short-chain fatty acids and allowing opportunistic organisms like Clostridioides difficile to fill the void. C. difficile then produces its own toxins that damage the colonic lining and trigger intense secretory and inflammatory diarrhea. The connection between microbial diversity and stool consistency is not a fringe idea; it is one of the most active areas of gastroenterology research and the rationale behind fecal microbiota transplantation for recurrent C. difficile infection.

Zinc and the Intestinal Barrier

Zinc has attracted attention for its role in maintaining the integrity of the intestinal lining. Animal studies have shown that zinc supplementation can reduce diarrhea severity in models where the gut barrier has been compromised by antibiotics and bacterial toxins.23Frontiers in Microbiology. Protective effect of zinc gluconate on intestinal mucosal barrier injury in antibiotics and LPS-induced mice In clinical practice, the World Health Organization has long recommended zinc supplementation alongside oral rehydration therapy for children with acute diarrhea in low-resource settings. The mechanism appears to involve both strengthening tight junctions between intestinal cells and supporting immune function. Zinc deficiency is common in populations most vulnerable to diarrheal disease, and the overlap between the two is likely not coincidental.