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
| Virus | Genome and family | Transmission | Chronic infection | Key laboratory tests |
|---|---|---|---|---|
| Hepatitis A (HAV) | RNA; picornavirus | Fecal-oral, food and water | No | IgM anti-HAV (acute); total anti-HAV (immunity) |
| Hepatitis B (HBV) | Partly double-stranded DNA; hepadnavirus | Blood, sexual, perinatal | Yes; risk highest after perinatal infection | HBsAg, anti-HBc (total and IgM), anti-HBs, HBeAg, anti-HBe, HBV DNA |
| Hepatitis C (HCV) | RNA; flavivirus | Mainly blood, especially shared drug-use equipment; less often sexual and perinatal | Yes, in most untreated infections | Anti-HCV with reflex HCV RNA; genotype when required |
| Hepatitis D (HDV) | Defective RNA virus requiring HBsAg | Blood, sexual; only with HBV | Yes, especially as superinfection | Anti-HDV; HDV RNA |
| Hepatitis E (HEV) | RNA; hepevirus | Fecal-oral; undercooked pork and game in high-income countries | Rarely, in immunosuppressed patients | IgM 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.
| Marker | What it is | Meaning when present |
|---|---|---|
| HBsAg | Hepatitis B surface antigen, the envelope protein | Current infection, acute or chronic; present more than 6 months defines chronic infection |
| Anti-HBs | Antibody to surface antigen | Immunity, from recovery or vaccination; 10 IU/L or more is considered protective |
| Anti-HBc, total | Antibody (IgM plus IgG) to core antigen | Infection at some time, current or past; not produced by vaccination |
| IgM anti-HBc | IgM antibody to core antigen | Acute or recent infection (within about 6 months); can reappear in flares of chronic infection |
| HBeAg | Hepatitis B e antigen, a secreted protein | High viral replication and infectivity |
| Anti-HBe | Antibody to e antigen | Usually lower replication, although some variants replicate without HBeAg |
| HBV DNA | Viral nucleic acid, measured quantitatively in IU/mL | Level 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.
| HBsAg | Anti-HBc (total) | IgM anti-HBc | Anti-HBs | Interpretation |
|---|---|---|---|---|
| Negative | Negative | — | Negative | Susceptible; offer vaccination |
| Negative | Negative | — | Positive (10 IU/L or more) | Immune from vaccination |
| Negative | Positive | — | Positive | Immune from past natural infection (resolved) |
| Positive | Positive | Positive | Negative | Acute infection |
| Positive | Positive | Negative | Negative | Chronic infection |
| Negative | Positive | — | Negative | Isolated 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 the United States, the CDC has recommended since 2020 that every adult aged 18 or older be screened for hepatitis C at least once and that pregnant people be screened during each pregnancy, and since 2023 that every adult be screened for hepatitis B at least once with a three-test panel of HBsAg, anti-HBs and total anti-HBc. In 2024, the FDA authorized the first point-of-care HCV RNA test, allowing diagnosis and treatment to begin in a single visit.
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.
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).
| Fourth-generation screen | Differentiation assay | HIV-1 RNA | Interpretation |
|---|---|---|---|
| Nonreactive | Not done | Not done | No laboratory evidence of HIV infection (window period not excluded if exposure is recent) |
| Reactive | HIV-1 positive | Not needed | HIV-1 infection |
| Reactive | HIV-2 positive | Not needed | HIV-2 infection; HIV-2 RNA and specialist referral |
| Reactive | Negative or indeterminate | Detected | Acute HIV-1 infection |
| Reactive | Negative or indeterminate | Not detected | No HIV-1 infection; screen probably false positive (consider HIV-2 RNA if risk) |
In the United States, the algorithm was set out by the CDC and the Association of Public Health Laboratories in 2014, with later technical updates naming FDA-approved diagnostic nucleic acid tests for the third step; APHL's suggested reporting language reached its fourth edition in October 2025. The CDC also allows a diagnostic nucleic acid test to be used earlier in selected situations, such as suspected acute infection after a recent exposure.
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 the United States, the FDA approved the first over-the-counter home HIV test, an oral fluid antibody test, in 2012, and several rapid fingerstick and oral fluid tests are CLIA-waived for point-of-care use.
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.
HBsAg negative, anti-HBc positive, anti-HBs positive. Interpret.
Show answer
Immunity from past natural infection that has resolved.
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.
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.
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.
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.
Create a free account to save your progress, take quizzes and earn a certificate.