What Do Doctors Prescribe for a Stomach Virus?

Most doctors don’t prescribe medication for a stomach virus. Viral gastroenteritis is a self-limiting illness, meaning it resolves on its own, typically within one to three days. The core of treatment is replacing lost fluids and electrolytes. Antibiotics don’t work against viruses and can actually cause harm if used unnecessarily. That said, doctors do sometimes prescribe specific medications to manage severe symptoms, particularly uncontrollable vomiting or dehydration risk.

Fluids Are the Main Treatment

The single most important thing a doctor will recommend for a stomach virus is oral rehydration. This isn’t just water. When you’re losing fluids through vomiting and diarrhea, you’re also losing sodium, potassium, and other electrolytes your body needs to function. Plain water doesn’t replace those, and drinking large amounts of water alone can actually dilute what electrolytes you have left.

Oral rehydration solutions (sold as Pedialyte, DripDrop, or generic store brands) contain a specific balance of sodium, glucose, and potassium that helps your intestines absorb fluid more effectively. The European pediatric guidelines recommend solutions with about 60 milliequivalents per liter of sodium and 80 to 110 millimoles per liter of glucose. That ratio matters because sodium and glucose work together to pull water across the intestinal lining. Sports drinks like Gatorade have too much sugar and too little sodium to be ideal, though they’re better than nothing in a pinch.

For mild to moderate dehydration, doctors recommend drinking small, frequent sips rather than gulping large amounts, which can trigger more vomiting. For children, the CDC recommends 2 to 4 ounces of oral rehydration solution after each episode of vomiting or diarrhea for kids under about 22 pounds, and 4 to 8 ounces for larger children. Breastfeeding should continue even during rehydration.

When Doctors Prescribe Anti-Nausea Medication

If vomiting is so severe that you can’t keep fluids down, a doctor may prescribe ondansetron (brand name Zofran). This medication blocks a specific receptor in the brain and gut that triggers the vomiting reflex. It’s available as a tablet, a liquid, or a dissolving tablet that melts on the tongue, which is especially useful when swallowing pills feels impossible.

Ondansetron was originally developed for chemotherapy-related nausea, but doctors frequently prescribe it off-label for stomach viruses. In children, studies show that a single dose can significantly increase the chance of successful oral rehydration and reduce the need for IV fluids or hospitalization. It’s one of the few anti-nausea medications considered safe enough for pediatric use in gastroenteritis. Other anti-nausea drugs like promethazine, metoclopramide, and dimenhydrinate are generally not recommended for children because of side effects including drowsiness, involuntary muscle movements, and lack of strong evidence that they work for this condition.

Over-the-Counter Options for Diarrhea

For adults with watery diarrhea (not bloody), doctors may suggest over-the-counter anti-diarrheal medications like loperamide (Imodium) or bismuth subsalicylate (Pepto-Bismol). Loperamide slows down intestinal movement, giving your body more time to absorb water from stool. Bismuth subsalicylate has a mild anti-inflammatory effect on the gut lining and can also reduce nausea.

These come with important caveats. Neither is recommended for infants or young children. Loperamide in particular carries risks in pediatric patients, including severe abdominal distension, drowsiness, and in rare cases has been linked to fatal complications in young children. Bismuth subsalicylate contains a compound related to aspirin, raising concerns about salicylate absorption in children.

You should also avoid these medications entirely if you have a high fever (above about 102°F) or bloody diarrhea. Those symptoms suggest a bacterial or parasitic infection rather than a virus, and slowing down your gut in that situation can make things worse by keeping the pathogen trapped inside longer.

How Doctors Rule Out Something More Serious

A stomach virus is diagnosed based on symptoms, not lab tests. Most clinics and emergency departments don’t have rapid tests for the viruses that cause gastroenteritis. Instead, doctors look at the overall picture: watery diarrhea, nausea, vomiting, mild fever, and stomach cramps that came on relatively quickly.

Certain red flags point away from a simple virus and toward bacterial infections, parasites, or other abdominal conditions like appendicitis. A fever above 102.2°F (39°C), blood in the stool, severe or localized abdominal pain, and prolonged vomiting all warrant further investigation. In those cases, doctors may order stool cultures to check for bacteria like Salmonella, E. coli, Shigella, or Campylobacter, or test for parasites like Giardia. Bacterial and parasitic infections sometimes require targeted antibiotics or antiparasitic drugs, which is a very different treatment path from a stomach virus.

When IV Fluids Become Necessary

Severe dehydration is a medical emergency, and it’s the main reason people with a stomach virus end up in the hospital. Signs include very dark urine or no urine output, dizziness when standing, rapid heartbeat, sunken eyes, and in children, no tears when crying or unusual irritability. If someone reaches this point, oral rehydration won’t be fast enough.

In the emergency room, treatment involves intravenous fluids to rapidly restore blood volume and electrolyte balance. Young children, older adults, and people with weakened immune systems are at highest risk for reaching this stage. For most otherwise healthy adults, severe dehydration from a stomach virus is uncommon if fluid intake starts early.

The Role of Probiotics

Probiotics are sometimes discussed as a way to shorten a stomach virus, though the evidence is mixed. A systematic review found that probiotics may reduce the duration of acute diarrhea in children by roughly 14% to 26%, depending on the study. That could mean shaving several hours to half a day off symptoms. The data in adults is less robust, and the effect size appears smaller.

If you want to try probiotics during or after a stomach virus, yogurt with live cultures or over-the-counter supplements containing Lactobacillus strains are the most commonly studied. They’re unlikely to cause harm, but they’re not a substitute for proper rehydration.

What Recovery Looks Like

Most stomach viruses caused by norovirus last one to three days. Rotavirus, more common in young children, can stretch to about a week. During recovery, your gut lining is still healing even after the vomiting and diarrhea stop. Bland, easy-to-digest foods like rice, toast, bananas, and broth are easier on your system in the first day or two after symptoms resolve. Dairy and fatty or spicy foods can be harder to tolerate temporarily because the virus disrupts the enzymes on your intestinal surface.

The practical takeaway: a stomach virus rarely requires a prescription. The treatment that matters most is consistent, small-volume fluid and electrolyte replacement starting as early as possible. Anti-nausea medication like ondansetron is the one prescription that makes a real difference for people who can’t keep anything down, and it’s worth asking about if vomiting is relentless.