The difference in energy between the highest occupied and lowest unoccupied electron states in a solid.