What Gave Me Diarrhea? Causes and When to Worry

Figuring out what gave you diarrhea comes down to timing. The gap between when you ate, drank, or did something and when symptoms started is the single best clue to identifying the cause. Most cases of acute diarrhea resolve on their own within a few days, but knowing the trigger helps you avoid it next time and tells you whether you need to worry.

Use the Timeline to Narrow It Down

Different causes have different onset windows, so when your symptoms started relative to a meal or event is your most useful detective tool. Here’s a rough guide:

  • Within 1 to 6 hours: A toxin already present in food, like the kind produced by staph bacteria in improperly stored dairy, meat, or salads. This hits fast because your body is reacting to the toxin itself, not waiting for bacteria to multiply.
  • 6 to 48 hours: Salmonella (commonly from undercooked poultry, eggs, or raw produce) or norovirus, the most common cause of food-related stomach illness. Norovirus has a median onset of about 33 hours.
  • 2 to 5 days: Campylobacter, often from undercooked chicken or unpasteurized milk, typically takes 2 to 5 days to cause symptoms. Certain strains of E. coli, including the dangerous O157:H7 type, usually take 3 to 4 days.
  • Within 30 minutes to 2 hours: A food intolerance (like lactose) or a dietary trigger rather than an infection.

People often blame the last thing they ate, but that’s frequently wrong. If you woke up with diarrhea on Wednesday morning, the culprit is more likely Monday night’s dinner than Tuesday’s lunch.

Food Intolerances and Dietary Triggers

Not every bout of diarrhea is food poisoning. Some of the most common triggers are foods your body simply struggles to digest. Lactose intolerance is the classic example: without enough of the enzyme that breaks down milk sugar, dairy products cause bloating, cramping, gas, and loose stools, usually within a couple of hours. You might tolerate small amounts of cheese or yogurt but find a large glass of milk sends you straight to the bathroom.

Fructose, the sugar found naturally in fruit and added to many processed foods as high-fructose corn syrup, causes similar problems for some people. The same goes for a group of short-chain carbohydrates found in foods like onions, garlic, wheat, beans, and certain fruits. These carbohydrates pull water into the intestine and ferment quickly, which can produce sudden, urgent diarrhea in sensitive individuals.

Caffeine and alcohol are two other common offenders that people overlook. Both speed up contractions in the colon. A night of heavy drinking or an extra-strong coffee on an empty stomach is enough to cause loose stools without any infection involved.

Sugar-Free Products and Artificial Sweeteners

If you recently chewed sugar-free gum, ate a protein bar, or had a handful of sugar-free candy, that’s a strong suspect. Sugar alcohols like sorbitol and xylitol are poorly absorbed in the gut and draw water into the intestine, creating an osmotic laxative effect. Sorbitol can trigger diarrhea at surprisingly low doses: roughly 0.17 grams per kilogram of body weight in men and 0.24 grams per kilogram in women. For a 150-pound person, that’s as little as 12 grams of sorbitol, an amount easily found in a few pieces of sugar-free candy or a couple of diet protein bars.

Erythritol, a newer sugar alcohol marketed as gentler on the stomach, does have a higher threshold before it causes problems, roughly three to four times that of sorbitol. But consume enough of it and the result is the same.

Medications You Might Not Suspect

Antibiotics are one of the most common medication-related causes of diarrhea. They kill off harmful bacteria but also disrupt the balance of beneficial bacteria in your gut, which can lead to loose stools during or even after finishing a course. In some cases, antibiotics allow a particularly aggressive bacterium called C. difficile to take over, causing severe, watery, and sometimes bloody diarrhea that needs its own treatment.

Other medications frequently linked to diarrhea include metformin (widely prescribed for diabetes), magnesium-containing antacids, and high-dose vitamin or mineral supplements. If your diarrhea started within a day or two of beginning a new medication or changing a dose, that connection is worth investigating.

Stress and the Gut-Brain Connection

A job interview, a flight you’re anxious about, a family conflict: stress is a legitimate, biological cause of diarrhea, not just something “in your head.” Your gut and your brain communicate constantly through shared nerve pathways and chemical signals. Under stress, your body alters the balance of bacteria in the intestine and changes how gut immune cells behave. The downstream effect is that the smooth muscle lining your colon contracts more forcefully, speeding everything through before water can be properly absorbed.

If you notice a pattern of loose stools around stressful events but feel fine otherwise, stress-related diarrhea is a likely explanation. It tends to come on suddenly, resolve once the stressor passes, and not involve fever or blood in the stool.

When Diarrhea Keeps Coming Back

A single bad episode usually resolves within a week and falls into the “acute” category. If it lasts longer than two weeks, it’s considered persistent. Anything beyond four weeks is chronic diarrhea, and at that point the list of possible causes shifts.

Two conditions worth knowing about are irritable bowel syndrome (IBS) and inflammatory bowel disease (IBD), which sound similar but are very different. IBS is a syndrome, a collection of symptoms including cramping, bloating, and altered bowel habits, without any visible damage to the intestines. Exams and imaging come back looking normal. IBD, which includes Crohn’s disease and ulcerative colitis, involves real, destructive inflammation that shows up on scans and scopes. Key red flags that point toward IBD rather than IBS include blood in the stool, unexplained weight loss, fever, and anemia.

Celiac disease, an immune reaction to gluten, is another cause of chronic diarrhea that’s frequently missed for years. Thyroid disorders, particularly an overactive thyroid, can also speed up digestion enough to cause persistent loose stools.

How to Recover Faster

The biggest risk from a short bout of diarrhea is dehydration, especially if you’re also vomiting. Water alone isn’t ideal for rehydration because you’re losing electrolytes along with fluid. The World Health Organization’s oral rehydration approach combines water, salt, and glucose in specific proportions to maximize absorption. You can buy premade rehydration solutions at any pharmacy, or in a pinch, sip broth and diluted juice alternately to get both sodium and sugar.

Eating bland, easy-to-digest foods like rice, bananas, toast, and plain chicken helps your gut recover without adding further irritation. Avoid dairy, fatty foods, caffeine, and alcohol until things settle. Most acute episodes clear up within two to four days without any specific treatment.

Signs That Need Medical Attention

Most diarrhea is unpleasant but harmless. A few specific signs, however, warrant a call to your doctor or a trip to urgent care: a fever above 102°F, blood or black color in the stool, severe abdominal or rectal pain, or signs of dehydration like very dark urine, dizziness, dry mouth, or extreme thirst. Diarrhea lasting more than two days without improvement in an adult, or any signs of dehydration in a young child (no tears when crying, no wet diapers for three or more hours, unusual drowsiness), also call for professional evaluation.