G40 — What the Epilepsy Code Means in ICD-10 and What to Do

Reviewed by the LabReadAI medical team
G40 — What the Epilepsy Code Means in ICD-10 and What to Do

If the «Diagnosis» field of a referral, appointment slip, discharge note or neurologist's report contains G40, it refers to epilepsy. This is a disease code, not an administrative marker and not a record of the complaint «I had a seizure». Below we take the code apart: what it literally means, where it appears, what it does and does not say about your condition, how it differs from neighbouring codes, and what steps make sense next.

What the G40 epilepsy code means in ICD-10

The official wording of G40 is «Epilepsy». Element by element:

  • G — the letter of ICD-10 Class VI: «Diseases of the nervous system» (categories G00–G99). Class G records actual diseases, unlike Class Z, which records reasons for contact with health services.
  • G40–G47 — the block «Episodic and paroxysmal disorders». The key idea is attacks: these conditions occur as episodes, with a different state in between.
  • G40 — the category «Epilepsy»: an enduring predisposition of the brain to recurrent unprovoked seizures. One detail is rarely explained: the diagnosis is not made from a single event. It requires two or more unprovoked seizures more than 24 hours apart, or one seizure with a high probability of recurrence — for instance with confirmed EEG changes or a structural finding on MRI.
  • The fourth character specifies the type: G40.0G40.2 — localization-related (focal, partial) forms, where the seizure starts in a defined area of the brain; G40.3G40.4 — generalized forms; G40.5 — special epileptic syndromes; G40.6G40.7 — grand mal and petit mal seizures, unspecified; G40.8 — other epilepsy (other specified forms); G40.9 — epilepsy, unspecified.

If the record simply says G40 with no digit after the point, the type was not specified there. More often than not this reflects how the paperwork was filled in, or a stage at which the type is still being clarified — not a feature of your case.

Where you may have seen this code

A disease code ends up in almost every administrative document of a visit:

Document Why G40 is there
Referral to a neurologist, for EEG or MRI A referral is issued with the code of the suspected or previously established disease
Outpatient visit record The administrative record of the visit: the reason is seizures or follow-up for epilepsy
Hospital discharge note The outcome of an admission after a seizure: the diagnosis in words, the code next to it
Neurologist's or epileptologist's report The final wording after examination and work-up
Certificate (for school, work, driving assessment) The code states the established disease without the details of the visit
Insurance claim The clinic reports the service delivered; the code justifies payment

One nuance matters: a code on a referral may be provisional — the doctor entered the most likely disease in order to issue the document. The final wording appears in the specialist's report after the work-up, and it may differ.

Is it dangerous or not: what the code says about your condition

Plainly, avoiding both extremes.

Epilepsy is a chronic condition, not a verdict. For a large share of people seizures are controlled on treatment chosen by a doctor: many live, work and drive, subject to the rules and follow-up that apply. The diagnosis implies neither reduced intelligence nor inevitable decline.

At the same time epilepsy cannot be left unattended. A seizure may happen in a dangerous setting — at the wheel, in water, at height, at the stove; hence the practical everyday limits, which are set individually with a doctor. There is also a rare but recognised risk of sudden unexpected death in epilepsy (SUDEP), higher with uncontrolled generalized seizures — which makes seizure control the main protection.

What the code does not tell you:

  • The type or the focus. The same G40 covers focal seizures without loss of awareness and generalized convulsive ones alike.
  • The frequency. It covers one seizure in several years as well as weekly episodes.
  • The degree of control. Whether remission has been achieved cannot be read from the code — that lives in the seizure diary and the neurologist's notes.

Emergency help is needed, regardless of any code, when: a seizure lasts longer than 5 minutes; seizures follow one another without recovery of consciousness in between (this is status epilepticus, coded separately as G41); it is the first seizure in a person's life; it happened in water or caused injury; consciousness does not return afterwards, or weakness in a limb or disturbed speech persists; the seizure occurred in pregnancy or alongside fever with a stiff neck. Such situations are judged by symptoms, without delay.

Neighbouring codes: G40 versus G41, R56.8 and G43

Seizures are coded differently depending on whether their nature has been established:

Code Meaning How it differs from G40
G40 Epilepsy An established predisposition to recurrent unprovoked seizures
G40.9 Epilepsy, unspecified Epilepsy is diagnosed, but the type is not determined in the record
G41 Status epilepticus Not a diagnosis «in general» but a state here and now: a prolonged seizure or a series without recovery of consciousness
R56.0 Febrile convulsions A seizure in a child with fever; in most cases it is not epilepsy
R56.8 Other and unspecified convulsions Class XVIII, «Symptoms and signs»: an episode is recorded, its nature is not yet established
G43 Migraine The same block G40–G47, but a different disease: attacks of headache, not epileptic seizures
I63 Cerebral infarction Not epilepsy but a past vascular event — one of the common causes of symptomatic seizures in adults

The key difference between G40 and R56.8 is not severity but certainty. R56.8 states «a seizure occurred, the cause has not been named yet»: that is how a first seizure, or one with an obvious provocation (severe sleep loss, alcohol withdrawal, a sharp drop in glucose or sodium), is coded while the work-up continues. Replacing R56.8 with G40 in later documents means the doctor arrived at a specific diagnosis.

Which examinations are usually ordered with this code

Epilepsy is above all a clinical diagnosis built on the description of the seizure. Investigations answer two other questions: which type it is, and whether there is a structural cause.

