MLT-250 · Lesson 7 of 12 · 21 min

Hepatitis and HIV testing

▶ Video coming soon A video version of this lesson is on the way.

The emergency department at Mapleford General Hospital sent two specimens to immunology within ten minutes of each other on the evening of Wednesday, November 4, 2026. The first was from Mr. Desmond Achebe-Lowther, 41, yellow-eyed and nauseated, with an ALT of 2,140 U/L. The second was from a 23-year-old man, Mr. Callum Ferreira-Dunn, with fever, sore throat, a rash and swollen lymph nodes two weeks after a new sexual partner. Priyanka Venkataraman, on the evening shift with Noor Haddad, loaded both. "One hepatitis panel and one HIV screen," she said. "Both of these men may have infections that are only days or weeks old. That's exactly when the markers are changing fastest, and when reading them wrong does the most harm."

Viral hepatitis and HIV are among the most consequential results the serology laboratory reports. They are chronic infections that can be silent for years, they are transmissible by blood and body fluids, effective treatment exists for all of them, and HIV and hepatitis C infection can be diagnosed only by following a defined testing algorithm. This lesson covers the hepatitis viruses A to E, with emphasis on the hepatitis B marker profile and hepatitis C testing, and then HIV: the markers that appear after infection, the fourth-generation laboratory algorithm, supplemental and nucleic acid tests, point-of-care and self-tests, and special situations such as infants and people taking pre-exposure prophylaxis. Biochemistry of the liver, including ALT and bilirubin, was covered in Clinical Chemistry I (MLT-201); the virology of these agents is in Microbiology for Health Professions (MICR-133).

The hepatitis viruses

The hepatitis viruses at a glance
VirusGenome and familyTransmissionChronic infectionKey laboratory tests
Hepatitis A (HAV)RNA; picornavirusFecal-oral, food and waterNoIgM anti-HAV (acute); total anti-HAV (immunity)
Hepatitis B (HBV)Partly double-stranded DNA; hepadnavirusBlood, sexual, perinatalYes; risk highest after perinatal infectionHBsAg, anti-HBc (total and IgM), anti-HBs, HBeAg, anti-HBe, HBV DNA
Hepatitis C (HCV)RNA; flavivirusMainly blood, especially shared drug-use equipment; less often sexual and perinatalYes, in most untreated infectionsAnti-HCV with reflex HCV RNA; genotype when required
Hepatitis D (HDV)Defective RNA virus requiring HBsAgBlood, sexual; only with HBVYes, especially as superinfectionAnti-HDV; HDV RNA
Hepatitis E (HEV)RNA; hepevirusFecal-oral; undercooked pork and game in high-income countriesRarely, in immunosuppressed patientsIgM anti-HEV; HEV RNA

Hepatitis A

Hepatitis A causes acute hepatitis that does not become chronic. Diagnosis rests on IgM anti-HAV, present at the onset of symptoms and lasting about three to six months. Total anti-HAV (IgM plus IgG) indicates immunity from past infection or vaccination and is sometimes tested before vaccination in people likely to be immune. Ordering IgM anti-HAV in patients without symptoms of acute hepatitis yields mostly false positives and should be discouraged.

Hepatitis B: the markers

Hepatitis B serology uses several markers, each reflecting a different part of the virus or the response to it.

Hepatitis B markers
MarkerWhat it isMeaning when present
HBsAgHepatitis B surface antigen, the envelope proteinCurrent infection, acute or chronic; present more than 6 months defines chronic infection
Anti-HBsAntibody to surface antigenImmunity, from recovery or vaccination; 10 IU/L or more is considered protective
Anti-HBc, totalAntibody (IgM plus IgG) to core antigenInfection at some time, current or past; not produced by vaccination
IgM anti-HBcIgM antibody to core antigenAcute or recent infection (within about 6 months); can reappear in flares of chronic infection
HBeAgHepatitis B e antigen, a secreted proteinHigh viral replication and infectivity
Anti-HBeAntibody to e antigenUsually lower replication, although some variants replicate without HBeAg
HBV DNAViral nucleic acid, measured quantitatively in IU/mLLevel of replication; guides treatment and monitoring

