Z codes are a category of ICD-10-CM codes used in medical billing to capture reasons for healthcare encounters that aren’t a disease, injury, or symptom. They cover the range Z00 through Z99 and document things like routine checkups, vaccination status, family medical history, BMI, and social factors such as housing instability or food insecurity. Unlike most diagnosis codes, Z codes describe the circumstances surrounding a visit rather than a specific medical condition.
Z codes can be used in any healthcare setting, including inpatient, outpatient, and telehealth. Some can serve as the primary (first-listed) diagnosis for an encounter, while others can only appear as secondary codes. Understanding which Z codes apply and when to use them is essential for accurate claims and complete patient records.
What Z Codes Cover
The Z00-Z99 range is divided into sub-chapters, each handling a different type of non-disease encounter:
- Z00-Z13: Examinations and screenings, such as annual physicals, well-child visits, and cancer screenings.
- Z14-Z15: Genetic carrier status and genetic susceptibility to disease.
- Z16: Resistance to antimicrobial drugs (such as antibiotic-resistant infections).
- Z17-Z19: Hormone receptor status and hormone sensitivity, typically relevant to cancer treatment.
- Z20-Z29: Exposure to communicable diseases, immunization status, and vaccination encounters.
- Z30-Z39: Reproductive health services, including contraceptive management and pregnancy supervision.
- Z40-Z53: Encounters for specific healthcare like aftercare, organ donation, and prophylactic surgery.
- Z55-Z65: Social determinants of health, covering problems related to education, employment, housing, food access, and psychosocial circumstances.
- Z66: Do not resuscitate status.
- Z67-Z68: Blood type and BMI.
- Z69-Z76: Other circumstances such as mental health services and lifestyle-related encounters.
- Z77-Z99: Family and personal history codes, long-term drug therapy, and post-procedural states (like transplant status).
This breadth means Z codes show up on claims for everything from a newborn’s first wellness visit to a cancer survivor’s follow-up history code to documentation that a patient is experiencing homelessness.
Primary vs. Secondary Diagnosis
Z codes can be listed as either a primary (first-listed) diagnosis or a secondary code, but not all Z codes are eligible for both roles. A well-child checkup, for example, uses a Z code as the primary diagnosis because the visit’s entire purpose is the exam itself, not a specific illness. A BMI code (Z68), on the other hand, is always a secondary code that supplements a primary diagnosis like obesity.
The distinction matters for reimbursement. A claim with a Z code as the primary diagnosis tells the payer the visit was driven by that specific circumstance, whether it’s a screening, vaccination, or aftercare appointment. Assigning a Z code as primary when it’s only permitted as secondary can lead to claim denials. The ICD-10-CM guidelines published by CMS specify which Z codes fall into each category, and those rules are updated annually.
Social Determinants of Health (Z55-Z65)
One of the fastest-growing areas of Z code use involves social determinants of health. Codes in the Z55-Z65 range document non-medical factors that affect a patient’s health and care, including:
- Z55: Education and literacy problems, such as not having a high school diploma or low health literacy.
- Z56: Employment and unemployment issues.
- Z57: Occupational exposure to risk factors.
- Z58: Physical environment problems, including inadequate drinking water or lack of basic services.
- Z59: Housing and economic circumstances. This is one of the most detailed subcategories, with specific codes for sheltered homelessness (Z59.01), unsheltered homelessness (Z59.02), food insecurity (Z59.41), transportation insecurity (Z59.82), financial insecurity (Z59.86), and housing instability with risk of homelessness (Z59.811).
- Z60: Social environment problems.
- Z62: Problems related to upbringing, including history of childhood abuse and parent-child conflict.
- Z63: Problems with primary support group and family circumstances.
- Z64: Psychosocial circumstances.
You should assign as many SDOH codes as necessary to describe all social factors documented during a given encounter. If a patient is dealing with both food insecurity and housing instability, both codes belong on the claim.
Who Can Document Z Codes
Standard ICD-10-CM coding rules require documentation from the treating provider (typically the physician or advanced practice clinician). SDOH Z codes are an exception. Because these codes capture social information rather than medical diagnoses, CMS guidelines allow code assignment based on documentation from any clinician involved in the patient’s care. That includes social workers, nurses, and other allied health staff. A social worker who screens a patient for food insecurity and documents the result in the medical record provides sufficient basis for a coder to assign Z59.41.
This broader documentation rule exists because social needs are often identified during intake screenings or case management sessions rather than during the physician encounter itself. The key requirement is that the information appears in the patient’s medical record for the current episode of care.
How Z Codes Affect Reimbursement
Currently, there are no direct financial incentives tied to Z code documentation at the national level. Reporting a Z code for homelessness or food insecurity does not increase reimbursement for that claim, and SDOH Z codes do not factor into national risk adjustment models. This is one reason adoption has been slow. A 2024 analysis published in Health Affairs found that use of SDOH Z codes remained sparse across claims data from 2016 through 2022.
That said, the data these codes generate has real financial implications over time. Claims data showing documented unmet social needs correlates with higher healthcare spending, which means SDOH Z codes can help payers and health systems identify high-cost patient populations and target interventions. In value-based care arrangements, where providers share financial risk for patient outcomes, this kind of data becomes strategically important. Greater Z code use could improve risk adjustment in value-based insurance models, giving providers credit for managing patients whose social circumstances make care more complex and costly.
For encounters where a Z code serves as the primary diagnosis, like a routine screening or vaccination visit, the code directly determines whether the claim is payable and at what rate. These are straightforward billing scenarios where the Z code functions like any other primary diagnosis.
Recent Coding Updates
CMS updates the ICD-10-CM code set annually, and the Z code chapter has seen steady expansion, particularly around SDOH and vaccination status. The FY 2026 guidelines include specific codes for COVID-19 vaccination status: Z28.310 for unvaccinated patients and Z28.311 for partially vaccinated patients, based on CDC recommendations in place at the time of the encounter.
Other notable codes in current guidelines include Z92.82, which flags that a patient received a clot-dissolving medication at a different facility within 24 hours before transfer, and Z98.85, which documents that a previously transplanted organ has been removed. These codes help communicate critical clinical context between facilities and across encounters.
The SDOH subcategories have also grown more granular over recent code cycles. Housing-related codes, for instance, now distinguish between sheltered and unsheltered homelessness, housing instability with risk of homelessness, and homelessness within the past 12 months. This level of specificity helps public health leaders and payers understand the scope of social needs across populations rather than treating all housing problems as a single category.
Practical Tips for Accurate Z Code Use
The most common mistakes with Z codes involve using them as primary diagnoses when they’re only approved as secondary codes, or failing to document them at all when the information is available. A few principles keep billing clean:
- Check primary-code eligibility before listing any Z code as the first diagnosis. The ICD-10-CM guidelines maintain a list of codes approved for first-listed use.
- Code all documented social factors. If a screening tool identifies three SDOH issues, all three should be coded. There is no limit on the number of SDOH Z codes per encounter.
- Use the most specific code available. Z59.01 (sheltered homelessness) is preferred over Z59.00 (homelessness unspecified) when the documentation supports it.
- Ensure documentation exists in the record. A coder cannot assign a Z code based on a verbal conversation alone. The social worker, nurse, or physician must document the finding in the chart.

