B20: Human immunodeficiency virus [HIV] disease
B20 is the ICD-10-CM code for human immunodeficiency virus (HIV) disease, including AIDS. Assign it when the provider documents AIDS or HIV disease, or when the patient is treated for an HIV-related condition. Once a patient has had an HIV-related illness, B20 is used on every later encounter. Asymptomatic HIV infection is Z21.
- Code
- B20
- Official description
- Human immunodeficiency virus [HIV] disease
- Billable
- Yes, a complete code that can be reported
- Block
- Human immunodeficiency virus [HIV] disease (B20)
- Chapter
- 1. Certain infectious and parasitic diseases (A00-B99)
- Code set
- ICD-10-CM FY2027, effective October 1, 2026 to September 30, 2027
How to code B20
- Code only confirmed cases; the provider's statement is enough, no lab result needed.
- Admitted for an HIV-related condition: B20 first, then the related conditions.
- Never go back to Z21 or R75 for a patient who has had B20.
- In pregnancy, O98.7- comes first.
Official Guidelines: Section I.C.1.a.1, Code only confirmed cases; Section I.C.1.a.2, Selection and sequencing of HIV codes.
Worked example
Infectious disease clinic ยท synthetic note
AIDS, CD4 count 150. Oral thrush on exam, started on fluconazole. Continue antiretroviral therapy.
| Code | Description | Why |
|---|---|---|
| B20 | Human immunodeficiency virus [HIV] disease | AIDS, treated for an HIV-related condition. |
| B37.0 | Candidal stomatitis | Candidal stomatitis (oral thrush), the HIV-related condition. |
Order: B20, then B37.0.
Tabular list notes for B20
The instructions printed at B20 and at the headings above it, from the FY2027 tabular list.
Includes at B20
- acquired immune deficiency syndrome [AIDS]
- AIDS-related complex [ARC]
- HIV infection, symptomatic
Excludes1 (never coded together) at B20
- asymptomatic human immunodeficiency virus [HIV] infection status (Z21)
- exposure to HIV virus (Z20.6)
- inconclusive serologic evidence of HIV (R75)
Code first at B20
- Human immunodeficiency virus [HIV] disease complicating pregnancy, childbirth and the puerperium, if applicable (O98.7-)
Use additional code at B20
- code(s) to identify all manifestations of HIV infection
Alphabetic Index entries that lead to B20
- Acquired > immunodeficiency syndrome (AIDS)
- AIDS (related complex)
- ARC (AIDS-related complex)
- Dementia (degenerative (primary)) (persisting) (unspecified severity) (without behavioral disturbance, psychotic disturbance, mood disturbance, and anxiety) > in (due to) > human immunodeficiency virus (HIV) disease
- Dementia (degenerative (primary)) (persisting) (unspecified severity) (without behavioral disturbance, psychotic disturbance, mood disturbance, and anxiety) > in (due to) > human immunodeficiency virus (HIV) disease > with behavioral disturbance
- Disease, diseased > human immunodeficiency virus (HIV)
- Disease, diseased > slim (HIV)
- Disease, diseased > viral, virus > human immunodeficiency (HIV)
Codes to compare
| Z21 | Asymptomatic human immunodeficiency virus [HIV] infection status |
| B37.0 | Candidal stomatitis |
Practise it on a chart
HIV disease with Pneumocystis pneumonia: a Casebook case where you read a synthetic note, find the codes in the codebook and get graded with a reason for each code.
Questions about B20
What is the difference between B20 and Z21?
Z21 is asymptomatic HIV infection status. B20 is HIV disease: AIDS, or HIV with a related condition. Once B20 applies, it is always used.
Does B20 need a positive HIV test in the record?
No. The provider's diagnostic statement is sufficient confirmation (Official Guidelines I.C.1.a.1).
Last updated December 2, 2026. Published by Casebook. Codes, descriptions, tabular notes and index entries come from the ICD-10-CM FY2027 release of CDC's National Center for Health Statistics (effective October 1, 2026 to September 30, 2027); guideline sections refer to the ICD-10-CM Official Guidelines for Coding and Reporting FY2027. A study aid, not coding advice for a specific claim.