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.

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 the United States
The CDC recommends routine rotavirus vaccination for infants, starting at 2 months of age (2 or 3 doses depending on the vaccine). Most health insurance plans and the Vaccines for Children program cover it. Food-borne outbreaks and many enteric infections are reportable to state and local health departments.
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
- U.S. National Library of Medicine. MeSH: Gastroenteritis. meshb.nlm.nih.gov
- CDC: About norovirus. cdc.gov/norovirus/index.html
- NIDDK: Viral gastroenteritis (stomach flu). niddk.nih.gov/health-information/digestive-diseases/viral-gastroenteritis
- NHS: Diarrhoea and vomiting. nhs.uk/conditions/diarrhoea-and-vomiting/
- IDSA: 2017 clinical practice guidelines for the diagnosis and management of infectious diarrhea (Clin Infect Dis). doi.org/10.1093/cid/cix669