For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Gastroenteritis (stomach flu)

Gastroenteritis is inflammation of the stomach and intestines, most often from a virus or bacteria, causing diarrhea, vomiting, stomach cramps and sometimes fever.

Clinician view: includes diagnostic criteria, management and safety detail.

Overview

Gastroenteritis is inflammation (irritation and swelling) of the lining of your stomach and intestines. Many people call it the "stomach flu" or a "stomach bug", although it has nothing to do with influenza, the virus that causes the flu. The main signs are diarrhea (loose, watery stools), vomiting, and stomach cramps.

Most cases are caused by an infection, usually a virus. In most healthy adults and children, gastroenteritis gets better on its own within a few days. The biggest risk is dehydration, which means your body loses more water and salts than you take in. Babies, young children, older adults, pregnant people and people with long-term health problems are more likely to become dehydrated and need extra care.

In medicine, the word gastroenteritis can also be used broadly for inflammation anywhere in the digestive tract, from the esophagus (food pipe) to the rectum. This page focuses on the common, short-lived infectious kind, and briefly explains the related conditions at the end.

Symptoms

Symptoms usually start anywhere from a few hours to a few days after you are exposed to the germ, depending on the cause. They often include:

  • Watery diarrhea, sometimes many times a day
  • Nausea (feeling sick to your stomach) and vomiting
  • Cramping or pain in your belly
  • Mild fever and chills
  • Headache, aching muscles and tiredness
  • Loss of appetite

Vomiting usually settles within 1 to 2 days. Diarrhea often lasts a few days and can take up to a week or so to settle fully.

Signs of dehydration

  • Feeling very thirsty, with a dry mouth and lips
  • Peeing less often, or dark yellow urine
  • Feeling dizzy or light-headed, especially when you stand up
  • Unusual tiredness, weakness or confusion
  • In babies: fewer wet diapers, no tears when crying, a sunken soft spot on the head, or being unusually sleepy or floppy

Causes

Viruses (most common)

  • Norovirus is the leading cause in adults and in outbreaks in schools, care homes, hospitals and cruise ships. It spreads very easily.
  • Rotavirus used to be the most common cause of severe diarrhea in babies and young children. Vaccination has made it much less common where the vaccine is used.
  • Other viruses include adenovirus, astrovirus and sapovirus.

Bacteria

Bacteria such as Campylobacter, Salmonella, Shigella and some types of E. coli are often spread through undercooked meat or eggs, unpasteurized milk, unwashed produce, or water that is not safe to drink. Clostridioides difficile (C. diff) can cause diarrhea after taking antibiotics.

Parasites

Parasites such as Giardia and Cryptosporidium can come from untreated water in lakes, streams or swimming pools. They tend to cause diarrhea that lasts longer.

How it spreads

The germs leave the body in stool and vomit. You can catch them by touching a contaminated surface and then your mouth, by close contact with someone who is sick, or by eating food or drinking water that contains the germ.

Risk factors

Anyone can get gastroenteritis. You are more likely to catch it, or to become seriously ill, if you:

  • Are a baby, a young child or an older adult
  • Live or work in a child care centre, school, long-term care home or hospital
  • Travel to places where clean water and sanitation are limited
  • Have a weakened immune system, for example from cancer treatment, HIV or medicines that suppress the immune system
  • Take medicines that lower stomach acid, or have recently taken antibiotics
  • Are pregnant (some food-borne germs, such as Listeria, are a particular risk in pregnancy)

Diagnosis

Most of the time, a doctor or nurse can diagnose gastroenteritis from your symptoms and a physical exam. They will check for signs of dehydration, such as your heart rate, blood pressure, and how moist your mouth is. In babies and children they also check weight, alertness and how often they are peeing.

Tests are usually not needed. Your clinician may suggest tests if:

  • There is blood in your stool
  • You have a high fever or are very unwell
  • Diarrhea lasts more than about a week
  • You recently took antibiotics, were in hospital, or travelled abroad
  • You have a weakened immune system
  • There is an outbreak that public health needs to track

Tests may include a stool sample to look for bacteria, viruses or parasites, and blood tests to check your salt levels and kidney function if you are dehydrated.

Treatment

There is no medicine that cures viral gastroenteritis. Treatment focuses on replacing lost fluids and salts while your body clears the infection.

Fluids first

  • Oral rehydration solution (ORS) is the best drink when you have a lot of diarrhea or vomiting. It contains the right balance of water, sugar and salts. You can buy it at a pharmacy without a prescription.
  • Take small, frequent sips, such as a spoonful or a mouthful every few minutes, if you are vomiting. Slowly increase the amount as you feel better.
  • Keep breastfeeding babies. Formula-fed babies can usually keep having their usual formula, with extra ORS between feeds.
  • Avoid very sugary drinks such as undiluted fruit juice and pop (soda), and energy drinks. They can make diarrhea worse.

