" "
Semiconductor for You
  • Home
  • Semiconductor News
  • Semiconductor Magazine
  • Technology
    • Automotive
    • Consumer Electronics
    • IoT
    • Test and Measurement
    • Lighting
    • Power Management
    • Wireless
    • Personal Electronics
    • Hardware & Software
    • Research
    • Medical Electronics
    • Embedded Design
    • Aerospace & Defence
    • Artificial Intelligence
  • Interview
  • Industries
  • Market
  • Knowledge Base
  • Events
  • Tools
    • Resistor Color Code Calculator
No Result
View All Result
  • Home
  • Semiconductor News
  • Semiconductor Magazine
  • Technology
    • Automotive
    • Consumer Electronics
    • IoT
    • Test and Measurement
    • Lighting
    • Power Management
    • Wireless
    • Personal Electronics
    • Hardware & Software
    • Research
    • Medical Electronics
    • Embedded Design
    • Aerospace & Defence
    • Artificial Intelligence
  • Interview
  • Industries
  • Market
  • Knowledge Base
  • Events
  • Tools
    • Resistor Color Code Calculator
No Result
View All Result
Semiconductor for You
No Result
View All Result
Home Knowledge Base

Exclusive-OR (XOR) Gate: Truth Table, Boolean Expression, Circuit & Applications

Komal Ganvir by Komal Ganvir
July 8, 2026
in Knowledge Base
0

Introduction

The Exclusive-OR (XOR) Gate is a digital logic gate that produces a HIGH output only when its inputs are different. Unlike a standard OR gate, the XOR gate outputs logic 1 only if one input is HIGH and the other is LOW. Due to this unique behavior, XOR gates are widely used in arithmetic circuits, digital comparators, error detection systems, and data encryption applications.

The Exclusive-OR (XOR) gate is one of the most commonly used digital logic gates in electronic circuits. It plays a vital role in arithmetic operations such as binary addition and is widely used in error detection and correction circuits. Although the XOR gate can be implemented by combining basic logic gates, its Boolean function is so important that it is considered a separate logic gate. Along with its complement, the Exclusive-NOR (XNOR) Gate, it belongs to the family of hybrid logic gates.

The XOR gate is frequently used in:

  • Arithmetic logic circuits
  • Binary adders
  • Digital comparators
  • Error detection and correction systems
  • Data encryption and communication circuits

What is an Exclusive-OR (XOR) Gate?

An Exclusive-OR (XOR) Gate is a digital logic gate whose output is HIGH (1) only when the input values are different. If both inputs are the same, the output remains LOW (0). Because it performs modulo-2 addition of binary numbers, the XOR gate is commonly referred to as a Modulo-2 Adder.

2-Input XOR Gate Symbol

The XOR gate is represented by the OR gate symbol with an additional curved line at the input side.

Truth Table of 2-Input XOR Gate

A B Output (Q)
0 0 0
0 1 1
1 0 1
1 1 0

Boolean Expression:

Q = A ⊕ B

This expression means:

“A OR B, but NOT both.”

Working Principle of XOR Gate

The Exclusive-OR gate compares two binary inputs and generates a HIGH output only when the inputs are different.

The output conditions are:

  • If A = 0 and B = 0 → Output = 0
  • If A = 0 and B = 1 → Output = 1
  • If A = 1 and B = 0 → Output = 1
  • If A = 1 and B = 1 → Output = 0

In simple terms, the XOR gate produces an output of 1 only when the number of HIGH inputs is odd.

Boolean Expression of XOR Gate

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

Q = A ⊕ B

This can also be written as:

Q = A’B + AB’

where:

  • A’ = NOT A
  • B’ = NOT B

This expression indicates that the output is HIGH only when one input is HIGH and the other is LOW.

3-Input XOR Gate

A three-input XOR gate produces a HIGH output whenever an odd number of inputs are HIGH.

Truth Table of 3-Input XOR Gate

A B C Output (Q)
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1

Boolean Expression:

Q = A ⊕ B ⊕ C

The output becomes HIGH whenever the number of logic 1 inputs is odd.

XOR Gate Implementation

Although the XOR gate is treated as a separate logic gate, it can be implemented using basic logic gates.

The Boolean expression is:

Q = A’B + AB’

This implementation requires:

  • NOT Gates
  • AND Gates
  • OR Gate

An XOR gate can also be implemented using only NAND gates, making it suitable for integrated circuit design.

Advantages of XOR Gate

  • Simple digital comparison of binary values.
  • High-speed logic operation.
  • Essential for binary arithmetic circuits.
  • Easy implementation using universal gates.
  • Widely used in digital communication systems.
  • Supports parity generation and checking.

Disadvantages of XOR Gate

  • More complex than basic logic gates.
  • Requires multiple gates for implementation if a dedicated XOR IC is unavailable.
  • Circuit complexity increases with multiple inputs.

Applications of XOR Gate

  • Half Adders.
  • Full Adders.
  • Binary arithmetic circuits.
  • Digital comparators.
  • Parity generators.
  • Parity checkers.
  • Error detection and correction circuits.
  • Data encryption systems.
  • Digital communication systems.
  • Controlled inverter circuits.
  • Binary subtraction circuits.
  • Microprocessors and ALUs.

Conclusion

The Exclusive-OR (XOR) gate is one of the most important digital logic gates used in modern electronic systems. Its ability to identify differences between input signals makes it an essential component in arithmetic operations, digital communication, error detection, and cryptographic systems. Due to its versatility and high-speed operation, the XOR gate is widely used in computers, microprocessors, embedded systems, and digital electronics.

Tags: Exclusive-OR (XOR) Gate
Komal Ganvir

Komal Ganvir

Browse by Category

  • Aerospace and Defence
  • AI & Data Center
  • Articles
  • Automotive
  • Communication
  • Consumer-Electronics
  • Design & Manufacturing
  • Hardware & Software
  • Interview
  • IoT
  • Knowledge Base
  • Lighting
  • Market
  • personal-electronics
  • Power Management
  • Research
  • Semiconductor Events
  • Semiconductor News
  • Sensors
  • Technology
  • Test and Measurement
  • Uncategorized
  • Wireless
Semiconductor For You

Semiconductor For You is a resource hub for electronics engineers and industrialist. With its blend of
technology features, news and new product information, Semiconductor For You keeps designers and
managers up to date with the fastest moving industry in the world.

Follow Us

Browse by Category

  • Aerospace and Defence
  • AI & Data Center
  • Articles
  • Automotive
  • Communication
  • Consumer-Electronics
  • Design & Manufacturing
  • Hardware & Software
  • Interview
  • IoT
  • Knowledge Base
  • Lighting
  • Market
  • personal-electronics
  • Power Management
  • Research
  • Semiconductor Events
  • Semiconductor News
  • Sensors
  • Technology
  • Test and Measurement
  • Uncategorized
  • Wireless

Recent News

Swissbit and Nexperia collaborate to support AI, cloud, and server platforms

Swissbit and Nexperia collaborate to support AI, cloud, and server platforms

July 9, 2026
Melexis expands groundbreaking Triphibian® technology for low-pressure applications

Melexis expands groundbreaking Triphibian® technology for low-pressure applications

July 9, 2026
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2026 Semiconductor For You

No Result
View All Result
  • Home
  • Semiconductor News
  • Technology
    • IoT
    • Wireless
    • Power Management
    • Automotive
    • Hardware & Software
  • Market
  • Interview
  • Knowledge Base
  • Tools
    • Resistor Color Code Calculator

© 2026 Semiconductor For You

Advertisement