Investigation Why it is ordered
EEG (electroencephalography) Looks for epileptiform activity; a normal EEG does not rule the diagnosis out, and changes alone do not establish it
Sleep-deprived EEG, video-EEG monitoring Increase the chance of capturing activity and linking it to the episode itself
Brain MRI with an epilepsy protocol Looks for a structural cause: sequelae of stroke or head injury, hippocampal sclerosis, lesions, cortical malformations
ECG Separates a seizure from a faint caused by a heart rhythm disturbance — the two are easily confused
Blood tests: glucose, sodium, calcium, magnesium, full blood count Looks for provoking factors that can cause a seizure without epilepsy
Epileptologist's assessment Determines the type and syndrome, which shapes everything that follows

Cause is a separate line of enquiry. Symptomatic epilepsy develops after other events: head trauma, stroke, or a neuroinfection — for example tick-borne encephalitis, which can leave long-term neurological consequences.

The single most valuable thing you can bring to the appointment is an accurate description of the seizure: what preceded it, whether you remember the episode, whether there were convulsions, tongue biting or incontinence, how long it lasted, how you felt afterwards, and what witnesses saw. A phone video recorded by a relative is often more informative than any test. It also helps to go through the EEG or MRI report in plain language beforehand, so that you arrive with prepared questions rather than a single line of code.

What to do next

A practical sequence:

  1. Do not read severity into the code. G40 names the disease, not the type, the frequency or the degree of seizure control.
  2. Clarify the type. If the record shows G40 or G40.9 without detail, ask your doctor whether the epilepsy is focal or generalized: it shapes both management and follow-up.
  3. Keep a seizure diary. Date, time, duration, circumstances, what came before. For an epileptologist this diary outweighs most investigations.
  4. Collect the documents about the cause. If your papers contain MRI reports with wording such as «other specified disorders of brain», that corresponds to code G93.8 and belongs to the same picture; bring the full report, not just the code.
  5. Discuss everyday safety and limits. Driving, swimming, heights, machinery, sleep — the rules depend on the type and on seizure control, and are set by your doctor rather than by a reference page.
  6. Teach the people around you what to do during a seizure. Move dangerous objects away, turn the person on their side, time the seizure, never force the jaw open or put anything in the mouth, and call an ambulance if it lasts longer than 5 minutes.

No medication or regimen is ever chosen from a code on a certificate: antiseizure treatment is started and changed only by a doctor who has seen you, your EEG and your MRI.

The short version

G40 in ICD-10 means «Epilepsy», a disease from the class of nervous system disorders, in the block of episodic and paroxysmal disorders. The code names the diagnosis but not the type, the seizure frequency or the degree of control. A single seizure is not yet epilepsy — such an episode is usually coded R56.8 until the work-up is complete. The substance lies in the description of the seizures, the EEG, the MRI and the conversation with a neurologist; the code merely records a conclusion already reached.

Frequently asked questions

  • Epilepsy is a chronic condition that, for a large share of people, is brought under control with treatment chosen by a doctor; the diagnosis implies neither reduced intelligence nor inevitable decline. Underestimating it is equally wrong: a seizure can happen in a dangerous setting, and uncontrolled generalized seizures carry a higher, if rare, risk of sudden unexpected death in epilepsy (SUDEP). The code G40 itself reports neither the type nor the frequency of seizures — that information lives in the neurologist's notes.

  • R56.8 is «other and unspecified convulsions» from the class of symptoms and signs: an episode is recorded but its nature has not been named. It is how a first-ever seizure, or one with a clear provocation, is coded while the work-up continues. G40 is used once an enduring predisposition to recurrent unprovoked seizures is established: two or more episodes more than 24 hours apart, or one with a high probability of recurrence. Moving from R56.8 to G40 means the doctor reached a specific diagnosis.

  • It means the type of epilepsy was not specified in that record. The fourth character specifies it: .0.2 localization-related (focal) forms, .3.4 generalized forms, .5 special syndromes, .6.7 grand mal and petit mal seizures unspecified, .9 epilepsy unspecified. Plain G40 is often entered when a referral or visit slip is issued. It is worth clarifying the type at the appointment, because follow-up depends on it.

  • Usually yes, but they answer different questions. EEG looks for epileptiform activity and helps define the type; a normal EEG does not rule the diagnosis out, and changes alone do not establish it. MRI with an epilepsy protocol looks for a structural cause — sequelae of trauma or stroke, hippocampal sclerosis, cortical malformations. How far the work-up goes is decided by the doctor, based on how the seizures are described.

  • When it lasts longer than 5 minutes; when seizures follow one another without recovery of consciousness (status epilepticus, code G41); when it is the first seizure in a person's life, happened in water or caused injury; when consciousness does not return afterwards, or weakness in a limb or disturbed speech persists. In emergency departments the level of consciousness is scored formally, on the Glasgow Coma Scale, so it matters to remember how the person responded right after the seizure.

  • The diagnosis itself does not mean reduced intelligence. Memory can be affected by frequent seizures, sleep loss, anxiety and the treatment chosen — all of which are worth raising with your doctor rather than enduring in silence. Persistent and progressive memory decline is a separate topic with its own causes and work-up, some of them reversible; it is covered in the guide to the signs of dementia. The two should not be conflated.

  • Disease codes routinely appear on certificates, discharge notes, visit records and insurance claims — that is ordinary administrative practice. Certificates of incapacity for work are the exception: they state no diagnosis, neither in words nor as an ICD-10 code, in order to protect medical confidentiality from the employer, and carry only a two-digit reason code such as 01 for illness. So if you can see G40, the document in front of you is something other than a sick note.

For informational purposes only

This article is for informational purposes only and does not constitute medical advice, diagnosis, or treatment. Please consult a healthcare professional for medical guidance.

Decode your tests with AIUpload a photo or PDF — get a clear explanation of every value in minutes. Start decoding
Still have questions about your health?Ask the AI assistant in plain words — about symptoms, how you feel, sleep, or what a value means. No files needed, first question free. Ask AI about health