Viral infections
Viral infections are illnesses caused by viruses, tiny germs that multiply inside your cells, ranging from colds and stomach bugs to flu, COVID-19, hepatitis and HIV.

Overview
A viral infection is an illness caused by a virus. Doctors also call this group virus diseases. Viruses are much smaller than bacteria. They are not able to live or multiply on their own. Instead, a virus gets into the cells of your body and uses them like a factory to make copies of itself. Those new copies then spread to other cells or to other people.
Viral infections are the most common illnesses people get. Most adults catch a few colds every year, and children catch even more. Many viral infections are mild and clear up on their own in a few days to a couple of weeks as your immune system (the body's defence against germs) fights them off. Others can be serious, last a long time or stay in the body for life.
An important point: antibiotics do not work against viruses. Antibiotics only treat infections caused by bacteria. For most viral infections, treatment means easing symptoms while your body recovers. For some viruses, there are special antiviral medicines, and for many there are vaccines that help prevent infection.
This page is an overview of the whole group. Each type of viral infection has its own signs, tests and treatment, and we have separate pages on many of them.
Main types
Viruses can affect almost any part of the body. Doctors group viral infections in several ways: by the part of the body affected, by how they spread or by the type of virus. Common groups include:
- Breathing (respiratory) infections: the common cold, flu (influenza), COVID-19, RSV (respiratory syncytial virus), viral pneumonia (infection of the small air sacs in the lungs) and viral bronchiolitis, an infection of the small airways that mostly affects babies.
- Stomach and gut infections: viral gastroenteritis, often called stomach flu, caused by viruses such as norovirus and rotavirus.
- Skin infections (viral skin diseases): such as chickenpox, shingles, cold sores, warts and measles rash.
- Liver infections: viral hepatitis, which is swelling of the liver caused by hepatitis A, B, C, D or E viruses.
- Eye infections (viral eye infections): such as viral pink eye (conjunctivitis).
- Brain and nerve infections (central nervous system viral diseases): such as viral meningitis and encephalitis (swelling of the brain).
- Sexually transmitted infections: such as HIV, genital herpes and HPV (human papillomavirus).
- Infections spread by insects (arbovirus infections): spread by mosquitoes or ticks, such as West Nile virus, dengue and Zika.
- Infections from animals (viral zoonoses): such as rabies.
Scientists also sort viruses by their genetic material, into DNA viruses (such as herpes viruses and HPV) and RNA viruses (such as flu, measles and the virus that causes COVID-19). Some viruses, such as HPV and hepatitis B, can raise the risk of certain cancers over many years. These are sometimes called tumour viruses. When a virus is found in the blood, doctors call this viremia.
Symptoms
Symptoms depend on which virus you have and which part of the body it affects. Some people have no symptoms at all but can still pass the virus on. Common symptoms shared by many viral infections include:
- Fever and chills
- Tiredness and feeling generally unwell
- Aching muscles and joints
- Headache
- Runny or stuffy nose, sneezing, sore throat and cough
- Nausea, vomiting or diarrhea
- A rash
- Swollen glands (lymph nodes) in the neck, armpits or groin
Some viral infections cause few signs at first. Hepatitis B, hepatitis C and HIV, for example, may cause no symptoms for years while still harming the body. That is why testing is important for people at risk.
Causes and how they spread
Viral infections are caused by catching a virus from another person, an animal, an insect, or something contaminated with the virus. Common ways viruses spread include:
- Through the air: tiny droplets and particles released when someone coughs, sneezes, talks or breathes.
- By touch: touching an infected person or a surface with the virus on it, then touching your eyes, nose or mouth.
- Through food and water: eating or drinking something contaminated, often because of poor handwashing.
- Through blood and body fluids: sexual contact, sharing needles, or from a parent to a baby during pregnancy, birth or breastfeeding.
- Through bites: from mosquitoes, ticks or infected animals.
Some viruses, such as the ones that cause chickenpox and cold sores, stay hidden in your body after the first infection. They can wake up again later, for example as shingles or a new cold sore.
Risk factors
Anyone can get a viral infection. Your chance of catching one, or of getting very sick, is higher if you:
- Are a baby, a young child or an older adult
- Are pregnant
- Have a weakened immune system, for example from cancer treatment, an organ transplant, untreated HIV or medicines that dampen the immune system
- Have a long-term condition such as heart disease, lung disease (like asthma or COPD), diabetes or kidney disease
- Are not up to date with your vaccines
- Live or work in crowded places, such as childcare centres, schools, care homes or hospitals
- Have unprotected sex or share needles
- Travel to areas where certain viruses are common
Diagnosis
For common mild infections such as a cold, your doctor or nurse can usually tell what is going on from your symptoms and a physical exam. No tests are needed.
When knowing the exact virus would change your care, they may suggest tests such as:
- Swab tests: a swab from your nose or throat to check for flu, COVID-19 or RSV. Some of these can be done at home.
- Blood tests: to look for the virus itself or for antibodies, which are proteins your immune system makes against a germ. Blood tests are used for HIV and hepatitis, among others.
- Other samples: such as fluid from a blister, a stool sample, urine, or fluid from around the spine (a lumbar puncture) if the brain or nerves may be infected.
- Imaging: such as a chest X-ray if pneumonia is suspected.
Tests can also help tell a viral infection apart from a bacterial one, so you get the right treatment.
Treatment
Easing symptoms
Most viral infections get better on their own. The aim of treatment is to help you feel more comfortable while your immune system clears the virus. Your care team may suggest:
- Rest and plenty of fluids
- Medicines for fever and pain, such as acetaminophen (also called paracetamol) or ibuprofen
- Saline (salt water) nose sprays or rinses for a stuffy nose
- Oral rehydration solution if you have vomiting or diarrhea
Do not give aspirin to children or teenagers with a viral illness. It has been linked to a rare but serious condition called Reye's syndrome. Ask a pharmacist before giving any cold or cough medicine to young children.
Antiviral medicines
Antivirals do not work against all viruses, but they can help for some. They usually work best when started early. Examples include:
- Flu: oseltamivir, which stops the flu virus from spreading in the body.
- COVID-19: nirmatrelvir with ritonavir (tablets) or remdesivir (given into a vein), which block the virus from copying itself. These are mainly for people at higher risk of severe illness.
- Herpes viruses (cold sores, genital herpes, shingles, chickenpox): acyclovir or valacyclovir.
- HIV: a combination of medicines called antiretroviral therapy. Taken every day, it keeps the virus under control so people can live long, healthy lives.
- Hepatitis B and C: medicines that control hepatitis B, and short courses of treatment that cure most people with hepatitis C.
Why not antibiotics?
Antibiotics kill bacteria, not viruses. Taking them for a cold or flu will not help you get better faster. It can cause side effects and helps create antibiotic resistance, where bacteria stop responding to antibiotics. Your doctor may still prescribe an antibiotic if a bacterial infection develops on top of a viral one, such as some ear infections or pneumonia.
Self-care and recovery
- Rest as much as you need to. Your body uses energy to fight the infection.
- Drink enough fluids that your urine is pale yellow. Sip small amounts often if you feel sick.
- Stay home from work, school or childcare while you have a fever or are vomiting, to avoid spreading the virus. Follow local advice about when it is safe to return.
- Cover coughs and sneezes with a tissue or your elbow, and wash your hands often.
- Take any antiviral medicine exactly as prescribed, and finish the course.
- A cough can last a few weeks after a cold or flu. Tiredness may also linger. Ease back into your normal activities.
Complications
Most people recover fully, but some viral infections can lead to problems such as:
- Dehydration, especially in babies and older adults with vomiting and diarrhea
- Pneumonia, either from the virus itself or from bacteria that take advantage of the weakened lungs
- Worsening of long-term conditions, such as asthma, COPD or heart failure
- Brain or nerve problems, such as meningitis or encephalitis, which are rare
- Long-term liver damage from hepatitis B or C, including scarring (cirrhosis) and liver cancer
- Damage to the immune system from untreated HIV
- Certain cancers years later, such as cervical cancer linked to HPV
- Lasting symptoms after some infections, such as long COVID
- Problems in pregnancy, as some viruses, like rubella and Zika, can harm an unborn baby
Outlook
The outlook depends on the virus and on your general health. Most common viral infections, like colds and stomach bugs, go away within days to a couple of weeks with no lasting effects. After some infections, such as measles or chickenpox, you are usually protected from catching that virus again, although the chickenpox virus can later come back as shingles. Long-term infections such as HIV and hepatitis B can be well controlled with treatment, and most people with hepatitis C can now be cured. Getting diagnosed and treated early makes a big difference.
Prevention
You can lower your risk of catching or spreading viral infections:
- Get vaccinated. Vaccines protect against many viruses, including measles, mumps, rubella, chickenpox, polio, flu, COVID-19, hepatitis A and B, HPV, rotavirus and, for some groups, RSV and shingles. Ask your care team which vaccines are right for you and your family.
- Wash your hands often with soap and water, especially before eating and after using the toilet. Use hand sanitizer when soap is not available.
- Stay home when sick and keep your distance from others who are sick.
- Prepare food safely and drink clean water.
- Practise safer sex with condoms, and get tested for sexually transmitted infections. Medicines taken before exposure (PrEP) can prevent HIV in people at higher risk.
- Never share needles, razors or toothbrushes.
- Protect yourself from bites with insect repellent and long sleeves, and check for ticks after time outdoors. Avoid touching wild animals.
- Plan for travel by asking about vaccines and precautions several weeks before you go.
In the United States
In the USA, the Centers for Disease Control and Prevention (CDC) and its Advisory Committee on Immunization Practices (ACIP) set vaccine schedules. The Vaccines for Children program covers recommended vaccines for eligible children, and most insurance plans cover routine vaccines. Many viral infections are nationally notifiable and reported through state and local health departments.
When to get medical help
See a doctor or nurse, or call a health advice line, if:
- Your symptoms last more than 10 days or get worse after starting to improve
- You have a fever for more than 3 days
- You are pregnant, have a weakened immune system or a long-term health condition and catch flu, COVID-19 or another infection
- A baby under 3 months has a fever of 38°C (100.4°F) or higher
- You have a painful blistering rash, especially near your eye
- You think you may have been exposed to HIV, hepatitis or rabies. Some treatments work best if started within hours to days.
Go to the emergency department or call emergency services if you or someone you care for:
- Has trouble breathing, or lips or face turning blue or grey
- Has chest pain or pressure that does not go away
- Is confused, very drowsy or hard to wake
- Has a severe headache with a stiff neck, or a seizure
- Has a rash that does not fade when you press a glass against it
- Shows signs of dehydration, such as no urine for many hours, a very dry mouth or, in a baby, no wet diapers and a sunken soft spot
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Virus Diseases. meshb.nlm.nih.gov
- MedlinePlus: Viral Infections. medlineplus.gov/viralinfections.html
- CDC: Antibiotic Prescribing and Use. cdc.gov/antibiotic-use/index.html
- WHO: Vaccines and immunization. who.int/health-topics/vaccines-and-immunization