Bacterial gastroenteritis is an infection or inflammation of the digestive tract caused by certain bacteria. Symptoms commonly include diarrhea, abdominal cramps, nausea, vomiting and sometimes fever. Some infections cause bloody diarrhea, while others produce watery stools. Bacteria are only one possible cause of gastroenteritis: viruses and parasites can cause similar symptoms, and foodborne illness may also result from toxins rather than an active bacterial infection.

An important point for patients is that most uncomplicated diarrheal illnesses do not require antibiotics. Replacing lost fluids and electrolytes is often the most important treatment. In selected severe or high-risk bacterial infections, antibiotics can be useful. In contrast, antibiotics can increase the risk of serious complications in certain infections, particularly suspected Shiga toxin-producing Escherichia coli (STEC).

What causes bacterial gastroenteritis?

Several bacterial pathogens can cause intestinal illness, often through contaminated food or water or contact with infected people or animals.

Bacterium Common context Important clinical consideration
Campylobacter jejuni and related species Undercooked poultry, untreated water, unpasteurized dairy Most recover without antibiotics; resistance matters
Nontyphoidal Salmonella Poultry, eggs, animal exposure, contaminated foods Antibiotics usually unnecessary for otherwise healthy patients
Shigella Person-to-person fecal–oral transmission, contaminated food or water May cause bloody diarrhea; resistant strains occur
Shiga toxin-producing E. coli (STEC) Contaminated food, animal exposure Antibiotics can increase risk of hemolytic uremic syndrome
Vibrio species Certain seafood or marine-water exposures Severity and treatment depend on species and clinical syndrome
Yersinia enterocolitica Certain food exposures May mimic appendicitis and usually improves without antibiotics

The organisms listed do not account for every case. Typhoid fever caused by Salmonella Typhi is a systemic infection and should not be treated as ordinary self-limited Salmonella gastroenteritis. Likewise, Clostridioides difficile usually occurs in a different clinical context, often associated with recent antibiotic exposure, and has its own diagnostic and treatment recommendations.

How does it spread?

Transmission often occurs through the fecal–oral route, including contaminated hands, foods, drinking water and surfaces. Some pathogens have animal reservoirs. Not washing hands after using the toilet, handling raw foods incorrectly or drinking untreated water can increase risk. Food can become contaminated during production, storage or preparation.

Prevention includes handwashing with soap and water, cooking foods thoroughly, preventing cross-contamination between raw meat and ready-to-eat foods, using safe drinking water and avoiding unpasteurized dairy. People with diarrhea should follow local public health guidance about staying away from food preparation, work or school while infectious.

Symptoms

Possible symptoms include watery or bloody diarrhea, cramps, nausea, vomiting, fever, urgency to pass stool and fatigue. The presence of blood or fever can raise concern for an invasive or inflammatory infection but does not determine the organism by itself. Symptom onset and duration vary with the pathogen; foodborne symptoms appearing soon after a meal can also result from preformed toxins, which should not automatically be treated with antibiotics.

Dehydration is a major concern

Diarrhea and vomiting can cause loss of water and salts. Warning signs include very little urine, marked dizziness, unusually dry mouth, weakness or inability to keep fluids down. Babies, older adults and people with significant illnesses may become dehydrated more quickly.

Seek urgent medical attention for bloody diarrhea with severe illness, signs of dehydration, severe or worsening abdominal pain, confusion, fainting, or persistent high fever. Infants and immunocompromised patients warrant a lower threshold for assessment. Bloody diarrhea accompanied by decreased urination, unusual bruising or marked pallor may signal hemolytic uremic syndrome and requires urgent evaluation.

How is bacterial gastroenteritis diagnosed?

Many mild, short-lived diarrheal illnesses do not require stool testing. A clinician may recommend tests for severe symptoms, bloody stool, fever, prolonged illness, outbreak investigation, recent travel or underlying risk factors.

Stool culture and molecular testing

Stool culture can identify specific organisms and may allow antibiotic susceptibility testing. Molecular panels can identify bacterial DNA or other targets more rapidly but may detect organisms or genetic material that require careful clinical interpretation. In some situations, a positive molecular result should be followed by culture for public health surveillance or susceptibility testing.

IDSA recommends stool testing for selected pathogens, including Salmonella, Shigella, Campylobacter, Yersinia, C. difficile and STEC, in patients with diarrhea accompanied by fever, blood or mucus, severe abdominal pain or tenderness, or signs of sepsis. Exact tests depend on clinical features and local laboratory practice. [1]

Why identifying STEC matters

Shiga toxin-producing E. coli can cause bloody diarrhea and, in some patients, hemolytic uremic syndrome (HUS), a serious condition involving kidney injury, anemia and low platelets. When STEC is possible, identifying the organism or Shiga toxin may directly change treatment decisions. [1,2]

Treatment: fluids first

Oral rehydration solution (ORS) replaces water and electrolytes and is often more effective than plain water alone when losses are substantial. Small, frequent amounts can help during vomiting. A person who cannot drink or has severe dehydration may need intravenous fluids under medical supervision. Continue appropriate food intake as tolerated; infants may continue breastfeeding or age-appropriate feeding under clinical guidance.

Over-the-counter medicines intended to stop diarrhea are not appropriate for everyone. Antimotility agents should not be used with bloody diarrhea or suspected STEC, and should be avoided in certain other inflammatory or febrile diarrheal illnesses unless a healthcare professional advises otherwise. [2]

