Stomach infections come from several different sources, and knowing which one you are dealing with matters for treatment. The most common causes are viruses, bacteria, and sometimes parasites. Viruses cause most cases of acute stomach illness in adults and children, while bacteria are responsible for many foodborne infections. Each type has different symptoms, different timelines, and different treatments.
What Causes Stomach Infections Viruses Bacteria More?
Viruses cause the majority of stomach infections. Norovirus alone is responsible for roughly half of all cases of acute gastroenteritis worldwide. Rotavirus is the leading cause in young children, though vaccines have reduced its impact significantly.
Bacteria cause a smaller but still significant share of stomach infections. Common bacterial culprits include Salmonella, Campylobacter, E. coli, and Shigella. These usually come from contaminated food or water.
Parasites like Giardia are less common in the United States but can cause prolonged symptoms. They are more likely after drinking untreated water from lakes or streams.
Understanding the difference matters because viral infections usually resolve on their own within a few days, while bacterial infections sometimes require antibiotics. Parasitic infections nearly always require specific medication.
How Do Viral Stomach Infections Spread?
Viruses spread through the fecal-oral route. This means tiny amounts of infected stool end up in someone else’s mouth. It sounds unpleasant because it is. This happens through contaminated hands, food, water, or surfaces.
Norovirus is extremely contagious. It takes fewer than 20 viral particles to cause infection. It survives on surfaces for weeks and resists many common cleaners. Alcohol-based hand sanitizers do not kill norovirus effectively. Soap and water are the reliable defense.
Rotavirus spreads the same way. Before the vaccine, nearly every child in the United States had at least one rotavirus infection by age five. The vaccine has cut hospitalizations for rotavirus dramatically.
Viral stomach infections typically begin 12 to 48 hours after exposure. Symptoms include vomiting, watery diarrhea, stomach cramps, and sometimes fever. Most people recover within one to three days.
How Do Bacterial Stomach Infections Differ?
Bacterial infections usually come from contaminated food. Undercooked poultry, unpasteurized milk, raw eggs, and improperly handled produce are common sources. They can also come from contaminated water.
Symptoms often include fever, bloody diarrhea, and severe abdominal cramping. These symptoms tend to last longer than viral infections. Most bacterial infections resolve in five to seven days without antibiotics.
Some bacteria produce toxins that cause illness quickly. Staphylococcus aureus, for example, can cause symptoms within one to six hours of eating contaminated food. This is not an infection in the traditional sense. The bacteria die in the stomach, but the toxin they produced causes the illness.
Other bacteria, like Salmonella, actually infect the intestinal lining. Symptoms appear 12 to 72 hours after exposure and can last up to a week.
Antibiotics are not always the answer. For most healthy adults with uncomplicated bacterial gastroenteritis, antibiotics may not shorten the illness. In some cases, they can make things worse. For example, antibiotics for Shiga toxin-producing E. coli increase the risk of a serious kidney complication called hemolytic uremic syndrome.
What Are the Symptoms of a Stomach Infection?
Common symptoms include nausea, vomiting, diarrhea, stomach cramps, and sometimes fever. Headache and muscle aches can also occur, especially with viral infections.
Dehydration is the main concern. The combination of vomiting and diarrhea can rapidly deplete fluids and electrolytes. Young children, older adults, and people with weakened immune systems are at highest risk.
Signs of dehydration include dry mouth, decreased urination, dark urine, dizziness, and extreme thirst. In infants, look for fewer wet diapers, no tears when crying, and a sunken soft spot on the head.
Blood in the stool is not typical for viral infections. If you see blood, it points more toward a bacterial infection. This is a reason to contact a doctor.
Fever above 102°F in an adult, or any fever in an infant under three months, warrants medical attention.
When Should You See a Doctor for a Stomach Infection?
Most stomach infections resolve without medical treatment. But certain situations require professional care.
Seek medical attention if you cannot keep fluids down for more than 24 hours. Seek help if you show signs of dehydration that do not improve with oral rehydration. Seek help if you have bloody diarrhea, severe abdominal pain, or a fever above 102°F.
For infants and young children, the threshold is lower. Contact a pediatrician if a child under six months has any vomiting or diarrhea. Contact a doctor if a child has not urinated in six hours or has been vomiting for more than a few hours.
People with chronic conditions like diabetes, kidney disease, or inflammatory bowel disease should check with their doctor earlier rather than later. The same applies to pregnant women and older adults.
How Are Stomach Infections Treated?
For most viral infections, treatment is supportive. The goal is to replace fluids and electrolytes while the body clears the virus.
Oral rehydration solutions are the best choice for replacing fluids. These are available at pharmacies and contain the right balance of water, salt, and sugar. For adults, sports drinks can work in a pinch, though they are not ideal because their sugar content can worsen diarrhea. For children, use products made specifically for rehydration.
Eating is not necessary during the first few hours of vomiting. But as soon as you can tolerate it, return to a normal diet. The old BRAT diet recommendation — bananas, rice, applesauce, toast — is outdated. Research now shows that returning to a normal, age-appropriate diet as soon as possible shortens the illness.
Antibiotics are reserved for specific bacterial infections. They are used when symptoms are severe, when the patient is at high risk, or when a specific bacteria like Shigella or cholera is identified. They are not used for viral infections.
Anti-diarrheal medications like loperamide (Imodium) are generally not recommended for bacterial infections. They can keep bacteria in the body longer. They are safer for confirmed viral infections but should not be given to children.
How Can You Prevent Stomach Infections?
Handwashing is the single most effective prevention measure. Wash with soap and warm water for at least 20 seconds. This is especially important after using the bathroom, changing diapers, and before preparing food.
Food safety practices matter. Cook poultry to an internal temperature of 165°F. Refrigerate leftovers promptly. Wash produce under running water. Avoid unpasteurized milk and juices.
When traveling to areas with questionable water quality, drink bottled water. Avoid ice cubes made from tap water. Eat foods that are fully cooked and served hot.
Vaccines are available for rotavirus and are part of the routine childhood vaccination schedule. There is no vaccine for norovirus or for most bacterial causes of gastroenteritis.
If someone in your household is sick, clean surfaces with a bleach-based cleaner. Norovirus survives on surfaces for up to two weeks. Wash laundry thoroughly and avoid sharing towels.
How Long Does a Stomach Infection Last?
Viral infections typically last one to three days. Norovirus is usually over within 48 hours. Rotavirus can last three to eight days in children.
Bacterial infections usually last longer. Most resolve within five to seven days. Some, like Campylobacter, can cause symptoms for up to two weeks.
Parasitic infections can last for weeks or months without treatment. Giardia, for example, causes symptoms that come and go for several weeks if left untreated.
It is normal to feel tired for several days after the acute symptoms resolve. The intestinal lining needs time to heal. This is not a sign that the infection is still active.
Is It a Stomach Infection or Food Poisoning?
These terms are often used interchangeably, but they are not the same thing. Food poisoning is caused by eating contaminated food. It can be caused by bacteria, viruses, parasites, or toxins.
A stomach infection is any infection of the digestive tract, regardless of the source. A viral stomach infection you catch from a family member is not food poisoning. A bacterial infection from undercooked chicken is both a stomach infection and food poisoning.
Food poisoning from a pre-formed toxin, like staphylococcus, comes on fast. Symptoms appear within hours of eating. Infectious food poisoning, like Salmonella, takes longer because the bacteria must multiply in the body.
For practical purposes, the distinction matters less than it seems. The treatment approach is the same: rehydration, rest, and monitoring for complications. The exception is when a specific bacterial infection is identified, which requires medical testing.
Frequently Asked Questions
What is the most common cause of stomach infections?
Viruses cause most stomach infections, and norovirus is the most common viral cause. Rotavirus is the leading cause in young children.
How can you tell if a stomach infection is viral or bacterial?
Viral infections usually involve more vomiting and shorter duration, while bacterial infections more often cause bloody diarrhea and higher fever. Only a stool test can confirm the cause with certainty.
Do stomach infections require antibiotics?
Most do not. Viral infections never respond to antibiotics, and most bacterial infections clear on their own within a week. Antibiotics are reserved for severe cases or specific bacteria.
How long should you stay home with a stomach infection?
Stay home until you have been free of vomiting and diarrhea for at least 24 hours without using anti-diarrheal medications. This is especially important for food service workers.

