OR gate: truth table and symbol
An OR gate is a logic gate that outputs 1 when at least one input is 1, and 0 only when both are 0. Here are its symbol, its full truth table, the boolean expression, and how it is actually built.
OR gate truth table
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Boolean expression: Y = A + B. A 1 in the table means a high voltage (logic true) and a 0 means low (false). Read each row as: for these inputs, the output Y is this value.
Try the OR gate live
3-input OR gate truth table
| A | B | C | Y |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
A 3-input OR gate outputs 1 when any of the three inputs is 1, so only the all-zero row gives 0.
4-input OR gate truth table
| A | B | C | D | Y |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 1 |
| 0 | 0 | 1 | 1 | 1 |
| 0 | 1 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
A 4-input OR gate outputs 0 only when all four inputs are 0 (the 0000 row), and 1 in the other 15 rows.
What the OR gate does
OR is logical addition: the output is 1 whenever any input is 1. In CMOS it is a NOR gate followed by an inverter, mirroring how AND is a NAND plus an inverter.
Build it yourself
Reading a table is one thing; watching the signals flow is another. Open the logic gate simulator and wire an OR gate up from transistors, or read how the OR gate works in CMOS and how gates are designed. You can also generate the table for any expression with the truth table generator.
On a breadboard, four OR gates come in one chip, the 7432 (74LS32, 74HC32): see its pinout and try every gate live.
Other gates (or all seven symbols and truth tables on one page):
The OR gate is one small step toward a working CPU. Build every gate from CMOS transistors and work up to an 8-bit processor in the free digiwleea lab, with the free theory reference alongside.
Open the gate simulator →Frequently asked
What is an OR gate?
An OR gate is a logic gate that outputs 1 when at least one input is 1, and 0 only when both are 0.
What is the truth table of an OR gate?
The OR gate outputs 1 when at least one input is 1, and 0 only when both are 0. For inputs (A,B) the outputs are 0,0→0 0,1→1 1,0→1 1,1→1.
What does the OR gate symbol look like?
It is drawn as a curved shield shape: a concave back where the inputs enter and two curves meeting in a point at the output.
What is the truth table of a 3-input OR gate?
A 3-input OR gate outputs 1 when any of the three inputs is 1, so only the all-zero row gives 0.
What is the truth table of a 4-input OR gate?
A 4-input OR gate outputs 0 only when all four inputs are 0 (the 0000 row), and 1 in the other 15 rows.
What is the boolean expression for OR?
The OR gate is written Y = A OR B (symbolically Y = A + B).
How many transistors does an OR gate take?
A standard CMOS OR gate uses 6 transistors (a NOR gate followed by an inverter). In digiwleea you build it from transistors and the simulator verifies it against this exact truth table.
Which IC is an OR gate?
The 7432 (74LS32, 74HC32) chip holds four OR gates in one 14-pin package; its pinout runs live on the 7432 page.
What is the difference between an OR gate and an XOR gate?
OR outputs 1 when one or both inputs are 1. XOR outputs 1 only when exactly one input is 1, so for 1 and 1 OR gives 1 and XOR gives 0.
What is an example of an OR gate?
An alarm that sounds when either of two doors opens: each door switch is an input, and the alarm is the output.