Because the vaccine contains only HBsAg, a vaccinated person has anti-HBs but no anti-HBc. That single fact separates vaccine immunity from natural immunity.

The course of acute hepatitis B

Figure 1 shows the typical sequence of markers in acute hepatitis B that resolves. HBsAg appears first, 1 to 10 weeks after exposure and often before symptoms, followed by HBeAg and HBV DNA. IgM anti-HBc appears at the onset of symptoms and is the key marker of acute infection. As the patient recovers, HBsAg disappears, usually within about four to six months, and anti-HBs appears. Between the disappearance of HBsAg and the appearance of detectable anti-HBs, there may be a window period in which IgM anti-HBc is the only marker of infection. Total anti-HBc persists for life. In chronic infection, HBsAg persists beyond six months, anti-HBs does not appear, and IgM anti-HBc fades.

A graph of marker levels against weeks after exposure, from 0 to 52 weeks, for acute hepatitis B with recovery. HBsAg rises from about week 4, peaks around weeks 10 to 12 and disappears by about week 24. HBeAg follows a similar but shorter curve. HBV DNA rises earliest. A shaded band labelled symptoms and raised ALT spans roughly weeks 10 to 18. IgM anti-HBc rises at about week 10, peaks around week 16 and declines by about week 40. Total anti-HBc rises at week 10 and remains high. Anti-HBe appears around week 16. Anti-HBs appears around week 28 and remains. A band between about weeks 24 and 28 is labelled window period: HBsAg gone, anti-HBs not yet detectable, IgM anti-HBc positive.
Figure 1. Serological course of acute hepatitis B with recovery (illustrative timing).
Interpreting hepatitis B serology
HBsAgAnti-HBc (total)IgM anti-HBcAnti-HBsInterpretation
NegativeNegative—NegativeSusceptible; offer vaccination
NegativeNegative—Positive (10 IU/L or more)Immune from vaccination
NegativePositive—PositiveImmune from past natural infection (resolved)
PositivePositivePositiveNegativeAcute infection
PositivePositiveNegativeNegativeChronic infection
NegativePositive—NegativeIsolated anti-HBc: resolved infection with waning anti-HBs, occult infection, window period of acute infection, or a false positive; further testing (IgM anti-HBc, HBV DNA, repeat) needed

Patients with resolved infection or isolated anti-HBc can reactivate HBV if they receive strongly immunosuppressive therapy, especially B-cell depleting drugs such as rituximab, so HBsAg and anti-HBc are tested before such treatment begins. Chronic infection is further characterized by HBeAg, anti-HBe, HBV DNA and ALT to judge the phase of disease and the need for antiviral treatment.

Hepatitis D and E

Hepatitis D occurs only in people with HBV infection, because HDV uses HBsAg as its envelope. It can be acquired at the same time as HBV (coinfection) or later in someone already chronically infected (superinfection), which often causes severe, rapidly progressive disease. It is diagnosed by anti-HDV antibody, followed by HDV RNA to confirm active infection, and liver societies increasingly recommend testing everyone who is HBsAg positive for anti-HDV at least once.

Hepatitis E is now recognized as a common cause of acute hepatitis in high-income countries, where genotype 3 is acquired from undercooked pork, wild boar and venison. It is usually self-limited, but it can be severe in pregnancy (genotype 1, in regions where it is waterborne) and can become chronic in transplant recipients. Diagnosis is by IgM anti-HEV and HEV RNA; serological assays vary in performance, so RNA testing is preferred in immunosuppressed patients.

Hepatitis C

Hepatitis C becomes chronic in most untreated people and can progress silently over decades to cirrhosis and liver cancer, yet modern direct-acting antiviral regimens cure more than 95 percent of infections in 8 to 12 weeks. Finding infected people is therefore the main challenge. Testing is a two-step process:

  • Anti-HCV antibody by immunoassay is the screening test. A nonreactive result means no evidence of infection, unless the person may be in the window period (antibody can take up to about 8 to 11 weeks to appear) or is severely immunosuppressed.
  • A reactive antibody result must be followed by HCV RNA (nucleic acid test). Detected RNA indicates current infection; RNA not detected indicates past infection that cleared spontaneously or was cured, or a false-positive antibody result.

