Using ICD-10 Code Z86.5 for Personal History of Drug Abuse

When you're documenting a patient's history for coding purposes, Z86.5 is the code that comes up. It stands for personal history of drug abuse. This falls under the chapter for factors influencing health status and contact with health services, not under the mental and behavioral disorders chapter. That distinction matters more than people realize. The full code is Z86.5. There's no further specificity beyond that in the standard ICD-10-CM tabular list. Some people try to break it down into Z86.51 for opioid abuse history or Z86.52 for cocaine abuse history, but those aren't valid separate codes in the current version. The code just captures that the patient had a past drug abuse problem. What they're currently doing or what substance they were abusing originally isn't captured here. I've seen coders make the mistake of using F codes instead. F1x.20 is for substance dependence, which is an active diagnosis. Z86.5 is for when that condition is in the past. The difference shows up in a lot of chart reviews I've been part of. If a patient is currently in recovery but has no active substance use disorder diagnosis, Z86.5 is appropriate. If they still have an active disorder, you code the F code and nothing more.

When to Use This Code

You use Z86.5 when the patient's drug abuse history is relevant to their current care but isn't the reason they're being treated. Common scenarios include pre-operative assessments where past substance use affects anesthesia risk, oncology follow-ups where alcohol history impacts liver function, or primary care visits where a medication that could be misused is being considered. The code also applies when a patient is recovering from drug abuse and you're documenting that history during routine encounters. It can appear on any encounter type. It's a secondary code in most situations, meaning it accompanies the primary reason for visit. Here's where people get tripped up. Z86.5 should not be used when the patient is currently being treated for a substance use disorder. That's an active condition coded under F10 through F19. You'll see both Z86.5 and an F code in the same record sometimes. That's wrong. Pick one or the other based on whether the abuse is active or historical.

What Z86.5 Doesn't Cover

Personal history of nicotine dependence is a separate code, Z87.891. Personal history of alcohol abuse is Z86.4. Don't lump them together. I've had billing rejections because someone put Z86.5 when the patient's history was specifically about alcohol. The insurance review caught it every time. Also, Z86.5 does not cover personal history of illegal drug use without abuse. If someone experimented with drugs but never developed an abuse or dependence pattern, this code isn't accurate either. The code requires a documented history of drug abuse specifically. Casual use without a diagnosis of abuse doesn't qualify.

Get the Full Details

Z87.891 – Personal history of nicotine dependence | ICD-10-CM
Z87.891 – Personal history of nicotine dependence | ICD-10-CM

A Real Problem I Ran Into

Last year I worked a case where a patient had a documented history of prescription opioid abuse ten years prior, but the medical record never explicitly stated the word "abuse." The provider had written "history of OUD in remission" and "past substance use disorder." I initially tried to bill Z86.5 and got pushed back because the documentation didn't match the code criteria. The workaround was going back to the provider and asking them to clarify with a specific statement like "personal history of opioid abuse resolved." Once that was documented, the code was clean. This happens more often than you'd think. OUD and drug abuse get used interchangeably in clinical notes, but coders need the specific terminology. Just mapping it yourself will fail an audit. Check the main term "History" in the ICD-10-CM index first. Look under History, personal, drug, abuse. That should lead you directly to Z86.5. Always verify in the tabular list before finalizing. The alphabetic index is a starting point, not the authority. If the patient has a history of multiple substance abuses, you still only report Z86.5 once. The code covers all drug abuse history. You don't add extras or modifiers. Insurance systems and registry reporting tools are not built to handle multiple Z86.5 entries and it creates data messes.

For patients with both a history of drug abuse and a current smoking habit, use Z86.5 and Z87.891 together. They are distinct codes for distinct histories. Putting them on the same claim is standard practice and won't cause issues.

Common Pitfalls to Avoid

One issue that comes up regularly involves patients who have been sober for years. Some providers default to Z86.5 because it seems easiest, even when there's no documented history of abuse. If the record only mentions past recreational use without meeting abuse criteria, Z86.5 is not supported. Documentation needs to be there. If it's not, don't guess. The risk of a compliance flag goes up significantly. Another pitfall is using Z86.5 as the primary diagnosis. Unless the encounter is specifically for managing or addressing the past drug abuse history, this code belongs in secondary position. The primary should reflect the actual reason for the visit. Mixing up the sequence causes claim delays. You should also be aware that some payers have specific policies around Z86.5. A few require additional documentation in the clinical note beyond just the code itself. If you're coding for an insurer that asks for this, include a brief note about the substance, the timeline, and the resolution status. It takes maybe thirty seconds and prevents a follow-up request that could hold up payment for two weeks.

History of Alcohol Abuse ICD-10-CM Codes
History of Alcohol Abuse ICD-10-CM Codes

Looking Up the Code Yourself

The official ICD-10-CM codes are available free on the CDC website and the CMS website. Both update annually with any changes to the tabular list. The 2026 version still lists Z86.5 without subcategories. If you need the raw code set for your EHR system, most major vendors push annual updates. Check with your IT or compliance team rather than downloading from unofficial sources, since third-party files sometimes carry errors from manual transcription.