An electroencephalogram, or EEG, is a test that measures electrical activity in your brain. Your brain cells communicate through tiny electrical impulses, and an EEG picks up those signals through small sensors placed on your scalp. The result is a recording of wavy lines that doctors can read to spot abnormal patterns linked to conditions like epilepsy, sleep disorders, and brain injuries.
How Your Brain Produces Electrical Signals
Every thought, movement, and sensation involves networks of brain cells firing electrical impulses. These impulses create rhythmic patterns called brain waves, and different types of brain waves dominate depending on what you’re doing or how alert you are. An EEG captures these patterns in real time, giving doctors a window into how your brain is functioning moment to moment.
There are four main types of brain waves, each defined by its frequency (measured in cycles per second, or Hz):
- Beta waves (14 to 38 Hz): The fastest common waves, active when you’re focused, problem-solving, or alert. An excess of beta activity is associated with stress and anxiety.
- Alpha waves (8 to 14 Hz): Present when you’re relaxed, daydreaming, or drifting toward sleep. They tend to disappear when you concentrate hard on something.
- Theta waves (4 to 8 Hz): Linked to creativity and light sleep, especially the REM stage when dreaming occurs.
- Delta waves (0.5 to 4 Hz): The slowest waves, dominant during deep sleep. This is the phase when your body does most of its physical repair and cell regeneration.
When a doctor reads your EEG, they’re looking at which wave types appear, where on the scalp they show up, and whether anything unusual interrupts the expected patterns.
Why Doctors Order an EEG
The most common reason for an EEG is to evaluate epilepsy. In people with epilepsy, the recording often reveals sharp spikes or abnormal wave patterns even between seizures. These “interictal” abnormalities can help confirm a diagnosis and pinpoint where in the brain seizures originate, which matters for choosing the right treatment.
Beyond epilepsy, EEGs are used to investigate unexplained fainting spells, sleep disorders, confusion, head injuries, and strokes. In intensive care settings, continuous EEG monitoring helps doctors track brain function in patients who are in a coma or under heavy sedation. In some countries, including France, EEG recordings showing a complete absence of brain electrical activity are part of the legal criteria for confirming brain death. For that determination, the recording must show no cerebral activity greater than 2 microvolts over a 30-minute period, and doctors must first rule out factors that can mimic flat brain activity, such as sedative drugs, extreme body temperature changes, or metabolic disorders.
What Happens During the Test
A routine EEG takes about 20 to 40 minutes of recording time, though you’ll be in the room a bit longer for setup. A technician places small metal electrodes on your scalp using a washable paste or a stretchy cap with built-in sensors. These electrodes are arranged in a standardized grid pattern so that each one corresponds to a specific region of the brain. The sensors only read electrical activity; they don’t send any electricity into your head, and the process is painless.
During the recording, you’ll sit or lie still while the machine captures your baseline brain activity. The technician will likely ask you to do a couple of activation procedures designed to provoke abnormal patterns that might not show up at rest. One is hyperventilation, where you breathe deeply and rapidly for a few minutes. The other is photic stimulation, where a strobe light flashes at different speeds in front of your closed eyes. In a large study of over 3,000 patients with suspected epilepsy, hyperventilation triggered a seizure in about 2.2% of cases, almost all of them brief and mild. Only one patient (0.03%) experienced a full generalized seizure. No significant heart, lung, or blood vessel complications were reported.
You may also be asked to close your eyes, open them, or try to fall asleep during the test, since different brain states produce different wave patterns that can reveal problems a waking-only recording would miss.
Types of EEG Tests
A standard routine EEG, the most common type, requires a minimum of 20 minutes of clean recording. It’s done in a clinic or hospital and is often enough to detect clear abnormalities. When a routine test comes back normal but symptoms persist, doctors have several longer options.
A sleep-deprived EEG asks you to stay awake the night before (or sleep only a few hours) so you’re more likely to fall asleep during the recording. This is useful because epileptic activity is more likely to surface during drowsiness and sleep transitions. An ambulatory EEG takes things further: you wear a portable recording device at home for up to 24 hours or longer, going about your normal routine. Research from the American Epilepsy Society shows that the greatest yield of abnormal findings in ambulatory monitoring occurs within the first 24 hours. Video EEG monitoring, typically done in a hospital epilepsy unit, combines continuous brain wave recording with a camera so doctors can match any unusual electrical patterns with what your body was doing at that exact moment.
How to Prepare
Preparation is straightforward but important. Wash your hair the night before and skip conditioner, gel, hairspray, or any styling products, since residue on your scalp can interfere with electrode contact. Avoid caffeine, including coffee, tea, chocolate, and soft drinks, as well as alcohol, for 12 hours before the test. Eat a normal meal at your usual time; skipping food can lower blood sugar, which may affect the recording. Continue taking your regular medications unless your doctor specifically tells you otherwise.
If you’re scheduled for a sleep-deprived EEG, your doctor’s office will give you specific instructions on how little sleep to get. In that case, have someone else drive you to and from the appointment.
Reading the Results
A neurologist reviews the full recording and looks for anything outside the expected range: unusual spikes, asymmetry between the left and right sides of the brain, abnormally slow waves in regions that should be faster, or disorganized patterns. A normal EEG doesn’t always rule out a problem. Epilepsy, for example, can produce abnormal electrical activity that comes and goes, so a single 20-minute recording might catch a perfectly normal window. That’s why repeat tests or longer monitoring sessions are sometimes needed.
An increasingly common option is quantitative EEG, or QEEG, which takes the raw recording and runs it through computer analysis. Instead of a doctor eyeballing wavy lines, the software converts the data into color-coded brain maps showing which areas have too much or too little activity compared to a normative database. The American Academy of Neurology and the American Clinical Neurophysiology Society recognize QEEG as a complementary diagnostic tool for epilepsy, vascular brain diseases, dementia, and encephalopathy. It’s also gaining traction in mental health: researchers have found it useful for evaluating ADHD, depression, generalized anxiety disorder, and addiction. Because the test is repeatable, clinicians can use serial QEEG recordings to track whether a treatment, whether medication, psychotherapy, or neurofeedback, is actually changing brain function over time.
Wearable EEG Devices
Consumer-grade EEG headbands and in-ear devices have entered the market, primarily for sleep tracking. These wearable devices use fewer electrodes than a clinical setup, but recent evaluations show they can reliably detect certain sleep stages. Deep sleep (N3) is the most accurately identified stage, while light sleep (N1) remains difficult for wearables to classify correctly. For detecting wakefulness, the best-performing headband devices achieved agreement scores above 0.90 when compared to full clinical sleep studies. Wearable devices slightly underestimated total sleep duration by about 3 minutes on average.
These devices are useful for general sleep insights, but they don’t replace a clinical EEG for diagnosing medical conditions. Clinical systems capture data from many more points across the scalp, use higher-grade amplifiers, and are interpreted by trained specialists who can distinguish true abnormalities from artifacts caused by muscle movement or loose electrodes.