When you have diarrhea, your intestines are either pushing too much water into your gut or failing to absorb the water that’s already there. Normally, your digestive system processes around 9 liters of fluid every day (a mix of what you drink and what your body secretes during digestion) and absorbs the vast majority of it back into your bloodstream. Diarrhea disrupts that balance, and the excess water rushes through your intestines faster than your body can reclaim it.
What’s happening at a cellular level is more complex than “an upset stomach,” and understanding it helps explain why diarrhea can range from a mild inconvenience to a dangerous medical event.
How Your Intestines Normally Handle Fluid
Your small and large intestines are lined with a single layer of cells called the epithelium. These cells do two jobs simultaneously: they absorb nutrients and water from the food passing through, and they secrete small amounts of fluid to keep things moving. In a healthy gut, absorption wins by a wide margin. Water follows nutrients like glucose, amino acids, and electrolytes as they’re pulled across the intestinal wall into your bloodstream. Wherever sodium goes, water follows, driven by basic osmotic pressure.
The epithelium also acts as a barrier. Tight junctions, tiny protein structures between cells, seal the gaps so that the contents of your gut don’t leak into your blood. This barrier is actively maintained by your cells’ internal scaffolding. When this system works properly, your body reclaims almost all of that 9 liters of daily fluid, leaving only about 100 to 200 milliliters to exit as part of normal stool.
Two Different Ways the System Breaks Down
Diarrhea isn’t one process. It happens through two distinct mechanisms, and many illnesses involve both at once.
Osmotic Diarrhea
This occurs when something in your gut can’t be absorbed and pulls water in after it. Your intestines constantly try to balance the concentration of dissolved particles on both sides of the intestinal wall. If undigested molecules sit in your gut, water floods in to dilute them. Lactose intolerance is a classic example: without enough of the enzyme that breaks down milk sugar, lactose sits in your intestine, draws water into the space around it, and the result is loose, watery stool. The same thing happens with sugar alcohols in sugar-free candy or certain medications like magnesium-based antacids.
Osmotic diarrhea typically stops when you stop eating the trigger substance, because the problem is the unabsorbed solute itself.
Secretory Diarrhea
This is what happens during infections like cholera, E. coli, or giardia. Toxins produced by bacteria or parasites hijack the cells lining your small intestine, forcing them to pump chloride ions into the gut lumen. Sodium follows the chloride passively through the gaps between cells, and water chases the sodium. Your intestine is essentially dumping salt water into itself at a rate that overwhelms its ability to reabsorb.
Maintaining this one-directional flood requires enormous cellular energy, which is part of why infectious diarrhea leaves you feeling so drained. Unlike osmotic diarrhea, secretory diarrhea continues even if you stop eating, because the problem isn’t in your food. It’s in the cells themselves being forced to secrete.
What Happens to Your Gut Lining
Many causes of diarrhea directly damage the intestinal barrier. Some bacteria produce toxins that destroy epithelial cells outright by dismantling their internal structural proteins. Others, like the cholera bacterium, release a compound that loosens the tight junctions between cells, making the intestinal wall leaky. When this barrier breaks down, it’s not just water that escapes into the gut. Proteins, mucus, electrolytes, and in severe cases like dysentery, even blood cells can leak through.
Parasites take a different approach. Giardia, for instance, physically disrupts the tiny fingerlike projections (microvilli) on the surface of intestinal cells. These projections massively increase the surface area available for absorption, so when they’re damaged, your gut simply can’t absorb nutrients or water efficiently. Cryptosporidium actually fuses with the cell membrane and embeds itself inside the cell, hijacking the cell’s machinery from within.
Inflammation compounds the damage. When your immune system detects an invader, inflammatory cells rush to the gut and release chemical signals, including compounds that simultaneously stimulate more fluid secretion and inhibit absorption. This is your body’s attempt to flush out the pathogen, but it makes the diarrhea worse in the short term. It’s essentially a defense mechanism that comes at a real cost.
Your Gut’s Chemical Signaling Goes Haywire
Your intestines contain a surprisingly large number of hormone-producing cells, and several of these hormones directly control fluid movement. Serotonin, better known for its role in mood, is actually produced primarily in the gut. During diarrhea, serotonin release ramps up, triggering three simultaneous effects: it speeds up the muscular contractions that push food through your intestines (motility), it stimulates fluid secretion, and it dilates blood vessels in the gut wall.
This is why diarrhea often comes with cramping. The increased motility means your intestinal muscles are contracting more forcefully and more frequently than normal, pushing contents through before your body has time to absorb water and nutrients. Food that might normally spend hours in your small intestine can transit in a fraction of that time, arriving in your colon still full of unabsorbed fluid.
How Diarrhea Leads to Dehydration
The immediate danger of diarrhea isn’t the diarrhea itself. It’s the fluid and electrolyte loss. You’re not just losing water. You’re losing sodium, potassium, chloride, and bicarbonate, all of which your heart, muscles, and brain need to function.
Mild dehydration shows up as thirst, slightly increased heart rate, and decreased urine output. Your mouth may feel dry but your mucous membranes still look normal. At moderate dehydration, your heart rate climbs further, your skin loses its normal elasticity (if you pinch it, it’s slow to bounce back), your eyes may appear sunken, and you produce very little urine. Severe dehydration brings dangerously low blood pressure, a faint or barely detectable pulse, cracked lips and mouth, and in children, a visibly sunken soft spot on the skull. The three most reliable physical signs across all age groups are slow skin rebound, delayed blood refill in the fingertips when pressed, and abnormal breathing patterns.
Children and older adults are especially vulnerable because they have less fluid reserve to begin with. In young children, severe diarrheal dehydration can become life-threatening within hours.
Why Oral Rehydration Works
Here’s the key insight that has saved millions of lives: even when your gut is in full secretory mode, the sodium-glucose absorption pathway usually still works. Glucose and sodium are co-transported across the intestinal wall together, and water follows. This is why oral rehydration solutions contain both sugar and salt in precise proportions. Plain water doesn’t cut it because it lacks the electrolytes you’ve lost and doesn’t activate this co-transport mechanism as effectively.
The WHO’s current formula, used worldwide since 2003, is designed with a lower overall concentration of dissolved particles than older versions, which reduces the osmotic load and actually improves water absorption. Drinking it during a diarrheal illness doesn’t stop the diarrhea, but it replaces what you’re losing faster than the illness can deplete you.
What Happens to Your Gut Bacteria
A healthy gut is dominated by two major groups of bacteria (Firmicutes and Bacteroidetes), with smaller populations of other species filling supporting roles. Diarrhea, regardless of the cause, reshuffles this community dramatically.
During bacterial infections like E. coli, the balance shifts toward inflammatory species while beneficial populations like Prevotella and Akkermansia drop. Antibiotic-associated diarrhea causes an even broader disruption: Lactobacillus populations decline while opportunistic species like Clostridium expand into the gap. Even in chronic conditions like irritable bowel syndrome with diarrhea, the bacterial profile looks measurably different from a healthy gut, with a consistent increase in inflammatory species.
Recovery takes time. Research on microbiome restoration suggests that bacterial communities can return to a more normal composition within about three weeks after effective treatment, with improvements in symptoms tracking alongside the microbial recovery. But repeated episodes of diarrhea, especially when treated with antibiotics, can delay this process and leave the gut more vulnerable to future disruption. Each round of diarrhea is both a symptom and a destabilizing event for the microbial ecosystem that helps keep your digestion running smoothly.