Britannica Sources used in this answer

How do on-off electrical states represent binary digits in a computer?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In digital computers, electrical states represent binary digits (bits) through the use of transistors, which function as high-speed electronic switches.12

These components operate based on two distinct electrical conditions:
* On (1): A high voltage state where current is permitted to flow through the circuit.31
* Off (0): A low voltage state where the flow of current is blocked.31

By applying a specific voltage to a transistor's gate, the device can either pass or block electrical pulses. This binary logic allows computers to process information using a two-valued system, where complex operations are reduced to combinations of these fundamental on/off states. Because these states are reliable and easily managed in electronic hardware, they serve as the foundation for all digital computer memory and processing.12435