Author: M Abo Bakar Aslam
XOR (Exclusive OR) Gate
This gate will generate otput as 1 (HIGH), if number of 1's in inputs are ODD. This is also called ODD Function.
1. Properties
- Output will be 1, if number of 1's in inputs are ODD. Otherwise, output is 0.
- This is also called ODD Function
2. Symbol - 2 Inputs XOR Gate

3. Boolean Expression - 2 inputs XOR Gate
Y = AB′ + A′B = A ⊕ B
4. Truth Table - 2 Inputs XOR Gate
Total Number of Rows = 2^(number of inputs) = 2^2 = 4
Total Numbers: 0, 1, 2, 3
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
5. Circuit Diagram using Basic Gates

6. Symbol - 3 Inputs XOR Gate

7. Boolean Expression - 3 inputs XOR Gate
Y = A ⊕ B ⊕ C = (AB′ + A′B) ⊕ C
Y = (AB′ + A′B)'C + (AB′ + A′B)C'
8. Truth Table - 3 Inputs XOR Gate
Total Number of Rows = 2^(number of inputs) = 2^3 = 8
Total Numbers: 0, 1, 2, 3, 4, 5, 6, 7
| A | B | C | Y |
|---|---|---|---|
| 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 |
9. Circuit Diagram using Basic Gates for 3 Input XOR Gate
