The B20 HIV ICD-10 code reports human immunodeficiency virus [HIV] disease, and you assign it once a patient has a confirmed, symptomatic HIV infection or any documented HIV-related illness. That single distinction, symptomatic versus asymptomatic, decides whether you reach for B20 or the status code Z21. Get it wrong and the claim misrepresents the patient’s condition, risks a denial, and skews the record for every future encounter.
This guide walks through exactly when B20 applies, how to sequence it, what the FY 2026 guidelines changed, and the edge cases that trip up coders: pregnancy, unrelated admissions, and the rule that you never walk B20 back to Z21.
Key takeaways
- B20 covers symptomatic HIV disease and AIDS. Assign it when the provider documents an HIV-related illness or a condition resulting from HIV.
- Z21 is for asymptomatic HIV-positive patients with no history of an HIV-related condition.
- Once a patient earns a B20, you never revert to Z21 or R75 on later visits.
- Sequencing depends on the reason for the encounter, not on the HIV status itself.
- FY 2026 guidelines (effective October 1, 2025) tightened the documentation language but kept B20 as a single billable code.
What does the B20 HIV ICD-10 code mean?
B20 stands for “Human immunodeficiency virus [HIV] disease.” It lives in Chapter 1 of the code set, the block for infectious and parasitic diseases (A00 to B99), and it is a billable, three-character code with no further subdivisions. You report it on its own, without a fourth or fifth character.
The code carries real clinical weight. It tells every downstream reader, the payer, the next provider, the quality analyst, that this patient has progressed beyond simple HIV-positive status into active disease. If you are still shaky on how a code like this is built and where it falls in the tabular list, our primer on how ICD-10 codes are structured is worth a quick read before you go further.
One rule sets HIV apart from almost every other diagnosis: you code it only when it is confirmed. “Suspected,” “probable,” or “rule out” HIV does not get B20. HIV is one of the few conditions where inpatient uncertain-diagnosis rules do not apply.
B20 vs Z21 vs R75: which HIV code fits?
Three codes describe the HIV picture, and each answers a different clinical question. Confirmation, by the way, does not require a positive blood test or culture in the chart. The provider’s diagnostic statement that the patient is symptomatic or has an HIV-related illness is enough.
| Code | Descriptor | Use it when |
|---|---|---|
| B20 | Human immunodeficiency virus [HIV] disease | The patient has a documented HIV-related illness, AIDS, or a condition resulting from HIV, now or at any point in the past. |
| Z21 | Asymptomatic HIV infection status | The record says “HIV positive,” “known HIV,” or “HIV test positive” with no symptoms and no history of an HIV-related condition. |
| R75 | Inconclusive laboratory evidence of HIV | Testing came back indeterminate and the provider has not confirmed a diagnosis. Never use it once AIDS or symptomatic HIV is on record. |
Think of it as a one-way ladder. A patient can move from Z21 to B20, but never back down.
When do you assign B20?
Assign the B20 HIV ICD-10 code whenever the documentation shows any of the following:
- The provider states the patient has AIDS.
- The patient is being treated for an HIV-related illness, such as Pneumocystis pneumonia, Kaposi sarcoma, or an HIV-associated opportunistic infection.
- The patient is described as having any condition that results from HIV-positive status.
- The patient had an HIV-related illness in the past, even if the current visit is for something else.
Tuberculosis is a classic example of an HIV-related opportunistic infection, and it carries its own codes. When you code a co-existing TB case alongside B20, our breakdown of the A15 to A19 tuberculosis codes shows how to capture the site and confirmation method. Report every HIV-related condition with its own additional code so the full clinical picture lands on the claim.
How do you sequence B20 with other diagnoses?
Sequencing is where most B20 HIV ICD-10 code errors happen. The reason for the encounter drives the order, not the HIV itself.
HIV-related admission
When a patient comes in for an HIV-related condition, B20 goes first as the principal diagnosis. Then you list additional codes for every reported HIV-related condition. If someone is admitted for Pneumocystis pneumonia secondary to HIV, B20 leads and the pneumonia code follows.
Unrelated condition with HIV history
When a patient with HIV disease is admitted for something unrelated, code the unrelated condition first. B20 becomes a secondary diagnosis. Picture a patient with a prior AIDS diagnosis who breaks a femur: the fracture code takes the principal spot, and B20 reports the ongoing HIV disease as an additional code. If that same patient had only ever been asymptomatic, you would use Z21 as the secondary code instead.
You can confirm any companion codes against the current 2026 ICD-10-CM code list so the secondary diagnoses match the active fiscal year.
What changed for HIV coding in FY 2026?
The FY 2026 guidelines, effective October 1, 2025, revised Section I.C.1.a to push for greater clinical granularity and documentation specificity. The B20 HIV ICD-10 code stayed a single billable code, so nothing structural changed in the tabular list. What tightened up was the language coders lean on:
- B20 is now explicitly codable as a secondary diagnosis on admissions for unrelated or other documented conditions.
- Z21 guidance now names antiretroviral therapy directly: a treated patient with no other documentation of HIV disease still gets Z21.
- R75 language was trimmed. The old phrase about “no definitive diagnosis or manifestations” came out, so R75 now hinges on a genuinely inconclusive result.
The takeaway is practical, not dramatic. Read the provider’s words carefully and match them to the right code rather than defaulting to a habit.
How is HIV coded during pregnancy?
Pregnancy changes the sequencing entirely. Chapter 15 obstetric codes take priority, so an HIV-positive pregnant patient gets a code from category O98.7- (HIV disease complicating pregnancy, childbirth, and the puerperium) first. You then add B20 or Z21 as a secondary code, depending on whether the patient is symptomatic. Round it out with a Z3A code for the weeks of gestation. The order stays the same across the antepartum, delivery, and postpartum encounters.
Documentation and query tips for cleaner B20 claims
Strong documentation prevents most B20 HIV ICD-10 code headaches. Keep these habits:
- When the record says only “HIV positive” with no mention of related conditions, query the provider before defaulting to Z21. A past HIV-related illness would change the code to B20.
- Confirm whether AIDS terminology appears anywhere in the chart. If it does, Z21 is off the table permanently.
- For pregnant patients, verify the gestational age so the Z3A code is accurate.
- Capture the specific nature of each HIV-related condition rather than lumping them together.
For the authoritative wording, work straight from the CMS ICD-10-CM Official Guidelines, and lean on the CDC’s HIV clinical resources when you need to understand the conditions behind the codes.
Frequently asked questions
Is B20 a billable ICD-10 code?
Yes. The B20 HIV ICD-10 code is a valid, billable three-character code. You report it alone, with no additional characters, and add separate codes for any HIV-related conditions.
What is the difference between B20 and Z21?
B20 reports symptomatic HIV disease or AIDS. Z21 reports asymptomatic HIV-positive status with no history of an HIV-related illness. Symptoms and clinical history decide which one you use.
Can you code Z21 after a patient has had B20?
No. Once a patient has a documented HIV-related illness and earns B20, every later encounter uses B20. The guidelines prohibit reverting to Z21 or R75.
Does coding HIV require a positive blood test?
No. Confirmation does not require a documented positive test or culture. The provider’s diagnostic statement that the patient is symptomatic or has an HIV-related illness is sufficient to support B20.
Which HIV code goes first when a patient is admitted for something unrelated?
The unrelated condition is the principal diagnosis. B20 (or Z21 for asymptomatic patients) follows as a secondary code.
Bringing it together
The B20 HIV ICD-10 code rewards coders who read documentation closely. Ask two questions on every HIV encounter: is the patient symptomatic or has HIV ever caused an illness, and what is the actual reason for this visit? The first answer picks B20 over Z21, and the second sets your sequencing. Hold onto the never-revert rule, watch the pregnancy priority, and keep the FY 2026 language in front of you, and your HIV claims will hold up on the first pass.



