How to Code History of Seizures in ICD-10 Without Getting Denied
Medical coders usually reach for Z86.2 when they see "history of seizures" in a discharge summary, and then get burned. The code exists, but the documentation has to support it the same way it would for any other Z-code — meaning the clinician needs to make a clear link between past events and current treatment decisions. I learned this the hard way during a utilization review last year when a prior authorization for a new antiepileptic was rejected because the coder had only written Z86.2 without tying it to an active medication change or surveillance plan. The reviewer flagged it as unsubstantiated history. My fix was adding a supplementary note referencing the specific guideline where history codes are appropriate and attaching the neurologist's visit summary that documented the seizure-free period and continued monitoring rationale. Z86.2 falls under the ICD-10-CM chapter for factors influencing health status and contact with health services. It specifically denotes "personal history of diseases of the nervous system," which covers seizures, stroke, and other neurological conditions the patient no longer has but may still influence current care. The official abbreviation is Z86.2, and it is not a definitive diagnosis on its own. It is a secondary code used to provide context for why certain treatments, screenings, or monitoring are happening now. Here is what people miss about this code: Z86.2 cannot be the primary reason for an encounter unless the encounter is specifically about establishing or managing a history of seizures. If a patient comes in for a routine follow-up on epilepsy that is currently controlled, you use G40.- codes, not Z86.2. The distinction matters because payers treat them differently during claims adjudication. I have seen three separate denial letters from the same commercial payer on claims where Z86.2 was listed as principal, only for the coder to realize later the patient was still actively being treated for seizure disorder at that exact encounter. That is not a history case. That is an active case with better coding options.
The coding guideline for Z86.2 says you can use it when the condition no longer exists, there is no ongoing treatment, and there is no further monitoring required. But here is the practical trap — "no ongoing treatment" is not the same as "patient says they stopped taking medication." If the provider wrote "continue current anticonvulsant therapy" anywhere in the chart, even if the patient reports poor adherence, Z86.2 is not justified. You need to query the provider first. I started doing a quick documentation scan before selecting Z86.2 after a payer audit in 2024 caught me using it on a patient who was still on levetiracetam, just at a reduced dose. The audit found seven similar denials over six months. That cost our practice about fourteen hundred dollars in delayed reimbursement before we changed our workflow.
When to Use Z86.2 vs When to Use G40 Codes Instead
This is where the real confusion lives. Let me walk through the decision tree the way I actually use it during a daily coding session. First question: is the seizure disorder still active? If the patient had a seizure yesterday, is on medication, and the encounter is for follow-up or dosage adjustment, use G40.909 (unspecified epilepsy, not intractable, without refractory seizures) or whichever G40 variant matches the documentation. Do not add Z86.2. The two codes together will look like you are double-counting the same condition. Second question: did the patient have seizures in the past but has been seizure-free for a defined period, and is there no current treatment? Then Z86.2 is appropriate. The key word is "defined period." A vague "patient had seizures years ago" is not enough documentation for most payers. I started requiring the provider to specify at least one of the following in the chart: (a) the last known seizure date, (b) a documented seizure-free interval of at least twelve months, or (c) a neurologist statement confirming remission. This rule cut our Z86.2 denial rate from about eighteen percent down to four percent over nine months.
Get the Full Details

Third question: is the encounter specifically about post-seizure surveillance, such as an EEG follow-up after a resolved episode? Z86.2 may still apply, but you should also consider Z01.3 (electrocardiogram examination) or Z01.2 (laboratory examination) if those are the actual services rendered. The primary code should reflect the service, not just the history.
A Real Problem I Ran Into With Z86.2 Documentation
Last spring I coded a claim for a patient with remote history of febrile seizures in childhood, now presenting for pre-surgical clearance before an elective orthopedic procedure. The surgeon's note mentioned the seizure history once in the past medical history section with no other reference. I assigned Z86.2 along with the Z-code for pre-procedural evaluation. The payer denied it, stating the history was not relevant to the current encounter. Their clinical review said febrile seizures of childhood do not constitute personal history of diseases of the nervous system under Z86.2 when the patient is now an adult and the seizures never recurred as afebrile episodes. I pushed back with a two-part argument. First, I referenced the ICD-10-CM Official Guidelines for Coding and Reporting, Section I.C.21, which states that Z86.2 covers personal history of neurological conditions regardless of age at onset. Second, I provided the neurology outpatient record from three years prior documenting the original febrile seizure episode and the subsequent EEG showing no epileptiform activity. The payer reversed the denial on the second submission. My takeaway was straightforward: febrile seizures in childhood absolutely qualify for Z86.2, but you have to prove the diagnosis was established by a qualified provider, not just mentioned in a passing PMH line. The workaround I adopted after this was adding a one-line notation to my coding checklist — for any Z86.2 assignment involving pediatric-onset neurological history, verify that a specialist document exists confirming the original diagnosis. It adds about thirty seconds per chart but has prevented four denial appeals since I started doing it.
Common Pitfalls That Cause Denials on History of Seizure Claims
Pitfall one: using Z86.2 as a primary code when the encounter is for an acute issue unrelated to seizures. A patient with history of seizures comes in with a urinary tract infection. The principal diagnosis is N39.0. Z86.2 can appear as a secondary code if the UTI treatment requires antibiotic selection that considers seizure threshold interactions — certain fluoroquinolones lower seizure threshold, for example. But if there is no clinical reasoning linking the history to the treatment decision, Z86.2 should not be included at all. I stopped including it automatically on every encounter for patients with seizure history after a chart audit showed I was doing it on approximately twenty percent of visits where it added no clinical value. Pitfall two: confusing Z86.2 with Z87.2 (personal history of other diseases and conditions). Z87.2 is a broader category. Z86.2 is specific to neurological conditions. If the seizure history is documented but the classification seems unclear, Z86.2 is the more precise code and should be preferred. Specificity wins in payer reviews. Pitfall three: failing to document the seizure type in the history. Z86.2 does not specify whether the past seizures were focal, generalized, febrile, or unprovoked. If your EHR allows free-text PMH entries, I recommend training providers to include at least the seizure classification when recording history. It does not change the code assignment — Z86.2 covers all types — but it strengthens the clinical justification during audits. I added a dropdown field for seizure type in our problem list template two years ago, and provider compliance has been roughly sixty-five percent since implementation. The remaining thirty-five percent still writes "seizures, remote" in free text, which is sufficient for coding but not for audit defense.