Because antibody persists after cure and in spontaneous clearance, an antibody test cannot diagnose current infection or reinfection; RNA testing is required. Many laboratories perform reflex testing, in which a reactive antibody result triggers RNA testing on the same specimen, so that patients are not lost between steps. Collecting a tube suitable for RNA testing at the same visit makes this possible. HCV core antigen testing is an alternative marker of viremia used in some settings.

In Canada, the Canadian Task Force on Preventive Health Care's 2017 guideline recommended risk-based testing rather than population screening for hepatitis C, and there is no national hepatitis B screening guideline; testing is offered to people with risk factors, in pregnancy, before immunosuppressive therapy and to people born in regions where infection is common. Ontario has drafted Canada's first provincial guidance for one-time hepatitis C screening of adults. Point-of-care hepatitis C antibody tests and a rapid confirmatory test are approved in Canada, allowing same-day diagnosis in community programs.

HIV

Markers after infection

Human immunodeficiency virus (HIV) is a retrovirus that infects CD4 T cells and, without treatment, progressively destroys cellular immunity (Lesson 10). HIV-1 causes almost all infections worldwide; HIV-2, less transmissible and slower to progress, is found mainly in people with links to West Africa. Distinguishing the two matters because HIV-2 is resistant to some antiretroviral drugs and is not measured by HIV-1 viral load tests.

After infection, markers appear in a predictable order. HIV RNA becomes detectable in plasma first, about 10 days after infection. p24 antigen, a core protein, follows a few days later, rising during acute infection and then falling as antibody forms complexes with it. Antibody, IgM and then IgG, becomes detectable about three to four weeks after infection and persists for life. The CDC describes typical windows of about 10 to 33 days for nucleic acid tests, 18 to 45 days for laboratory antigen/antibody tests on venous blood, and 23 to 90 days for antibody-only tests, though most people seroconvert well within these limits. Acute HIV infection, the period of high viral load before antibody appears, is when transmission risk is highest, and it often causes a mononucleosis-like illness like Mr. Ferreira-Dunn's.

Generations of HIV screening assays

First- and second-generation assays detected IgG antibody using viral lysate or recombinant antigens. Third-generation assays use a double-antigen sandwich that detects IgM as well as IgG, shortening the window. Fourth-generation assays add a sandwich for p24 antigen, detecting infection about a week earlier still. They report a single result for antigen and antibody combined; some newer "fifth-generation" assays report p24 antigen and HIV-1 and HIV-2 antibodies separately.

The laboratory algorithm

Laboratories in Canada and the United States diagnose HIV with a three-step algorithm built around a fourth-generation screen. Figure 2 shows it.

A vertical flowchart. Step 1: HIV-1/2 antigen/antibody combination immunoassay (fourth generation). A nonreactive result leads to a box: negative for HIV-1 and HIV-2 antibodies and p24 antigen; if recent exposure is suspected, repeat or test RNA. A reactive result leads to Step 2: HIV-1/HIV-2 antibody differentiation immunoassay. From step 2, results of HIV-1 positive, HIV-2 positive, or HIV positive untypable lead to boxes reporting HIV infection confirmed (with type). Results of negative or indeterminate lead to Step 3: HIV-1 nucleic acid test, or a combined HIV-1/HIV-2 RNA test. From step 3, RNA detected leads to acute HIV-1 infection; RNA not detected leads to HIV-1 negative, screening result was false positive, with a note to consider HIV-2 testing if the risk is present.
Figure 2. The fourth-generation HIV diagnostic testing algorithm, as recommended by the CDC and the Association of Public Health Laboratories and used by Canadian provincial laboratories.

1. Screen with a fourth-generation HIV-1/2 antigen/antibody immunoassay. Nonreactive specimens are reported negative. Reactive specimens are repeated according to the manufacturer's instructions and proceed to step 2.

