There is no medicine that kills a stomach virus. The infection runs its course in one to three days for most adults, and treatment focuses entirely on managing symptoms and staying hydrated. The most useful over-the-counter options target diarrhea, nausea, fever, and fluid loss, but some carry important safety restrictions depending on your age and symptoms.
Over-the-Counter Medicines for Diarrhea
Two OTC medications are commonly used for diarrhea caused by a stomach virus: loperamide (sold as Imodium) and bismuth subsalicylate (sold as Pepto-Bismol or Kaopectate). Loperamide slows down gut movement, reducing the frequency of watery stools. Bismuth subsalicylate coats the stomach lining and reduces inflammation in the intestines, which can also help with nausea.
Both come with situations where you should not use them. If you have bloody diarrhea or a high fever, skip the anti-diarrheal medications entirely. These symptoms suggest a bacterial or parasitic infection rather than a simple virus, and slowing your gut in that scenario can trap harmful bacteria inside. The FDA specifically warns against loperamide in cases of bloody stools with fever. If your diarrhea hasn’t improved within 48 hours of taking loperamide, stop using it.
Bismuth subsalicylate should not be given to children under 12. It contains a compound related to aspirin, and children are more sensitive to its effects, particularly when they already have a fever or are losing fluids from vomiting and diarrhea. In children or teenagers with flu-like illness, this compound carries a risk of Reye’s syndrome, a rare but serious condition affecting the brain and liver. Loperamide is also not recommended for children under 2, and should be used cautiously in young children because dehydration can make its effects unpredictable.
Managing Fever and Body Aches
Acetaminophen (Tylenol) is generally the safer choice for fever and pain during a stomach virus. Ibuprofen (Advil, Motrin) and other anti-inflammatory painkillers can irritate an already inflamed stomach lining and make nausea worse. If your stomach is already churning, adding ibuprofen on top often backfires.
Use acetaminophen carefully, though, especially in children. It can stress the liver, so stick to the recommended dose on the label. Never give aspirin to children or teenagers during a viral illness because of the Reye’s syndrome risk.
Prescription Options for Severe Vomiting
When vomiting is so persistent that you cannot keep any fluids down, a doctor may prescribe an anti-nausea medication. The most commonly prescribed one for gastroenteritis works by blocking signals in the brain that trigger the vomiting reflex. Multiple clinical trials have found it cuts the risk of needing IV fluids by more than 50% compared to a placebo, and it reduces the chance of continued vomiting by roughly 60%. This is particularly useful in children, where dehydration from relentless vomiting can escalate quickly.
You won’t find a prescription anti-nausea drug over the counter, so if you or your child cannot hold down even small sips of liquid for several hours, that’s the point to call a doctor or visit urgent care.
Why Rehydration Matters More Than Medicine
The biggest risk from a stomach virus isn’t the virus itself. It’s the fluid and electrolyte loss from vomiting and diarrhea. Replacing what you lose is more important than any medication you take.
Plain water alone isn’t ideal because it doesn’t replace the sodium and potassium your body is losing. Oral rehydration solutions (like Pedialyte or store-brand equivalents) are specifically formulated with a balance of sodium, glucose, and potassium that helps your intestines absorb fluid efficiently. The WHO-recommended formula contains equal concentrations of sodium and glucose at 75 milliequivalents per liter, which is why these medical-grade solutions work better than sports drinks or juice, both of which contain too much sugar and not enough sodium.
For adults who aren’t severely dehydrated, broth, diluted sports drinks, and oral rehydration solutions all help. Take small, frequent sips rather than large gulps, especially if you’re still vomiting. Starting with a tablespoon every few minutes and gradually increasing is easier on your stomach than drinking a full glass at once.
Probiotics for Shorter Illness
Probiotics won’t stop vomiting or diarrhea immediately, but evidence suggests they can shorten how long the illness lasts. A large Cochrane review of clinical trials found that probiotics reduced the average duration of diarrhea by about 30 hours. The effect was even more pronounced in children with rotavirus, where probiotics cut diarrhea duration by roughly 38 hours compared to no treatment.
The strains with the most evidence behind them are Lactobacillus rhamnosus GG and Saccharomyces boulardii (a beneficial yeast). In trials, Saccharomyces boulardii reduced the risk of diarrhea lasting four or more days by nearly 60%. You can find both in supplement form at most pharmacies. Starting them early in the illness appears to offer the most benefit.
Ginger for Nausea
Ginger has a long history as a nausea remedy, and there is some clinical support for it. Studies on nausea from various causes have found that doses of up to 1 gram per day, taken for at least four days, significantly reduced acute vomiting. The evidence for reducing nausea (as opposed to vomiting) is weaker and less consistent. Ginger capsules, ginger tea, or even ginger chews may take the edge off mild queasiness, but they are unlikely to stop severe vomiting on their own.
What Children Can Safely Take
The medicine options narrow considerably for kids. Most OTC anti-diarrheal and anti-nausea medications are either unsafe or not recommended for young children. Loperamide should not be given to children under 2. Bismuth subsalicylate is off-limits for anyone under 12. Aspirin is off-limits for all children and teens during viral illness.
For children, the priority is fluid replacement. Oral rehydration solutions designed for kids are the first-line treatment. If a child can tolerate small sips, offer them frequently. If vomiting makes that impossible, a doctor can prescribe a dissolvable anti-nausea tablet to break the cycle and allow oral fluids to stay down. Acetaminophen can be used for fever at age-appropriate doses, but confirm with the label or a pharmacist for the correct amount based on your child’s weight.
Signs You Need More Than Home Treatment
Most stomach viruses resolve on their own, but certain symptoms signal that home remedies and OTC medicines aren’t enough. For adults, seek medical care if you can’t keep liquids down for 24 hours, have been vomiting or having diarrhea for more than two days, notice blood in your vomit or stool, have severe stomach pain, or run a fever above 104°F. Signs of dehydration that warrant a call include very dark urine, little to no urination, dizziness, and extreme thirst.
For babies, a dry mouth, crying without tears, no wet diaper for six hours, or a sunken soft spot on the head are urgent signs. For older children, watch for bloody diarrhea, a fever of 102°F or higher, unusual sleepiness, or signs they’re not drinking and urinating at their normal rate.

