At its core, a transistor is a semiconductor device used to amplify or switch electrical signals and power. If you just need a safe, default part to switch a low-side load from a 3.3V or 5V microcontroller, grab an NPN BJT like the 2N3904 (for loads under 200mA) or a logic-level N-channel MOSFET like the IRLZ44N (for loads up to 47A). Understanding the basics of a transistor means moving past textbook physics and knowing exactly how to bias it, drive it into saturation, and test it when it inevitably lets out the magic smoke.

Pinouts, Symbols, and the Core Job

Before wiring anything, you must identify the pins. The two most common transistor families in DIY and prototyping are Bipolar Junction Transistors (BJTs) and Metal-Oxide-Semiconductor Field-Effect Transistors (MOSFETs). They do the same job—controlling a large current with a small signal—but they are driven differently.

The BJT (NPN/PNP)

A BJT is current-controlled. The pins are Emitter (E), Base (B), and Collector (C). In a standard TO-92 package (flat side facing you, pins down), the pinout for common parts like the 2N3904 is E-B-C (left to right). The circuit symbol features a circle with a vertical line (the base), an angled line with an arrow (the emitter), and a plain angled line (the collector). For an NPN transistor, the arrow points outward from the base, indicating conventional current flows from Collector to Emitter when the Base is pulled high.

The MOSFET (N-Channel/P-Channel)

A MOSFET is voltage-controlled. The pins are Source (S), Gate (G), and Drain (D). In a TO-220 package, the pinout is G-D-S. The symbol looks like a BJT but replaces the angled emitter/collector lines with parallel channel lines, and the base is separated by a gap (the oxide layer). For an N-channel MOSFET, current flows from Drain to Source when the Gate voltage exceeds the threshold relative to the Source.

Bench Tip: Never assume pinouts based on the package shape alone. Always verify with the specific manufacturer's datasheet. A BC547 NPN in a TO-92 package has a C-B-E pinout, which is the exact reverse of a 2N3904 in the same physical package.

Operation Regions: Where the Magic Happens

When using a transistor as a switch, you only care about two regions: fully OFF (Cutoff) and fully ON (Saturation). The Active/Linear region is for amplifiers (like audio preamps) and is generally a place you want to avoid when switching loads, as the transistor will dissipate massive heat.

Table 1: NPN BJT Operation Regions (Typical Silicon Transistor)
RegionBase-Emitter Voltage (Vbe)Collector-Emitter Voltage (Vce)Collector Current (Ic)Primary Use
Cutoff< 0.5VVce = Vcc (Supply)≈ 0 mA (Leakage only)Switch OFF
Active≈ 0.6V - 0.7V> 0.3VIc = β × IbAmplification
Saturation≈ 0.7V - 0.9V< 0.2V (Vce_sat)Limited by external loadSwitch ON

To ensure a BJT is in hard saturation (fully ON), you must supply enough Base current (Ib) so that the calculated β × Ib is significantly higher than the actual load current. This is called overdriving the base.

Decision Path: Picking the Right Part for the Job

Stop guessing. Use this decision tree to select the right transistor topology for your specific load and control signal.

Table 2: Transistor Selection Decision Matrix
Condition / RequirementThen Choose...Concrete Default Pick
Switching < 200mA from 3.3V/5V logicNPN BJT (Low-side switch)2N3904 or BC547
Switching 200mA to 800mA from logicNPN BJT (Medium power)2N2222 (TO-92 or TO-18)
Switching > 1A, or using high-frequency PWMLogic-Level N-Channel MOSFETIRLZ44N or IRLB8721
Space-constrained SMD PCB (< 5A)SOT-23 N-Channel MOSFETAO3400 or BSS138
Must switch the High-Side (load to GND)P-Channel MOSFET or PNP BJTIRF9540 (FET) or 2N3906 (BJT)
Safety Caveat: Always prefer low-side switching (NPN or N-FET) where the load connects to the positive supply and the transistor pulls it to ground. High-side switching requires complex gate-drive circuitry or level-shifting to ensure the control signal can fully turn off the device.

Worked Example: Driving a 12V Relay with 5V Logic

