Most sudden bouts of diarrhea are caused by a viral infection, a food that didn’t agree with you, or stress. Viruses account for about 60% of all gastroenteritis cases, and the most common types clear up within two to three days. If yours has lasted longer than that, or if something in your daily diet is the culprit, the cause and the fix look different.
The Most Likely Cause: A Stomach Bug
Norovirus alone is responsible for half of all viral gastroenteritis, and it spreads fast through contaminated food, surfaces, or close contact with someone who’s sick. Rotavirus, adenovirus, and a handful of other viruses make up the rest. The hallmark of a viral gut infection is that it hits suddenly, often with nausea, cramping, and watery stool, and typically resolves on its own in one to two days. Bacterial infections from Salmonella, E. coli, Campylobacter, or Shigella can cause similar symptoms but sometimes take longer to clear and are more likely to produce bloody stool or a high fever.
Parasites like Giardia or Cryptosporidium are less common but worth considering if you’ve recently traveled, been camping, or swallowed untreated water. These infections tend to linger for weeks rather than days.
Food and Drink That Trigger It
Sometimes the problem isn’t an infection at all. Several everyday foods and ingredients pull extra water into your intestines or speed up how fast things move through your gut, and the result is loose, urgent stool.
- Fructose. Found naturally in fruits like peaches, pears, cherries, and apples, and added to sodas and juice drinks. A single 16-ounce regular cola contains close to 30 grams. Many people who consume more than 40 to 80 grams of fructose per day will develop diarrhea.
- Sugar alcohols. Sorbitol, mannitol, and xylitol are common in sugar-free gum, candy, and some medications. Your gut can’t absorb them well, so they ferment and draw water into the colon.
- Lactose. If you’re lactose intolerant, milk, soft cheese, and ice cream can cause bloating, gas, and diarrhea within hours of eating them.
- Caffeine. Coffee, tea, chocolate, and many sodas speed up your digestive system. If you’ve had more caffeine than usual, that alone can explain a sudden loose stool.
These triggers all belong to a broader group called FODMAPs: poorly absorbed sugars that ferment in the large intestine. When gut bacteria break them down, they release gas and draw water into the colon, causing bloating, cramping, and diarrhea. If you notice a pattern after specific meals, a food diary can help you narrow it down.
Stress and Anxiety
Your brain and your gut are in constant two-way communication through a dense network of nerves lining your digestive tract. This system is sometimes called the “second brain,” and it’s why a stressful morning, a job interview, or a fight with someone can send you straight to the bathroom. Stress hormones speed up contractions in your intestines, pushing contents through before enough water has been absorbed. The result is loose or watery stool, sometimes with cramping and urgency. People with IBS are especially sensitive to this effect, but it can happen to anyone during periods of high stress.
When It Keeps Coming Back
Diarrhea that lasts more than four weeks, or that keeps returning in cycles, points toward a chronic condition rather than a one-off bug or bad meal. The most common culprits are irritable bowel syndrome (IBS), inflammatory bowel disease (IBD), and celiac disease.
IBS affects roughly 10 to 20% of the global population. It’s a functional disorder, meaning the gut looks structurally normal but doesn’t work the way it should. Symptoms include diarrhea, constipation (or both), bloating, gas, and abdominal pain. There’s no single test for it. It’s usually diagnosed after other conditions have been ruled out.
IBD, which includes Crohn’s disease and ulcerative colitis, involves actual inflammation and damage to the lining of the digestive tract. Blood or mucus in your stool, unexplained weight loss, and persistent cramping are signals that something beyond IBS may be going on. Celiac disease, an autoimmune reaction to gluten, can also cause chronic diarrhea along with fatigue and nutrient deficiencies. People with celiac disease sometimes carry a dual diagnosis of IBS as well, which complicates the picture.
What’s Actually Happening in Your Gut
Not all diarrhea works the same way. The two main types feel similar but have different mechanics. Osmotic diarrhea happens when something you ate or drank isn’t absorbed properly, so it sits in the intestine and pulls water in. Lactose intolerance, fructose overload, and sugar alcohols all work this way. This type tends to stop when you stop eating the trigger.
Secretory diarrhea is different. Your intestinal lining actively pumps extra fluid into the gut, often due to bacterial toxins, certain medications, bile acid problems, or an overactive thyroid. It produces higher volumes of watery stool, often more than a liter per day, and it continues even if you stop eating entirely. If fasting doesn’t slow things down, or if you’re waking up at night with urgent diarrhea, that pattern suggests a secretory cause worth investigating.
A third type, inflammatory diarrhea, shows up with blood, mucus, or pus in the stool. It’s associated with IBD, certain invasive infections, and other conditions that damage the intestinal lining directly.
How to Manage It at Home
The biggest immediate risk from diarrhea isn’t the diarrhea itself. It’s dehydration. Your colon normally absorbs water from digested food before it exits, but when things move too fast, that water leaves with the stool. If you’re going frequently, you need to actively replace both water and electrolytes.
A simple oral rehydration solution you can make at home: combine 4 cups of water, half a teaspoon of table salt, and 2 tablespoons of sugar. The sugar helps your intestines absorb the salt and water more efficiently. Sip it steadily rather than gulping it down. Avoid caffeinated drinks, alcohol, and high-fructose beverages while you’re recovering, since all three can make things worse.
Eat small, bland meals when you’re ready. Rice, bananas, toast, and broth are easy to digest. Dairy and high-fiber foods can wait until your stool returns to normal.
Signs That Need Medical Attention
Most episodes resolve within two to three days. But certain symptoms signal that something more serious is happening. For adults, the red flags are: diarrhea lasting more than two days without any improvement, signs of dehydration (excessive thirst, dry mouth, dark urine, dizziness, or little to no urination), severe abdominal or rectal pain, bloody or black stools, and a fever above 102°F. For children, the timeline is tighter: if diarrhea doesn’t improve within 24 hours, if there’s no wet diaper in three or more hours, or if a fever goes above 102°F, that warrants a call to a doctor. More than 10 bowel movements a day, or fluid losses clearly outpacing what you can drink, counts as severe diarrhea regardless of the cause.

