Is Bacterial Gastroenteritis Contagious? Yes — Here’s How

Yes, bacterial gastroenteritis is contagious. The bacteria that cause it can spread from person to person through direct contact, shared surfaces, and contaminated food or water. How easily it spreads depends on the specific bacteria involved, but all forms carry some risk of transmission to the people around you.

How It Spreads

Bacterial gastroenteritis travels primarily through what’s called the fecal-oral route. That sounds unpleasant, but in practice it’s simpler than it seems: bacteria leave an infected person’s body through stool (or vomit), end up on hands or surfaces, and eventually reach another person’s mouth. This can happen through a handshake, a shared towel, a doorknob, or food prepared by someone who didn’t wash their hands thoroughly.

The specific transmission route varies by bacteria. Shigella spreads most readily from person to person and is a common cause of outbreaks in daycare centers and households. Salmonella and Campylobacter are more often picked up from undercooked poultry, unpasteurized milk, or contaminated eggs, though they can also pass between people. Salmonella can even be transmitted through contact with reptiles, birds, or amphibians. E. coli and several other bacteria spread through both close contact with an infected person and contaminated food or water.

Bacteria like E. coli and Salmonella can survive on hard surfaces such as doorknobs, keyboards, and tables for up to two hours. That’s a meaningful window, especially in a busy household or workplace where multiple people are touching the same objects.

When You’re Most Contagious

You’re most contagious while you have active symptoms, particularly diarrhea and vomiting. The risk doesn’t disappear the moment you start feeling better, though. Your body continues shedding bacteria through stool for roughly two days after symptoms resolve, which means you can still pass the infection to others even when you feel fine.

Before symptoms appear, there’s a gap between the moment you pick up the bacteria and when you actually get sick. For Salmonella, this incubation period ranges from 6 hours to 6 days, with most people developing diarrhea, fever, and stomach cramps within 8 to 72 hours of exposure. During this window, you may not realize you’re infected, but your body could already be carrying enough bacteria to spread to others, especially if hand hygiene is inconsistent.

When It’s Safe to Return to Work or School

CDC guidance for schools says students and staff can return once vomiting has resolved overnight and they can hold down food and liquids in the morning. For diarrhea, bowel movements should have improved to no more than two above the person’s normal frequency in a 24-hour period, with no accidents. Bloody diarrhea warrants evaluation by a healthcare provider before returning.

Beyond these minimums, the person should be well enough to get through the day without extra care. For adults deciding when to go back to work, the same principles apply: wait until symptoms have clearly resolved and you can manage a normal routine. Keep in mind those two extra days of bacterial shedding after symptoms stop. Even if you feel ready to return, careful hand hygiene during that period is essential to avoid spreading the infection.

How to Prevent Spreading It

Handwashing is the single most effective tool against person-to-person transmission. The CDC recommends wetting your hands with clean running water, lathering with soap (including the backs of your hands, between fingers, and under nails), scrubbing for at least 20 seconds, rinsing thoroughly, and drying with a clean towel. When soap and water aren’t available, a hand sanitizer with at least 60% alcohol is a reasonable substitute.

The key moments to wash are after using the toilet, after changing diapers, before and after preparing food, before eating, and before and after caring for someone who’s sick with vomiting or diarrhea. If someone in your household has bacterial gastroenteritis, these handwashing moments become critical for everyone in the home, not just the person who’s ill.

A few other practical steps reduce transmission in a household setting:

  • Separate towels and linens. Give the sick person their own hand towel and washcloth, and launder them separately.
  • Clean shared surfaces frequently. Wipe down bathroom fixtures, doorknobs, and light switches regularly while someone is symptomatic and for a couple of days after.
  • Keep food preparation separate. The infected person should avoid preparing food for others until at least 48 hours after symptoms stop.
  • Don’t share utensils or cups. This sounds obvious, but in family settings it’s easy to overlook.

Food-Related vs. Person-to-Person Spread

It’s worth understanding the distinction between picking up bacterial gastroenteritis from contaminated food and catching it from another person, because the prevention strategies differ. Foodborne cases, which account for a large share of Salmonella and Campylobacter infections, come from undercooked meat, raw eggs, unpasteurized dairy, or cross-contamination during meal prep. You prevent these by cooking poultry to proper temperatures, refrigerating food promptly, and keeping raw meat away from other ingredients.

Person-to-person spread, which is especially common with Shigella, happens through the direct contact and surface contamination described above. In outbreaks at schools, nursing homes, or within families, this is the dominant pathway. Both routes lead to the same illness, but recognizing how you were likely exposed helps you protect others. If your gastroenteritis came from a restaurant meal, your household members aren’t necessarily at risk from the same source. But once you’re infected, you can spread it to them through everyday contact if hygiene slips.