When are antibiotics used?

The decision depends on the pathogen, severity, risk for invasive disease, recent travel, susceptibility results and patient factors. Antibiotic selection cannot be safely reduced to a universal list of ‘best antibiotics for diarrhea.’ Broad empirical treatment is not routinely recommended for most acute watery diarrhea without recent international travel. [1]

Campylobacter

Most people recover without antibiotics. According to CDC guidance updated in 2026, antibiotics may be used for severe illness or in people at higher risk of complications, such as older adults, pregnant patients and people with impaired immunity. Macrolides, including azithromycin, are sometimes used when treatment is indicated, but resistance and local guidance influence selection. Fluoroquinolone resistance is common in many settings. [3]

Nontyphoidal Salmonella

Most otherwise healthy patients need supportive care, not antibiotics. CDC notes that antibiotics generally do not shorten diarrhea or fever in healthy people and can have downsides. Treatment may be considered for severe or invasive infection and selected patients at risk of invasive disease. This differs from typhoid fever, which requires dedicated assessment and antimicrobial treatment. [4]

Shigella

Antibiotics can be useful in selected confirmed or strongly suspected cases, particularly to shorten illness and reduce shedding, but resistant and extensively drug-resistant Shigella are important concerns. Treatment decisions should consider susceptibility and current public health guidance; severe symptoms need prompt medical assessment.

Shiga toxin-producing E. coli

Do not take antibiotics for suspected or confirmed STEC without specialist direction. CDC advises against antibiotics for STEC because they can increase the chance of HUS. Antimotility drugs also should be avoided in STEC infection. Evaluation and hydration, sometimes with laboratory monitoring for kidney injury and blood abnormalities, are important. [2]

Traveler’s diarrhea

Not every travel-related diarrheal illness is bacterial, and antibiotics are not appropriate for every case. Severity, destination, bacterial resistance and the possibility of invasive disease affect management. Persistent diarrhea may require assessment for parasites or other causes rather than repeated antibiotics.

Antibiotic resistance in intestinal infections

Resistant Campylobacter, Shigella and Salmonella can complicate treatment and make susceptibility testing important in serious cases. Local and travel-associated resistance patterns change over time. A previously effective antibiotic may not be appropriate for a new episode of illness. Unnecessary antibiotics also cause adverse effects and can disturb the gut microbiome.

How long does bacterial gastroenteritis last?

Many uncomplicated infections improve within several days, although duration depends on the pathogen and patient. Persistent symptoms may reflect ongoing infection, postinfectious gastrointestinal symptoms, medication effects or another illness. Prolonged diarrhea, substantial weight loss, recurring fever or blood in stool needs clinical evaluation rather than repeated self-treatment.

Some people experience longer-term effects after specific infections. For example, Campylobacter infection can be associated with reactive arthritis, postinfectious irritable bowel symptoms and, rarely, Guillain–Barré syndrome. These complications are uncommon and require separate medical evaluation. [3]

Antibiotics profiled for this topic

These medicine profiles discuss this infection or resistance pattern. Inclusion is not a treatment recommendation: the right choice depends on diagnosis, testing, local guidance and the individual patient.

Practical questions

Frequently Asked Questions

Is bacterial gastroenteritis the same as food poisoning?

The terms overlap, but ‘food poisoning’ is broad and may involve viruses, bacteria or toxins. Not all gastroenteritis follows food exposure.

Does bloody diarrhea always require antibiotics?

No. Bloody diarrhea calls for medical assessment and appropriate testing. STEC is a particularly important example in which antibiotics can increase harm.

Should I take ciprofloxacin or azithromycin for diarrhea?

Do not self-prescribe antibiotics. The correct approach depends on the organism, severity, resistance, travel history and other factors. Many cases require only fluids.

Can I drink only water to prevent dehydration?

Water is useful, but substantial diarrhea or vomiting also causes electrolyte losses; oral rehydration solution is often preferable. Severe dehydration may require hospital treatment.

Can I use loperamide with bloody diarrhea?

Do not use antimotility medicines when diarrhea is bloody or STEC is suspected unless a qualified clinician specifically directs otherwise.

When should children be assessed?

Seek care promptly for infants with diarrhea, and for children with reduced urination, lethargy, inability to drink, blood in stool, severe pain or fever with concerning illness. Dehydration can develop rapidly.

Key Takeaways

Bacterial gastroenteritis has several possible causes, and treatment is not identical for every pathogen. Hydration is the cornerstone of care. Many infections recover without antibiotics, while serious illness may require stool tests and targeted therapy. STEC deserves special caution because antibiotics may increase the risk of hemolytic uremic syndrome.

References

  1. IDSA. 2017 Clinical Practice Guidelines for the Diagnosis and Management of Infectious Diarrhea. https://www.idsociety.org/practice-guideline/infectious-diarrhea/
  2. CDC. Treatment of E. coli Infection (2024). https://www.cdc.gov/ecoli/treatment/index.html
  3. CDC. Clinical Overview of Campylobacter (updated August 12, 2026). https://www.cdc.gov/campylobacter/hcp/clinical-overview/index.html
  4. CDC. Clinical Overview of Salmonellosis (2024). https://www.cdc.gov/salmonella/hcp/clinical-overview/