G40 — What the Epilepsy Code Means in ICD-10 and What to Do
Reviewed by the LabReadAI medical team
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.0–G40.2— localization-related (focal, partial) forms, where the seizure starts in a defined area of the brain;G40.3–G40.4— generalized forms;G40.5— special epileptic syndromes;G40.6–G40.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
G40covers 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:
- Do not read severity into the code.
G40names the disease, not the type, the frequency or the degree of seizure control. - Clarify the type. If the record shows
G40orG40.9without detail, ask your doctor whether the epilepsy is focal or generalized: it shapes both management and follow-up. - Keep a seizure diary. Date, time, duration, circumstances, what came before. For an epileptologist this diary outweighs most investigations.
- 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.
- 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.
- 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.
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.