What Causes Stomach Infections? Viruses, Bacteria & More

Stomach infections are caused by viruses, bacteria, or parasites that enter your digestive tract, typically through contaminated food, water, or contact with an infected person. Viral gastroenteritis is the most common type, with norovirus alone responsible for an estimated 685 million cases worldwide each year. While most stomach infections resolve on their own, understanding what causes them helps you avoid the most common triggers.

Viruses: The Most Common Cause

Viruses cause the majority of stomach infections. Norovirus and rotavirus are the two biggest culprits, though adenoviruses and astroviruses also play a role. Norovirus is sometimes called the “stomach bug” or “stomach flu,” though it has nothing to do with influenza. It accounts for roughly 200 million cases in children under five each year and an estimated 200,000 deaths globally, most in low-income countries.

Norovirus spreads through direct contact with an infected person, contaminated food or water, and touching contaminated surfaces. It is remarkably easy to transmit, partly because people who show no symptoms can still pass it to others. Rotavirus spreads primarily through the fecal-oral route, meaning tiny particles of stool from an infected person end up being swallowed, often from unwashed hands or shared objects. Adenoviruses can also spread through respiratory droplets, which makes them slightly different from other stomach viruses.

Once inside your body, norovirus binds to cells lining the intestine and essentially wounds their outer membranes. The cells attempt to repair themselves, and the virus exploits that repair process to slip inside. This is why symptoms come on quickly: norovirus has an average incubation period of about 36 hours, with a range of 10 to 50 hours.

Bacterial Infections From Food and Water

Bacteria are the second most common cause of stomach infections, and they tend to produce more severe symptoms than viruses. The pathogens you’re most likely to encounter include Salmonella, Campylobacter, various strains of E. coli, Shigella, and Clostridium perfringens. Each has its own primary food sources and timeline.

Campylobacter is most commonly linked to raw or undercooked poultry. You can also pick it up from unpasteurized milk, contaminated seafood, untreated water, or direct contact with animals and their environments (cages, food bowls, bedding). Cross-contamination is a major factor: using the same cutting board or knife for raw chicken and then for salad can transfer bacteria to food that won’t be cooked. Outbreaks have even been traced to pet store puppies.

Salmonella typically shows up about 24 hours after exposure, though it can take anywhere from 6 to 72 hours. Campylobacter has a longer incubation period, averaging 2 to 5 days. E. coli O157:H7, the strain most associated with serious illness, averages 3 to 4 days before symptoms appear and can take up to 10 days, which often makes it harder to trace back to a specific meal.

Some bacterial toxins act much faster. Staph enterotoxin, produced when Staphylococcus bacteria multiply in food left at room temperature, causes symptoms in as little as 30 minutes, averaging 2 to 4 hours. Clostridium perfringens, common in large batches of meat or gravy that cool slowly, averages about 11 hours.

Parasites in Water and Soil

Parasitic stomach infections are less common in developed countries but still occur, especially through contaminated water. The two parasites you’re most likely to encounter are Giardia and Cryptosporidium.

Cryptosporidium infects the small intestine, and millions of its microscopic cysts can be found in a single bowel movement of an infected person or animal. It spreads through swallowing contaminated recreational water (pools, lakes, water parks), drinking contaminated water or beverages, eating contaminated food, or touching contaminated surfaces and then touching your mouth. The incubation period averages about 7 days, with a range of 2 to 14 days. Giardia follows similar routes but is especially common in day care settings, where it passes from child to child, and through untreated water sources popular with hikers and campers.

What makes these parasites particularly stubborn is their resistance to standard disinfection. Cryptosporidium cysts can survive in properly chlorinated swimming pools, which is why swallowing pool water is a recognized risk factor.

H. pylori: A Different Kind of Stomach Infection

Not all stomach infections cause the sudden vomiting and diarrhea people associate with food poisoning. Helicobacter pylori is a bacterium that colonizes the stomach lining itself and, unless treated, persists for life. It’s the primary cause of stomach ulcers and a significant risk factor for stomach cancer.

