An OR gate is a digital logic circuit that outputs a 1 (high) whenever at least one of its inputs is 1. If all inputs are 0, the output is 0. That single rule makes it one of the most fundamental building blocks in digital electronics, used in everything from computer processors to home alarm systems.
How an OR Gate Works
The logic is exactly what the name suggests: if input A or input B (or both) is high, the output is high. The only time the output stays low is when every input is low. For a standard 2-input OR gate, here’s the complete truth table:
- A = 0, B = 0: Output = 0
- A = 0, B = 1: Output = 1
- A = 1, B = 0: Output = 1
- A = 1, B = 1: Output = 1
Three out of four input combinations produce a 1. This “inclusive” behavior is what distinguishes an OR gate from an XOR (exclusive OR) gate, which outputs 1 only when the inputs differ.
Boolean Notation
In Boolean algebra, the OR operation is written with a plus sign. For two inputs A and B, the expression is Q = A + B. Don’t confuse this with regular addition. In Boolean math, 1 + 1 = 1, not 2. The plus sign simply means “or.” You’ll see this notation in circuit diagrams, programming logic, and digital design textbooks. On schematic symbols, the OR gate is drawn as a curved shield shape with two or more input lines on the left and one output line on the right.
Scaling Beyond Two Inputs
OR gates aren’t limited to two inputs. A 3-input OR gate outputs 1 if any of its three inputs is 1, and the same principle extends to four, five, or more inputs. The rule never changes: all inputs must be 0 for the output to be 0.
In practice, multi-input OR gates are often built by chaining 2-input gates together. You feed the output of one OR gate into an input of the next. This cascading approach lets designers build complex logic from simple, standardized components.
Inside the Circuit
At the hardware level, a basic OR gate can be built with just diodes and a resistor. This approach is called diode-resistor logic (DRL). Each input connects through a diode to a shared output line that’s tied to ground through a resistor. When any input goes high, current flows through that diode, pulling the output voltage up. When all inputs are low, the diodes block current flow, and the output stays at ground level.
Modern integrated circuits use transistors instead of simple diodes, which allows for faster switching and cleaner signal levels. But the underlying logic is identical.
The 7432 IC Chip
If you’re working with physical circuits, the most common OR gate chip is the 7432 (or its updated version, the 74LS32). It’s a 14-pin integrated circuit that packs four independent 2-input OR gates onto a single chip. It runs on a 5V power supply, with anything above 2V on an input pin registering as a logical 1, and anything below 0.8V registering as a 0.
The pin layout pairs inputs and outputs for each gate sequentially. Pins 1 and 2 are the inputs for the first gate, pin 3 is its output. Pins 4 and 5 feed the second gate, pin 6 is its output, and so on. Pin 7 connects to ground, and pin 14 connects to the positive supply voltage. This chip is a staple in electronics courses and breadboard prototyping.
OR Gates in Everyday Electronics
OR gates show up wherever a system needs to respond to any one of several conditions. A home security system is a classic example. Imagine an alarm that should trigger if a motion sensor fires or if a door sensor trips during night mode. Each condition is handled by its own logic (often AND gates checking that multiple criteria are met simultaneously), and then the results feed into an OR gate. If either condition is true, the OR gate passes a 1 to the alarm, and it sounds.
The same principle applies to error detection in computers, where a processor might need to flag a problem if any one of several error signals goes high. It’s also how input devices work at a basic level: a keyboard controller uses OR-type logic to determine whether any key has been pressed. Anytime the question is “has at least one of these things happened,” an OR gate is the natural solution.
OR Gates vs. Other Basic Gates
Digital logic rests on a small set of gate types, and understanding how OR gates compare to the others helps clarify their role:
- AND gate: Outputs 1 only when all inputs are 1. It answers the question “are all conditions met?”
- OR gate: Outputs 1 when any input is 1. It answers “is at least one condition met?”
- NOT gate: Has a single input and flips it. A 1 becomes 0, and a 0 becomes 1.
- XOR gate: Outputs 1 when inputs differ. With two inputs, it’s like OR but outputs 0 when both inputs are 1.
These gates combine to form every digital circuit in existence. An entire computer processor is ultimately just millions of AND, OR, and NOT gates arranged in carefully designed patterns. The OR gate’s job within that ecosystem is simple but essential: detect whether at least one signal is active and pass that information along.