Eating

Start eating again as soon as you feel able. There is no need to follow a strict diet. Plain foods such as rice, toast, crackers, bananas, soup, yogurt and cooked vegetables are often easiest at first.

Medicines

  • Ondansetron is an anti-nausea medicine. A clinician may give it to children or adults who cannot keep fluids down, so that drinking becomes possible.
  • Loperamide can slow diarrhea in adults. Do not use it if you have blood in your stool or a high fever, and do not give it to young children unless a clinician tells you to.
  • Bismuth subsalicylate may ease mild symptoms in adults. It is not for children or teenagers because it is related to aspirin.
  • Acetaminophen (paracetamol) can help with fever and aches.
  • Antibiotics do not work against viruses and are usually not needed. They may be used for certain bacterial or parasite infections, for travellers with severe diarrhea, or for people at high risk. Examples include azithromycin and erythromycin (for some Campylobacter infections) and metronidazole (for Giardia). For some types of E. coli, antibiotics can do harm, so only take them if your clinician prescribes them.

In hospital

If you or your child are badly dehydrated or cannot keep any fluids down, you may need fluids through a thin tube into the stomach (nasogastric tube) or into a vein (IV fluids).

Self-care and stopping the spread

  • Rest, and keep sipping fluids even if you do not feel thirsty.
  • Wash your hands well with soap and water after using the toilet, changing diapers, and before preparing food. Alcohol hand gel does not work well against norovirus.
  • Clean surfaces touched by vomit or stool with a bleach-based household cleaner, and wash soiled clothes and bedding on a hot cycle.
  • Do not prepare food for others while you are sick and for at least 2 days after symptoms stop.
  • Stay home from work, school or child care until at least 48 hours after your last episode of diarrhea or vomiting.
  • Avoid swimming pools for 2 weeks after diarrhea stops, as some germs can survive chlorine.

Complications

  • Dehydration is the most common complication. Severe dehydration can lead to kidney problems, low blood pressure and, rarely, death.
  • Salt imbalances in the blood, such as low potassium or sodium.
  • Hemolytic uremic syndrome (HUS) is a rare but serious problem that can follow infection with certain types of E. coli. It damages red blood cells and the kidneys, mostly in young children.
  • Ongoing bowel symptoms. Some people have loose stools, bloating or trouble digesting milk sugar (lactose) for a few weeks afterward. A small number develop irritable bowel syndrome.
  • Rarely, after Campylobacter infection, a nerve condition called Guillain-Barré syndrome or a type of joint inflammation called reactive arthritis.

Outlook

Most people feel better within 1 to 3 days and are back to normal within about a week. Children usually recover fully. You can catch gastroenteritis again, because there are many different germs and immunity to viruses like norovirus does not last long.

Prevention

  • Handwashing with soap and water is the most important step.
  • Rotavirus vaccine is given by mouth to babies in the first months of life. It protects well against severe rotavirus illness.
  • Food safety: cook meat, poultry and eggs thoroughly; keep raw meat apart from ready-to-eat foods; refrigerate leftovers promptly; and wash fruits and vegetables.
  • Avoid unpasteurized (raw) milk and juice.
  • When travelling, drink bottled or treated water and eat food that is freshly cooked and served hot.
  • Ask your health care provider about typhoid and cholera vaccines if you are travelling to higher-risk areas.

Related conditions

In its broader medical sense, gastroenteritis includes many types of inflammation in the digestive tract. Some have their own pages:

  • Esophagitis: inflammation of the esophagus, often from acid reflux.
  • Gastritis: inflammation of the stomach lining.
  • Enteritis, colitis and enterocolitis: inflammation of the small intestine, the large intestine (colon), or both.
  • Dysentery: infectious diarrhea with blood or mucus.
  • Inflammatory bowel diseases: long-term conditions such as Crohn's disease and ulcerative colitis.
  • Proctitis: inflammation of the rectum.
  • Appendicitis and diverticular disease, which can also cause belly pain and change in bowel habits.
  • Mucositis: soreness of the lining of the gut, often from cancer treatment.

Diarrhea that lasts more than a few weeks, or keeps coming back, is not typical of infectious gastroenteritis and should be checked by a clinician.

In Canada

Rotavirus vaccine is part of the routine publicly funded infant immunization schedule in all provinces and territories. Many provinces and territories offer a free nurse advice line by dialling 811. Outbreaks and certain infections, such as Salmonella, Shigella, Campylobacter and STEC, are reported to local public health units.

Assessment and diagnosis

