Child Vomiting With a Stomach Bug: When Ondansetron Helps, How Oral Rehydration Works and Which Dehydration Signs Matter

👶 A child who wakes at night and vomits again and again is one of the most stressful things a parent can face. In most cases the cause is a stomach bug (viral gastroenteritis), and the real danger is not the vomiting itself but the fluid the child loses with it. 🔍 The good news is that most children can be kept safely at home with small, steady sips of oral rehydration solution, and that one dose of ondansetron, given by a doctor at the right moment, often breaks the cycle of vomiting so that drinking can start. Below: how to judge dehydration, how to give fluids, where ondansetron fits and which signs need a doctor today.
🦠 Why a stomach bug makes children vomit so hard
🔬 Viruses that cause gastroenteritis infect the cells lining the stomach and small intestine. The damaged lining releases serotonin and other signals that travel along the vagus nerve to the vomiting centre in the brainstem. In small children this reflex is very sensitive, so vomiting often comes suddenly, forcefully and many times in the first hours. Diarrhea usually follows within a day, as the inflamed gut absorbs less water. 📖 For more on the adult side of the same illness and the medicines used for loose stools, see acute diarrhea: when your digestive system needs fast support.
💡 This chain explains why ondansetron works in a stomach bug: it blocks the serotonin signal at the 5-HT3 receptors in the gut and the brainstem.
🔎 Which germs are usually behind it
🧫 Since rotavirus vaccines became part of routine infant schedules in many countries, norovirus has become the leading cause of stomach bugs in children. 📖 A short overview of the winter vomiting bug is in what is norovirus.
| 🦠 Cause | 📋 Typical picture | ⏳ Usual length |
|---|---|---|
| Norovirus | Sudden vomiting, then watery diarrhea; outbreaks in nurseries and schools | 1 to 3 days |
| Rotavirus | Mainly unvaccinated infants; fever, vomiting, heavy diarrhea | 3 to 8 days |
| Adenovirus | Milder vomiting, longer diarrhea, sometimes with a cold | Up to 1 to 2 weeks |
| Food poisoning toxins | Vomiting within hours of a shared meal, several people ill | Under 24 hours |
| Bacteria and parasites | Blood or mucus in stool, high fever, travel, farm animals | Variable; may need a stool test |
📅 The usual course of the first days
Sudden, repeated vomiting; child refuses drinks
Vomiting slows; diarrhea begins
Vomiting usually stops; appetite returns slowly
Loose stools fade; energy comes back
💧 Why young children dehydrate faster than adults
👶 A toddler has a much larger surface area for its weight than an adult, turns over a bigger share of its body water every day, and cannot pour itself a drink. A few hours of vomiting and diarrhea can therefore drain a small child far more quickly than it would drain a parent, especially when fever adds extra water loss through the skin and breath.
⚠️ Babies under 6 months and children with both heavy vomiting and diarrhea need a lower threshold for calling a doctor.
🚦 Dehydration signs, from mild to severe
👁️ Doctors judge dehydration from several signs together, not from one. A child who is alert, playing between bouts and still passing urine is rarely in danger, even if the night was rough.
| 🔎 Sign | 🟢 Little or none | 🟠 Some | 🔴 Severe |
|---|---|---|---|
| Behaviour | Alert, plays between bouts | Irritable, tired, less interested | Very sleepy, floppy, hard to wake |
| Mouth and tears | Moist mouth, tears when crying | Dry lips and tongue, few tears | Very dry mouth, no tears |
| Eyes | Normal | Slightly sunken | Deeply sunken |
| Urine | Normal wet nappies | Fewer, darker | None for many hours |
| Skin and hands | Warm, pink | Normal or slightly cool | Cold, pale or mottled |
| Breathing and pulse | Normal | May be a little fast | Fast breathing, fast weak pulse |
🚨 Any sign in the right-hand column means the child needs urgent medical care, not more attempts at home.
📝 Simple checks you can do at home
🧂 Oral rehydration: why it works
🧪 Oral rehydration solution (ORS) contains water, glucose and salts in a carefully balanced ratio. The gut absorbs sodium together with glucose through a transport system that keeps working even when the lining is inflamed, and water follows the sodium into the body. That is why ORS rehydrates children when plain water, juice or soda fails.
🏪 Ready-made ORS sachets and drinks are sold in pharmacies. Mix sachets exactly as written on the pack: too little water makes the drink too salty, too much makes it weaker. Chilled ORS or ORS ice lollies are often accepted better.
🥄 Giving fluids spoon by spoon
💡 The most common mistake is letting a thirsty child gulp a full cup, which fills the stomach and triggers another vomit. Small amounts given often stay down far better than large amounts given rarely.
🤱 Breastfed babies should keep breastfeeding, ideally with shorter, more frequent feeds, and can have ORS between feeds. Formula-fed babies usually go back to their normal formula, at normal strength, once they keep fluids down.
📏 How much fluid a child needs
🧮 Doctors work out fluid amounts from body weight. For mild to moderate dehydration, a common target is about 50 mL of ORS for every kilogram of body weight over 4 hours, plus extra to replace each new loss. The numbers below are general guides used in clinics; a doctor may set a different plan for your child.
🥤 Drinks that help and drinks that do not
🍞 When and how to restart food
🍌 Strict banana, rice, apple and toast diets are no longer advised. Early return to a normal, age-appropriate diet helps the gut lining recover and shortens the illness; long restrictive diets only add weight loss.
💊 Where ondansetron fits
🏥 Ondansetron is the anti-sickness medicine most often used for children with gastroenteritis in emergency departments and clinics. A single dose, given when the child cannot keep fluids down, often stops the vomiting long enough for ORS to work. Studies in children with stomach bugs have shown that one dose reduces further vomiting, makes oral rehydration more successful, and lowers the number of children who need a drip or a hospital stay.
📖 Ondansetron is sold under the brand Zofran and as generics. Zofran (Ondansetron) comes in 4 mg and 8 mg tablets. The tablet strengths suit teenagers and adults; younger children need a dose chosen by weight, often from a dissolving tablet or oral liquid, and only on medical advice.
💡 Ondansetron is a helper, not the treatment. The treatment for a stomach bug is fluid. The medicine simply gives the child a quiet window in which to drink.
⚖️ What ondansetron does and does not do
📋 Ondansetron doses used in children
🩺 In emergency departments, a single oral dose is usually chosen by weight band for children aged 6 months and older. The table shows commonly used single doses for gastroenteritis; it is not a home dosing chart, and the decision to give ondansetron should come from a doctor who has seen the child.
| ⚖️ Body weight | 💊 Usual single oral dose | 📝 Note |
|---|---|---|
| 8 to 15 kg | 2 mg | Liquid or dissolving tablet |
| 15 to 30 kg | 4 mg | Dissolving tablet or liquid |
| Over 30 kg | 4 to 8 mg | Tablet strengths fit this group |
| Under 6 months or under 8 kg | Not used routinely | Needs direct medical assessment |
🕒 In most cases one dose is enough. Repeated doses at home over several days are not the usual approach for a stomach bug, because ongoing vomiting after the first day is itself a reason to look for another cause.
⏱️ Timing the dose and the drinks
Dissolving tablet placed on the tongue
Let the medicine start to act
5 mL of ORS every 1 to 2 minutes
Larger sips over the next hours
Wet nappy, alertness, tears
🔁 If the child vomits within about 15 minutes of a dissolving tablet, a doctor may advise repeating it; after that, most of the dose has usually been absorbed. Never give a second dose on your own without advice, and always note the time the first dose was given.
🫀 Side effects and the heart rhythm question
📋 A single dose of ondansetron is well tolerated by most children. The side effects seen most often are headache, tiredness, constipation in some and a slight increase in loose stools in others. The main safety concern is a change in the heart rhythm called QT prolongation, which is mostly seen with high intravenous doses, in people with an inherited long QT syndrome, or when the blood potassium or magnesium is low.
🫀 Tell the doctor before ondansetron is given if the child:
🔹 Has a known heart rhythm problem, or a family history of long QT syndrome or sudden unexplained death at a young age.
🔹 Has fainted during exercise or excitement. 📖 More on this symptom: syncope or fainting in children.
🔹 Takes other regular medicines, especially for the heart, mood, ADHD or epilepsy.
🔹 Has had a serious allergic reaction to ondansetron or a similar medicine before.
🚫 When ondansetron is not the right choice
| 🚫 Situation | 📝 Why |
|---|---|
| Congenital long QT syndrome | Risk of a dangerous heart rhythm |
| Taking apomorphine | Severe drop in blood pressure; combination is contraindicated |
| Green or bloody vomit, swollen belly | Possible blockage; masking the vomiting delays diagnosis |
| Head injury, severe headache, stiff neck | Vomiting is a warning sign that must be assessed, not suppressed |
| Signs of severe dehydration | Needs fluids into a vein or by tube, not just a tablet |
| Several QT-prolonging medicines already | Added effect on the heart rhythm |
💊 Why other anti-sickness medicines are avoided in young children
⚠️ Several older anti-sickness medicines work well in adults but carry risks that make them a poor fit for a toddler with a stomach bug. The main worry is acute dystonia: sudden muscle spasms of the neck, face and eyes, which children are more prone to than adults. Others cause drowsiness that can hide worsening dehydration.
🚗 These medicines still have a place in adults, and dimenhydrinate suits car sickness. For a young child with a stomach bug, ondansetron and ORS remain the usual combination. 📖 Travel sickness in children and adults is covered in the motion sickness survival guide.
🚽 Diarrhea medicines and children
⛔ Loperamide slows the movement of the gut and reduces stool frequency in adults. In young children with gastroenteritis it is not recommended, because it can cause severe drowsiness, a dangerous paralysis of the bowel and, rarely, heart rhythm problems. It also hides how much fluid is being lost. In many countries Imodium (Loperamide) is not sold for children under 12 without medical advice.
💡 What does help with diarrhea in children:
🔹 Keeping up with losses using ORS after every watery stool.
🔹 Continuing breast milk, formula and normal food.
🔹 In some parts of the world, a short course of zinc supplements, as advised by local health services.
🔹 Probiotics are widely sold, but recent large trials in children did not show a clear benefit, so they are optional rather than essential.
🧫 When antibiotics are actually needed
🦠 Most stomach bugs are viral, so antibiotics do not help and can make diarrhea worse by upsetting the normal gut bacteria. They are used only when a test or clear clinical picture points to a germ that responds to them.
- 📌 Blood in the stool with high fever: a stool test may find bacteria such as Shigella or Campylobacter
- 📌 Diarrhea lasting more than 2 weeks, with bloating and greasy stools: a test for the parasite Giardia, treated with medicines such as Flagyl (Metronidazole)
- 📌 Recent antibiotic course followed by watery diarrhea: a test for Clostridioides difficile
- 📌 Recent travel to areas with poor sanitation, especially with fever
- 📌 Babies under 3 months, or children with weak immunity, who may be treated sooner
🧪 Blood tests are only needed for children who are very unwell or dehydrated; what to expect is explained in blood tests in children: preparation and parameters.
🧭 Vomiting without diarrhea: think of other causes
🔍 A stomach bug usually brings diarrhea within a day. When a child vomits but has no diarrhea at all, or the vomiting has an unusual pattern, it is wise to think of other causes before reaching for an anti-sickness medicine.
🍼 In babies aged about 2 to 8 weeks, forceful, projectile vomiting after every feed in a baby who stays hungry can be pyloric stenosis, a narrowing at the stomach outlet that needs surgery.
🧑 Teenagers: different causes to keep in mind
💬 Older children and teenagers can describe their symptoms, which helps. Burning pain behind the breastbone with sour regurgitation points to reflux, which may be treated with an acid reducer such as Pepcid (Famotidine) on medical advice. A private, non-judging conversation often brings out causes that would otherwise be missed.
🧼 Stopping the spread at home
🦠 Norovirus is extremely contagious: a tiny number of virus particles is enough to infect another person, and they survive for days on surfaces. Alcohol hand gel works poorly against it, so soap and water are the key.
🗿 Myths about vomiting in children
🚨 When to see a doctor
⛔ Get medical help the same day, or call emergency services, if the child:
🔹 Is very sleepy, floppy, confused or hard to wake.
🔹 Has green or bloody vomit, black or bloody stools, or a swollen, hard belly.
🔹 Has passed no urine for 8 hours or more, or a baby has far fewer wet nappies than usual.
🔹 Cannot keep down even small sips for several hours.
🔹 Has severe belly pain, a stiff neck, a rash that does not fade when pressed, or a severe headache.
🔹 Is under 3 months old with fever, or under 6 months with repeated vomiting.
🔹 Has diabetes, a heart condition or another long-term illness, or vomits after a head injury or after swallowing something.
🔹 Is still vomiting after 24 hours (babies) or 48 hours (older children).
❓ Frequently asked questions
Is ondansetron safe for children?
A single dose is widely used for children from 6 months with gastroenteritis and is well tolerated by most. It should be avoided in children with long QT syndrome and given only on medical advice.
How quickly does ondansetron work in a vomiting child?
It usually starts working within about 30 minutes. Small sips of oral rehydration solution can begin 15 to 30 minutes after the dose.
What should I give my child to drink after vomiting?
Oral rehydration solution from a pharmacy, given 5 mL every 1 to 2 minutes at first. Breastfed babies should keep breastfeeding. Juice, cola and sports drinks are poor choices.
How long does a stomach bug last in children?
Vomiting usually settles within 1 to 2 days, while diarrhea can last 5 to 7 days. Vomiting beyond 24 hours in babies or 48 hours in older children needs a doctor.
How can I tell if my child is dehydrated?
Look for a dry mouth, few or no tears, sunken eyes, fewer wet nappies and unusual tiredness. Very sleepy behaviour, cold mottled skin or no urine for many hours are emergency signs.
Can ondansetron make diarrhea worse?
It can increase loose stools slightly, because fluid that would have been vomited passes through the gut. Extra oral rehydration solution after each stool covers this.
Why are metoclopramide and prochlorperazine not used in young children?
Children are more prone to sudden muscle spasms of the face, neck and eyes with these medicines, and they can cause drowsiness. Ondansetron is preferred for stomach bugs.
Can I give loperamide to a child with diarrhea?
Not to young children with gastroenteritis. It can cause severe drowsiness and bowel paralysis, and hides fluid loss. In many countries it is not sold for under 12s without advice.
When can my child eat again after vomiting?
As soon as fluids stay down, usually after 3 to 4 hours of rehydration. Offer normal food in small portions; strict bland diets are no longer advised.
When can my child go back to school after a stomach bug?
Most guidance advises staying home until 48 hours after the last episode of vomiting or diarrhea, to stop the virus spreading to others.
📑 Sources and editorial
- 📘 Clinical guidelines on the assessment and management of acute gastroenteritis in children
- 🧂 World health guidance on oral rehydration solution and fluid replacement
- 🔬 Randomised trials and reviews of oral ondansetron in children with gastroenteritis
- 💊 Prescribing information for ondansetron, metoclopramide, prochlorperazine, domperidone, dimenhydrinate and loperamide
- ⚠️ Regulatory safety reviews on QT prolongation with ondansetron and on metoclopramide and domperidone use in children
- 🧼 Public health guidance on norovirus control and exclusion from school and nursery
- 📖 Related reading: acute diarrhea, what is norovirus, motion sickness survival guide, fainting in children, blood tests in children
- 🛒 Related products: Zofran (Ondansetron), Dramamine (Dimenhydrinate), Compazine (Prochlorperazine), Motilium (Domperidone), Flagyl (Metronidazole), Pepcid (Famotidine)
- 🩺 RXshop Editorial Team — reviewed by Sarah Mitchell, PharmD — Clinical Pharmacist
Medical Disclaimer: The information in this article is for educational and informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek guidance from a qualified healthcare provider with any questions you may have regarding a medical condition, and before starting, stopping or changing any medication.