NPN vs PNP Transistor: Differences, Symbols, and How to Choose

NPN and PNP are the two types of bipolar junction transistor (BJT). They are complementary — mirror images of each other, performing the same job (switching or amplifying current) with reversed polarity and current direction. They look alike and carry similar specs, but they are not interchangeable: connect a PNP where an NPN belongs, apply the same drive signal, and the circuit either does nothing or behaves backwards.

This guide covers what each type is, how to read the symbols, how they work, the full list of differences, how NPN and PNP outputs behave in industrial sensors, how to drive each one in a real circuit, and how to choose between them.

NPN and PNP transistor symbols showing the emitter arrow pointing outward for NPN and inward for PNP

What Is an NPN Transistor?

An NPN transistor is a BJT made from two N-type semiconductor layers separated by a thin P-type layer — Negative-Positive-Negative.

NPN is the most widely used BJT type. Its majority carriers — electrons — move faster than the holes used in PNP devices, which gives NPN faster switching, higher gain, and lower manufacturing cost. It turns on when the base is driven more positive than the emitter, conducts from collector to emitter, and sits naturally on the low side of a load (between the load and ground). In industrial sensors, an NPN output is called a sinking output: when active, it connects the output to ground and sinks current from the load, pulling the signal low.

What Is a PNP Transistor?

A PNP transistor is the opposite: two P-type layers separated by a thin N-type layer — Positive-Negative-Positive.

PNP uses holes as the majority carriers, making it slightly slower than NPN. Its advantage is that it sits naturally on the high side of a load (between the positive supply and the load). It turns on when the base is driven more negative than the emitter, and conducts from emitter to collector. In industrial sensors, a PNP output is called a sourcing output: when active, it connects the output to the positive supply and sources current to the load, pulling the signal high. A high signal for “active” matches standard positive-logic conventions, which is why PNP is the default in European automation.

NPN vs PNP Symbols

The schematic symbols are nearly identical — the only difference is the direction of the arrow on the emitter. In an NPN, the arrow points outward, away from the base; in a PNP, it points inward, toward the base. The arrow always sits on the emitter and shows the direction of conventional current flow.

The standard mnemonic is “NPN — Not Pointing iN” (arrow points out), and the reverse for PNP. Correctly identifying the arrow matters during schematic review and PCB footprint checks — mixing them up is one of the most common beginner mistakes, as the Adafruit transistors guide notes.

How Do NPN and PNP Transistors Work?

Both types work on the same principle: a small current at the base controls a much larger current between the emitter and collector. The only difference is the direction of that current and the polarity needed to turn the device on.

NPN transistor operation

NPN transistor working principle showing electron flow and conventional current from collector to emitter

To turn on an NPN, you apply about +0.7 V between base and emitter, forward-biasing the base-emitter junction. Electrons then flow from the N-type emitter into the thin, lightly doped P-type base; most pass straight through and are collected by the collector. A small base current (Ib) controls a much larger collector current (Ic), and the ratio Ic/Ib is the current gain (β or hFE), typically 50 to 800.

One point that confuses beginners: schematic arrows show conventional current (positive to negative), which is collector to emitter in an NPN. The electrons themselves move the opposite way. Both descriptions are correct — conventional current is simply what every datasheet and schematic uses.

PNP transistor operation

PNP transistor working principle showing hole flow and conventional current from emitter to collector

The PNP works the same way with everything reversed. The base must be about 0.7 V below the emitter, which causes a small current to flow out of the base. Holes then flow from the P-type emitter through the thin N-type base into the P-type collector, producing a large emitter-to-collector current controlled by the same small base current. The gain relationship is identical.

So the operating difference is simply: NPN conducts when the base is more positive than the emitter (base current flows in); PNP conducts when the base is more negative than the emitter (base current flows out). Everything else is the same with reversed polarity.

Operating modes

Both types operate in three modes, identically. In cutoff the transistor is fully off and behaves like an open switch. In saturation it is fully on with a minimal voltage drop (about 0.2 V) and behaves like a closed switch. In the active region it works as a proportional amplifier, with output current scaling linearly with input — used in analog circuits. For switching (and for sensor outputs), only cutoff and saturation matter.

NPN vs PNP Sensor Outputs: Sinking vs Sourcing

In industrial sensors, the NPN/PNP distinction shows up as sinking versus sourcing outputs. Both drive the same loads — a PLC input, relay coil, indicator lamp, or solenoid. The difference is where the sensor’s output transistor sits relative to the load.

PNP sourcing output versus NPN sinking output wiring for industrial sensors

In a PNP (sourcing) configuration, the transistor connects the positive supply to the output, and the load is wired between the output and ground. When the sensor is active, current flows from the sensor through the load to ground, and the output goes high (≈ V+). In an NPN (sinking) configuration, the transistor connects the output to ground, and the load is wired between V+ and the output. When the sensor is active, current flows from V+ through the load into the sensor to ground, and the output goes low (≈ 0 V).

The same load carries the same current either way — but the output signal is inverted. This is where wiring goes wrong: a PLC input expects one polarity, and connecting the wrong sensor type makes the PLC read the signal backwards. As the Arrow article on NPN vs PNP in industrial controls explains, the counterintuitive rule is that NPN sensors pair with sourcing input modules, and PNP sensors pair with sinking input modules — each side provides one half of the current path. Many modern PLC modules accept both; always check the datasheet before ordering.

Two related points worth keeping straight. NPN/PNP is not the same as NO/NC. NPN/PNP describes how the signal is delivered; normally-open and normally-closed describe when the output is active. They are independent, and you specify both when ordering. And some sensors offer a push-pull output, which contains both an NPN and PNP transistor and actively drives high and low with no floating state — it works with both sourcing and sinking inputs and suits mixed-standard environments.

Differences Between NPN and PNP Transistors

Every difference traces back to the reversed N-P-N versus P-N-P structure, which reverses the current direction and signal polarity.

FeatureNPNPNP
Semiconductor layersN-P-NP-N-P
Symbol arrowPoints outward from emitterPoints inward to emitter
Majority carriersElectrons (faster)Holes (slower)
Current directionCollector → EmitterEmitter → Collector
Base current to turn ONFlows into the baseFlows out of the base
Turn-on voltageVbe ≈ +0.7 VVbe ≈ −0.7 V
Switching positionLow-side (load to ground)High-side (V+ to load)
Sensor output when activeLow (≈ 0 V) — sinkingHigh (≈ V+) — sourcing
PLC input pairingSourcing input modulesSinking input modules
Wire-break behaviorOutput may float undefinedOutput loses signal → reads OFF
Switching speedFasterSlightly slower
VCE(sat) at equal conditionsLowerOften slightly higher
Cost and availabilityMore common, lower costLess common, higher cost

Applications of NPN and PNP Transistors

Both types appear across switching, amplification, and industrial control, but each is the natural fit for different roles.

ApplicationNPNPNP
Digital logic / MCU switchingDefault fast low-side switchLess common; positive-logic pull-up control
AmplifiersCommon-emitter and Class A/B stagesPaired with NPN in complementary push-pull stages
Motor driversSinks current through the load (low-side)Sources current to the load (high-side); both in H-bridges
Relay / solenoid controlGrounds one side of the coilSupplies power to the coil side
LED switchingCathode to ground (low-side)Supplies current to the anode (high-side)
Industrial sensorsSinking output — signal low when activeSourcing output — signal high when active
PLC input modulesPair with sourcing inputsPair with sinking inputs
Power supplyNegative-ground systemsHigh-side pass element, positive-ground systems

How to Drive NPN and PNP Transistors

Knowing the difference is one thing; driving each one correctly is where most designs succeed or fail. The two types need mirror-image drive circuits.

Low-side NPN switch. This is the simplest and most common arrangement: the load sits between V+ and the collector, the emitter goes to ground, and a microcontroller or logic pin drives the base through a resistor. Size the base resistor so the transistor saturates: RB ≈ (Vdrive − 0.7) / IB, choosing IB ≈ IC / 10 for a solid saturation margin. For a 5 V logic pin switching a 200 mA load, IB ≈ 20 mA, so RB ≈ (5 − 0.7) / 0.02 ≈ 215 Ω — pick 220 Ω.

High-side PNP switch. A PNP turns on when its base is pulled below its emitter, which sits at V+. A ground-referenced logic pin cannot pull a base up to V+ to switch it off, and if V+ exceeds the logic voltage, current can flow back into the pin. The standard fix is to drive the PNP through an NPN: the logic pin switches the NPN, the NPN pulls the PNP base low to turn it on, and a pull-up resistor to V+ turns it off. This keeps the logic pin safely away from V+.

Common Mistakes When Using NPN and PNP Transistors

  • Mixing up the symbol arrow. The emitter arrow points out on an NPN and in on a PNP — reading it backwards puts the wrong part in the schematic. Remember “NPN — Not Pointing iN.”
  • Treating the two as drop-in swaps. Same footprint, opposite biasing and current direction. Swapping one for the other without redesigning the drive leaves the circuit dead or inverted.
  • Driving the base with no resistor. Tying a logic pin straight to the base allows unlimited base current and can damage the pin or the transistor. Always size a base resistor for saturation.
  • Forgetting the flyback diode. Any inductive load — relay coil, motor, solenoid — produces a voltage spike when the transistor turns off. Place a flyback diode across the load to absorb it.
  • Assuming NPN and PNP are symmetric. At the same current a PNP often shows a higher VCE(sat) than its NPN counterpart, so check the device datasheet rather than assuming a mirror image.
  • Under-driving from 3.3 V logic. With a 3.3 V pin and a base resistor, the actual VBE may be too low for clean saturation. Reduce the base resistor or pick a part characterized for low-voltage drive.
  • Mismatching sinking/sourcing to the PLC input. An NPN (sinking) sensor on an input expecting PNP (sourcing) reads backwards. Match the sensor output to the input module.

How to Choose Between NPN and PNP

For industrial sensors, work through these in order:

  • Start with your PLC input module. Sinking input modules need PNP sensors; sourcing input modules need NPN sensors; universal modules accept both. This is the single most important factor.
  • Follow your wiring standard. European factories default to PNP sourcing (Siemens, Beckhoff, B&R); Asian markets (China, Japan, Korea) default to NPN sinking (Mitsubishi, Omron, Keyence); North America uses both.
  • Consider fail-safe behavior. In a PNP sourcing circuit, a broken output wire reads as OFF — a clean “no detection.” An NPN sinking circuit may float on a broken wire, which some modules misread as a detection. For safety-critical use, PNP is the safer default.

For board-level circuits, the rule is simpler: low-side switching calls for NPN, high-side switching calls for PNP, and complementary stages (Class B amplifiers, H-bridge motor drivers) use one of each as a matched pair. Then verify the electrical ratings: max collector current (Ic) above your load current, breakdown voltage (Vceo) above your supply with margin, and current gain (hFE) high enough that your base drive saturates the part.

Frequently Asked Questions

Are NPN and PNP transistors interchangeable? No. They have opposite current directions and reversed biasing. Drop an NPN in for a PNP with the same drive and it either won’t turn on or the output inverts — you must match the type to the circuit design.

Which is better, NPN or PNP? Neither is universally better. NPN is the default for most circuits because of its speed and its compatibility with ground-referenced logic. PNP is the right choice for high-side switching and for sourcing outputs that fail safe — a broken wire reads as “no detection” rather than floating.

How do you tell an NPN from a PNP? Check the schematic symbol (the emitter arrow points out for NPN, in for PNP), the part marking, or the datasheet pinout. The part number alone is not a reliable indicator.

Why are NPN transistors more common? Their majority carriers are electrons, which move faster than the holes in a PNP. That gives NPN faster switching and higher gain, makes it cheaper to manufacture, and lets it drive naturally from ground-referenced logic signals.

NPN or PNP sensor — which do I need? Match the PLC input module: sourcing inputs need NPN sensors, sinking inputs need PNP sensors, and universal inputs accept both. Where a standard applies, European lines default to PNP sourcing and many Asian lines to NPN sinking.

Can you convert a PNP circuit to NPN? You can add an external transistor as a signal inverter, but that adds a part and a failure point. Ordering the correct type, or using a push-pull sensor, is simpler and more reliable.

Common NPN and PNP Transistors

These are the most widely used general-purpose BJTs for quick reference.

TransistorTypeMax IcMax VceoTypical hFEPackage
2N2222ANPN800 mA40 V100–300TO-18 / TO-92
2N3904NPN200 mA40 V100–300TO-92
BC547NPN100 mA45 V110–800TO-92
TIP120NPN Darlington5 A60 V1000TO-220
2N2907APNP600 mA60 V100–300TO-18 / TO-92
2N3906PNP200 mA40 V100–300TO-92
BC557PNP100 mA45 V110–800TO-92
TIP125PNP Darlington5 A60 V1000TO-220

The 2N2222/2N2907 and 2N3904/2N3906 are classic complementary pairs — matched NPN and PNP parts designed to work together in push-pull stages and H-bridge drivers. For a detailed look at the two most common NPN parts, see our 2N3904 vs 2N2222 comparison.

滚动至顶部