Why Does Diarrhea Happen? Causes and Warning Signs

Diarrhea happens when your intestines move too fast, absorb too little water, or actively push extra fluid into the digestive tract. The result is loose, watery stool that comes out more frequently than normal. While it’s usually short-lived and harmless, diarrhea is far from trivial on a global scale: it kills roughly 444,000 children under age 5 every year, almost always from dehydration in places without clean water or medical care. Understanding the different ways it develops helps explain why some cases resolve on their own in a day while others persist for weeks.

Four Ways Your Gut Produces Diarrhea

Not all diarrhea works the same way. There are four distinct mechanisms, and they often overlap in real-world illness.

Osmotic diarrhea occurs when something in your gut pulls water in. When you eat or drink a substance your small intestine can’t fully absorb, it creates an osmotic force that draws water from your body into the intestinal space. This is the mechanism behind lactose intolerance: undigested lactose sits in the gut and pulls fluid in. Sugar alcohols like sorbitol, mannitol, and xylitol work the same way. Sorbitol shows up in sugar-free gum, diet candy, some liquid medications, and naturally in fruits like apples, pears, prunes, and peaches. It’s a frequently overlooked cause of unexplained loose stools.

Secretory diarrhea happens when cells lining your intestine are tricked into pumping salts and water outward. Cholera is the classic example. The cholera bacterium releases a toxin that hijacks a chloride channel in intestinal cells, forcing them to flood the gut with fluid. Other bacteria like certain strains of E. coli use similar toxins. Rotavirus produces a protein that mimics this effect in children. Some medications, including certain chemotherapy drugs and HIV treatments, can trigger the same chloride-pumping pathway.

Inflammatory (exudative) diarrhea results from damage to the intestinal lining itself. When the barrier breaks down, whether from an invasive infection like Salmonella or Shigella or from a chronic condition like ulcerative colitis, fluid, mucus, proteins, and even blood leak through. This type often produces visible blood or mucus in the stool.

Motility-related diarrhea happens when food moves through the intestines too quickly for water to be absorbed. An overactive thyroid, for example, speeds up gut contractions. Ironically, extremely slow motility can also cause diarrhea: when the small intestine moves too sluggishly, bacteria overgrow and produce irritating byproducts that trigger fluid secretion.

Infections: The Most Common Trigger

Most acute diarrhea, the kind that hits suddenly and resolves within a few days, comes from an infection. Viruses are the leading cause. Norovirus is the top culprit in adults, spreading rapidly through contaminated food, surfaces, and close contact. Rotavirus historically dominated childhood diarrhea worldwide, and a systematic review found that rotavirus, calicivirus, and toxin-producing strains of E. coli together account for more than half of all diarrhea deaths in children under 5.

Bacterial infections tend to cause more severe symptoms. Salmonella from contaminated eggs or poultry, Shigella from person-to-person spread, and Campylobacter from undercooked chicken all invade the intestinal lining and trigger inflammation alongside fluid secretion. Parasites like Giardia, often picked up from contaminated water while traveling or camping, cause a more prolonged, greasy diarrhea that can last weeks if untreated.

Food and Drink That Pull Water Into the Gut

Not every case of diarrhea involves an infection. Plenty of everyday dietary choices trigger osmotic diarrhea. Large doses of fructose (from fruit juice, honey, or high-fructose corn syrup) can overwhelm the small intestine’s absorption capacity. Dairy products cause it in people who don’t produce enough of the enzyme that breaks down lactose. Coffee stimulates gut motility and can loosen stools even without an underlying problem.

Sugar alcohols deserve special attention because they’re so commonly consumed without awareness. A few sticks of sugar-free gum or a handful of “keto-friendly” candy can deliver enough sorbitol or xylitol to cause significant diarrhea. These polyols are poorly absorbed by design, which is why they’re low-calorie, but that same property means they pull water into the intestine and speed up transit time. People who chew sugar-free gum throughout the day sometimes struggle with chronic loose stools without ever connecting the two.

Medications That Cause Diarrhea

Drug-induced diarrhea is extremely common and often overlooked. Antibiotics are the most familiar offenders. They disrupt the balance of gut bacteria, allowing harmful species to expand. In some cases, antibiotics clear the way for a bacterium called C. difficile, which can cause severe, watery, and sometimes bloody diarrhea that requires its own targeted treatment.

Magnesium-containing antacids draw water into the intestine through the same osmotic mechanism as sugar alcohols. Metformin, one of the most widely prescribed diabetes medications, causes diarrhea in a significant percentage of users, particularly when first starting. Proton pump inhibitors used for heartburn, NSAIDs like ibuprofen and naproxen, chemotherapy drugs, and immune-suppressing medications all list diarrhea as a common side effect. Even herbal teas containing senna, a natural laxative, can trigger it.

Chronic Conditions Behind Persistent Diarrhea

When diarrhea lasts longer than four weeks, it typically points to an underlying condition rather than a simple infection.

Celiac disease causes the immune system to attack the lining of the small intestine whenever gluten is present. This destroys the finger-like projections (villi) that absorb nutrients, leading to both malabsorption and inflammatory fluid loss. The damage also impairs absorption of iron, B12, folic acid, and fat-soluble vitamins, which is why people with undiagnosed celiac disease often present with nutritional deficiencies alongside chronic diarrhea.

Inflammatory bowel diseases, including Crohn’s disease and ulcerative colitis, involve ongoing immune-driven damage to the intestinal wall. The diarrhea in these conditions is primarily exudative, with fluid and blood leaking through a compromised barrier. It tends to come in flares, with periods of relative calm in between.

Irritable bowel syndrome (IBS) works differently. There’s no visible damage to the intestinal lining. Instead, the gut’s motility and sensitivity are altered, often in response to stress, certain foods, or changes in the gut microbiome. The diarrhea-predominant form of IBS produces urgent, frequent loose stools, often after meals, without the bleeding or weight loss seen in inflammatory conditions.

How Dehydration Becomes Dangerous

The real danger of diarrhea isn’t the diarrhea itself. It’s the water and electrolyte loss that comes with it. Your intestines normally process about 9 liters of fluid per day, absorbing the vast majority back into the body. When that absorption fails or secretion ramps up, you can lose large volumes of fluid quickly.

Signs that dehydration is becoming serious include noticeably decreased urination, dry mouth, sunken-looking eyes, reduced tears, dizziness when standing, and in children, unusual irritability or lethargy. Young children and older adults are most vulnerable because they have less physiological reserve and may not communicate thirst effectively. For most episodes in otherwise healthy adults, drinking water and electrolyte-containing fluids is sufficient. Oral rehydration solutions, which contain a precise balance of salt, sugar, and water, are the single most effective intervention for diarrheal dehydration worldwide.

Warning Signs That Need Medical Attention

Most diarrhea resolves on its own within two to three days. Certain features, however, signal something more serious. Bloody or black stools suggest intestinal damage or infection with invasive bacteria. A fever above 102°F (39°C) alongside diarrhea points toward a bacterial cause that may need treatment. Persistent vomiting that prevents you from keeping fluids down creates a fast track to dehydration. In infants under three months, any fever with diarrhea warrants prompt evaluation.

Anti-diarrheal medications that slow gut motility should be avoided when there’s blood in the stool or high fever, because slowing the intestine during a serious bacterial infection can actually worsen the illness by keeping the pathogen in contact with the gut wall longer.