Britannica Sources used in this answer

How do AND, OR, and NOT logic gates process binary inputs?

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

In digital computers, logic gates serve as the fundamental building blocks for processing information. These circuits operate on a two-valued system of 1s and 0s, following the principles of Boolean algebra to determine output signals based on specific input conditions.12

The three basic logic gates process binary inputs as follows:

  • AND Gate: This gate produces an output of 1 only if both input signals are 1. If either or both inputs are 0, the output is 0.1
  • OR Gate: This gate produces an output of 1 if at least one of the input signals is 1. It only outputs 0 if all inputs are 0.1
  • NOT Gate: Unlike the others, this is a single-input gate that acts as an inverter. It outputs 1 if the input is 0, and it outputs 0 if the input is 1.1

By combining these gates, computers can perform complex calculations and execute logical operations. The relationship between these inputs and outputs is often represented using a truth table.13