med study partner

Articles & Guides › Articles › Infectious Diseases

HIV: virology, diagnosis and antiretroviral therapy

How HIV's genes and life cycle work and where each drug class acts, how the fourth-generation testing algorithm diagnoses infection, including acute infection and infants, how the disease progresses without treatment, and how antiretroviral drugs are combined, what harms they cause, and how they prevent transmission.

Infectious Diseases · 6 min read · Reviewed 2026-11-10

HIV is a retrovirus: it carries its genes as RNA, copies them into DNA and stitches that DNA permanently into the chromosomes of the cells it infects. That last step is why HIV cannot be cured with current drugs, and its error-prone copying enzyme is why it mutates so fast that drugs must be combined. Every step of the life cycle, from attaching to a CD4 cell to cutting new viral proteins, is now a drug target. Modern treatment turns HIV into a manageable chronic infection and, by keeping the virus undetectable, stops sexual transmission.

Key points

  • HIV's gp120 binds CD4 and a coreceptor (CCR5 early, CXCR4 later), gp41 drives fusion, reverse transcriptase copies RNA into DNA, integrase inserts it into the host genome, and protease cuts new viral proteins.
  • Reverse transcriptase has no proofreading, so HIV mutates quickly; combination therapy prevents resistance.
  • The fourth-generation test detects antibodies plus p24 antigen; suspected acute infection needs an HIV RNA test, and infants need PCR because maternal antibody persists.
  • AIDS is a CD4 count below 200 or an AIDS-defining illness.
  • Everyone with HIV is treated, usually with two NRTIs plus an integrase inhibitor; test for HLA-B*57:01 before abacavir, and watch tenofovir for kidney and bone effects.

HIV structure and life cycle

Genes and proteins

HIV is an enveloped, positive-strand RNA retrovirus that carries two copies of its genome and three enzymes inside the particle[1].

GeneProductRole
envgp120 and gp41gp120 binds CD4 and a coreceptor; gp41 drives fusion
gagp24 capsid and other structural proteinsp24 antigen is used in diagnosis
polReverse transcriptase, integrase, proteaseThe replication enzymes, and the main drug targets

The life cycle and the drugs that block it

StepWhat happensDrugs that block it
Attachmentgp120 binds CD4 on helper T cells, macrophages and dendritic cellsAttachment inhibitors
Coreceptor bindingCCR5 (strains common early in infection) or CXCR4 (later)Maraviroc, a CCR5 blocker
Fusiongp41 fuses the viral and cell membranesEnfuvirtide
Reverse transcriptionRNA is copied into DNA by reverse transcriptase, which makes many errorsNRTIs and NNRTIs
IntegrationIntegrase inserts viral DNA into the host chromosomeIntegrase inhibitors ("-tegravir")
MaturationProtease cuts long viral polyproteins into working partsProtease inhibitors ("-navir")

Two features of the life cycle shape everything else. Reverse transcriptase does not proofread, so every round of copying introduces mutations and a drug used alone quickly selects resistant virus. And integrated viral DNA can lie silent in resting memory T cells for years, forming a latent reservoir that drugs cannot reach, so stopping treatment lets the virus return.

People who inherit two copies of a CCR5 deletion are almost completely resistant to infection by CCR5-using strains, which shows how essential the coreceptor is.

HIV diagnosis and natural history

Testing

  1. A fourth-generation immunoassay detects antibodies to HIV-1 and HIV-2 plus p24 antigen, which appears before antibodies, so infection is detected about two to three weeks after exposure.
  2. If reactive, a second assay confirms it and tells HIV-1 from HIV-2.
  3. If the second assay is negative or unclear, an HIV RNA test looks for acute infection before antibodies have formed.

Several points follow. In the first weeks, antibody tests can be negative, so suspected acute infection needs RNA testing. Infants born to mothers with HIV carry their mothers' antibodies for up to 18 months, so they are tested by PCR for viral RNA or DNA. The viral load shows how well treatment works and predicts transmission risk; the CD4 count shows how damaged the immune system is. AIDS is defined as a CD4 count below 200 cells per cubic millimeter or an AIDS-defining illness.

