Sudden diarrhea is most often triggered by a viral infection, contaminated food, or something you ate or drank that your gut couldn’t handle. In most cases it resolves on its own within a few days, but the specific cause determines how long it lasts, how severe it gets, and whether you need to do anything beyond staying hydrated.
Viral Infections
Viruses are the single most common cause of sudden diarrhea. Norovirus and rotavirus top the list. These viruses attack the cells lining your small intestine, destroying the cells responsible for absorbing water and nutrients. At the same time, the virus triggers your intestine to actively secrete fluid and activates nerve signals that speed everything through your gut. The result is watery diarrhea that comes on fast, often with nausea and vomiting.
Norovirus is notorious for sweeping through households, cruise ships, and schools. Symptoms typically start 12 to 48 hours after exposure and last one to three days. Rotavirus follows a similar pattern but tends to hit young children hardest, with symptoms lasting three to eight days. You catch these viruses through contaminated surfaces, food, or close contact with someone who’s sick. There’s no specific treatment for either. The illness runs its course while you focus on replacing lost fluids.
Bacterial Food Poisoning
Bacteria from contaminated food can cause diarrhea that hits anywhere from 30 minutes to several days after eating, depending on the organism. Staphylococcus aureus produces a toxin in food that acts fast, with symptoms appearing in as little as two to four hours. Bacillus cereus has two forms: a vomiting type that strikes within one to six hours, and a diarrheal type that takes six to 24 hours. Salmonella typically shows up six to 48 hours after eating contaminated poultry, eggs, or produce, though it can take up to 10 days in some cases.
The speed of onset is actually a useful clue. If diarrhea and vomiting hit within a few hours of a meal, you’re likely dealing with a preformed toxin already present in the food. If symptoms take a day or two to develop, a bacterial infection is probably growing in your gut. Most cases of bacterial food poisoning resolve within a few days without antibiotics, though Salmonella and Campylobacter infections can sometimes drag on longer or cause more serious illness.
Stress and Anxiety
That urgent need to find a bathroom before a big presentation isn’t in your head. Stress directly changes how your gut moves. When your brain detects a threat, it releases a signaling molecule that simultaneously slows your stomach and speeds up your colon. This is why stress can make you feel nauseated and give you diarrhea at the same time.
The mechanism works through your nervous system, increasing nerve signals to the colon via the vagus nerve and sacral nerves at the base of your spine. These signals activate the muscle contractions that push stool through faster than normal, leaving less time for water to be absorbed. Serotonin receptors in the gut play a role too, which is part of the reason people with irritable bowel syndrome (IBS) are especially sensitive to stress-related flare-ups. A single episode of acute stress, like a job interview or a near-miss in traffic, can be enough to trigger a sudden bout.
Lactose and Other Food Intolerances
If your body can’t break down a particular sugar, that sugar passes intact into your large intestine, where it pulls water in by osmosis. Undigested lactose, for example, along with the byproducts of bacteria fermenting it (galactose and lactic acid), raises the concentration of dissolved particles in the colon dramatically. Water floods in to balance things out, and the result is watery diarrhea that can come on within 30 minutes to two hours of eating dairy.
Lactose intolerance is the most common version of this, affecting a large portion of the world’s adult population. But fructose (found in honey, fruit juices, and high-fructose corn syrup) causes the same osmotic effect in people who absorb it poorly. Sugar alcohols like sorbitol and mannitol, commonly used in sugar-free gum, candy, and protein bars, are particularly potent triggers. Doses above 50 grams of mannitol reliably cause osmotic diarrhea, but many people react to much smaller amounts. If you’ve recently started eating sugar-free products and are having sudden loose stools, this is a likely culprit.
Medications
Antibiotics are one of the most common medication-related causes of sudden diarrhea. They work by killing bacteria, but they don’t discriminate between harmful bacteria and the beneficial ones in your gut. This disruption allows opportunistic organisms to take over. The most concerning is C. difficile, a bacterium found in the stool of only about 1% to 3% of healthy adults but colonizing roughly 21% of hospitalized patients on antibiotics. About one-third of those colonized go on to develop symptoms, which range from mild diarrhea to severe, life-threatening inflammation of the colon.
The antibiotics most strongly linked to this problem include clindamycin, ampicillin, amoxicillin, and cephalosporins, though any antibiotic can do it. Diarrhea can start during the course of antibiotics or up to several weeks after finishing them. Beyond antibiotics, magnesium supplements are a frequently overlooked cause. Magnesium citrate and magnesium oxide both draw water into the intestine at higher doses. In clinical studies, daily doses of 450 mg of elemental magnesium caused diarrhea, stomach pain, or gas in a significant number of participants. The European Food Safety Authority sets the upper limit for supplemental magnesium at 350 mg per day for this reason. If you’ve recently started or increased a magnesium supplement, try lowering the dose.
Parasites From Water
Parasitic infections tend to have a slower onset than viral or bacterial causes but can still feel sudden when symptoms finally appear. Giardia, the most common waterborne parasite, has an incubation period of one to three weeks. So you may have swallowed contaminated water on a camping trip weeks ago and only now be dealing with the consequences.
Giardia lives in lakes, streams, public pools, and even some municipal water supplies, particularly in areas with poor sanitation. Symptoms typically last two to six weeks and include greasy, foul-smelling diarrhea, bloating, and gas. Cryptosporidium is another waterborne parasite with a similar profile. Unlike most viral and bacterial causes of diarrhea, parasitic infections often don’t clear up on their own and may need specific treatment. If diarrhea persists for more than a week or two, especially after potential water exposure, testing for parasites is worth pursuing.
Staying Hydrated During a Bout
Whatever the cause, the immediate risk from sudden diarrhea is dehydration. Your colon normally absorbs a significant amount of water from stool. When that process is disrupted, you lose fluid fast, along with sodium and potassium. Plain water alone doesn’t replace those electrolytes efficiently. The most effective oral rehydration approach uses a balanced ratio of sodium to glucose, roughly 1:1, because the two are absorbed together through a specific transport system in the gut lining. Premixed rehydration solutions available at pharmacies use a ratio closer to 1:3 sodium to glucose, which still works well in practice.
For adults with mild diarrhea, sipping a commercial electrolyte drink, broth, or diluted juice throughout the day is usually sufficient. For young children, dehydration happens faster and can become dangerous. Signs to watch for include no wet diaper for three or more hours, a dry mouth and tongue, crying without tears, and unusual drowsiness or irritability.
Signs That Need Attention
Most sudden diarrhea clears up within a day or two. For adults, diarrhea lasting more than two days, a fever above 101°F (38.3°C), severe abdominal or rectal pain, or bloody or black stools all warrant a call to your doctor. For children, the threshold is tighter: diarrhea that doesn’t improve within 24 hours, any fever above 101°F, or signs of dehydration. In infants, a fever above 102°F (39°C) along with a sunken soft spot, eyes, or cheeks signals serious dehydration that needs prompt care.