2. Supplemental antibody differentiation immunoassay. A rapid test that detects antibodies to HIV-1 and HIV-2 separately, such as the Geenius HIV 1/2 Supplemental Assay or the VioOne HIV Profile Supplemental Assay, confirms antibody and identifies the type. These assays replaced the HIV-1 Western blot, which was slower, missed early infections that the screen had detected, and misclassified many HIV-2 infections as HIV-1. Laboratories report the assay's final interpretation (HIV-1 positive, HIV-2 positive, HIV positive untypable, indeterminate or negative), not individual band patterns.

3. Nucleic acid test when the differentiation assay is negative or indeterminate. A diagnostic HIV-1 RNA test, or a combined HIV-1/HIV-2 qualitative test, distinguishes acute infection (screen reactive, antibody not yet detectable, RNA detected) from a false-positive screen (RNA not detected).

Interpreting the HIV algorithm
Fourth-generation screenDifferentiation assayHIV-1 RNAInterpretation
NonreactiveNot doneNot doneNo laboratory evidence of HIV infection (window period not excluded if exposure is recent)
ReactiveHIV-1 positiveNot neededHIV-1 infection
ReactiveHIV-2 positiveNot neededHIV-2 infection; HIV-2 RNA and specialist referral
ReactiveNegative or indeterminateDetectedAcute HIV-1 infection
ReactiveNegative or indeterminateNot detectedNo HIV-1 infection; screen probably false positive (consider HIV-2 RNA if risk)

In Canada, provincial public health laboratories follow this approach; Public Health Ontario, for example, screens with a fourth-generation antigen/antibody assay, confirms with the Geenius differentiation assay and tests HIV-1/HIV-2 RNA when the confirmation is negative or indeterminate, recommending repeat testing at least four weeks later when results remain inconclusive. The Public Health Agency of Canada's HIV Screening and Testing Guide, first issued in 2013, recommends that HIV testing be offered as a routine part of care.

A new diagnosis of HIV is usually confirmed on a second specimen, often as part of the baseline viral load, to protect against specimen mix-up. Results are reported confidentially to the requesting clinician and, as required by law, to public health.

Point-of-care and self-tests

Rapid HIV tests detect antibody, and some also detect p24 antigen, from fingerstick blood or oral fluid in minutes. They allow testing in clinics, outreach programs and emergency departments, and reaching people who might not return for results. Because rapid antibody tests have longer window periods than laboratory fourth-generation assays and because a reactive result in a low-prevalence setting may be false, every reactive rapid test is followed by laboratory testing with the full algorithm.

In Canada, the INSTI HIV-1/HIV-2 antibody test has long been used as a point-of-care test by trained operators, and in November 2020 Health Canada authorized the first HIV self-test, a version of the same fingerstick test for use at home.

Special situations

Infants of mothers with HIV carry maternal IgG for up to 18 months, so antibody tests cannot diagnose infection. Infants are tested with HIV nucleic acid tests at several points in the first months of life. Pre-exposure prophylaxis (PrEP) and post-exposure prophylaxis can suppress viral replication in someone who becomes infected, delaying or blunting antibody responses and making results harder to interpret; guidelines recommend combining antigen/antibody testing with RNA testing for people taking or recently stopping PrEP, particularly long-acting injectable forms. HIV vaccine trial participants may have vaccine-induced antibodies that cause reactive screens, so RNA testing is used instead. Monitoring of people living with HIV uses quantitative viral load and CD4 counts (Lesson 10) rather than antibody tests.

Occupational exposures

When a health care worker sustains a needlestick, the source patient is tested, with consent as required by local law, for HIV (fourth-generation assay, often expedited), HBsAg and anti-HCV with reflex RNA, and the exposed worker has baseline testing and follow-up. Rapid turnaround of the source patient's HIV result determines whether post-exposure prophylaxis, started ideally within two hours, should continue. Microbiology for Health Professions (MICR-133) describes the exposure protocol.

