Stomach Bug or Food Poisoning? How to Tell the Difference
Food poisoning and a stomach bug cause the same misery, and the timing usually separates them. Food poisoning tends to strike 1 to 12 hours after a specific meal, often with heavy vomiting, and eases within a day.
Written By: DocAi Health Editorial Team
Last Updated: 2026-08-02
Food poisoning and a stomach bug cause the same misery, and the timing usually separates them. Food poisoning tends to strike 1 to 12 hours after a specific meal, often with heavy vomiting, and eases within a day. A viral stomach bug usually starts 12 to 48 hours after contact with a sick person, brings fever and body aches, and spreads through a household over several days. This guide covers the timing clues, the symptom patterns, and the warning signs that mean neither label applies.
Start With the Clock: How Long After the Meal Did It Hit?
The gap between eating and the first wave of symptoms is the most useful clue you have at home, because each cause has its own incubation period. Write down what you ate and when the symptoms started before the details blur together.
30 minutes to 6 hours, mostly vomiting. A window this short points to a toxin that was already sitting in the food, the kind Staphylococcus aureus or Bacillus cereus leave behind when a dish stays warm on a counter. Potato salad at a picnic, a cream-filled pastry, and rice that cooled slowly and was reheated are the usual suspects. The vomiting is sudden and forceful, fever is absent or slight, and most people feel clearly better inside 12 to 24 hours.
6 to 24 hours, mostly watery diarrhea. Clostridium perfringens multiplies in large batches of meat, gravy, and stew held at lukewarm temperatures. It causes cramps and watery stools with little vomiting and little fever, which is the classic buffet or catered-event pattern, and it also settles within about a day.
12 to 48 hours, vomiting and diarrhea together. This is the norovirus window, whether the virus came off a doorknob or off a contaminated salad. Expect 1 to 3 days of vomiting, cramping, watery diarrhea, a low fever, and aching muscles.
1 to 5 days, or much longer. Salmonella, Campylobacter, and Shiga toxin-producing E. coli take their time, which is why people so often blame the wrong meal. These lean toward fever, hard cramping, and diarrhea that can run most of a week. Listeria is the outlier, because it can take one to four weeks after eating deli meat, hot dogs, soft cheese, smoked seafood, or unpasteurized dairy, and it matters most during pregnancy.
Who Else Got Sick, and What Did You All Eat?
The symptoms overlap so heavily that the pattern of illness around you often answers the question faster than anything happening inside your own body.
Several people, one shared meal, all at once. If four people ate the same catered lunch and three were vomiting by evening, that is food poisoning. The person who skipped the chicken stays fine. The illness clusters around a dish rather than around a household.
One person, then another, spread over days. A stomach bug moves in a chain. The kid gets it Monday, a parent Wednesday, a sibling Friday. Anyone who shared a bathroom, a towel, or a car ride is exposed, whether or not they shared a meal.
The overlap that confuses everyone. Norovirus sits on both sides of the line. It is the leading cause of the winter stomach bug in the United States and also the leading cause of foodborne illness, because an infected food handler can pass it into a salad or a sandwich as easily as a sick toddler passes it to a parent. A group who ate together and all got sick 24 to 36 hours later may well have a stomach bug they caught from food. What the illness is called matters less than the fact that it spreads.
Widen the question beyond the last meal. Untreated well, lake, or stream water, a recent trip abroad, a petting zoo or farm visit, a shared pool, and a course of antibiotics in the past few months all open doors that one suspicious dinner does not. Queasiness with no vomiting at all often has a different explanation entirely, which our guide to nausea without vomiting walks through.
Fever, Blood, and How Long It Drags On
| Clue | Toxin-type food poisoning | Viral stomach bug | Bacterial infection |
|---|---|---|---|
| Start after exposure | 30 minutes to 6 hours | 12 to 48 hours | 6 hours to 5 days |
| Leading symptom | Forceful vomiting | Vomiting and diarrhea | Diarrhea and cramps |
| Fever | None or slight | Low, with body aches | Often high |
| Blood in stool | No | No | Possible |
| Usual length | Under 24 hours | 1 to 3 days | 4 days to a week |
| Spreads to others | No | Yes, easily | Sometimes |
Fever leans viral, without settling the question. A low fever, chills, and aching muscles fit norovirus and rotavirus well. Salmonella and Campylobacter also run a fever, sometimes a high one, so fever is better at ruling out a preformed toxin than at separating a virus from a bacterium.
Blood in the stool changes the plan. Red or maroon stool, or diarrhea that seems to hold more blood than anything else, points toward invasive bacteria such as Campylobacter, Shigella, Salmonella, or Shiga toxin-producing E. coli. That last one is why bloody diarrhea deserves a same-day call rather than another night of waiting. In a small share of people, most often children under 5 and adults over 65, the toxin injures the kidneys and the small blood vessels roughly a week into the illness. That complication is hemolytic uremic syndrome, and it shows itself as unusual paleness, easy bruising, puffiness around the eyes or ankles, and a sharp drop in how much urine is being passed. Antibiotics and anti-diarrheal medicines are thought to raise that risk, so this is the one situation where treating yourself can do real harm.
Duration sorts the causes better than any single symptom. Under 24 hours points to a preformed toxin. One to three days points to a virus. Four days to a week with fever points to a bacterium worth testing. Past two weeks, especially with greasy, floating, foul-smelling stools and a lot of gas after travel or untreated water, fits Giardia, which needs a specific prescription rather than time.
Watery diarrhea after antibiotics is its own category. If you finished a course of antibiotics in the past two or three months and now have frequent watery stools with cramps and fever, Clostridioides difficile is a real possibility. It needs a stool test and a targeted antibiotic, and an anti-diarrheal can make it worse.
Some people should not wait it out at all. Adults over 65, pregnant women, infants, people on chemotherapy, steroids, or transplant medicines, and anyone living with kidney disease, diabetes, or inflammatory bowel disease dehydrate faster and get complications more often. For them, a call on day one is reasonable even when everything looks routine.
Riding It Out at Home Without Making It Worse
For both categories the care is nearly identical, and most of it is about replacing what you are losing.
- Rehydrate with the right liquid, in small amounts. An oral rehydration solution such as Pedialyte carries the sodium-to-sugar ratio that helps the gut pull water back in. Sports drinks and juice are heavy on sugar and light on sodium, which can make diarrhea worse. Take 1 to 2 tablespoons every few minutes rather than a full glass, which usually comes straight back up.
- Eat when you can, and eat normally. There is no reason to live on toast and crackers for days. Once the vomiting settles, go back to regular food in small portions. Starchy, bland foods are easier at first, while fried and very sweet foods usually are not.
- Be careful with anti-diarrheal medicine. Loperamide (Imodium) can help an adult with plain watery diarrhea and no fever. Skip it entirely if there is blood in the stool, a fever, or a recent course of antibiotics, and never give it to a child without a pediatrician saying so. Bismuth subsalicylate (Pepto-Bismol) should not be given to children or teenagers during a viral illness because of the risk of Reye syndrome.
- Do not ask for antibiotics by default. They do nothing against a virus, they are usually unnecessary for mild bacterial infections, and in suspected Shiga toxin-producing E. coli they may raise the risk of kidney damage. Testing comes before treatment.
- Assume you are contagious and act like it. Wash with soap and water for 20 seconds, because alcohol hand sanitizer is much weaker against norovirus. Clean bathrooms and high-touch surfaces with a bleach-based product. Wash soiled laundry on the hottest setting the fabric allows. Do not prepare food for anyone else until at least 48 hours after the last episode of vomiting or diarrhea, which is what most health departments require of food handlers.
- Track fluid balance, not just how you feel. Dark, infrequent urine, a dry mouth, dizziness on standing, and no tears in a crying child all mean you are falling behind. Confusion, fainting, or passing no urine for 8 to 12 hours has moved past home care and into emergency territory. Our guide to the signs of dehydration lists what to check at each age.
When a child in the house is the one who is sick, the contagious window runs longer than most parents expect, and how long a stomach bug stays contagious in kids covers the return-to-school timing.
Look-Alikes That Are Neither
A few conditions open with vomiting or diarrhea and get filed under "stomach bug" for a day or two. That delay is where the harm happens.
Appendicitis and other surgical problems. Gastroenteritis pain is crampy, wanders around the belly, and eases briefly after vomiting or a bowel movement. Appendicitis pain starts near the navel, settles into the lower right side, stays constant, and sharpens with movement or a bump in the road. A rigid, board-like belly that is too tender to touch, or vomit that is green or yellow bile, suggests a blockage or a perforation and belongs in an emergency room the same hour.
Botulism. Home-canned vegetables, fermented fish, home-preserved foods, and garlic or herbs stored in oil can carry a toxin that attacks nerves. It usually begins 12 to 36 hours after the meal, with blurred or double vision, drooping eyelids, a very dry mouth, slurred speech, trouble swallowing, and weakness that spreads downward from the face and shoulders. The antitoxin works best when it is given early, and untreated botulism can paralyze the muscles used for breathing.
Reactions to fish. Flushing, a peppery or metallic taste, headache, hives, and a tight throat within minutes to an hour of eating tuna, mahi-mahi, or mackerel is scombroid poisoning, caused by histamine that builds up in fish that was not kept cold. It looks like an allergic reaction and is treated with the same urgency.
Infections and emergencies that start in the gut but do not live there. Meningitis and bloodstream infection can open with vomiting, so vomiting alongside a severe headache, a stiff neck, new confusion, a seizure, or a rash that does not fade when you press a clear glass against it is a 911 call. In a baby under 3 months, a rectal temperature of 100.4°F (38°C) or higher needs an emergency evaluation whatever the cause. Nausea and vomiting with chest pressure, shortness of breath, or a cold sweat can be a heart attack, and deep rapid breathing with fruity-smelling breath and unquenchable thirst in someone with diabetes can be diabetic ketoacidosis.
Anything swallowed that was not food. Foraged mushrooms, a cleaning product decanted into a drink bottle, or an unlabeled supplement can cause violent vomiting with no infection involved. Call Poison Control at 1-800-222-1222 rather than waiting to see what happens.
When to Seek Medical Care
When to Seek Urgent or Emergency Care
Most stomach bugs and most food poisoning clear on their own with fluids, rest, and time. A short list of presentations, however, can kill or cause lasting damage if they wait for a Monday appointment. This guidance is in addition to, not a replacement for, the general disclaimer above.
Emergency, call 911 or go to the emergency room immediately if:
- The sick person is confused, very hard to wake, faints or nearly faints on standing, has cold clammy skin with a racing heartbeat, or has passed no urine in 8 to 12 hours (no wet diaper in 6 to 8 hours for a baby), which are the signs of dangerous fluid loss.
- There is visible red or maroon blood in the diarrhea, particularly with fever or severe cramping, or someone recovering from bloody diarrhea turns pale, bruises easily, swells around the eyes or ankles, or nearly stops urinating.
- Blurred or double vision, drooping eyelids, slurred speech, a dry mouth with trouble swallowing, or weakness spreading down from the face and shoulders appears after eating home-canned, fermented, or home-preserved food, because this can be botulism and it can stop the breathing muscles.
- Belly pain turns constant, one-sided, and worse with any movement instead of coming in waves that ease after vomiting, or the belly becomes rigid and too tender to touch, or the vomit is green or yellow bile, looks like coffee grounds, or contains blood.
- Lips, tongue, or throat begin to swell, hives spread, or breathing turns tight or wheezy within minutes to an hour of eating fish or any other food, which can be an allergic reaction or scombroid poisoning.
- Vomiting comes with a severe headache, a stiff neck, a seizure, new confusion, or a rash that does not fade when pressed with a clear glass, or a baby under 3 months old has a rectal temperature of 100.4°F (38°C) or higher.
- Nausea and vomiting arrive with chest pressure, shortness of breath, or a cold sweat, or with deep rapid breathing, fruity-smelling breath, and unquenchable thirst in someone with diabetes.
If someone has swallowed foraged mushrooms, an unlabeled supplement, or a household chemical, call Poison Control at 1-800-222-1222 right away, and call 911 instead if the person is seizing, cannot be woken, or is struggling to breathe.
See a doctor soon (same-day or next available appointment) if:
- Vomiting has gone past 24 hours, diarrhea has gone past 2 days in an adult or past 24 hours in a child under 2, or you cannot keep down even small sips of fluid for 12 hours.
- A fever above 102°F (38.9°C) comes with the vomiting or diarrhea, or any fever is still there after 3 days.
- You are pregnant and develop fever, chills, or aching muscles in the weeks after eating deli meat, hot dogs, soft cheese, smoked seafood, or unpasteurized dairy, since listeria can harm a pregnancy while the mother feels only mildly unwell.
- You are over 65, pregnant, taking chemotherapy, steroids, or transplant medicines, or living with kidney disease, diabetes, or inflammatory bowel disease, and the illness has not begun to settle within a day.
- Watery diarrhea with cramps started within about three months of finishing a course of antibiotics, which can be a Clostridioides difficile infection needing its own test and treatment.
- Diarrhea has run past a week, keeps returning, or has turned greasy, floating, and foul-smelling after travel abroad or untreated well, lake, or stream water, which fits Giardia and needs a stool test.
Frequently Asked Questions
How soon after eating bad food do you get sick?
It depends on what was in the food. A toxin already present in a dish that sat out can bring on vomiting in 30 minutes to 6 hours. Bacteria that have to multiply inside you, such as Salmonella or Campylobacter, usually take 6 hours to several days, and listeria can take weeks.
Can food poisoning come from something I ate two days ago?
Yes. People tend to blame the last thing they ate, but Salmonella, Campylobacter, and Shiga toxin-producing E. coli often take 1 to 5 days to cause symptoms. If you are sick two or three days after a barbecue, that meal is still a fair suspect, especially if others who were there are also unwell.
Is food poisoning contagious to other people?
Toxin-type food poisoning is not passed person to person, since the harm came from the food itself. Infections that cause foodborne illness, including norovirus, Salmonella, and Shigella, spread very easily through unwashed hands and shared surfaces. Because you rarely know which one you have, treat every case as contagious.
Should I make myself throw up if I think I ate something bad?
No. Forcing vomiting does not remove the germ or toxin and it can injure the throat or send stomach contents into the lungs. It is also dangerous after swallowing a chemical. If you are worried about a non-food substance, call Poison Control at 1-800-222-1222 for instructions instead.
Does a fever mean it is definitely a virus?
No. A low fever with body aches is common with norovirus, but Salmonella, Campylobacter, and Shigella often cause a higher fever than a virus does. A fever is more useful for ruling out the toxin-type food poisoning that comes from food left out, which usually causes no fever at all.
Do I need a stool test to find out which one I have?
Most people never need one, because the care is the same either way. Testing becomes worthwhile when there is blood in the stool, a high fever, illness lasting more than a week, recent travel abroad, recent antibiotics, or a weakened immune system, since those results change the treatment.
When can I go back to work or school?
Most workplaces and schools ask for 24 hours free of vomiting, diarrhea, and fever without medication. Anyone who handles food, cares for patients, or works with young children should wait at least 48 hours after the last episode, since norovirus keeps shedding for days after you feel fine.
Why did only one person at the table get sick?
Contamination is often patchy, so one portion of a dish can carry far more germs than another. People also differ in how much of a germ it takes to make them ill, and stomach acid, age, and medicines that reduce acid all change that threshold. One sick guest does not rule out the meal.
Related articles
Causes of Nausea Without VomitingHow Long Is a Stomach Bug Contagious in Kids?Signs of Dehydration You Shouldn't Ignore: What to Watch ForSources
- Centers for Disease Control and Prevention (CDC) - Food Poisoning Symptoms
- Centers for Disease Control and Prevention (CDC) - How to Prevent Norovirus
- MedlinePlus (National Library of Medicine, NIH) - Food Poisoning | Foodborne Illness | MedlinePlus
- National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK, NIH) - Viral Gastroenteritis ("Stomach Flu") - NIDDK
- U.S. Food and Drug Administration (FDA) - Bad Bug Book (Second Edition)
- Mayo Clinic - Food poisoning (foodborne illness) - Diagnosis and treatment