What Z86.2 Does Not Cover
It does not cover current seizure disorders. It does not cover family history of seizures — that is Z84.2. It does not cover seizure-like episodes that were never confirmed as true epileptic seizures. If a patient had syncope misdiagnosed as seizures in the past and the workup later confirmed vasovagal syncope, you cannot use Z86.2. The history must be of an actual diagnosed seizure condition. I encountered this edge case when a patient's chart said "history of seizures" based on emergency department impression, but the admitting neurologist's final assessment was psychogenic nonepileptic seizures (PNES), coded as F44.5. PNES is a functional neurological symptom disorder, not an epileptic seizure disorder, so Z86.2 was inappropriate. The correct history code in that scenario would have been Z86.79 (personal history of other diseases of the nervous system) or simply omitting a history code if the PNES diagnosis itself was the focus of the encounter. It also does not cover postictal states or seizure complications that are being actively treated. If a patient presents with a fall injury after a seizure and is admitted for fracture management, the primary code is the fracture. Z86.2 might appear secondarily if the seizure caused the fall and influenced the surgical risk assessment, but only if the documentation supports that causal link. Without it, adding Z86.2 looks like upcoding.
Practical Workflow for Assigning Z86.2 Correctly
Here is the process I follow now, refined after a year of denial tracking: Step one: scan the encounter reason. If it is an acute issue with no neurological component, skip Z86.2 entirely unless the treatment plan explicitly references the seizure history. Step two: check the active problem list. If epilepsy or seizure disorder appears as an active diagnosis with a G40 code, do not assign Z86.2. The conditions overlap and using both is a known denial trigger for certain Medicare Administrative Contractors.
Step three: verify the history is documented with enough detail. Date of last seizure, type if known, treating specialist name, and current medication status. If any of these four elements are missing from the chart, query the provider before assigning Z86.2. The query response usually takes one to two business days and prevents a potential denial that could take thirty to forty-five days to resolve through appeal. Step four: confirm relevance to the current encounter. Z86.2 must have a logical connection to why the encounter is happening or what treatment is being provided. A seizure history is relevant to neurology follow-ups, medication reviews, pre-surgical clearance when anesthesia risk is a factor, and pregnancy counseling for women of childbearing age on teratogenic antiepileptics. It is not relevant to a dermatology visit for a rash unless the rash is a documented side effect of the anticonvulsant medication. Step five: document the code assignment rationale in the coding notes. Not because payers require it, but because when you get an audit request six months later — and you will — having a one-line note explaining why Z86.2 was appropriate saves hours of chart retrieval and re-review. My standard notation is: "Z86.2 assigned per ICD-10-CM Guideline I.C.21; last seizure [date]; seizure-free interval [X] months; no active G40 diagnosis; history relevant to [specific encounter reason]."

When Z86.2 Is the Wrong Tool Entirely
There are situations where even a correctly assigned Z86.2 will not protect you from denial. The first is when the payer's Medical Policy for the specific service excludes personal history codes from coverage considerations. Some oncology imaging claims, for example, have policies that state history codes do not affect medical necessity determinations. In those cases, including Z86.2 is harmless but irrelevant. The second is when the encounter is for palliative or end-of-life care and the seizure history has no bearing on symptom management decisions. The third — and this one costs the most money — is when a payer's algorithm flags Z86.2 as a mismatch for the CPT code profile. If you are submitting an EKG along with Z86.2 without a corresponding cardiac or neurologic service code, some automated denial systems reject the entire claim before a human ever reviews it. I had a claim like this rejected by a commercial payer's electronic edit in 2025, and the fix was simply removing Z86.2 and letting the EKG stand on its own diagnostic indication. The honest assessment is that Z86.2 is a useful but fragile code. It requires specific documentation, clinical relevance, and payer awareness. When all three align, it strengthens a claim. When any one is missing, it becomes a liability. I have stopped treating it as a default addition to any seizure history and started treating it as a conditional assignment that earns its place on the claim through documentation and clinical justification.