When you pull a discrete semiconductor out of its anti-static bag, the first physical challenge is figuring out which metal lead does what. The three transistor legs on a standard Bipolar Junction Transistor (BJT) are the Emitter, Base, and Collector. On a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET), they are the Source, Gate, and Drain. Misidentifying these legs or bending them incorrectly will instantly destroy the silicon die inside or cause your circuit to fail in unpredictable ways.

The safe, industry-standard default NPN BJT for general-purpose switching and amplification is the 2N3904 (or the higher-current 2N2222), while the default PNP is the 2N3906. For low-side MOSFET switching, the IRF520 or 2N7000 are the standard bench defaults. In this guide, we will cover how to read the physical pinouts, bias the legs correctly for switching, test them with a multimeter, and build a reliable driver circuit.

Pinout Identification and Safe Default Part Numbers

The physical arrangement of transistor legs depends heavily on the package type. For the ubiquitous TO-92 package (used for low-power signal transistors like the 2N3904), the standard orientation is to hold the transistor with the flat side facing you and the legs pointing downward. From left to right, the legs are typically Emitter, Base, and Collector (E-B-C). However, always verify this against the specific manufacturer's datasheet, as Japanese-manufactured parts (like the 2SC1815) often use an E-C-B arrangement.

For TO-220 packages (used for power transistors and voltage regulators), the metal tab is usually tied to the Collector (for BJTs) or the Drain (for MOSFETs) and acts as a heatsink. The legs, read left-to-right with the tab facing away from you and legs pointing down, are typically Base/Gate, Collector/Drain, and Emitter/Source.

Callout Tip: Bending Transistor Legs
Never bend transistor legs flush against the epoxy or plastic body. The internal wire bonds connecting the silicon die to the external leads are fragile. Always leave at least 2mm to 3mm of straight lead before bending. Use a pair of flat-nose pliers to hold the lead at the bend point to prevent mechanical stress from transferring into the package.

When prototyping, stick to these proven, widely available default part numbers. They are cheap, heavily documented, and forgive minor wiring mistakes better than high-frequency RF or specialized power transistors.

Table 1: Safe Default Transistors and Maximum Ratings
Part Number Type Package Vceo / Vds (Max) Ic / Id (Max) hFE / Rds(on)
2N3904 NPN BJT TO-92 40 V 200 mA 100 - 300
2N2222A NPN BJT TO-92 / TO-18 40 V 800 mA 100 - 300
TIP120 NPN Darlington TO-220 60 V 5.0 A 1000+
2N7000 N-Channel MOSFET TO-92 60 V 200 mA 5 Ω
IRF520 N-Channel MOSFET TO-220 100 V 9.2 A 0.27 Ω

Operation Regions and Biasing the Legs

To use a transistor as a switch, you must bias the legs to drive the device fully into saturation (for a BJT) or the ohmic/triode region (for a MOSFET). If you only partially bias the legs, the transistor operates in the active/linear region, acting like a variable resistor. In this state, it dissipates massive amounts of heat and will quickly suffer thermal failure.

For an NPN BJT, current flows from the Collector leg to the Emitter leg only when the Base leg is elevated to a higher potential than the Emitter. The Base-Emitter junction behaves exactly like a standard silicon diode, requiring approximately 0.6V to 0.7V to begin conducting. For a MOSFET, no steady current flows into the Gate leg; instead, a voltage potential between the Gate and Source legs creates an electric field that opens the channel between Drain and Source.

Table 2: BJT and MOSFET Operation Regions (N-Channel / NPN)
Region BJT Base-Emitter (Vbe) BJT Collector-Emitter (Vce) MOSFET Gate-Source (Vgs) MOSFET Drain-Source (Vds)
Cutoff (OFF) < 0.5 V Vcc (Supply Voltage) < Vgs(th) (e.g., < 2V) Vdd (Supply Voltage)
Active / Linear ~0.6 V to 0.7 V 0.7 V to Vcc Vgs(th) to Vgs(max) Vds(sat) to Vdd
Saturation / Ohmic (ON) > 0.7 V (Often 0.8V+) Vce(sat) ~ 0.1 V to 0.3 V >> Vgs(th) (e.g., 10V) I_d * Rds(on) (Very low)

Source: For deeper theory on junction biasing, refer to the Bipolar Junction Transistors chapter on All About Circuits.

How Transistor Legs Fail and Multimeter Testing

Transistor legs and their internal connections typically fail in three ways: thermal runaway (where heat increases leakage current, causing more heat until the silicon melts), secondary breakdown (a localized hot-spot on the die caused by high voltage and high current simultaneously), and ESD damage (specifically for MOSFET Gate legs, where a static spark punches through the ultra-thin gate oxide layer).

You can diagnose a blown or healthy transistor directly on the bench using the Diode Test mode on your digital multimeter (DMM). Here is the step-by-step procedure for testing an NPN BJT:

  1. Set your DMM to Diode Test mode. The display should show an open loop (OL) when the probes are separated.
  2. Test Base to Emitter (Forward Bias): Place the red probe on the Base leg and the black probe on the Emitter leg. A healthy silicon transistor will read between 0.550 V and 0.750 V. If it reads 0.000 V, the junction is shorted. If it reads OL, the internal wire bond is snapped.
  3. Test Base to Collector (Forward Bias): Move the black probe to the Collector leg (red stays on Base). You should see a similar reading, typically slightly lower than the B-E junction (e.g., 0.500 V to 0.700 V).
  4. Test Reverse Bias: Swap the probes (black on Base, red on Emitter, then red on Collector). The meter must read OL in both cases. If it shows a voltage drop, the junction is leaky or shorted.
  5. Test Collector to Emitter: Place probes across the Collector and Emitter legs in both directions. Both readings must be OL. If you see continuity, the transistor has suffered a catastrophic short and must be discarded.
Warning: MOSFET Gate Legs and Soldering Irons
When soldering MOSFETs, the Gate leg is highly susceptible to electrostatic discharge. Furthermore, lingering with a 400°C soldering iron tip on the transistor legs for more than 3 seconds can melt the internal die-attach solder or delaminate the wire bonds. Always use an ESD-safe iron, ground your wrist, and apply heat to the leg for the absolute minimum time required to flow the solder.

Complete Application Circuit: Driving a 12V Relay

Let's put this theory into practice. A common requirement in embedded systems is using a 5V microcontroller GPIO pin to switch a 12V relay coil that draws roughly 30 mA. We will use the 2N2222A NPN BJT. The microcontroller cannot safely source 30 mA directly from a single GPIO pin, nor can it tolerate the 12V flyback spike when the relay turns off.

Component List & Values:

  • Q1: 2N2222A (NPN BJT, TO-92 package)
  • R1 (Base Resistor): 1 kΩ (1/4W)
  • D1 (Flyback Diode): 1N4148 or 1N4007
  • K1 (Load): 12V DC Relay (Coil resistance ~400Ω, drawing ~30mA)

Wiring and Biasing Calculation:

To ensure the 2N2222A enters deep saturation (acting as a closed switch), we must overdrive the Base leg. We do not rely on the datasheet's linear hFE (which might be 100). Instead, we force a Beta (β) of 10.

If the relay requires 30 mA of Collector current (Ic), we need a Base current (Ib) of at least 3 mA (30 mA / 10). The microcontroller outputs 5V. The Base-Emitter junction will drop roughly 0.7V. Using Ohm's Law:

R1 = (V_gpio - V_be) / Ib
R1 = (5.0V - 0.7V) / 0.003A = 1433 Ω

We select the next standard lower resistor value to guarantee saturation: 1 kΩ. This will actually provide about 4.3 mA of base current, safely pushing the transistor into hard saturation with a Vce(sat) of roughly 0.1V.

Physical Circuit Connections:

  1. Connect the microcontroller 5V GPIO pin to one leg of the 1 kΩ resistor.
  2. Connect the other leg of the 1 kΩ resistor to the Base leg of the 2N2222A.
  3. Connect the Emitter leg directly to the system Ground (GND).
  4. Connect one leg of the 12V relay coil to the 12V power supply.
  5. Connect the other leg of the relay coil to the Collector leg of the 2N2222A.
  6. Critical Step: Place the 1N4148 flyback diode in parallel with the relay coil. The cathode (stripe) must face the 12V supply, and the anode must face the Collector leg. This safely routes the inductive voltage spike back into the 12V rail when the transistor turns off, preventing the Collector leg from experiencing a 50V+ spike that would punch through the silicon.

By respecting the physical limits of the transistor legs, calculating the base bias correctly, and protecting against inductive kickback, you create a switching circuit that will run reliably for years without thermal drift or catastrophic failure. For exact maximum ratings and thermal derating curves, always consult the manufacturer's specific datasheet, such as the ON Semiconductor 2N3904/2N2222 documentation.