XNOR gate is one of the basic logic gates.
It gives HIGH output when both inputs are same.
If both inputs are 0 or both are 1 then output is 1.
If one input is 0 and other is 1 then output is 0.
It is also called an “Equivalence Gate”.
This Logic XNOR Gate Circuit with Transistors is interesting to make.
Truth Table for Logic XNOR Gate:
| Input A | Input B | Output Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Output Y is HIGH (1) when both inputs A and B are same (00 or 11).
Output Y is LOW (0) when inputs are different (01 or 10).
Symbol for Logic XNOR Gate:

Circuit Working:

Parts List:
| Component | Specification | Quantity |
|---|---|---|
| Resistors | 4.7k 1/4 watt | 2 |
| 10k 1/4 watt | 4 | |
| 2.2k 1/4 watt | 1 | |
| Semiconductors | Transistor BC547 NPN | 5 |
| Power Supply +5V DC | 1 |
In the above circuit diagram when A and B both are LOW then Q1 and Q2 are OFF.
Then Q3 and Q4 also stay OFF.
Q5 get base current through R6 and R7.
And output Y is HIGH.
When A and B both are HIGH then Q1 and Q2 turn ON.
They give base signal to Q3 and Q4 and both turn ON.
Q4 ground the base of Q5 and so Q5 is OFF.
And output Y is HIGH again.
When A is HIGH and B is LOW then Q1 is ON and Q2 is OFF.
Then Q3 is ON and Q4 is OFF.
Q3 pull down base of Q5 and so Q5 is OFF.
And so output is LOW.
When A is LOW and B is HIGH then Q1 is OFF and Q2 is ON.
Then Q3 is OFF and Q4 is ON.
Q4 is ground base of Q5 with LED OFF and output LOW.
Output is HIGH only when both inputs are same (00 or 11).
Formulas:
Below is the formula for Logic XNOR Gate Circuit.
Logic formula for XNOR is:
Y = A ⊙ B = A’B’ + AB
This means output Y = 1 when both A and B same.
How to Build:
To build a Logic XNOR Gate Circuit with Transistors follow the below steps for connections:
- Gather all the parts as shown in circuit diagram.
- Pin emitter of Q1 is connected to collector of Q2 transistor
- And emitter of Q2 transistor of connected to GND
- Pin base of Q1 connected to input A through R1.
- Pin base of Q2 connected to input B through R2.
- Base of transistor Q3 and Q4 are connected to input of A and B through resistors R3 and R4.
- Collectors of Q3 and Q4 connected to base of Q5 via R7.
- Collector of transistor Q4 to connected to +5V through resistor R6
- Emitter of Q5 transistor connect to ground.
Conclusion:
This XNOR gate circuit is simple and is of low cost.
It uses only five BC547 transistors and few resistors.
It clearly shows logic gate operation using transistor switching.
Useful for students and beginners to understand logic gates in hardware form.
Leave a Reply