
Understanding the Differences Between NPN and PNP Transistors
When you're just getting into electronics, one of the first transistor questions you'll encounter is:
“What’s the difference between NPN and PNP transistors?”
Both are types of BJTs (Bipolar Junction Transistors), and both are used to control current in a circuit, but they behave differently depending on how they’re wired and how current flows.
In this guide, we’ll break down what NPN and PNP transistors are, how they work, where to use them, and how to avoid the most common beginner mistakes.
The Basics: What Is a BJT?
A bipolar junction transistor (BJT) is a type of transistor made up of three semiconductor layers and three pins:
-
Collector (C)
-
Base (B)
-
Emitter (E)
A small current into the base controls a larger current flowing from collector to emitter (or vice versa).
How Each Type Works
NPN Transistor (Most Common)
-
The collector is connected to positive voltage (e.g., 12V)
-
The emitter is grounded
-
A small positive voltage applied to the base allows current to flow from collector to emitter
🧪 Typical use: When a microcontroller outputs HIGH (e.g., 5V), the NPN transistor switches ON and allows current to flow through a motor, LED, or relay.
PNP Transistor
-
The emitter is connected to positive voltage
-
The collector goes to the load, which then connects to ground
-
A LOW signal at the base (below emitter voltage) turns it ON
🧪 Typical use: When you want to switch the positive side of a circuit using a pull-down control.
Real-Life Example: Controlling an LED
Example 1: NPN Transistor (Low-side switch)
-
Connect LED + resistor between +5V and collector
-
Emitter goes to GND
-
Base is connected to control pin through a 1kΩ resistor
-
When base goes HIGH (e.g., 5V from Arduino), LED turns ON
✅ Common, safe for most microcontrollers
Example 2: PNP Transistor (High-side switch)
-
Emitter connected to +5V
-
LED + resistor between collector and GND
-
Base pulled LOW to activate (e.g., via microcontroller pin)
-
Add pull-up resistor (10kΩ) to keep base HIGH when not driven
❗You must ensure the control signal goes LOW to turn it ON—this can be tricky with 3.3V microcontrollers if emitter is at 5V.
Wiring Differences at a Glance
Connection |
NPN |
PNP |
Emitter |
GND |
+V (e.g., +5V) |
Collector |
Load output |
Connect to load, then to GND |
Base Resistor |
Pull up to turn ON |
Pull down to turn ON |
Control Signal |
Needs to be positive |
Needs to be negative |
Common Mistakes to Avoid
-
Reversing the base-emitter connection → won’t work or may damage the transistor
-
Forgetting the base resistor → can fry your GPIO pin or the transistor
-
Driving a PNP base too low without consideration → you might pull more current than the GPIO can handle
-
Switching high current loads directly without checking the transistor’s max current rating
Popular NPN & PNP Transistors
Transistor |
Type |
Max Current |
Notes |
NPN |
800mA |
Fast, general-purpose |
|
NPN |
100mA |
Small signal, low power |
|
NPN (Darlington) |
5A |
High-current switching |
|
PNP |
100mA |
Works with BC547 |
Final Thoughts
Understanding the difference between NPN and PNP transistors is essential for building reliable, safe, and efficient circuits.
-
NPNs are great for switching loads on the ground side (LOW-side switching)
-
PNPs are useful for switching from the positive side (HIGH-side switching)
-
Always include a base resistor, and remember the current flow direction
Once you’re comfortable with NPN and PNP, you’ll be able to:
-
Drive motors, relays, or high-power LEDs
-
Build inverter circuits
-
Create analog amplifiers and oscillators