What Makes You Have Diarrhea and When to Worry

Diarrhea happens when your intestines push food through too quickly, secrete too much fluid, or can’t absorb water properly. The triggers range from something you ate last night to an infection, a medication side effect, or a chronic digestive condition. Most episodes resolve on their own within a day or two, but understanding what’s behind them helps you figure out whether to wait it out or take action.

How Your Gut Produces Diarrhea

Your intestines normally absorb most of the water from digested food before it reaches your colon. Diarrhea happens when that process breaks down, and it can break down in a few distinct ways.

The most common in everyday life is osmotic diarrhea. When you eat or drink something your gut can’t fully absorb, like sugar alcohols in sugar-free candy or lactose if you’re lactose intolerant, those molecules pull water into your intestines by osmotic force. The result is loose, watery stool that typically stops once you stop eating the trigger.

Secretory diarrhea works differently. Here, something stimulates the lining of your intestines to actively pump fluid outward. Cholera is the extreme example, where toxins from the bacteria can drive more than a liter of fluid loss per hour. But milder versions happen with certain infections and hormonal conditions. A hallmark of secretory diarrhea is that it continues even when you stop eating.

A third mechanism involves direct damage to the intestinal lining. When the barrier is compromised, as in ulcerative colitis or certain bacterial infections, fluid, mucus, and even blood leak into the gut. This is why inflammatory bowel conditions often produce bloody or mucus-streaked stool. Finally, anything that speeds up gut motility (the muscular contractions that move food along) can cause diarrhea simply because food passes through too fast for water to be absorbed. An overactive thyroid, stress, and certain medications all do this.

Infections: The Most Common Acute Cause

Viruses are the leading cause of sudden-onset diarrhea worldwide. Rotavirus and norovirus account for the largest share of cases, particularly in children and in outbreaks linked to contaminated food or close quarters like cruise ships and daycare centers. These infections typically cause watery diarrhea, nausea, and sometimes vomiting, and they usually run their course in one to three days.

Bacterial infections tend to be more severe. Salmonella, Campylobacter, Shigella, and various strains of E. coli are the usual culprits, often picked up from undercooked poultry, contaminated produce, or unsafe water. Bacterial diarrhea is more likely to come with fever, cramping, and sometimes blood in the stool. Traveler’s diarrhea, the kind you get from food or water in a new country, is most often caused by toxin-producing E. coli strains.

Parasites like Giardia and Cryptosporidium cause diarrhea that can drag on for weeks if untreated. These are typically waterborne, picked up from lakes, streams, or contaminated municipal water. If diarrhea persists beyond a week and you’ve had exposure to untreated water, a parasitic cause is worth investigating.

Foods and Drinks That Trigger Loose Stool

Several common foods and beverages directly affect how your gut moves and absorbs water. Caffeine stimulates contractions in the colon, which is why a morning coffee sends many people to the bathroom. In larger amounts, or for people with sensitive guts, it can speed things up enough to cause loose stool.

Spicy foods containing capsaicin, the compound that gives chili peppers their heat, activate receptors throughout your digestive tract. Capsaicin triggers the release of signaling molecules that can cause both contractions and changes in how fast your stomach empties. For some people this means mild discomfort; for others, it means a trip to the bathroom within hours of eating.

Alcohol irritates the gut lining and increases the speed of intestinal contractions, especially in larger quantities. It also impairs water absorption in the colon. Beer and wine, which contain fermentable sugars on top of alcohol, can be particularly problematic.

Artificial sweeteners like sorbitol, mannitol, and xylitol are poorly absorbed by design. They draw water into the intestines osmotically, and even moderate amounts (a few pieces of sugar-free gum or candy) can cause bloating and diarrhea in sensitive individuals. Fructose, found naturally in fruit and added to many processed foods as high-fructose corn syrup, works the same way when consumed in quantities your gut can’t keep up with.

Lactose Intolerance and Food Sensitivities

About two-thirds of the global population loses some ability to digest lactose after childhood. When undigested lactose reaches the colon, gut bacteria ferment it, producing gas, bloating, and osmotic diarrhea. The severity depends on how much lactase enzyme you still produce and how much dairy you consumed. A splash of milk in coffee might be fine; a large milkshake might not be.

Gluten sensitivity and celiac disease can also cause chronic diarrhea. In celiac disease, gluten triggers an immune response that damages the intestinal lining, reducing its ability to absorb nutrients and water. FODMAPs, a group of fermentable carbohydrates found in foods like onions, garlic, wheat, and certain fruits, are another common trigger for people with irritable bowel syndrome.

Medications That Cause Diarrhea

Antibiotics are one of the most frequent medication-related causes. Your intestines house a diverse community of bacteria that help with digestion and crowd out harmful organisms. Antibiotics kill off many of these helpful bacteria along with the ones causing your infection. The resulting imbalance often leads to loose stool during or shortly after a course of treatment.

In some cases, this disruption opens the door for a bacterium called C. difficile to multiply unchecked. C. diff infections cause severe, watery diarrhea that can become dangerous. The risk is highest with certain antibiotic classes, in people over 65, in hospital or nursing home settings, and in those with weakened immune systems or inflammatory bowel disease. Proton pump inhibitors, the acid-reducing medications used for heartburn and reflux, also appear to raise the risk of C. diff.

Beyond antibiotics, many other medications list diarrhea as a common side effect. Magnesium-containing antacids draw water into the gut osmotically. Metformin, widely prescribed for type 2 diabetes, causes diarrhea in up to 25% of people who take it, especially early on. Some blood pressure medications, antidepressants, and nonsteroidal anti-inflammatory drugs can also be responsible. If diarrhea starts shortly after beginning a new medication, that’s a strong clue.

Stress and the Gut-Brain Connection

Your gut and brain communicate constantly through a network of nerves, hormones, and immune signals. Stress and anxiety directly increase gut motility, speeding up the movement of food through your intestines. This is why some people experience diarrhea before a big presentation, during exams, or in periods of ongoing stress. It’s also a core feature of irritable bowel syndrome with diarrhea (IBS-D), where the gut becomes hypersensitive to normal signals and overreacts with cramping and urgency.

Chronic Conditions Behind Ongoing Diarrhea

When diarrhea persists for weeks or keeps coming back, something more than a passing infection or dietary trigger is usually involved. IBS is one of the most common causes of chronic diarrhea in otherwise healthy adults. It doesn’t damage the intestines, but it changes how they function, often in response to certain foods, hormones, and stress.

Inflammatory bowel diseases like Crohn’s disease and ulcerative colitis cause ongoing inflammation that damages the intestinal lining. Diarrhea from these conditions often contains blood or mucus and comes with abdominal pain, fatigue, and weight loss. An overactive thyroid gland speeds up metabolism throughout the body, including gut motility, leading to frequent loose stools. Conditions that impair fat absorption, like chronic pancreatitis or bile acid malabsorption, produce greasy, foul-smelling diarrhea that floats.

How to Tell If It’s Serious

On the Bristol Stool Scale, a standard reference used by clinicians, types 5 through 7 qualify as diarrhea, ranging from soft blobs to entirely liquid stool. An occasional loose bowel movement is normal. The concern starts when it persists or comes with warning signs.

For adults, diarrhea lasting more than two days without improvement, signs of dehydration (excessive thirst, dark urine, dizziness, very little urination), severe abdominal or rectal pain, bloody or black stools, or a fever above 102°F all warrant medical attention. Children need faster evaluation: if a child’s diarrhea doesn’t improve within 24 hours, or if they show signs of dehydration like a dry mouth, no tears when crying, or no wet diaper for three or more hours, they should be seen promptly.

Dehydration is the most immediate risk of any diarrheal episode. Replacing fluids and electrolytes, not just plain water, is the single most important thing you can do while your body resolves the underlying cause. Oral rehydration solutions or even a mix of water, salt, and a small amount of sugar work well for mild cases.