Untreated course

  • Acute HIV, two to four weeks after exposure, causes a mononucleosis-like illness: fever, sore throat, swollen glands, rash, mouth ulcers and sometimes meningitis. The viral load is extremely high, and the heterophile test for Epstein-Barr virus is negative. Anyone sexually active with a mononucleosis-like illness should be tested for HIV.
  • Clinical latency follows: years of feeling well while the virus keeps replicating and the CD4 count falls slowly.
  • AIDS brings opportunistic infections and cancers as CD4 cells are depleted, covered in the opportunistic infections article[2].

Antiretroviral therapy

Principles

Everyone with HIV is treated, as soon as possible, whatever the CD4 count[3]. Treatment combines usually three active drugs, most often two NRTIs plus an integrase inhibitor, to suppress replication and block resistance. The goals are an undetectable viral load, recovery of CD4 cells and prevention of transmission: a person with an undetectable viral load does not transmit HIV sexually.

Drug classes

ClassHow it worksExamplesKey toxicities
NRTIsMust be phosphorylated inside the cell; once added to growing DNA they end the chainTenofovir, emtricitabine, lamivudine, abacavir, zidovudineTenofovir: kidney damage and bone thinning. Abacavir: a hypersensitivity reaction, so test for HLA-B*57:01 first[4]. Zidovudine: bone marrow suppression
NNRTIsBind reverse transcriptase at another site and change its shape; no activation neededEfavirenz, rilpivirine, doravirineRash, liver injury, drug interactions; efavirenz causes vivid dreams
Integrase inhibitorsBlock insertion of viral DNADolutegravir, bictegravir, raltegravirUsually well tolerated; weight gain, insomnia
Protease inhibitorsBlock cutting of viral polyproteinsDarunavir, atazanavir, boosted by ritonavir or cobicistatHigh glucose and lipids, fat redistribution, many CYP3A4 interactions; atazanavir raises unconjugated bilirubin
Entry inhibitorsBlock fusion or CCR5Enfuvirtide, maraviroc (needs a test of coreceptor use)Injection-site reactions; liver injury

Ritonavir is used in small doses not to fight HIV itself but to block the liver enzyme CYP3A4, which keeps the partner protease inhibitor at effective levels. The same effect raises levels of many other drugs, so interactions must always be checked[5].

Prevention

  • Preexposure prophylaxis (PrEP): daily tenofovir with emtricitabine, or injectable cabotegravir, for people at substantial risk, after confirming they do not already have HIV.
  • Postexposure prophylaxis (PEP): three drugs started as soon as possible, within 72 hours, and continued for 28 days after a needlestick or high-risk sexual exposure.
  • Pregnancy: treatment that makes the viral load undetectable cuts transmission to the baby to under 1%; infants also receive prophylaxis when the mother's virus is not suppressed[6].

Common confusions

  • Acute HIV versus Epstein-Barr mononucleosis: both cause fever, sore throat and swollen glands, but acute HIV is heterophile-negative with a very high viral RNA.
  • Antibody tests in infants: maternal antibody persists for up to 18 months, so infants need PCR.
  • NRTIs versus NNRTIs: NRTIs need phosphorylation and end the DNA chain; NNRTIs bind elsewhere on the enzyme and need no activation.
  • CCR5 versus CXCR4: CCR5 is used early and is the target of maraviroc; CXCR4 is used by strains that appear later.

References

  1. Deeks SG, Overbaugh J, Phillips A, Buchbinder S. HIV infection. Nat Rev Dis Primers. 2015;1:15035. doi:10.1038/nrdp.2015.35 Link ↩
  2. Kumar V, Abbas AK, Aster JC. Robbins & Cotran Pathologic Basis of Disease. 10th ed. Elsevier; 2021. ↩
  3. Gandhi RT, Bedimo R, Hoy JF, et al. Antiretroviral drugs for treatment and prevention of HIV infection in adults: 2022 recommendations of the International Antiviral Society-USA Panel. JAMA. 2023;329(1):63-84. doi:10.1001/jama.2022.22246 Link ↩
  4. Mallal S, Phillips E, Carosi G, et al. HLA-B*5701 screening for hypersensitivity to abacavir. N Engl J Med. 2008;358(6):568-579. doi:10.1056/NEJMoa0706135 Link ↩
  5. Vanderah TW, ed. Katzung's Basic and Clinical Pharmacology. 16th ed. McGraw Hill; 2024. ↩
  6. Abbas AK, Lichtman AH, Pillai S. Cellular and Molecular Immunology. 10th ed. Elsevier; 2022. ↩

Test yourself in the Question Bank · Listen to the podcasts