Diarrhea happens when too much water ends up in your stool, either because your intestines are pulling extra fluid in, pushing it out too fast, or both. The underlying triggers range from a stomach bug to stress to the coffee you had this morning, but the basic mechanics come down to just a few patterns your gut follows when something goes wrong.
How Your Gut Moves Water Around
Your intestines handle an enormous amount of fluid every day. Between what you drink and what your body secretes during digestion, roughly 9 liters of liquid pass through your gut in a 24-hour period. Normally, your small and large intestines reabsorb almost all of it, leaving just enough moisture to form a solid stool. Diarrhea occurs when that reabsorption process breaks down or gets overwhelmed.
This can happen through a few distinct mechanisms. In one pattern, something in your gut pulls water into the intestinal space through simple osmotic pressure. Think of it like a sponge sitting in your colon: undigested sugars or certain laxatives attract water from the surrounding tissue into the space where stool is forming. This type stops when you stop eating or drinking whatever caused it.
In another pattern, the lining of your intestines actively pumps fluid outward. Bacterial toxins from food poisoning, for instance, can flip a switch in the cells lining your gut, causing them to flood the intestinal space with water and electrolytes. Unlike the osmotic type, this kind of diarrhea continues even if you stop eating entirely, because the problem isn’t what’s in the gut but what the gut lining itself is doing.
A third pattern involves direct damage to the intestinal wall. Conditions like Crohn’s disease or ulcerative colitis inflame and erode the lining, allowing blood, mucus, and protein to leak into the stool. This inflammatory type often produces visible blood or a mucus-like consistency and tends to come with cramping and urgency.
Common Triggers
Infections
Viral gastroenteritis (the “stomach flu”) is the most frequent cause of acute diarrhea worldwide. Norovirus and rotavirus irritate the intestinal lining and trigger that secretory flood of fluid. Bacterial infections from contaminated food, including salmonella and E. coli, work similarly but often produce more severe symptoms. Most infectious diarrhea resolves on its own within a few days as your immune system clears the pathogen.
Food Intolerances
Lactose intolerance is one of the clearest examples of how undigested food causes diarrhea. If you lack enough of the enzyme that breaks down lactose (the sugar in milk), it passes intact into your colon. There, gut bacteria ferment it into organic acids, including lactic acid. These fermentation byproducts build up in the colon, creating a high concentration of particles that draws water in through osmotic pressure. The result is loose, watery stool, often accompanied by gas and bloating. Research published in Frontiers in Physiology found that high concentrations of lactose, lactic acid, and galactose in the colon are the major drivers of this osmotic effect. The same basic process applies to fructose intolerance and sugar alcohols (like sorbitol and xylitol) found in sugar-free gum and candy.
Antibiotics
Up to 30% of people taking antibiotics develop diarrhea as a side effect. The reason is straightforward: antibiotics don’t just kill the bacteria making you sick. They also wipe out beneficial gut bacteria that normally keep everything in balance. This disruption, sometimes called dysbiosis, reduces the diversity of your microbiome and can open the door for harmful organisms to move in. One particularly dangerous example is C. difficile, a bacterium that thrives when antibiotics clear away its competition. On a chemical level, losing those beneficial bacteria disrupts carbohydrate and bile metabolism in the colon, creating the same kind of osmotic imbalance that drives other forms of diarrhea.
Stress and Anxiety
The “nervous stomach” before a big presentation isn’t imaginary. Your brain and your gastrointestinal system are wired together through a dense network of nerves, and psychological stress directly affects how your gut moves and contracts. When you’re anxious or under pressure, your nervous system can speed up intestinal contractions, pushing food through faster than your colon can absorb the water from it. This is why some people experience diarrhea before exams, flights, or job interviews. For people with irritable bowel syndrome (IBS), this brain-gut connection is especially sensitive, and stress is one of the most reliable triggers for flare-ups.
Other Dietary Triggers
Caffeine stimulates contractions in the colon, which is why a morning coffee sends some people straight to the bathroom. Spicy foods can irritate the lining of the digestive tract. Excessive alcohol draws water into the gut and speeds up motility. Artificial sweeteners, high-fat meals, and large doses of vitamin C or magnesium supplements can all have a laxative effect. In most of these cases, the diarrhea is temporary and stops once the trigger is out of your system.
Acute vs. Chronic Diarrhea
Most bouts of diarrhea are acute, meaning they last a few days and clear up without treatment. A bad meal, a viral infection, a round of antibiotics: these are temporary disruptions, and your gut recovers once the cause is gone.
Chronic diarrhea is a different situation. It’s defined as loose stools lasting more than four weeks. At that point, the list of possible causes shifts toward ongoing conditions: IBS, inflammatory bowel disease (Crohn’s or ulcerative colitis), celiac disease, chronic infections, thyroid disorders, or food intolerances you haven’t identified. Chronic diarrhea usually needs medical evaluation because it rarely resolves on its own and the underlying cause matters for treatment.
Why Dehydration Is the Real Danger
Diarrhea itself is usually more of a symptom than a threat. The danger comes from losing too much water and electrolytes too quickly, especially in young children and older adults. Your body can tolerate a day or two of loose stools, but sustained fluid loss leads to dehydration, which affects everything from your heart rate to your ability to think clearly.
Signs of dehydration in adults include extreme thirst, dark-colored urine, urinating much less than usual, dizziness, tiredness, and confusion. In young children, watch for a dry mouth, no tears when crying, no wet diapers for three or more hours, sunken eyes, and skin that doesn’t flatten back quickly after being gently pinched. Oral rehydration solutions (water with electrolytes and a small amount of sugar) are the most effective way to replace what you’re losing. Plain water helps, but it doesn’t replace the sodium and potassium your body is shedding.
Warning Signs That Need Attention
Most diarrhea doesn’t require medical care. But certain symptoms suggest something more serious is happening. In adults, seek medical attention if diarrhea lasts more than two days without any improvement, if you notice blood or black coloring in your stool, if you develop a fever above 102°F (39°C), or if you have severe abdominal or rectal pain. Signs of significant dehydration, like dizziness, confusion, or very dark urine, also warrant a call to your doctor.
For children, the timeline is shorter. Diarrhea that doesn’t improve within 24 hours, a fever above 102°F, bloody or black stools, or signs of dehydration like no wet diapers for three or more hours all call for prompt evaluation. Children dehydrate faster than adults because of their smaller body size, so the margin for waiting is narrower.
Severe diarrhea, defined as more than 10 bowel movements a day or fluid losses that clearly outpace what you can drink, is a medical situation regardless of the cause.

