This is project is for Logic XOR Gate Circuit with Transistors and it uses transistors and resistors and also it shows how XOR logic works.
Output is high only when inputs are different and therefore this circuit is good for students and beginners to learn digital logic.
Truth Table for Logic XOR Gate:
| Input A | Input B | Output Y (A ⊕ B) |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Symbol for Logic XOR Gate:

Circuit Working:

Parts List:
The circuit diagram above uses three NPN transistors, and the resistors control the current flowing into the transistors.
When both inputs are same then output is low and when inputs are different then output goes high and then this shows XOR logic operation in hardware.
Formulas with Calculations:
Below are the formulas for XOR gate circuit.
Each base resistor R2 and R3 is 10k to control input base current.
Base current Ib = (Vin – Vbe) / Rb.
If Vin is 5V and Vbe is 0.7V, then Ib = (5 – 0.7) / 10000 = 0.43 mA.
Collector current Ic = β × Ib.
If transistor gain β is 100, then Ic = 43 mA.
Therefore, this current is enough to drive the logic output.
How to Build:
To build a Logic XOR Gate Circuit with Transistors follow the below steps for connections:
- First, collect all the parts as shown in circuit diagram
- Next, input A reaches the base of Q1 through resistor R2.
- Then, resistor R3 applies input B to the base of Q2.
- Now Q1 and Q2 collectors connect to +5V through R1 resistor.
- After that, Q3 base connects between collectors of Q1 and Q2.
- Also, Q3 collector connects to output Y through R4.
- Finally, all emitters connect to ground GND.
Conclusion:
Overall, this Logic XOR Gate Circuit with Transistors uses simple components and it has three transistors and a few resistors to perform XOR function.
Moreover, the circuit is easy to build and understand and also it helps beginners and students learn basic digital logic with hardware.
Leave a Reply