What Is a Bipolar Junction Transistor (BJT)?

At the workbench, a bipolar junction transistor (BJT) is a three-terminal, current-controlled semiconductor valve. You feed a small, precisely calculated current into the Base terminal, and it opens the gate for a much larger current to flow from the Collector to the Emitter. Unlike MOSFETs, which are voltage-controlled and rely on an electric field, BJTs rely on the physical injection of minority charge carriers across a PN junction. This makes them transconductance devices where output current is directly proportional to input current.

If you are asking what is a bipolar junction transistor in the context of modern circuit design, the answer is simple: it is the default, low-cost, high-speed switch and linear amplifier for low-to-medium power applications. While MOSFETs dominate high-power switching, BJTs remain unmatched for simple logic-level switching, linear voltage regulation, and high-frequency analog amplification.

Pinout and Symbol Anatomy

Every BJT has three pins. Understanding their physical layout and schematic symbols is mandatory before soldering:

  • Base (B): The control terminal. In an NPN transistor, applying a positive voltage (relative to the emitter) forward-biases the base-emitter junction, allowing current to flow.
  • Collector (C): The terminal that collects the charge carriers. It connects to the higher voltage side of your load.
  • Emitter (E): The terminal that emits carriers into the base region. It typically connects to ground (NPN) or VCC (PNP).

TO-92 Package Pinout Rule: For the most common through-hole BJTs (like the 2N3904 and 2N2222A), hold the transistor with the flat side facing you and the leads pointing down. The pins from left to right are Emitter, Base, Collector (E-B-C). Always verify this against the specific manufacturer's datasheet, as European PRO Electron parts (like the BC547) often use a Collector-Base-Emitter (C-B-E) layout.

BJT Operation Regions & Safe Default Part Numbers

To use a BJT effectively, you must know which of its three operating regions your circuit falls into. Pushing a transistor into the wrong region is the number one cause of overheating and component failure in hobbyist builds.

Table 1: BJT Operation Regions (NPN Silicon)
Region Base-Emitter Voltage (Vbe) Collector-Emitter Voltage (Vce) State / Application
Cutoff < 0.5V Equals Supply Voltage (Vcc) Switch is OFF. No collector current flows.
Active (Linear) ~0.6V to 0.7V > 0.3V (Typically Vcc/2) Amplification. Ic = hFE * Ib. High power dissipation.
Saturation ~0.7V to 0.8V < 0.2V (Vce_sat) Switch is ON. Max current flows. Low power dissipation.

When selecting a component, don't overthink it for standard bench prototypes. Stick to the industry-standard 'jellybean' parts. They are cheap, widely available, and have massive community support.

Table 2: Safe Default BJT Part Numbers for Makers
Part Number Type Max Vce Max Ic Typical hFE Best Use Case
2N3904 NPN 40V 200mA 100 - 300 Low-power logic switching, small signal amplification.
2N2222A NPN 40V 800mA 100 - 300 Medium loads, relays, small motors, LED strips.
BC547B NPN 45V 100mA 200 - 450 High-gain audio preamps, sensor signal conditioning.
TIP31C NPN 100V 3A 10 - 50 Power switching, linear regulators, motor drivers.

Source: Aggregated from ON Semiconductor 2N3904 Datasheet and standard manufacturer specifications.

How to Bias and Select a BJT for Your Circuit

The most common mistake beginners make when asking 'what is a bipolar junction transistor and how do I use it' is treating the Base like a MOSFET gate. A MOSFET gate draws virtually zero steady-state current. A BJT base requires continuous current to stay turned on.

The 'Forced Beta' Rule for Switching

When using a BJT as a switch, you want it in saturation. In saturation, the voltage drop across the Collector and Emitter (Vce_sat) drops to roughly 0.2V, minimizing heat. Datasheets list hFE (DC current gain) in the active region, often around 100 to 300. Ignore the hFE column when designing a switch.

Bench Rule of Thumb: To guarantee saturation across all temperatures and part variations, use a 'forced beta' of 10. This means you design your base current (Ib) to be exactly 1/10th of your required collector current (Ic). If your load needs 100mA, you force 10mA into the base.

Biasing Calculation Example

Let's say you need to switch a 12V relay that draws 100mA using a 5V Arduino GPIO.

  1. Target Collector Current (Ic): 100mA (0.1A).
  2. Required Base Current (Ib): Ic / 10 = 10mA (0.01A).
  3. Base-Emitter Voltage Drop (Vbe): Assume 0.7V (standard for silicon).
  4. Calculate Base Resistor (Rb): Rb = (V_gpio - Vbe) / Ib
    Rb = (5.0V - 0.7V) / 0.01A = 4.3V / 0.01A = 430 Ohms.

