Sudden diarrhea is almost always triggered by something your body is trying to flush out or react to, whether that’s a virus, a food that didn’t agree with you, a new medication, or something you ate or drank while traveling. Most cases resolve on their own within a day or two, but understanding the likely cause helps you respond appropriately and know when something more serious might be going on.
Infections Are the Most Common Cause
The majority of sudden-onset diarrhea is caused by an infection, usually viral. Norovirus is the leading culprit in adults. It spreads person-to-person or through contaminated food and water, and symptoms typically hit 12 to 48 hours after exposure. You might hear people call it “stomach flu,” though it has nothing to do with influenza. The hallmark is explosive, watery diarrhea alongside nausea or vomiting that lasts one to three days.
Bacterial infections from Salmonella, Campylobacter, Shigella, and certain strains of E. coli can also strike suddenly. These tend to come from undercooked meat, contaminated produce, or improperly stored food. Salmonella, for instance, typically causes symptoms within 6 to 48 hours of eating the contaminated food. Parasites like Giardia and Cryptosporidium are less common but worth considering if you’ve been drinking untreated water from streams, wells, or while camping.
Food Poisoning vs. Stomach Bug
People often use “food poisoning” and “stomach bug” interchangeably, but the timing of your symptoms can help distinguish them. Staphylococcus aureus toxins, the classic culprit behind food left out too long at a picnic or buffet, cause symptoms remarkably fast: usually within 2 to 4 hours. The toxin is pre-formed in the food itself, so your body reacts almost immediately. Norovirus, by comparison, takes closer to 24 to 33 hours to show up.
If your diarrhea started within a few hours of a meal you suspected was off, a bacterial toxin is the likely explanation. If it started a day or two later, a virus or bacterial infection is more probable. Either way, the diarrhea itself is your gut’s defense mechanism: your intestines flood with fluid to push the pathogen or toxin out as quickly as possible.
Something You Ate or Drank
Not all sudden diarrhea involves an infection. Your gut can rebel against specific foods, especially ones that pull water into the intestines. Sugar alcohols, the sweeteners found in sugar-free gum, protein bars, and diet candies, are a frequent offender. Your small intestine can’t fully absorb them, so they draw water into the gut and cause loose, urgent stools. Sorbitol tends to cause problems at relatively low doses: roughly 0.17 to 0.24 grams per kilogram of body weight, which for a 150-pound person works out to about 12 to 16 grams. That’s easily reached by chewing through a pack of sugar-free gum or eating a few servings of “no sugar added” ice cream.
Lactose intolerance works similarly. If your body doesn’t produce enough of the enzyme that breaks down milk sugar, the undigested lactose sits in your intestine, pulls in water, and gets fermented by bacteria, producing gas, bloating, and diarrhea. This can seem sudden if you consumed more dairy than usual or tried a new product. Large doses of caffeine, alcohol (especially on an empty stomach), and high-fat meals can also speed up gut motility enough to cause watery stools.
Medications That Trigger Diarrhea
If your diarrhea started shortly after beginning a new medication or changing a dose, the drug itself may be responsible. Antibiotics are the most well-known offenders. They kill not just the bacteria causing your infection but also the beneficial bacteria that keep your gut ecosystem balanced. This disruption can range from mild looseness to severe, watery diarrhea. In some cases, antibiotics allow a harmful bacterium called C. difficile to overgrow, causing intense diarrhea that may contain blood.
Other common medications that cause diarrhea include:
- Metformin, widely used for type 2 diabetes
- Magnesium-containing antacids, which draw water into the intestine
- NSAIDs like ibuprofen and naproxen
- Proton pump inhibitors used for heartburn and acid reflux
Drug-induced diarrhea often improves once the medication is stopped or the dose is adjusted, but don’t stop a prescribed medication without talking to whoever prescribed it first.
Travel-Related Diarrhea
If your sudden diarrhea coincides with international travel, you’re likely dealing with traveler’s diarrhea. Bacteria cause 75% to 90% of cases, with toxin-producing E. coli strains being the most common pathogen worldwide. Campylobacter is particularly prevalent in South and Southeast Asia, while the parasite Cyclospora poses a well-known risk in Guatemala, Haiti, Nepal, and Peru.
Risk tends to be highest in regions with limited water sanitation infrastructure, and in South Asia specifically, attack rates spike during the hot months before monsoon season. Contaminated tap water, ice, raw vegetables washed in local water, and street food are the usual routes of exposure. Most cases resolve within three to five days without specific treatment.
Stress and Anxiety
Your gut and brain communicate constantly through a dense network of nerves, and emotional stress can directly alter how fast your intestines contract. A job interview, a confrontation, or a sudden shock can trigger an urgent need to go. This is real physiology, not “all in your head.” Stress hormones speed up the movement of contents through your colon, reducing the time available to absorb water. The result is loose or watery stools that may come on with little warning. If this happens repeatedly, it may point toward irritable bowel syndrome, which is often worsened by psychological stress.
When Sudden Diarrhea Needs Attention
Most sudden diarrhea clears up within a couple of days. But certain signs suggest something more serious is happening. Contact a doctor promptly if you notice any of the following:
- Blood, pus, or black tarry stools
- High fever
- Severe abdominal or rectal pain
- Six or more loose stools per day
- Diarrhea lasting more than two days
- Signs of dehydration: extreme thirst, dark urine, dizziness, urinating much less than normal
For infants and young children, the timeline is shorter. Diarrhea lasting more than a day, any fever in babies, or refusal to eat or drink warrants prompt medical evaluation. Watch for no wet diapers for three hours or more, no tears when crying, or unusual drowsiness.
Managing It at Home
Staying hydrated is the single most important thing you can do. Diarrhea pulls water and electrolytes out of your body rapidly, and dehydration is the main risk, not the diarrhea itself. Sip water, broth, or an oral rehydration solution steadily throughout the day. Sports drinks are fine for mild cases in adults, though they contain more sugar and less sodium than ideal.
Over-the-counter anti-diarrheal medications containing loperamide can slow things down and provide relief, but they aren’t always appropriate. Avoid them if you have a high fever, blood in your stools, or suspect a bacterial infection, since slowing gut motility can trap the pathogen inside you longer. If your symptoms haven’t improved within 48 hours of using loperamide, it’s time to get evaluated.
Eat bland, easy-to-digest foods as your appetite returns. Rice, bananas, toast, and plain crackers are gentle on an irritated gut. Avoid dairy, fatty foods, caffeine, and alcohol until things have fully settled, as these can re-trigger loose stools in a recovering intestine.

