Diarrhea happens when your intestines can’t absorb water properly, or when they actively push extra water into the digestive tract. Your gut processes roughly nine liters of fluid every day, absorbing most of it back into the body. When even a small part of that system breaks down, the result is loose, watery stool. The causes range from a simple stomach bug to medication side effects to chronic digestive conditions, but they all come back to a handful of core mechanisms.
How Your Gut Normally Handles Water
To understand diarrhea, it helps to know how much liquid your digestive system deals with on a normal day. Between the fluids you drink, saliva, stomach acid, bile, and other digestive juices, about nine liters of fluid flow into your small intestine daily. The small intestine absorbs roughly seven of those liters, passing just 1.5 to 2 liters along to the large intestine. The large intestine then reclaims most of what’s left, so by the time stool reaches the end of the line, very little water remains.
Diarrhea occurs when something disrupts this finely tuned system. That disruption falls into four basic categories, and most cases of diarrhea involve at least one of them.
The Four Ways Diarrhea Happens
Too Many Unabsorbed Particles Pull Water In
Water follows solutes. If your small intestine can’t absorb certain sugars, salts, or other particles, those particles hold water in the intestinal space by osmosis. This is called osmotic diarrhea, and it’s the mechanism behind lactose intolerance. If you lack the enzyme to break down lactose, the undigested sugar sits in your gut, draws water toward it, and produces loose stool. Sugar-free candies sweetened with sugar alcohols like sorbitol cause diarrhea the same way. Osmotic diarrhea typically stops when you stop eating the offending substance.
The Gut Actively Pumps Out Fluid
Sometimes the intestinal lining itself starts secreting water faster than it can reabsorb it. This secretory diarrhea is the hallmark of cholera, where a bacterial toxin hijacks cells lining the intestine and forces chloride channels to stay open. Water follows the chloride out into the gut, producing the severe, watery diarrhea that makes cholera so dangerous. Other bacterial toxins and certain hormonal conditions trigger the same type of fluid dumping, though usually less dramatically.
Inflammation Damages the Intestinal Lining
When the gut wall is inflamed or ulcerated, it leaks. Blood, mucus, and serum seep into the intestinal space, and the damaged lining loses its ability to absorb water efficiently. This is what happens in conditions like Crohn’s disease, ulcerative colitis, and certain bacterial infections that invade and destroy the intestinal lining. The stool often contains visible blood or mucus.
Food Moves Through Too Fast
Even if the absorptive machinery is working fine, your intestines need time to do their job. When gut contractions speed up and push contents through before water can be absorbed, diarrhea results. This motility-driven diarrhea plays a role in irritable bowel syndrome and hyperthyroidism, among other conditions. Stress and anxiety can also accelerate gut contractions through the nervous system’s direct connection to the digestive tract.
Infections Are the Most Common Trigger
The single most frequent cause of acute diarrhea is infection. Viruses, bacteria, and parasites can all trigger it, often through different mechanisms working simultaneously.
Norovirus is the leading cause of foodborne diarrhea outbreaks in adults. It damages the intestinal lining and disrupts absorption. Rotavirus was historically the top cause in young children before widespread vaccination. Both tend to cause intense but short-lived illness, typically resolving within a few days.
Bacterial infections from Salmonella, Campylobacter, and E. coli can invade the gut wall or produce toxins that trigger secretory or inflammatory diarrhea. These infections usually come from contaminated food or water and can produce bloodier, more severe symptoms than viral infections.
Parasites like Giardia take a slower approach. Giardia is the most common gut parasite in the United States, sickening more than one million people per year. It spreads easily through contaminated water, food, or surfaces, and swallowing just a few organisms is enough to cause infection. Giardia tends to produce persistent, greasy diarrhea that can last weeks if untreated.
Medications That Disrupt Your Gut
Antibiotics are one of the most common medication-related causes of diarrhea. Your intestines normally host a diverse community of bacteria that keep each other in check. Antibiotics kill off some of those bacteria, allowing others to overgrow. In some cases, this imbalance lets a particularly harmful species called Clostridioides difficile take hold, which can cause severe, watery, and sometimes bloody diarrhea.
Heartburn and ulcer medications, including proton pump inhibitors and other acid-reducing drugs, also frequently cause diarrhea as a side effect. Metformin, one of the most widely prescribed diabetes medications, is another well-known offender. If you notice diarrhea starting shortly after beginning a new medication, the timing is probably not a coincidence.
Your Gut Bacteria Play a Bigger Role Than You Think
The trillions of bacteria in your colon do more than just coexist with you. They ferment dietary fiber into short-chain fatty acids, which your colon lining absorbs and uses as fuel. These fatty acids also help regulate how fast food moves through your gut. One of them, butyrate, is a primary energy source for the cells lining your colon. Another triggers the release of a hormone that normalizes gut motility, keeping transit time in a healthy range.
When the balance of gut bacteria is disrupted, whether by antibiotics, illness, or diet, this fatty acid production drops. Without enough of these compounds, the colon’s barrier function weakens, motility becomes erratic, and fluid regulation suffers. This is one reason diarrhea from antibiotics can persist even after the antibiotic course is finished: the microbial community needs time to recover.
Acute, Persistent, and Chronic Diarrhea
Not all diarrhea follows the same timeline. Acute diarrhea lasts less than a week and is usually caused by an infection. It’s the most common type and typically resolves on its own. Persistent diarrhea lasts between two and four weeks and may signal a lingering infection, especially from parasites, or an ongoing trigger like a new medication. Chronic diarrhea lasts four weeks or more and points toward conditions like irritable bowel syndrome, inflammatory bowel disease, celiac disease, or food intolerances.
One pattern worth knowing about: roughly 10% of people who recover from an acute gut infection go on to develop irritable bowel syndrome within the following year. The risk is even higher after parasitic infections, where the rate climbs to around 40%. This post-infectious irritable bowel syndrome can produce recurring diarrhea, cramping, and bloating long after the original infection has cleared.
Warning Signs That Need Attention
Most diarrhea is unpleasant but harmless. The main risk is dehydration, especially in young children and older adults. In children, warning signs include no wet diaper for three or more hours, crying without tears, a sunken appearance around the eyes or cheeks, and skin that stays pinched when you press it instead of springing back. In adults, watch for excessive thirst, dark urine, dizziness, and very little urination.
For adults, diarrhea that doesn’t improve after two days, a fever above 102°F, blood or black color in the stool, or severe abdominal pain all warrant prompt medical evaluation. For children, the threshold is lower: diarrhea that doesn’t improve within 24 hours, a fever above 102°F, or any of the dehydration signs listed above.

