In solid-state physics, an energy gap or band gap is an energy range in a solid where no electron states exist, i.e. an energy range where the density of states vanishes.
Especially in condensed matter physics, an energy gap is often known more abstractly as a spectral gap, a term which need not be specific to electrons or solids.