- Key Takeaways
- SDOH Z codes (Z55-Z65) can only ever be reported as secondary diagnoses, never as the principal or first-listed diagnosis, per official CDC/NCHS ICD-10-CM guidelines, a rule none of the five competitor articles cited from the primary source.Â
- Since 2024, CMS requires hospitals to screen all inpatient admissions age 18+ for five specific health-related social needs and report results annually as part of the Hospital IQR Program.Â
- The three homelessness codes (Z59.00, Z59.01, Z59.02) are the one clear exception to “Z codes don’t affect reimbursement”: they carry complication/comorbidity (CC) status under the FY2024 IPPS final rule and can increase inpatient MS-DRG payment.Â
- Any care team member, not just the treating provider, can document SDOH information, but the accompanying clinical diagnosis still requires provider documentation.Â
- Z codes span far more than SDOH, including preventive care encounters, personal/family history, and specific encounter types like aftercare and organ donor matching.Â
What Are Z Codes?
Z codes are the Chapter 21 section of ICD-10-CM (codes Z00 through Z99), used to document reasons for a healthcare encounter or additional information about a patient that isn’t a disease, injury, or acute condition. Instead of describing what’s medically wrong with a patient, Z codes describe the circumstances around the visit, from a routine physical to a family history of a condition to a non-medical barrier like housing instability. They exist because not every encounter, and not every fact relevant to a patient’s care, fits neatly into a diagnosis code for an illness.
What Do Z Codes Capture?
Z codes span a wide range of non-illness information, but four categories cover most of what shows up in practice:Â
- Social Determinants of Health (SDOH): Codes from Z55 through Z65 record non-medical life factors such as housing instability, food insecurity, low literacy, unemployment, and transportation problems, according to CMS’s official Z code guidance for documenting social risk factors.Â
- Preventive Care & Exams: Codes in the Z00 through Z13 range cover encounters for routine physical checkups, vaccinations, and screening tests, such as annual wellness exams.Â
- History & Status: Codes in the Z77 through Z99 range capture personal or family medical history, such as a past history of cancer, or long-term drug therapy status.Â
- Specific Encounters: Codes across the Z40 through Z53 range and related sections cover visits for follow-up care, organ donor matching, and medical observation.Â
- Neolytix ⢠Medical Billing
Medical Billing
Why Are They Important?
- Holistic Care: Z codes, especially the SDOH range, help clinicians and care teams understand the external, non-clinical barriers affecting a patient’s physical and mental well-being, not just what’s happening in the exam room.Â
- Value-Based Care: CMS strongly encourages the use of SDOH Z codes to support public health tracking, risk adjustment, and quality reporting. Most Z codes don’t carry an additional payment the way a CPT or HCPCS procedure code does, but there’s a notable exception: as of the FY2024 IPPS final rule, the three homelessness codes (Z59.00, Z59.01, Z59.02) were reclassified as complications/comorbidities (CC) for inpatient MS-DRG purposes, meaning they can directly increase a hospital’s payment when present.Â
The Rule Most Explainers Skip: SDOH Z Codes Can Only Be Secondary Diagnoses
This is the detail that trips up coding teams the most, and it comes straight from the source. The ICD-10-CM Official Guidelines for Coding and Reporting, maintained by CDC’s National Center for Health Statistics, state plainly that codes for social determinants of health, along with BMI, coma scale, NIHSS, blood alcohol level, and underimmunization status codes, “should only be reported as secondary diagnoses.” A Z55 through Z65 code can never be billed as the principal or first-listed diagnosis for an encounter. It has to accompany a diagnosis that reflects the actual clinical reason for the visit.Â
That’s a distinct rule from the general Z code family, where some codes (like a Z00 encounter for a routine exam) genuinely can stand as the first-listed diagnosis when that’s the real reason for the visit. SDOH codes specifically don’t get that option.Â
Who Can Document a Z Code?
CMS’s guidance allows any member of the care team, not just the treating provider, to collect and record SDOH information during an encounter, including social workers, case managers, community health workers, and nurses. That data can come from a screening tool, a structured conversation, or patient self-report, and should be recorded in the EHR, a problem list, or provider notes so coders can assign the corresponding Z code.Â
There’s an important limit here too, per the official ICD-10-CM guidelines: while non-provider staff can document the social determinant itself, the diagnosis the Z code is paired with still has to be documented by the patient’s own provider. A social worker can document that a patient is experiencing housing instability; that fact supports a Z59 code, but it doesn’t substitute for the provider’s own diagnostic documentation for the visit.Â
The Requirement Behind the Push: CMS's Mandatory Hospital SDOH Screening
Part of why SDOH Z codes have gotten more attention since 2024 is a specific CMS reporting requirement, not just a general value-based care trend. Under the Hospital Inpatient Quality Reporting (IQR) Program, CMS requires hospitals to screen all inpatient admissions age 18 and older for five health-related social needs: food insecurity, housing instability, transportation needs, utility difficulties, and interpersonal safety. Hospitals then report their aggregate screening rates and positive screening rates annually, during a submission window that runs April 1 through May 15.Â
CMS gives hospitals flexibility in how they screen, allowing any validated tool that covers the five required domains, including the widely used AHC-HRSN tool. Screening can happen at any point during the admission, and hospitals can rely on prior outpatient screening data already documented in the EHR rather than re-screening from scratch. Importantly, this is a pay-for-reporting measure, not pay-for-performance: hospitals are scored on whether they report the data, not on the screening results themselves. Voluntary reporting began with CY 2023 data, mandatory reporting started with CY 2024 data submitted in 2025, and public reporting of the results began in October 2025.Â
Important SDOH Z Codes to Know
A handful of codes account for most current SDOH documentation. These were added or expanded over the last several ICD-10-CM update cycles and are worth having on hand:Â
- Z59.00 / Z59.01 / Z59.02 â Homelessness, unspecified / sheltered / unsheltered. Added in 2021, and as of the FY2024 IPPS final rule, all three carry complication/comorbidity (CC) status for inpatient MS-DRG payment, the one clear case where an SDOH Z code directly affects reimbursement.Â
- Z59.41 â Food insecurity. Added in 2021.Â
- Z59.81 â Housing instability, housed (at risk of losing housing, but not currently homeless). Added in 2021.Â
- Z59.82 â Transportation insecurity. Added in 2022.Â
- Z59.86 â Financial insecurity. Added in 2022.Â
Coding teams building or auditing an SDOH workflow should make sure these five are mapped into their screening-to-code process specifically, since they’re the codes most likely to be both clinically relevant and, in the homelessness codes’ case, payment-relevant.
What This Means for Billing and Coding Teams
For coders, the practical takeaway is to treat SDOH Z codes primarily as a documentation and reporting discipline, with one payment-relevant exception. Capture them accurately and consistently because they feed quality measures, population health data, and a hospital’s IQR compliance, and because they give a fuller clinical picture for risk adjustment and care coordination. Â
The one place this isn’t just documentation hygiene: the three homelessness codes (Z59.00, Z59.01, Z59.02) carry CC status and can affect MS-DRG severity and payment on an inpatient claim, so they’re worth flagging for accuracy review the same way any other CC-eligible diagnosis would be. Beyond those three, don’t expect an SDOH Z code to change what a specific claim pays, and never code one as a principal diagnosis. For practices building or refining an SDOH documentation workflow, the main design questions are who on the care team is responsible for collecting the information, how it gets into the record in a coder-usable way, and whether the practice’s screening tool actually maps cleanly to the Z55 through Z65 code set.Â
Conclusion
Z codes fill in the parts of a patient encounter that a diagnosis code for an illness can’t capture, from a routine exam to a documented history to the social and economic conditions shaping someone’s health. The SDOH subset in particular has become a bigger compliance and quality focus since CMS’s 2024 hospital screening requirement, and a small set of codes, especially the three homelessness codes now carrying CC status, has become a genuine payment consideration. The coding rule underneath all of it hasn’t changed: these codes support secondary documentation, never the principal diagnosis, and their main purpose is making care more complete and better reported.Â
- Neolytix ⢠Contact Us
Schedule a Consultation
Neolytix partners with healthcare organizations across revenue cycle, credentialing, and administrative operations ,14+ years of expertise and AI-enabled automation to reduce inefficiencies and drive sustainable growth.
Sources
Frequently Asked Questions
Can a Z code be used as the primary diagnosis on a claim?
It depends on the code. Some Z codes, like one for a routine health exam, can be the first-listed diagnosis when that’s the actual reason for the visit. SDOH Z codes (Z55 through Z65) cannot; per official ICD-10-CM guidelines, they must always be reported as secondary diagnoses.
Who is allowed to document social determinants of health for Z code assignment?
Any care team member, including social workers, case managers, community health workers, and nurses, can document SDOH information. The accompanying clinical diagnosis for the encounter still has to be documented by the patient’s provider.
Do any SDOH Z codes actually affect reimbursement?
Yes, one exception. The three homelessness codes (Z59.00, Z59.01, Z59.02) were reclassified as complications/comorbidities under the FY2024 IPPS final rule and can increase MS-DRG severity and payment on an inpatient claim. Other SDOH Z codes don’t carry this effect.
What is CMS's SDOH screening requirement for hospitals?
Since 2024, hospitals participating in the Hospital IQR Program must screen all inpatient admissions age 18 and older for food insecurity, housing instability, transportation needs, utility difficulties, and interpersonal safety, and report aggregate results annually. It’s a pay-for-reporting measure.
What's the difference between Z codes and V codes?
V codes were the equivalent classification under the older ICD-9-CM system. ICD-10-CM replaced them with the Z code range (Z00-Z99) when the U.S. transitioned to ICD-10-CM.