H. pylori survives in one of the harshest environments in your body by producing an enzyme called urease, which converts urea into ammonia. That ammonia raises the pH around the bacterium, neutralizing stomach acid just enough for it to thrive. Its spiral shape and whip-like tail help it burrow into the thick mucus layer coating the stomach wall, where conditions are less acidic.

What makes H. pylori so persistent is its ability to manipulate your immune system. Your body mounts an inflammatory response to the infection, but the bacterium interferes with the immune cells trying to clear it. It blocks certain immune cells from presenting its components to the rest of the immune system, essentially hiding in plain sight. It also promotes the production of anti-inflammatory signals that keep the immune response from becoming strong enough to eliminate it. On top of that, H. pylori constantly changes its surface proteins, making it a moving target. Many people carry H. pylori for decades without knowing it, experiencing symptoms only when the infection progresses to gastritis or ulcers.

How These Infections Spread

Nearly all stomach infections share one core transmission route: the fecal-oral pathway. This sounds alarming, but it simply means that microscopic amounts of stool from an infected person or animal make their way into someone else’s mouth. The practical ways this happens are more familiar than you might think.

  • Contaminated food: Undercooked meat, unwashed produce, and food prepared by someone who didn’t wash their hands properly after using the bathroom.
  • Contaminated water: Untreated drinking water, recreational water in pools and lakes, and ice made from unsafe sources.
  • Person-to-person contact: Caring for a sick family member, changing diapers, or sharing utensils and towels with an infected person.
  • Contaminated surfaces: Door handles, faucets, phones, toilets, and toys that an infected person has touched. Norovirus in particular can survive on surfaces for extended periods.
  • Animal contact: Handling animals or cleaning their living spaces, especially calves, lambs, goat kids, and poultry.

Asymptomatic carriers complicate prevention significantly. People who show no signs of illness can still shed viruses and parasites, contaminating food and surfaces without anyone realizing the risk.

Who Gets Infected More Easily

Anyone can get a stomach infection, but some groups face higher risk. Children and older adults are more vulnerable because their immune defenses are either still developing or declining. People in institutional settings like nursing homes, hospitals, and day care centers are at elevated risk because of close quarters and shared spaces. Travelers visiting regions with less reliable water treatment encounter unfamiliar pathogens their bodies haven’t built resistance to. Military personnel and restaurant patrons round out the high-risk groups, largely due to communal food preparation.

Your individual biology also plays a role. Genetic factors influence susceptibility to norovirus. A trait called “secretor status” affects whether certain sugars appear on the surface of your intestinal cells. These sugars act as docking points for the virus, so people with certain genetic profiles are naturally more resistant to specific norovirus strains. Stomach acid levels matter too: anything that reduces acid production, whether from medication or an underlying condition, lowers one of your body’s first defenses against swallowed pathogens.

Reducing Your Risk

Handwashing with soap and water is the single most effective prevention measure, especially after using the bathroom, before preparing food, and after contact with someone who is sick. During active outbreaks, soap and water is preferred over hand sanitizer, though ethanol-based sanitizers (60 to 95 percent concentration) are the next best option when washing isn’t possible.

In the kitchen, keep raw meat separate from ready-to-eat foods, cook poultry thoroughly, and wash cutting boards and utensils after they touch raw meat. Anyone with stomach infection symptoms should stay away from food preparation for at least 48 hours after symptoms resolve. The same 48-hour rule applies in healthcare and food service settings.

Surfaces in your home need extra attention when someone is sick. Toilets, faucets, door handles, and shared electronics should be cleaned frequently. For disinfection, a solution of one-quarter cup of household bleach in one gallon of water is effective against most stomach pathogens. Avoid sharing towels, and wash contaminated laundry and bedding in hot water promptly.

When traveling, stick to bottled or treated water, avoid ice of uncertain origin, and be cautious with raw produce that may have been washed in local water. In recreational water settings, avoid swallowing pool or lake water, particularly if young children are present.