A capacitor is a device that stores electrical energy by accumulating electric charges on two closely spaced surfaces that are insulated from each other. It is a passive electronic component with two terminals. A capacitor was originally known as a condenser, a term still encountered in a few compound names, such as the condenser microphone. Colloquially, a capacitor may be called a cap.