The short answer
Most diarrhea from food poisoning clears within 1–3 days. A stomach bug (viral gastroenteritis) typically lasts 3–5 days, though it can stretch to 10 in some cases.
Here is a side-by-side comparison:
| Food poisoning | Stomach bug (viral gastroenteritis) | |
|---|---|---|
| Typical onset | 2–6 hours after a suspect meal (some bacteria: 12–72 h) | 12–48 hours after exposure to an infected person or surface |
| Diarrhea duration | 1–3 days | 3–5 days (up to 10) |
| Vomiting | Often the first symptom; may be intense but brief | Common, especially early; can overlap with diarrhea for days |
| Fever | Less common; when present, may signal bacterial cause | Low-grade fever is typical |
| Key clue | Others who ate the same food are also sick | Spreading through a household or group over days |
Food poisoning timeline
Food poisoning happens when you eat or drink something contaminated with bacteria, viruses, or toxins. The timeline varies by pathogen, but a typical bacterial case looks like this:
Hours 2–6: Nausea and vomiting hit first. Cramps and diarrhea often follow within a few hours. Toxin-mediated food poisoning (like Staph aureus) can start as early as 1–2 hours after eating.
Hours 6–24: Diarrhea peaks. Stools are often watery (Bristol 7) and frequent. Vomiting may taper off, but cramps continue.
Days 1–3: Symptoms gradually ease. Stool frequency drops and consistency starts to improve. Most people feel noticeably better by day 2–3.
After day 3: If diarrhea continues with fever or blood, or if you are not improving, that is the point to seek medical input. Some bacterial infections (Salmonella, Campylobacter, E. coli) can last longer and may need clinical attention.
Stomach bug timeline
Viral gastroenteritis — most often caused by norovirus or rotavirus — follows a different arc:
Hours 12–48 (incubation): You have been exposed but do not feel sick yet. This delay is one reason stomach bugs spread so efficiently through households.
Days 1–2: Symptoms build: watery diarrhea, nausea, vomiting, low-grade fever, body aches. The onset feels more gradual than food poisoning.
Days 3–5: Diarrhea continues but usually starts to ease. Appetite slowly returns. Fatigue can linger even after gut symptoms improve.
Days 5–10: Most people recover fully within a week. In some cases — especially in children, older adults, or people with weaker immune systems — watery stools can persist up to 10 days.
How to tell the difference
Onset timing is the single most useful clue:
- Fast onset (2–6 hours after a specific meal) points toward food poisoning, especially if others who ate the same thing are also sick.
- Slower onset (12–48 hours) with no obvious meal link points toward a stomach bug, especially if it is moving through a household or workplace.
Other helpful signals:
- Vomiting-dominant, short and intense → leans food poisoning (toxin-mediated)
- Diarrhea-dominant, building over days → leans viral gastroenteritis
- Muscle aches and low-grade fever → more common with stomach bugs
- High fever (above 38.5 °C / 101.3 °F) → raises the question of a bacterial infection — worth getting evaluated
In practice, the two can overlap and a definitive answer sometimes requires a stool test. What matters most for self-care is the same either way: stay hydrated and watch for red flags.
Hydration and recovery basics
Dehydration is the main short-term risk with any acute diarrhea. A few practical points:
- Sip frequently rather than drinking large amounts at once. Small sips every few minutes are easier to keep down.
- Oral rehydration solutions (ORS) replace both water and electrolytes. They are more effective than water or sports drinks alone, especially for children.
- Ease back into eating with bland, easy-to-digest foods when appetite returns. There is no need to follow a strict diet — just avoid heavy, greasy, or high-fiber meals for the first day or two.
- Rest. Your body is working hard. Sleep and reduced activity help recovery.
- Avoid caffeine and alcohol until you are consistently keeping fluids down and stools are improving.
Tracking diarrhea episodes in StoolSense
Logging each episode — even briefly — gives you a timeline you can actually use:
- Bristol type + time for each bowel movement (Bristol 6–7 is typical during acute diarrhea)
- Suspect meal or exposure if you have one in mind
- Fluid intake — rough notes help you gauge whether you are keeping up
- Temperature if fever is present
- Day number since onset — this is the simplest way to see whether you are on a normal recovery curve or stalling
When things settle, you can compare your recovery week to your normal baseline using Smart Analysis — useful for spotting whether your gut has fully returned to its usual pattern.
When to seek medical care
Most acute diarrhea resolves on its own. But certain signs mean you should not wait it out:
- Blood or black/tarry stool — could signal a more serious infection or another issue entirely
- High fever (above 38.5 °C / 101.3 °F) that persists or worsens
- Severe abdominal pain — not just cramps, but pain that is intense or localized
- Signs of dehydration — dark urine, dizziness, dry mouth, rapid heartbeat, reduced urine output
- Inability to keep fluids down for more than 24 hours
- Duration — no improvement after 3 days (with fever/blood) or 7 days (without)
- Vulnerable groups — young children, older adults, pregnant individuals, and immunocompromised people should seek care sooner because dehydration can escalate quickly
When in doubt, getting evaluated is always a reasonable choice. A stool sample or basic blood work can clarify what is going on and whether any treatment is needed.