Let's build a complete, bulletproof circuit to drive a standard 12V automotive relay (80mA coil current) using a 5V Arduino GPIO pin. We will use the 2N2222 NPN BJT.

  1. Identify the Load: Relay coil draws 80mA at 12V.
  2. Calculate Minimum Base Current (Ib): The 2N2222 has a minimum DC current gain (β or hFE) of 100 at this current level. Ib = Ic / β = 80mA / 100 = 0.8mA.
  3. Apply Overdrive Factor: To guarantee saturation and minimize Vce voltage drop (heat), multiply Ib by an overdrive factor of 2 to 5. Let's target 4mA of base current.
  4. Calculate Base Resistor (Rb): The Arduino outputs 5V. The BJT Base-Emitter junction drops about 0.7V. Voltage across the resistor = 5V - 0.7V = 4.3V.
    Using Ohm's Law: R = V / I = 4.3V / 0.004A = 1075Ω.
  5. Select Standard Resistor: Choose the next lower standard E12 value to ensure enough current. 1kΩ is perfect (yields 4.3mA, well within the 2N2222's max base current and the Arduino's 20mA GPIO limit).
  6. Add the Flyback Diode: Wire a 1N4007 diode in reverse bias across the relay coil (cathode/stripe to 12V, anode to the transistor collector). When the transistor turns off, the collapsing magnetic field generates a massive reverse voltage spike. The diode safely recirculates this current, preventing the transistor from suffering avalanche breakdown.

Final Wiring: 5V GPIO → 1kΩ Resistor → 2N2222 Base. 2N2222 Emitter → System GND. 2N2222 Collector → Relay Coil Pin 1. Relay Coil Pin 2 → 12V Supply. 1N4007 Diode across Coil Pins.

Failure Modes and Multimeter Testing

Transistors rarely fail open; they almost always fail shorted. When a BJT exceeds its maximum power dissipation (thermal runaway) or a MOSFET exceeds its Vds rating (avalanche punch-through), the internal silicon melts, permanently shorting the pins. If your microcontroller pin gets hot or your load stays on permanently, the transistor is dead.

How to Test an NPN BJT with a Multimeter

Set your digital multimeter (DMM) to Diode Test mode. You are testing the internal PN junctions.

  1. Base to Emitter (Forward): Place the Red probe on the Base and the Black probe on the Emitter. You should read a voltage drop between 0.600V and 0.750V.
  2. Base to Collector (Forward): Red on Base, Black on Collector. Expect the same 0.600V to 0.750V reading.
  3. Reverse Bias Checks: Swap the probes (Black on Base, Red on Emitter/Collector). The meter must read OL (Over Limit) or infinite resistance.
  4. Collector to Emitter: Probes on C and E in either direction. Must read OL. If it reads near 0.000V, the transistor is shorted and belongs in the trash.

How to Test an N-Channel MOSFET

MOSFETs are harder to test in-circuit due to the insulated gate. With the DMM in Diode mode, place the Black probe on the Source and the Red probe on the Drain. You should read OL. Briefly touch the Red probe to the Gate (charging the gate capacitor), then move it back to the Drain. The meter should now read a low voltage drop (the channel is turned on). Touch Black to the Gate to discharge it, and the Drain-Source reading should return to OL. If Drain-Source is always 0.000V, the FET is shorted.

The 'Safe Default' Workbench Bin

Stop buying random assortments of unlabeled transistors from questionable marketplaces. Stock these specific, industry-standard part numbers. They are cheap, widely available from reputable distributors like DigiKey or Mouser, and cover 95% of hobbyist and prototyping needs.

Table 3: The Essential Transistor Parts Bin
Part NumberTypePackageMax Vce / VdsMax Ic / IdTypical Price (2026)
2N3904NPN BJTTO-9240V200mA$0.10
2N2222NPN BJTTO-9240V800mA$0.12
TIP120NPN DarlingtonTO-22060V5A$0.45
IRLZ44NN-Ch MOSFETTO-22055V47A$1.20
AO3400N-Ch MOSFETSOT-2330V5.8A$0.08
2N3906PNP BJTTO-92-40V-200mA$0.10

For deeper theory on junction behaviors or to verify specific thermal derating curves for your enclosure, consult the All About Circuits semiconductor textbook chapter on BJTs or review the official ON Semiconductor 2N3904 datasheet and application notes. For high-power switching layouts, Infineon's N-Channel MOSFET design guides provide excellent PCB layout practices to minimize parasitic inductance.

Keep your logic signals isolated from your high-current loads, always use a flyback diode on inductive coils, and default to the IRLZ44N when you need to move serious current. Master these basics, and your circuits will survive the bench.