Select the nearest standard E12 resistor value: 430Ω or 470Ω. Do not omit this resistor; connecting a GPIO directly to a BJT base will destroy both the microcontroller and the transistor.

Complete Application Circuit: ESP32 Low-Side Relay Driver

Driving 12V or 24V industrial relays from 3.3V logic (like an ESP32 or Raspberry Pi Pico) is a classic maker pain point. An ESP32 GPIO can safely source about 12mA, which is barely enough to drive a small relay directly, and doing so risks browning out the microcontroller. Here is a robust, tested BJT switch circuit to solve this.

Bill of Materials

  • Q1: 2N2222A NPN Transistor (TO-92 package)
  • R1: 270Ω 1/4W Resistor (Base current limiter)
  • R2: 10kΩ 1/4W Resistor (Base pull-down)
  • D1: 1N4148 or 1N4007 Flyback Diode
  • K1: 12V DC Relay (e.g., Songle SRD-12VDC-SL-C, coil resistance ~120Ω, drawing ~100mA)

Wiring and Pin Connections

  1. ESP32 GPIO (e.g., Pin 25) connects to one leg of R1 (270Ω).
  2. The other leg of R1 connects to the Base of Q1 (2N2222A).
  3. R2 (10kΩ) connects between the Base of Q1 and GND. (This pull-down prevents the relay from chattering during ESP32 boot-up when pins are high-impedance).
  4. The Emitter of Q1 connects directly to the common GND rail.
  5. The Collector of Q1 connects to the Coil (-) terminal of the relay.
  6. The Coil (+) terminal of the relay connects to the 12V Power Supply.
  7. D1 (Flyback Diode) is placed in parallel with the relay coil. The Cathode (striped end) connects to 12V, and the Anode connects to the Collector of Q1. Never omit this diode; the inductive kickback will instantly punch through the BJT's collector-base junction.
Why 270Ω? With a 3.3V GPIO, Vbe is 0.7V. (3.3 - 0.7) / 270 = 9.6mA of base current. Using our forced beta of 10, this safely saturates the transistor for up to 96mA of collector current, perfectly covering the 100mA relay coil while staying well within the ESP32's 12mA per-pin absolute maximum limit.

How BJTs Fail and How to Test Them with a Multimeter

Understanding how a BJT dies is just as important as knowing how it operates theoretically. BJTs rarely fail gracefully; they usually fail shorted, taking your microcontroller or power supply down with them.

Common Failure Modes

  • Thermal Runaway: As a BJT heats up, its Vbe drop decreases, causing it to draw more base current for the same bias voltage. This draws more collector current, creating more heat, until the silicon melts. Fix: Always use an emitter resistor in linear circuits to provide negative feedback.
  • Secondary Breakdown: Occurs when high Vce and high Ic happen simultaneously (operating in the active region with a heavy load). Current crowds into a tiny spot on the silicon die, melting it instantly. Fix: Check the Safe Operating Area (SOA) graph in the datasheet.
  • Inductive Kickback Puncture: Switching off a motor or relay without a flyback diode generates hundreds of volts in reverse, avalanche-breakdown the Collector-Base junction.

Step-by-Step Multimeter Diode Test

You can verify if a BJT is healthy using the Diode Test mode on any standard digital multimeter (DMM). A BJT is essentially two diodes sharing a common anode (NPN) or cathode (PNP). Here is how to test an NPN transistor like the 2N3904:

  1. Set DMM to Diode Mode: Look for the diode symbol on the dial.
  2. Test Base-Emitter Junction: Place the Red (+) probe on the Base and the Black (-) probe on the Emitter. You should read a forward voltage drop between 0.600V and 0.750V.
  3. Test Base-Collector Junction: Keep Red on Base, move Black to Collector. Expect a similar reading, usually slightly lower (e.g., 0.580V to 0.700V).
  4. Verify Reverse Blocking: Swap probes. Black on Base, Red on Emitter. The meter must read OL (Over Limit / Open). Repeat for Black on Base, Red on Collector (must read OL).
  5. Check Collector-Emitter Short: Place probes across Collector and Emitter in both directions. Both must read OL. If it reads 0.00V or beeps, the transistor is internally shorted and belongs in the trash.
Pro Tip for In-Circuit Testing: If a BJT fails the diode test while soldered to a PCB, it might be a false reading caused by parallel resistors or IC pins. Desolder at least the Base leg to isolate the junction and re-test before throwing the board away.

Mastering the bipolar junction transistor bridges the gap between digital logic and the physical, high-current world. By respecting the forced-beta rule, calculating your base resistors, and always using flyback protection for inductive loads, you will build switching circuits that survive the workbench and the field.