• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Logic XNOR Gate Circuit with Transistors

Logic XNOR Gate Circuit with Transistors

Last updated on 14 October 2025 by Admin-Lavi Leave a Comment

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 AInput BOutput Y
001
010
100
111

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:

Symbol for Logic XNOR Gate Diagram

Circuit Working:

Logic XNOR Gate Circuit Diagram with Transistors

Parts List:

ComponentSpecificationQuantity
Resistors4.7k 1/4 watt2
10k 1/4 watt4
2.2k 1/4 watt1
SemiconductorsTransistor BC547 NPN5
Power Supply +5V DC1

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.

References:

XNOR Gate:

Filed Under: Transistor Circuits

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Logic XOR Gate Circuit with Transistors
Next Post: Simple DC Bulb Circuit »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • Alarm Circuits (39)
  • Amplifier Circuits (67)
  • Arduino Projects (71)
  • Audio Circuits (101)
  • Automobile Circuits (19)
  • Battery Charger Circuits (54)
  • Free Energy (13)
  • Heater and Temperature Controllers (12)
  • High Voltage (1)
  • Indicator Circuits (44)
  • Inverter Circuits (16)
  • LDR Circuits (24)
  • LED and Lamps (134)
  • Meters and Testers (30)
  • Motor Controllers (19)
  • Oscillator Circuits (35)
  • Power Supply Circuits (94)
  • Remote Control Circuits (10)
  • Security and Protection (26)
  • Sensors and Detectors (107)
  • Solar Circuits (23)
  • Timer Circuits (33)
  • Transistor Circuits (68)
  • Transmitter Circuit (16)
  • Tutorials (8)
  • Water Level Controller (4)

Recent Posts

  • Arduino Line Follower Robot Circuit
  • Simple PIR Motion Detector Circuit
  • Simple Thermistor Based Fire Alarm Circuit
  • Fire Alarm Circuit using IC LM358
  • Smoke Detector Circuit using IC LM358

Recent Comments

  1. Henrik Arboe Jensen on Adjustable Voltage, Current Power Supply Circuit using Transistor 2N3055
  2. Admin-Lavi on FM Transmitter Circuit (100 meters range)
  3. DEVINDER SINGH on FM Transmitter Circuit (100 meters range)
  4. Admin-Lavi on Constant Voltage, Constant Current Battery Charger Circuit
  5. Bill on Constant Voltage, Constant Current Battery Charger Circuit

Copyright © 2025 | New Circuit Ideas