[Durgical](https://durgical.com/en/) › [DurgiPedia](https://durgical.com/en/durgipedia/) › [Microbiology](https://durgical.com/en/microbiology/) › [General microbiology](https://durgical.com/en/microbiology/general/) › Laboratory diagnosis of viral infections

# Laboratory diagnosis of viral infections

- Laboratory diagnosis

Viruses are found by their genes, their proteins or the [antibodies](https://durgical.com/en/biochemistry/enzymes/immunoglobulins/) they trigger; timing decides which test works.

Updated Nov 16, 2026

## Key points

- PCR of CSF is the test of choice for [HSV encephalitis](https://durgical.com/en/conditions/viral-encephalitis/) and enteroviral meningitis.
- [Dengue](https://durgical.com/en/conditions/dengue/) in the first week: [RT-PCR](https://durgical.com/en/biochemistry/topics/polymerase-chain-reaction/) or NS1 plus IgM; after day 7: IgM.
- Viral load (HIV, HBV, HCV) monitors treatment response; it is not a screening test.
- Anti-HBs alone means vaccination; anti-HBs with anti-HBc means past infection with immunity.
- [Congenital CMV](https://durgical.com/en/conditions/congenital-infections-syphilis-toxoplasmosis-cmv-and-zika/): newborn saliva or urine PCR within three weeks of birth.

## What it is

Viruses cannot be grown on ordinary bacterial media and are invisible to light microscopy, so the lab detects their nucleic acid, their antigens or the patient's antibody response. Molecular tests are now the method of choice for most viral infections, while serology dates the infection and shows immunity. Choosing the right sample at the right moment of illness matters more than for most bacteria.

## How to think about it

Viral diagnosis runs on a clock. In the first days of illness the virus itself is in the sample, so the lab looks for its genes or proteins; as the immune system answers, IgM and then IgG appear while the virus fades. So the right question is not only which test but which day of illness: the same patient can be NAAT-positive and antibody-negative on day 2, and the reverse on day 10. Chronic infections (HIV, hepatitis B and C) break the clock because the virus stays, which is why they are followed by viral load.

## Key facts

- Most viruses are shed most in the first days of illness: swab early from the affected site (nasopharynx, vesicle base, throat, stool, CSF, blood).
- Swabs for viruses go in viral transport medium and are kept cold until processed.
- Dengue: RT-PCR or NS1 plus IgM in days 0 to 7; IgM is the main test after day 7; a single IgG does not diagnose acute dengue.
- HIV: nucleic acid tests detect infection earliest, then antigen/antibody tests, then antibody-only tests; each has its own window period.
- Congenital CMV is confirmed by testing the newborn's saliva or urine within the first three weeks of life.
- Hepatitis B serology reads [a pattern](https://durgical.com/en/conditions/a-and-v-pattern-strabismus/): HBsAg (infection), anti-HBc IgM (acute), anti-HBs (immunity), HBeAg and DNA (replication).

## Step by step

- Infection: the virus replicates at the entry site, often before any symptom.
- First days of illness: shedding and viraemia peak, so NAAT and antigen tests (dengue NS1, HBsAg, p24) are most likely positive.
- Later in the first week IgM appears; testing for virus plus IgM covers the gap (dengue days 0 to 7).
- Virus and antigen fade from blood and secretions, and IgM becomes the main marker (dengue after day 7).
- IgG rises and persists for years: alone it marks past infection or immunity, not current illness.
- Paired acute and convalescent sera showing a clear IgG rise confirm a recent infection when IgM is unclear.

## Tools for viral diagnosis

| Method | Detects | Examples | Note |
| --- | --- | --- | --- |
| [NAAT (PCR, RT-PCR)](https://durgical.com/en/conditions/viral-meningitis/) | Viral DNA or RNA | [Influenza](https://durgical.com/en/conditions/influenza/), [SARS-CoV-2](https://durgical.com/en/microbiology/sars-cov-2/), HSV or enterovirus in CSF, dengue in the first week | Method of choice for most acute infections |
| [Quantitative viral load](https://durgical.com/en/conditions/hiv-infection-and-aids/) | Amount of viral genome in blood | HIV, hepatitis B, hepatitis C, CMV after transplant | Monitors treatment and predicts disease progression |
| [Antigen detection](https://durgical.com/en/conditions/dengue/) | Viral proteins | Dengue NS1, influenza and SARS-CoV-2 rapid tests, [rotavirus](https://durgical.com/en/microbiology/rotavirus/), HBsAg, HIV p24 | Fast; usually less sensitive than NAAT |
| [Serology (IgM, IgG, avidity)](https://durgical.com/en/conditions/viral-hepatitis/) | The patient's antibodies | Hepatitis A IgM, [measles](https://durgical.com/en/conditions/measles/) IgM, hepatitis B markers, rubella immunity | Dates infection and shows immunity; timing is crucial |
| Viral culture | Cytopathic effect in cell lines | Reference work, isolates for typing or antiviral resistance | Slow and largely replaced by NAAT |
| [Cytology and histopathology](https://durgical.com/en/conditions/genital-herpes/) | Inclusions and giant cells | Multinucleated giant cells in herpes lesions; owl's-eye inclusions of CMV | Suggestive but insensitive |

## Common traps

- **A positive IgG means the infection is happening now**: IgG marks past infection or immunity, so acute illness needs IgM, the virus itself, or a rising IgG titre in paired sera.
- **A negative dengue IgM on day 2 rules out dengue**: antibodies have not appeared yet, so in the first days the virus is sought with RT-PCR or NS1.
- **An HIV antibody test shows whether treatment is working**: antibodies stay positive for life, so response is followed by viral load, which is not a screening test.
- **Anti-HBs always means the person once had hepatitis B**: anti-HBs alone means vaccination, and only with anti-HBc does it mean past infection with immunity.
- **A positive CMV [urine test](https://durgical.com/en/biochemistry/topics/urinalysis/) at any age in infancy proves congenital infection**: after the first three weeks the virus may have been acquired during or after birth.

## Memory aid

Early genes, middle antigens, late antibodies: in the first days look for the virus, later look for the body's reply.

## Test yourself

Think of the answer, then tap the question to see it.

## A patient in Cali has had fever for two days and suspected dengue; dengue IgM is negative. Why is dengue still possible and what should be sent?

IgM usually appears later in the first week, so early on the virus is sought directly with RT-PCR or NS1, ideally together with IgM.

## An adult has fever, confusion and temporal lobe changes on imaging. Which CSF test is preferred, and why not viral culture?

PCR for HSV DNA in CSF: it is fast and sensitive, while CSF viral culture is rarely positive in HSV encephalitis.

## Serology shows HBsAg negative, anti-HBc positive and anti-HBs positive. What does this pattern mean?

Past hepatitis B infection that has resolved, with immunity; vaccination alone would give anti-HBs without anti-HBc.

## A 5-week-old infant with hearing loss has a positive urine CMV PCR. Why does this not confirm congenital CMV?

After three weeks of life the virus may have been acquired during or after birth; congenital infection is confirmed only by testing in the first three weeks.

## A person with HIV started treatment months ago. Which test shows that treatment works, and why not repeat the antibody test?

Quantitative viral load: it measures the amount of virus, whereas antibodies remain positive for life whatever the treatment does.

[Add to my cards (5)](https://durgical.app/estudiar/?add=/en/microbiology/general/laboratory-diagnosis-of-viral-infections/)

## Connections

## Related 4

- [Growing and measuring viruses](https://durgical.com/en/microbiology/general/growing-and-measuring-viruses/)
- [Molecular diagnosis of infection](https://durgical.com/en/microbiology/general/molecular-diagnosis-of-infection/)
- [Antigen tests and serology for infection](https://durgical.com/en/microbiology/general/antigen-tests-and-serology-for-infection/)
- [Virus structure and classification](https://durgical.com/en/microbiology/general/virus-structure-and-classification/)

## Microorganisms 13

- [Human immunodeficiency virus](https://durgical.com/en/microbiology/human-immunodeficiency-virus/)
- [Dengue virus](https://durgical.com/en/microbiology/dengue-virus/)
- [Influenza virus](https://durgical.com/en/microbiology/influenza-virus/)
- [SARS-CoV-2](https://durgical.com/en/microbiology/sars-cov-2/)
- [Cytomegalovirus](https://durgical.com/en/microbiology/cytomegalovirus/)
- [Herpes simplex virus 1](https://durgical.com/en/microbiology/herpes-simplex-virus-1/)
- [Herpes simplex virus 2](https://durgical.com/en/microbiology/herpes-simplex-virus-2/)
- [Hepatitis B virus](https://durgical.com/en/microbiology/hepatitis-b-virus/)
- [Hepatitis C virus](https://durgical.com/en/microbiology/hepatitis-c-virus/)
- [Measles virus](https://durgical.com/en/microbiology/measles-virus/)
- [Rotavirus](https://durgical.com/en/microbiology/rotavirus/)
- [Enteroviruses](https://durgical.com/en/microbiology/enteroviruses/)

## See all 13

- [Epstein–Barr virus](https://durgical.com/en/microbiology/epstein-barr-virus/)

## Related conditions 9

- [Dengue](https://durgical.com/en/conditions/dengue/)
- [HIV infection and AIDS](https://durgical.com/en/conditions/hiv-infection-and-aids/)
- [Influenza (flu)](https://durgical.com/en/conditions/influenza/)
- [COVID-19](https://durgical.com/en/conditions/covid-19/)
- [Cytomegalovirus infection](https://durgical.com/en/conditions/cytomegalovirus-infection/)
- [Viral hepatitis](https://durgical.com/en/conditions/viral-hepatitis/)
- [Viral (aseptic) meningitis](https://durgical.com/en/conditions/viral-meningitis/)
- [Genital herpes (herpes simplex infection)](https://durgical.com/en/conditions/genital-herpes/)
- [Congenital (TORCH) infections: syphilis, toxoplasmosis, CMV and Zika](https://durgical.com/en/conditions/congenital-infections-syphilis-toxoplasmosis-cmv-and-zika/)

[← General microbiology](https://durgical.com/en/microbiology/general/)

Educational content on microorganisms; not a treatment guide and no substitute for a health professional's advice. No doses are given.

Sources: [Clinical Testing Guidance for Dengue](https://www.cdc.gov/dengue/hcp/diagnosis-testing/index.html) (CDC, 2024); [Getting Tested for HIV](https://www.cdc.gov/hiv/testing/index.html) (CDC, 2024); [Cytomegalovirus (CMV) Tests](https://medlineplus.gov/lab-tests/cytomegalovirus-cmv-tests/) (MedlinePlus (NLM), 2025); [Respiratory Pathogens Panel](https://medlineplus.gov/lab-tests/respiratory-pathogens-panel/) (MedlinePlus (NLM), 2025).

## **Spotted a mistake?** We are always improving for the community. Tell us what is wrong and our team will review it. Report a mistake

Representative model, for educational purposes only.

---
Source: https://durgical.com/en/microbiology/general/laboratory-diagnosis-of-viral-infections/
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Cite as: DurgiPedia (durgical.com), https://durgical.com/en/microbiology/general/laboratory-diagnosis-of-viral-infections/