Acute gastroenteritis is a clinical diagnosis: diarrhea (3 or more loose stools in 24 hours), with or without vomiting, lasting under 14 days. Viral causes predominate (norovirus in all ages; rotavirus in unvaccinated young children). The key task is assessing dehydration: capillary refill, skin turgor, mucous membranes, respiratory pattern, mental status, urine output, and weight change in children. Validated tools include the Clinical Dehydration Scale and the WHO no/some/severe classification.

Stool testing is not routine. Per IDSA 2017 guidance, test (preferably culture-independent multiplex panels with reflex culture for public health) in bloody diarrhea, fever with systemic toxicity, severe or prolonged illness (over 7 days), immunocompromise, outbreaks, or high-risk occupations such as food handling. Test for C. difficile with recent antibiotics or healthcare exposure, and for parasites when diarrhea persists or there is relevant water or travel exposure. Check electrolytes, creatinine and glucose in moderate-severe dehydration. In bloody diarrhea test for Shiga toxin-producing E. coli (STEC) and monitor CBC and creatinine for HUS.

Management

  • Rehydration: low-osmolarity ORS is first line for mild-moderate dehydration in all ages. For moderate dehydration in children, give about 50 to 100 mL/kg over 3 to 4 hours, plus replacement of ongoing losses. Nasogastric ORS is an effective alternative to IV. Reserve IV isotonic crystalloid for severe dehydration, shock, altered consciousness, ileus or ORS failure.
  • Continue breastfeeding and resume age-appropriate diet early; routine lactose-free formula is not required.
  • Antiemetics: a single oral dose of ondansetron (about 0.15 mg/kg) in children over 6 months with vomiting improves ORS success and reduces IV use and admission. Consider QT prolongation risk.
  • Antimotility agents: loperamide may be used in immunocompetent adults with non-bloody watery diarrhea; avoid in children, bloody diarrhea, fever or suspected STEC/C. difficile.
  • Antimicrobials are not indicated for most cases. Consider empiric therapy (azithromycin preferred given fluoroquinolone resistance in Campylobacter) in infants under 3 months with suspected bacterial cause, immunocompromise, severe febrile dysentery, or moderate-severe travellers' diarrhea. Erythromycin is an alternative macrolide for Campylobacter. Avoid antibiotics in STEC infection because of HUS risk.
  • Zinc supplementation reduces duration in children in low- and middle-income settings (WHO); evidence in high-income settings is limited.

Red flags and prognosis

Red flags: severe dehydration or shock, bilious or bloody vomiting, peritoneal signs, severe localized abdominal pain (consider appendicitis, intussusception, obstruction), bloody diarrhea, toxic appearance, neck stiffness or non-blanching rash, and age under 3 months. Vomiting without diarrhea warrants consideration of alternative diagnoses such as DKA, raised intracranial pressure, UTI or surgical abdomen. Prognosis is excellent in most; most illness resolves within 7 days. Post-infectious IBS, transient lactose intolerance, reactive arthritis and Guillain-Barré syndrome (after Campylobacter) are recognized sequelae. Notify public health of reportable pathogens and outbreaks per local requirements.

When to get medical help

See a doctor or nurse, or call a nurse advice line, if:

  • You have signs of dehydration that do not improve with drinking
  • Vomiting lasts more than 1 to 2 days, or diarrhea lasts more than about a week (or more than a few days in a young child)
  • You have a fever of 38.5°C (101.3°F) or higher, or a baby under 3 months has any fever of 38°C (100.4°F) or higher
  • You recently took antibiotics, were in hospital, or travelled abroad
  • You are pregnant, older, or have a long-term condition such as diabetes, kidney disease or a weakened immune system

Go to the emergency department or call emergency services if:

  • There is blood in your stool or vomit, or vomit is green or looks like coffee grounds
  • You have severe or constant belly pain, especially if it is in one spot
  • You cannot keep any fluids down for several hours
  • You have signs of severe dehydration: very little or no urine for 8 hours or more, fainting, a fast heartbeat, or confusion
  • A baby or child is very sleepy, floppy, hard to wake, has no wet diapers for 6 to 8 hours, or has a stiff neck or a rash that does not fade when pressed

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Gastroenteritis. meshb.nlm.nih.gov
  2. CDC: About norovirus. cdc.gov/norovirus/index.html
  3. NIDDK: Viral gastroenteritis (stomach flu). niddk.nih.gov/health-information/digestive-diseases/viral-gastroenteritis
  4. NHS: Diarrhoea and vomiting. nhs.uk/conditions/diarrhoea-and-vomiting/
  5. IDSA: 2017 clinical practice guidelines for the diagnosis and management of infectious diarrhea (Clin Infect Dis). doi.org/10.1093/cid/cix669