An electroencephalogram (EEG) is a test used to evaluate the electrical activity in the brain. Brain cells communicate with each other through electrical impulses, and an EEG can be used to help detect problems associated with this activity.