Skip to content
digiwleeaTools
LearnGlossaryAboutCheat sheetHow a CPU worksBuild a CPUToolsOpen the lab →

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.

The OR gate symbol: a curved shield shape: a concave back where the inputs enter and two curves meeting in a point at the output.

OR gate truth table

ABY
000
011
101
111

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

Click A and B to toggle them and watch Y follow the table above. It runs the real simulator, and every row is checked before the page is built.

Embed or cite this circuit

Free to embed on a course page, blog or worksheet: paste this code. The circuit stays live, and the small digiwleea badge links back here.

To cite it: digiwleea, “OR gate”, https://digiwleea.wleeaf.dev/tools/truth-tables/or/

3-input OR gate truth table

ABCY
0000
0011
0101
0111
1001
1011
1101
1111

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

ABCDY
00000
00011
00101
00111
01001
01011
01101
01111
10001
10011
10101
10111
11001
11011
11101
11111

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.