A resistor is an electrical component that restricts the flow of electrical current in a circuit. The analogy often used to explain its operation is to consider current as water flowing in a hosepipe; a resistor can be considered as a constriction in the pipe that limits the flow of water.