A MEG test (magnetoencephalography) is a brain scan that detects the tiny magnetic fields produced by electrical activity in your neurons. It maps brain function in real time, with millisecond precision, making it one of the fastest ways to see which parts of the brain are active during specific tasks or during seizure activity. MEG is most commonly used to locate the source of epileptic seizures before surgery and to map critical brain areas like those controlling language and movement.
How MEG Works
Every time a group of neurons fires, the electrical current generates a small magnetic field. These fields are extraordinarily weak, typically no more than a few hundred femtoteslas. For context, the Earth’s magnetic field is roughly a billion times stronger. To pick up something that faint, MEG machines use sensors called SQUIDs (superconducting quantum interference devices), which are the most sensitive magnetic detectors ever built. They work by converting magnetic flux into voltage changes, essentially translating your brain’s magnetic whispers into data a computer can map.
Because magnetic fields pass through the skull without being distorted or weakened, MEG has a significant advantage over EEG (which measures electrical signals on the scalp). The skull’s high resistance smears and reduces electrical signals before they reach EEG electrodes, but it doesn’t affect magnetic fields at all. This gives MEG better accuracy when pinpointing where in the brain a signal originates.
What MEG Is Used For
The primary clinical use of MEG is in epilepsy. When someone with focal epilepsy is being evaluated for surgery, doctors need to know exactly where seizures start. MEG localizes these epileptic sources by detecting the magnetic signatures of abnormal electrical discharges, helping surgical teams plan where to operate while avoiding healthy tissue.
MEG is also used for presurgical brain mapping more broadly. Before any brain surgery, surgeons want to know where your language, motor, and sensory areas are located. Because every brain is slightly different, MEG can map these functions for an individual patient in real time, reducing the risk of damaging critical areas during an operation.
Beyond clinical use, MEG is a growing research tool in neuropsychiatry. Studies have used it to distinguish between Alzheimer’s disease and mild cognitive impairment, identify early markers of schizophrenia, differentiate bipolar disorder from major depression, and study cognitive differences in autism. Its ability to track brain activity on a millisecond timescale makes it especially useful for studying how the brain processes information moment to moment.
MEG vs. fMRI and EEG
MEG, fMRI, and EEG each capture different aspects of brain activity. MEG’s biggest strength is speed: it records neural activity with millisecond resolution, showing the precise timing of brain processes. fMRI, by contrast, measures changes in blood flow and oxygen consumption, which lag behind actual neural firing by several seconds. That makes fMRI excellent for spatial detail (millimeter precision) but slow for timing. MEG captures the “when” far better than fMRI captures it.
Compared to EEG, MEG offers better spatial accuracy because magnetic fields aren’t distorted by the skull, scalp, and other tissues. EEG does have one advantage: it’s better at detecting signals from neurons oriented straight out from the brain’s surface (radially oriented sources), while MEG is most sensitive to neurons oriented along the surface. In practice, many research labs combine MEG and EEG to get the most complete picture.
What the Test Feels Like
A MEG scan is noninvasive, painless, and safe for all ages. There are no injections, no radioactive tracers, and no strong magnetic fields like those used in MRI. The machine is quiet, and patients rarely feel claustrophobic. You can be tested either sitting up or lying down, depending on what your care team needs.
During the test, technologists record your brain activity during both wakefulness and sleep. They monitor you continuously through video and audio, staying in constant contact. A live display shows your head position inside the sensor array so they can tell immediately if you need to be repositioned. For children, parents are welcome in the testing room to help keep things calm.
After the scan, the raw data goes through extensive computer processing to filter out environmental interference and noise from patient movement. Several clinicians then review the cleaned data to complete the localization analysis. A report is typically sent to your referring doctor within about two weeks.
Who Can and Cannot Have a MEG Test
Because the sensors are extraordinarily sensitive to metal and electrical signals, certain implants and objects in your body can interfere with the test or make it unsafe. You generally cannot undergo MEG if you have:
- Cardiac devices: pacemakers or prosthetic heart valves
- Neurostimulators: vagal nerve stimulators or other implanted stimulators
- Surgical hardware: aneurysm clips, metal rods, plates, or screws
- Implanted medical devices: cochlear implants or implanted medication pumps
- Other metal: dental braces, permanent retainers, steel root canal pins, metal fragments in the body or eyes, or tattoos containing metallic ink
If you’ve had previous surgery or an injury where metal may have been left in your body, that also needs to be disclosed before testing. The restriction isn’t about safety risks like those with MRI (where strong magnets can move metal). It’s primarily about signal quality: metal objects create magnetic interference that can drown out the brain’s faint signals, making the data unusable.
Why the Room Matters
MEG testing takes place inside a magnetically shielded room, a specially constructed enclosure designed to block external magnetic fields from power lines, electronic equipment, vehicles, and even the Earth itself. Without this shielding, those background fields would overwhelm the brain signals MEG is trying to detect. The shielded room is one reason MEG systems are expensive and available only at specialized centers, typically large academic medical centers or dedicated epilepsy programs.

