Contents

Digital Electronics
Number Systems
Logic Gates
Boolean Algebra
Combinational Circuits
Sequential Circuits
Memory & PLDs
Digital System Design
Other Topics
Other Subjects
Section Progress13%

2 of 15 articles

OR Gate

Two input OR, truth table, Boolean expression Y=A+B, IC 7432.

Darshan N
Updated: 19 March 2026
5 min read

The OR gate is a fundamental logic gate that produces a high output whenever at least one of its inputs is high. It represents the logical disjunction operation and is directly used in Boolean sum-of-products expressions. Grasping the OR gate is essential for building adders, comparators, multiplexers, and nearly every combinational digital circuit.

Unlike the AND gate which requires all inputs to be active, the OR gate activates on any active input, making it suitable for combining multiple trigger conditions or implementing inclusive OR logic in control systems.

OR Gate: Symbol, Truth Table and Boolean ExpressionABYORY = A + BIC: 7432 (Quad 2-input OR)Truth TableABY=A+B000011101111Output is HIGH when ANY input is HIGH
Figure 1: OR gate ANSI/IEEE symbol, truth table (three rows produce output=1), and expression Y = A + B

Core Concept Explanation

The OR gate computes the Boolean sum of its inputs. For a two-input OR gate with inputs A and B, the output Y is defined as Y = A + B. This output equals 1 whenever at least one input is 1. It equals 0 only when both inputs are simultaneously 0. The plus sign here represents logical OR, not arithmetic addition. This distinction is critical in Boolean algebra contexts.

In transistor-level CMOS implementation, an OR gate is realized by connecting a NOR gate with a NOT gate at its output. The NOR gate is the natural output of a parallel CMOS transistor pull-down network, and adding the inverter restores the OR function. This means at the physical level, OR = NOR + NOT, which adds a stage of delay compared to NOR alone.

The IC 7432 provides four independent two-input OR gates on a single chip. It operates at 5V in TTL logic and has typical propagation delay around 14 nanoseconds. Each gate in 7432 can drive standard TTL loads and is widely used in breadboard-level digital logic laboratory experiments.

Mathematical Expression

The Boolean expression for a two-input OR gate is:

Y = A + B

Boolean OR obeys commutativity (A+B = B+A), associativity ((A+B)+C = A+(B+C)), identity element 0 (A+0 = A), and annihilator element 1 (A+1 = 1). For an n-input OR gate, the output is 0 only for the single maxterm where all inputs are 0 (the all-zeros combination). The OR gate is therefore a maxterm generator for the all-zeros row. In product-of-maxterms (POM) expressions, OR gates generate individual sum terms.

Practical Understanding

The OR gate is used in priority logic and fault detection circuits. If multiple sensors each indicate a fault condition, an OR gate across all sensor outputs generates an alarm whenever any single sensor activates. This makes it ideal for any-of-N detection scenarios. It is also used in address decoding and opcode detection circuits in CPU design.

In sum-of-products Boolean simplification, OR gates combine the AND gate outputs (product terms) into the final function output. Without OR gates, it is not possible to implement multi-minterm Boolean functions efficiently. The OR gate thus forms the second layer in a standard two-level combinational logic implementation.

Example
Given:
Three-input OR gate with A=0, B=0, C=1

Why this formula applies:
OR gate output is 1 if any input is 1

Formula:
Y = A + B + C

Substitution:
Y = 0 + 0 + 1

Calculation:
0 + 0 = 0, then 0 + 1 = 1

Final Answer:
Y = 1
Even though A and B are 0, C=1 drives the output to logic HIGH.
Exam Tip: The OR gate is 0 for exactly ONE row in its truth table (all inputs = 0). For an n-input OR gate, there are 2^n rows and only 1 produces output = 0. This means OR gate implements a single maxterm. GATE often tests this in canonical Product of Maxterms (POM) expressions.

Loading lab...

Quick Revision

  • Boolean expression: Y = A + B (logical addition, not arithmetic).
  • Output is 0 only when ALL inputs are 0. Any single 1 input drives output to 1.
  • Two-input OR gate: 4 rows in truth table, 3 rows give output = 1.
  • Standard IC: 7432 (Quad 2-input OR gate, TTL, 5V).
  • OR gate implements maxterm for the all-zeros input row.
  • In CMOS: OR = NOR + NOT. NOR is hardware-simpler than OR.
  • Exam trap: OR is not universal. Do not confuse '+' here with arithmetic addition.

OR Gate Quiz

Test your knowledge of OR gate operation, truth tables, and IC 7432 specifications.

Question 1 of 3

Q1.For a 2-input OR gate, the output Y = A + B is logic 0 only when: