An electroencephalogram (EEG) is used primarily to diagnose epilepsy and seizure disorders, but it also plays a key role in evaluating sleep disorders, monitoring brain function in critically ill patients, and confirming brain death. The test works by recording the electrical activity of your brain through small electrodes placed on your scalp, giving doctors a real-time picture of how your brain cells are communicating.
How an EEG Records Brain Activity
Your brain contains billions of neurons that communicate through tiny electrical signals. An EEG doesn’t pick up individual signals from single cells. Instead, it detects the combined electrical activity of large groups of neurons firing together, specifically from cells in the outer layer of the brain (the cortex) that are oriented perpendicular to the surface. Think of it like listening to a crowd in a stadium: you can’t hear one person, but you can detect the overall pattern of noise, whether it’s a cheer, a boo, or silence.
The electrodes on your scalp translate these patterns into wavy lines on a screen. A neurologist reads those waves, looking at their speed, shape, and location to determine whether your brain activity falls within normal ranges or shows signs of a problem.
Diagnosing Epilepsy and Seizure Types
Epilepsy diagnosis is the single most common reason doctors order an EEG. The test can reveal abnormal electrical bursts called interictal epileptiform discharges, which are brief spikes or sharp waves that occur between seizures. These discharges are the most useful EEG finding for supporting an epilepsy diagnosis, and they can appear even when you feel completely fine.
Critically, the EEG helps distinguish between two major categories of seizures. Focal seizures start in one specific area of the brain, and the EEG shows abnormal activity that begins in a localized region and gradually spreads outward. Generalized seizures involve both sides of the brain simultaneously, producing distinctive patterns like the 3-Hz spike-and-wave discharges seen in absence seizures (the kind where a person briefly “blanks out”). This distinction matters because it directly shapes which medications and treatments will work best.
One important caveat: a single routine EEG, which typically lasts 20 to 40 minutes, has a sensitivity of only about 17% after a first unprovoked seizure. That means roughly 83% of people who do have epilepsy can have a completely normal result on their first test. A normal EEG does not rule out epilepsy. If your doctor still suspects seizures, they may order repeat testing or a longer recording.
Types of EEG Recording
Not all EEGs are the same, and the type your doctor orders depends on what they’re looking for.
- Routine EEG: Done in a clinic or hospital, lasting 20 to 40 minutes. It’s the standard first step but captures only a brief snapshot of brain activity.
- Ambulatory EEG: You wear a portable recording device for 24 to 72 hours while going about your daily life. This longer window significantly increases the chance of catching abnormal activity that a routine test might miss.
- Video-EEG monitoring: Performed in a hospital, often over several days, with continuous video recording alongside the EEG. This lets doctors see exactly what your body is doing during an electrical event, which is especially valuable for distinguishing epileptic seizures from episodes that look similar but have a different cause.
Sleep deprivation before a routine EEG is sometimes requested because being drowsy and falling asleep during the test can provoke abnormal brain patterns that wouldn’t appear while you’re fully alert.
Evaluating Sleep Disorders
EEG is a core component of polysomnography, the overnight sleep study used to diagnose conditions like sleep apnea, narcolepsy, and parasomnias (such as sleepwalking). During a sleep study, at least three EEG electrodes are placed on your scalp to track your sleep architecture, meaning how your brain cycles through different stages of sleep throughout the night.
Technicians score the recording in 30-second segments called epochs, classifying each one as wakefulness, light sleep, deep sleep, or REM sleep based on the brain wave patterns present. Deep sleep, for instance, is defined by slow, high-amplitude waves occupying more than 20% of a given segment. Disruptions to this normal cycling pattern can reveal the underlying cause of symptoms like excessive daytime sleepiness, unusual movements during sleep, or frequent nighttime awakenings.
Monitoring Brain Function in Critical Care
In intensive care settings, continuous EEG monitoring helps doctors assess patients who can’t communicate. This includes people in comas, those with severe head injuries, and patients experiencing unexplained changes in consciousness. The EEG can detect seizures that produce no visible physical signs (called nonconvulsive seizures), which are surprisingly common in critically ill patients and can cause ongoing brain damage if left untreated.
People with brain lesions caused by tumors or strokes often show very slow EEG waves in the affected area. The size and location of the lesion influence how these patterns appear, giving doctors additional information about the extent of damage. EEG is also used to evaluate the effects of drug intoxication on brain function.
Confirming Brain Death
One of the most consequential uses of EEG is as a confirmatory test for brain death. When clinical examinations suggest that all brain function has permanently ceased, an EEG can be performed to look for electrocerebral silence, meaning a complete absence of detectable brain electrical activity. The standards for this test are extremely strict: the recording must last at least 30 minutes, use high sensitivity settings, employ wide electrode spacing to maximize the chance of detecting even faint activity, and rule out confounding factors like low body temperature or sedative medications. If any doubt remains, the test is repeated.
What to Expect Before the Test
Preparing for an EEG is straightforward. On the day of your test, avoid using hair conditioner, gel, or other styling products, as these create a barrier between the electrodes and your scalp that interferes with signal quality. Arrive with clean, dry hair. Your doctor may also ask you to limit caffeine intake or adjust certain medications beforehand, though these instructions vary depending on why the test is being done.
The test itself is painless. A technician attaches small electrodes to your scalp using a water-soluble paste, and you sit or lie down while the recording runs. You may be asked to breathe deeply, look at a flashing light, or simply rest with your eyes closed. These activities are designed to provoke specific brain responses that help with interpretation. After the recording, the paste washes out easily.
Brain-Computer Interfaces
Beyond traditional diagnosis, EEG technology is being used to develop brain-computer interfaces that translate brain signals into commands for external devices. In medical rehabilitation, this means patients with severe paralysis can potentially control robotic limbs, communicate through computers, or interact with virtual reality environments using only their brain activity. Integration with soft robotic devices is a particularly active area, since flexible, compliant materials are safer for close human contact than rigid alternatives. These applications are still evolving, but they represent a significant expansion of what EEG technology can do beyond the diagnostic setting.

