
A sudden bout of watery stool can leave you wondering: Was it something you ate, a stomach virus, or something that needs treatment? Infectious diarrhea is diarrhea caused by a virus, bacterium, or parasite. It often spreads through contaminated food or water, dirty hands, or close contact with someone who’s infected.
Most mild cases improve without prescription treatment. But dehydration, bloody stools, and certain medical conditions change the picture. Knowing how to replace lost fluids—and when to get medical help—is more useful than trying to identify the germ from symptoms alone.
What causes infectious diarrhea?
Say you develop diarrhea after a family gathering, while someone else gets sick after camping. The symptoms may overlap, but the likely sources and treatment can differ.
Infectious diarrhea usually involves one of these groups:
- Viruses: Norovirus spreads easily in households, restaurants, schools, and care facilities. Vomiting often accompanies diarrhea. Rotavirus is another cause, particularly in infants and young children; vaccination helps prevent severe illness.
- Bacteria: Campylobacter, Salmonella, and diarrhea-causing strains of E. coli can spread through contaminated food or water. Some cause fever, severe cramps, or bloody stools.
- Parasites: Giardia and Cryptosporidium can spread through contaminated water, including recreational water. Symptoms may last longer than a typical viral illness.
Not every episode of loose stool is infectious. Medication effects, food intolerances, and inflammatory bowel disease can look similar.
The Infectious Diseases Society of America guideline by Shane and colleagues (2017) recommends using symptoms, exposure history, and medical risk factors to guide testing—not assuming that all diarrhea has the same cause.
At Shuksan Health Care, an independent health-information site covering men’s health, hormones, nutrition, and infections, this article explains how to manage symptoms safely and recognize when infection needs medical care.
Your first practical step: note when symptoms started, recent travel, unusual meals, sick contacts, and recent antibiotic use. That information can help a clinician narrow the possibilities.
Start with oral rehydration solution
Say you’ve had several watery stools and feel thirsty, weak, or lightheaded. Your immediate problem may be fluid and electrolyte loss rather than the infection itself.
Oral rehydration solution, or ORS, replaces water and salts lost through diarrhea. Its balance of glucose and sodium helps your intestine absorb fluid even while diarrhea continues.
Shane and colleagues’ 2017 IDSA guideline recommends reduced-osmolarity ORS as first-line treatment for mild to moderate dehydration in children and adults with acute diarrhea.
Choose a product labeled “oral rehydration solution” or “oral rehydration salts.” Mix powder with exactly the amount of safe water listed on the packet. Making it stronger or weaker changes the balance that makes it effective.
If you’re nauseated, take small, frequent sips rather than drinking a large glass at once. After vomiting, pause briefly and restart slowly. Keep replacing losses while loose stools continue.
Water can help during a mild illness, especially if you’re eating. But sports drinks, soda, and undiluted juice aren’t equivalent to ORS; very sugary drinks may worsen diarrhea.
If you have kidney disease, heart failure, or a prescribed fluid restriction, ask your clinician about an appropriate rehydration plan. Severe dehydration may require intravenous fluids.
What can you eat while you recover?
Say your vomiting has eased, but you’re afraid that eating will trigger another urgent bathroom trip. You generally don’t need to fast until the diarrhea stops.
The 2017 IDSA guideline by Shane and colleagues recommends returning to an age-appropriate usual diet during or immediately after rehydration. Food supplies energy and nutrients while your body recovers.
Start with smaller portions of foods you tolerate. Rice, oatmeal, potatoes, soup, toast, eggs, or lean chicken are reasonable options. A restrictive “BRAT” diet—bananas, rice, applesauce, and toast—isn’t necessary and offers limited nutrition if followed for long.
Let symptoms guide you. Greasy meals, alcohol, and large amounts of caffeine may make you feel worse. Temporary difficulty digesting lactose can follow intestinal infection, so reducing milk may help if it clearly increases cramps or loose stools.
Don’t force a full meal. Fluids come first.
For infants and children, continue breastfeeding and ask a pediatric clinician about feeding and rehydration. Adult advice about medications or fluid amounts shouldn’t be applied automatically to a child.
When diarrhea needs medical attention
Say you’re making frequent bathroom trips and now feel dizzy whenever you stand. Or you notice blood in the toilet. Those symptoms deserve more than another day of waiting.
Seek urgent medical care for:
- Very little urine, fainting, confusion, or marked weakness.
- Inability to keep fluids down.
- Bloody stools or black, tarry stools.
- Severe or worsening abdominal pain.
- High fever, especially with significant weakness or bloody diarrhea.
These signs can indicate substantial dehydration, invasive infection, or another condition that isn’t routine gastroenteritis. The 2017 IDSA guideline by Shane and colleagues recommends stool testing when diarrhea occurs with fever, bloody or mucus-containing stools, severe abdominal tenderness, or signs of sepsis—a dangerous response to infection.
Contact a clinician sooner if you’re pregnant, older or frail, immunocompromised, or caring for a young child with diarrhea. Persistent symptoms also need assessment, particularly after travel or untreated-water exposure.
Mention recent antibiotics or a hospital stay. These can raise concern for Clostridioides difficile, a bacterial infection requiring a different approach. Our guide to antibiotic side effects explains why new diarrhea during or after treatment shouldn’t always be dismissed as a minor reaction.
When are antibiotics used for infectious diarrhea?
Say someone offers you leftover antibiotics because your diarrhea “must be bacterial.” Taking them without an assessment can create problems—and may offer no benefit.
Antibiotics don’t treat viral diarrhea. Most uncomplicated acute watery diarrhea also doesn’t require an antibiotic. Rehydration is usually the priority.
For bacterial illness, treatment depends on the organism, severity, and your medical risks. A clinician may prescribe antibiotics for selected severe infections or for people at higher risk of complications. Parasites may require a specific antiparasitic medicine rather than an ordinary antibiotic.
The 2017 IDSA guideline by Shane and colleagues generally advises against empiric antibiotics—treatment started before the cause is known—for acute watery diarrhea without recent international travel, with exceptions for certain high-risk patients.
There’s an especially important caution with Shiga toxin–producing E. coli, or STEC. Some infections can cause hemolytic uremic syndrome, a complication involving kidney injury and damage to blood cells. The IDSA guideline recommends avoiding antibiotics for certain STEC infections because treatment may increase harm.
So bloody diarrhea isn’t a reason to self-start antibiotics. It’s a reason to get assessed.
If treatment is prescribed, follow the instructions and don’t share or save doses. Unnecessary use also contributes to antibiotic resistance.
Can you take medicine to stop diarrhea?
Say you need relief before a long drive and are considering loperamide. It may reduce bathroom trips, but it doesn’t cure the infection or replace rehydration.
According to Shane and colleagues’ 2017 IDSA guideline, loperamide may be used in immunocompetent adults with acute watery diarrhea. It should be avoided with fever or inflammatory diarrhea, where slowing the bowel can increase risks.
A practical rule: don’t use loperamide for bloody diarrhea, fever, or suspected C. difficile unless a clinician specifically directs you to. Don’t give it to a child without medical guidance. Follow the package directions; excessive doses can cause dangerous heart problems.
Bismuth subsalicylate may help some adults, but it isn’t appropriate for everyone. Check with a pharmacist if you take blood thinners, have an aspirin allergy, are pregnant, or have kidney disease.
Probiotics aren’t a dependable substitute. The Cochrane review by Collinson and colleagues (2020) found no clear benefit in its most reliable analyses of acute infectious diarrhea. Prioritize fluids rather than spending money on a supplement expecting a quick cure.
Rehydration and hygiene are your best first steps
Say you’re feeling better but share a bathroom and prepare meals for your household. Recovery doesn’t immediately mean you can’t spread the infection.
Wash your hands with soap and water after using the toilet and before handling food. For norovirus, hand sanitizer alone isn’t a reliable substitute. Clean contaminated surfaces promptly using a product labeled effective against norovirus, and follow its directions.
The CDC norovirus guideline by Hall and colleagues (2011) recommends excluding ill food handlers for at least 48 hours after symptoms resolve. Healthcare and childcare workplaces may have additional rules.
Avoid swallowing pool or lake water, use safe drinking water when traveling, and keep raw meat separate from ready-to-eat food. Our infection prevention guide covers habits that reduce transmission.
For most mild infectious diarrhea, ORS, tolerated food, and rest are enough. But blood, severe pain, dehydration, or worsening illness call for medical assessment—not stronger self-treatment.
Frequently asked questions
What causes infectious diarrhea?
Infectious diarrhea is caused by viruses, bacteria, or parasites, including norovirus, Salmonella, and Giardia. These germs can spread through contaminated food or water, dirty hands, or close contact with an infected person.
What is the best treatment for infectious diarrhea?
Replacing lost fluids and salts is the first priority, and oral rehydration solution is recommended for mild to moderate dehydration. Most mild cases improve without prescription treatment, but severe dehydration may require intravenous fluids.
Do you need antibiotics for infectious diarrhea?
Antibiotics do not treat viral diarrhea and are usually unnecessary for uncomplicated acute watery diarrhea. A clinician may prescribe them for selected bacterial infections, but they should be avoided in certain Shiga toxin–producing E. coli infections because they may increase harm.
When should you get medical help for infectious diarrhea?
Seek urgent care for bloody or black, tarry stools, severe abdominal pain, inability to keep fluids down, or signs of dehydration such as very little urine, fainting, or confusion. High fever with significant weakness also needs urgent assessment, and young children, pregnant people, older or frail adults, and immunocompromised people should contact a clinician sooner.