Back on the evening shift, Mr. Achebe-Lowther's panel showed HBsAg reactive, IgM anti-HBc reactive, total anti-HBc reactive, anti-HBs nonreactive and anti-HCV nonreactive: acute hepatitis B. Mr. Ferreira-Dunn's fourth-generation screen was reactive with an S/CO of 41, and the Geenius assay the next morning was negative. Priyanka sent the specimen for HIV-1 RNA, and Noor drew the algorithm on a sticky note: reactive screen, negative antibody differentiation, RNA pending. "If the RNA is detected," Priyanka said, "he has acute HIV, and he's probably never been more infectious than he is this week."

Common mistakes

  • MistakeInterpreting anti-HBs plus anti-HBc as vaccine immunity.

    InsteadVaccine produces anti-HBs only; anti-HBc indicates past natural infection.

  • MistakeReporting a reactive anti-HCV as current hepatitis C.

    InsteadTest for HCV RNA; antibody persists after clearance and cure.

  • MistakeDiagnosing HIV from a reactive fourth-generation screen alone.

    InsteadComplete the algorithm with a differentiation assay and, if needed, RNA testing.

  • MistakeConcluding that a reactive screen with a negative differentiation assay is a false positive without RNA testing.

    InsteadIt may be acute HIV infection; test HIV RNA.

  • MistakeUsing HIV antibody tests to diagnose infection in an infant.

    InsteadMaternal IgG persists up to 18 months; use nucleic acid tests.

  • MistakeOverlooking HBV reactivation risk before rituximab.

    InsteadTest HBsAg and anti-HBc before B-cell depleting or other strongly immunosuppressive therapy.

Summary and key terms

  • HAV is diagnosed by IgM anti-HAV; HEV by IgM anti-HEV and RNA; HDV occurs only with HBsAg.
  • HBsAg means current infection; anti-HBs means immunity; anti-HBc means past or present natural infection; IgM anti-HBc marks acute infection.
  • Vaccinated people have anti-HBs alone; isolated anti-HBc needs further testing.
  • HCV testing is antibody with reflex RNA; RNA detected means current infection.
  • HIV markers appear in order: RNA, p24 antigen, then antibody.
  • The HIV algorithm is a fourth-generation screen, an HIV-1/HIV-2 differentiation assay, and an RNA test when differentiation is negative or indeterminate.
  • Reactive rapid tests and self-tests need laboratory confirmation; infants are tested by nucleic acid tests.
HBsAg
Hepatitis B surface antigen, a marker of current infection.
Anti-HBs
Antibody to hepatitis B surface antigen, a marker of immunity.
Anti-HBc
Antibody to hepatitis B core antigen, a marker of natural infection at some time.
Window period (hepatitis B)
The interval after HBsAg disappears and before anti-HBs is detectable, when IgM anti-HBc may be the only marker.
Reflex testing
Automatic performance of a follow-up test when an initial result meets set criteria.
Fourth-generation HIV assay
A combined immunoassay that detects HIV-1 and HIV-2 antibodies and HIV-1 p24 antigen.
Differentiation assay
A supplemental immunoassay that confirms HIV antibody and distinguishes HIV-1 from HIV-2.
Acute HIV infection
The early phase of HIV infection, with high viral load before antibody is detectable.
p24 antigen
An HIV-1 core protein detected early in infection.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. HBsAg negative, anti-HBc positive, anti-HBs positive. Interpret.

    Show answer

    Immunity from past natural infection that has resolved.

  2. Anti-HCV reactive, HCV RNA not detected. Interpret.

    Show answer

    Past infection that cleared or was cured, or a false-positive antibody; no current infection.

  3. Fourth-generation screen reactive, differentiation assay HIV-1 positive. What is the report?

    Show answer

    HIV-1 infection confirmed; a second specimen and viral load usually follow.

  4. Why is IgM anti-HBc important in the hepatitis B window period?

    Show answer

    It may be the only positive marker when HBsAg has cleared and anti-HBs is not yet detectable.

  5. Why might an HIV screen be nonreactive in someone infected 10 days earlier?

    Show answer

    They are still in the window period; RNA may be just detectable, but p24 antigen and antibody may not yet be.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz