The Direct Answer: Default Transistor Picks for Switching

When you need to use a transistor as a switch to control a high-current or high-voltage load from a low-power microcontroller GPIO, you do not need to spend hours parsing datasheets. For 90% of hobbyist and prototyping applications, the following default part numbers will handle the job reliably. The golden rule of transistor switching is to drive the device into hard saturation (for BJTs) or full enhancement (for MOSFETs) so it acts like a closed mechanical contact with minimal voltage drop and heat generation.

Quick Selection Decision Tree
Load CurrentLoad VoltageControl SignalConcrete Part PickWhy This Part?
< 200 mA< 30V5V / 3.3V GPIO2N2222 (NPN) or 2N3904Ubiquitous, cheap, TO-92 package, easily driven by 5mA base current.
200 mA - 2A< 60V5V GPIOTIP120 (Darlington NPN)Massive current gain (hFE > 1000), requires almost zero GPIO current to switch 1A loads.
200 mA - 5A< 55V5V / 3.3V GPIOIRLZ44N (Logic N-MOSFET)Logic-level gate threshold. Fully enhanced at Vgs = 4.5V. Rds(on) is 22mΩ, meaning almost zero heat.
5A - 30A< 30V5V / 3.3V GPIOIRLB8721 (Logic N-MOSFET)Extremely low Rds(on) of 4.5mΩ at 4.5V gate drive. Handles high amp DC motors without a heatsink.

Pinouts, Symbols, and Operation Regions

To use a transistor as a switch, you must understand its physical pinout and the specific electrical regions where it operates safely as a digital on/off device. Misidentifying a pin is the most common cause of instant component death on the workbench.

Standard Pinout Identification

For the standard TO-92 packaged BJTs (like the 2N2222 or 2N3904), hold the component with the flat side facing you and the legs pointing down. From left to right, the pins are Emitter (E), Base (B), and Collector (C). The Base is the control terminal, the Collector connects to the load, and the Emitter connects to ground (for NPN devices).

For TO-220 packaged MOSFETs (like the IRLZ44N), hold the component with the metal tab facing you and the legs pointing down. From left to right, the pins are Gate (G), Drain (D), and Source (S). The metal tab is internally connected to the Drain, which is critical to remember when mounting them to heatsinks.

Operation Regions for Switching

A BJT has three operating regions, but when using a transistor as a switch, you must strictly avoid the Active region. According to fundamental semiconductor theory documented by resources like All About Circuits, the Active region is for amplification, not switching.

RegionBase-Emitter Voltage (Vbe)Collector Current (Ic)Collector-Emitter Voltage (Vce)Switch State
Cutoff< 0.6V0 A (Leakage only)Equals Supply Voltage (Vcc)OFF (Open Switch)
Saturation≥ 0.7VMaximum (Limited by load)~0.1V to 0.3V (Vce_sat)ON (Closed Switch)
Active (Linear)~0.6V to 0.7VIb × hFEVariable (Vcc - V_load)AVOID (Causes overheating)

How to Bias and Select the Right Component

Biasing is the process of setting the correct base or gate current/voltage to ensure the transistor reaches the desired region. The math for a BJT is fundamentally different from a MOSFET.

BJT Biasing: The Forced Beta Technique

A common beginner mistake is looking up the hFE (current gain) in the datasheet and using it to calculate the base resistor. Datasheet hFE values are specified for the active linear region. To guarantee hard saturation (acting as a closed switch), you must use a forced beta of 10. This means you supply 10 times more base current than the absolute minimum required.

Calculation Example: Switching a 12V relay with a 70mA coil using a 2N2222 and a 5V Arduino GPIO.

  • Target Ic: 70 mA (0.07 A)
  • Required Ib (Forced Beta = 10): 70 mA / 10 = 7 mA (0.007 A)
  • Voltage across Base Resistor (Rb): V_gpio - Vbe = 5V - 0.7V = 4.3V
  • Ohm's Law for Rb: R = V / I = 4.3V / 0.007A = 614 Ω

Select the next standard resistor value down to ensure sufficient current: 560 Ω or 470 Ω. A 470 Ω resistor will pull roughly 9.1mA from the GPIO, safely saturating the 2N2222 without exceeding the Arduino's 20mA per-pin limit.

MOSFET Biasing: Gate Voltage and Ringing

MOSFETs are voltage-controlled devices; they draw virtually zero steady-state gate current. However, the gate acts like a small capacitor. To use a MOSFET as a switch, you must ensure your GPIO voltage exceeds the Vgs(th) (Gate-Source Threshold Voltage) and reaches the voltage required for full enhancement (low Rds(on)). Always select a 'Logic-Level' MOSFET (indicated by an 'I' prefix like IRLZ44N, rather than 'IRF') if driving directly from a 5V or 3.3V pin.

You must also include a 10kΩ pull-down resistor from Gate to Source. This prevents the MOSFET from turning on erratically due to floating gate capacitance when the microcontroller is booting up or resetting. For high-speed PWM switching, a 100Ω series gate resistor is added to dampen LC ringing on the gate trace, as detailed in SparkFun's transistor application guides.

Step-by-Step: Building a 12V Relay Driver Circuit

Inductive loads like relays, solenoids, and DC motors generate massive reverse-voltage spikes when the magnetic field collapses. If you do not protect your transistor, this spike will punch through the Collector-Base junction and destroy the silicon instantly. Here is the exact procedure to wire a safe, robust relay driver.

Safety Note: While the control side of this circuit operates at safe 5V/12V DC levels, the load side of the relay may be switching 120V/240V AC mains. Ensure the mains side is wired in an appropriate enclosure, and never touch the relay contacts while the system is energized.
  1. Place the Transistor: Insert the 2N2222 into the breadboard. Connect the Emitter (left pin) directly to the common Ground (GND) rail.
  2. Wire the Base Resistor: Connect a 470 Ω resistor from your Arduino Digital Pin 8 to the Base (middle pin) of the 2N2222.
  3. Connect the Load: Connect one side of the 12V relay coil to your 12V power supply positive terminal. Connect the other side of the relay coil to the Collector (right pin) of the 2N2222.
  4. Install the Flyback Diode: Take a 1N4007 rectifier diode. Connect the Cathode (the end with the silver stripe) to the 12V side of the relay coil. Connect the Anode to the Collector side of the relay coil. This provides a safe recirculation path for the inductive kickback current.
  5. Common Ground: Connect the Ground of your 12V power supply to the Ground rail of your Arduino. The control and load circuits must share a common ground reference.
  6. Test Sequence: Upload a simple blink sketch (Pin 8 HIGH for 2 seconds, LOW for 2 seconds). You should hear the relay click in rhythm. Measure the voltage across the Collector and Emitter with a multimeter; it should read ~0.2V when ON, and ~12V when OFF.

Failure Modes and Multimeter Testing

Transistors rarely fail gracefully. When pushed beyond their limits, they typically fail shorted (Collector to Emitter), leaving your load permanently powered on. Understanding how they fail and how to test them saves hours of debugging.

Common Failure Modes

  • Thermal Runaway: Operating a BJT in the Active (linear) region instead of Saturation. The high Vce voltage combined with high Ic current causes massive power dissipation (P = Vce × Ic), melting the junction.
  • Inductive Spike Avalanche: Switching off a relay or motor without a flyback diode. The voltage spike exceeds the Vceo rating (usually 30V-40V for small signal BJTs), punching a hole through the die.
  • Gate Oxide Puncture (MOSFETs): Exceeding the maximum Vgs rating (typically ±20V). Static electricity or a miswired gate driver can permanently destroy the insulating oxide layer, shorting the gate to the source.

How to Test a BJT with a Digital Multimeter

You do not need a specialized transistor tester. Any standard digital multimeter (DMM) with a 'Diode Test' mode can verify the health of a BJT junction. Set your DMM to the diode symbol.

Red Probe (+)Black Probe (-)Expected Reading (NPN)What it Means
BaseEmitter0.600V - 0.750VForward-biased P-N junction (Healthy)
EmitterBaseOL (Over Limit)Reverse-biased junction blocking current (Healthy)
BaseCollector0.600V - 0.750VForward-biased P-N junction (Healthy)
CollectorBaseOL (Over Limit)Reverse-biased junction blocking current (Healthy)
CollectorEmitterOL (Over Limit)No direct path between C and E (Healthy)
EmitterCollectorOL (Over Limit)No direct path between C and E (Healthy)

Diagnosis: If you read 0.000V (a short) or a very low voltage between Collector and Emitter in either direction, the transistor has suffered an avalanche breakdown and must be discarded. If the Base junctions read OL in both directions, the internal bond wire has blown open.

BJT vs. MOSFET: When to Switch Your Strategy

While the 2N2222 is a workhorse, modern logic-level MOSFETs have largely replaced BJTs in power switching applications. Use this matrix to decide when to abandon the BJT in favor of a MOSFET.

CriteriaBipolar Junction Transistor (BJT)Metal-Oxide-Semiconductor FET (MOSFET)
Control MechanismCurrent-controlled (Requires continuous base current)Voltage-controlled (Draws zero steady-state gate current)
GPIO BurdenHigh (Draws 5mA - 20mA from microcontroller)Negligible (Only draws microamps to charge gate capacitance)
Voltage Drop (ON)Fixed Vce_sat (~0.2V to 1.0V)Proportional to Rds(on) × I (Can be < 0.05V at high currents)
Heat at 2A LoadHigh (P = 0.5V × 2A = 1W, requires heatsink)Very Low (P = I²R = 4 × 0.022Ω = 0.088W, no heatsink)
Best Use CaseSwitching small loads (<200mA), simple logic gates, low-cost consumer toys.Switching motors, high-power LED strips, battery drains, PWM dimming.

By selecting the correct default part, calculating your base or gate bias accurately, and always protecting inductive loads with a flyback diode, you will build transistor switching circuits that survive the bench and the field. Stick to the forced-beta rule for BJTs, respect the gate threshold for MOSFETs, and always verify your wiring with a multimeter before applying power to the load.