← How-Tos
electronics May 7, 2026 ◯ 6 min read

Transistors and MOSFETs Guide: BJT vs MOSFET, Switching, Amplifiers, and Motor Control

What Is a Transistor?

A transistor is a semiconductor device that can amplify or switch electrical signals and power. It's the fundamental building block of modern electronics — there are more transistors on Earth (over 10^22) than grains of sand on all beaches. Two main families exist: Bipolar Junction Transistors (BJTs) and Field Effect Transistors (FETs, including MOSFETs). Understanding both and knowing when to use each is critical for circuit design.

BJT vs MOSFET: Key Differences

PropertyBJTMOSFET Control methodCurrent (base current controls collector current)Voltage (gate voltage controls drain current) Input impedanceLow-moderate (kΩ range)Extremely high (MΩ to GΩ range) Gate/base driveRequires continuous current into baseRequires voltage, essentially zero DC current On-state voltage dropVce(sat): 0.1-0.3V when saturatedRds(on) × I: can be millivolts at low currents Switching speedModerate (100ns to μs)Fast (10ns to 100ns) but gate capacitance matters Linear regionExcellent for analog amplifiersLess predictable; better for switching Cost (small signal)$0.02-0.10$0.05-0.20 Cost (power)$0.20-2.00$0.30-5.00

Rule of thumb: Use BJTs for analog amplifiers and low-cost simple switches. Use MOSFETs for power switching, high-speed applications, and when drive current is limited (like microcontroller GPIO pins).

BJT (Bipolar Junction Transistor)

Types and Pinout

Key BJT Parameters

ParameterSymbolDescription DC Current GainhFE or βCollector current ÷ base current (typically 20-300) Collector-Emitter SaturationVce(sat)Voltage across transistor when fully on (0.05-0.3V) Maximum Collector CurrentIc(max)Highest continuous collector current Maximum VoltageVceoMaximum collector-emitter voltage Transition FrequencyftFrequency where current gain drops to 1

BJT as a Switch

To use a BJT as a switch, you must drive it into saturation:

Required base current: Ib = Ic ÷ hFE(min) For saturation: Use Ib = Ic ÷ 10 (forced beta of 10) Base resistor: Rb = (Vdrive - Vbe) ÷ Ib Vbe ≈ 0.7V for silicon

Example: Switching a 100mA LED with a 3.3V GPIO (hFE = 100): Ib = 100mA ÷ 10 = 10mA Rb = (3.3V - 0.7V) ÷ 0.01A = 260Ω → use 220Ω

BJT as an Amplifier

Common-emitter amplifier (most common topology):

Voltage gain ≈ Rc ÷ Re (with emitter degeneration) Or: ≈ Rc × gm (without degeneration) gm = Ic ÷ 26mV (transconductance at room temperature)

Bias the base at VCC/2 for maximum output swing. Use emitter resistor for thermal stability. Couple input and output through DC-blocking capacitors.

MOSFET (Metal-Oxide-Semiconductor FET)

Types

Key MOSFET Parameters

ParameterSymbolDescription Drain-Source On ResistanceRds(on)Resistance when fully on — lower is better Gate Threshold VoltageVgs(th)Minimum gate voltage to start conducting (not fully on!) Gate-Source Voltage (max)Vgs(max)Maximum gate voltage — exceeding destroys the gate oxide Continuous Drain CurrentId(max)Maximum continuous current (at specified temperature) Gate ChargeQgTotal charge needed to switch — determines drive requirements Input CapacitanceCissGate capacitance — must be charged/discharged to switch Maximum VoltageVds(max)Maximum drain-source voltage

Logic-Level vs. Standard MOSFETs

TypeVgs(th)Fully On AtUse With Standard MOSFET2-4V10V gate driveHigh-side drivers, 12V circuits Logic-level MOSFET0.5-2V3.3V or 5V gate driveMicrocontroller GPIO direct drive

Critical: Always check the Rds(on) spec at your actual gate voltage. A MOSFET rated for 4mΩ might need 10V gate drive to achieve that. At 3.3V it could be 100mΩ or not turn on at all. Look for parts with Rds(on) specified at 2.5V or 4.5V for logic-level applications.

MOSFET as a Switch

For low-side switching (N-channel, source grounded):

  1. Choose logic-level N-MOSFET with Vgs(th) < 1.5V for 3.3V drive
  2. Verify Rds(on) at your gate voltage gives acceptable power: P = I² × Rds(on)
  3. Add gate resistor (10-100Ω) to limit inrush current into gate capacitance
  4. For fast switching: use a gate driver IC rather than GPIO direct drive

For high-side switching (P-channel, source at VCC):

  1. Gate pulled up to VCC through resistor (10kΩ) — MOSFET is OFF
  2. Pull gate to ground through NPN or N-MOSFET — P-MOSFET turns ON
  3. Vgs = -VCC when on (gate at 0V, source at VCC)

MOSFET Gate Drive

The gate of a MOSFET is a capacitor. To switch fast, you must charge/discharge this capacitor quickly:

Switching time ≈ (Rg × Ciss) or more accurately Qg ÷ Ig

Slow switching causes the MOSFET to spend too much time in the linear region (half-on), where it acts as a resistor and generates massive heat. This is why MOSFETs fail in switching applications.

Gate Driver ICs

For PWM applications (motor control, buck converters), always use a gate driver:

DriverTypeCurrentUse TC4427 / MCP1407Single/dual low-side1.5-6A peakLow-side N-MOSFET drive IR2104 / HIP4081Half-bridge1-2AHigh+low side (bootstrap) DRV8701H-bridge gate driverConfigurableDC motor control TC427 / MCP1416Inverting1.5AWhen inverted drive needed

Common Transistor Circuits

1. Simple LED Driver (BJT)

Vdrive (3.3V) → 1kΩ resistor → Base Emitter → GND Collector → LED cathode → LED anode → 5V For 10mA LED: Ib = 1mA, Rb = (3.3-0.7)/0.001 = 2.6kΩ → 2.2kΩ

2. High-Power LED / Strip Driver (MOSFET)

GPIO → 100Ω → Gate Source → GND Drain → LED strip negative LED strip positive → 12V MOSFET: IRLZ44N (logic level, Rds(on) 22mΩ at 5V)

3. H-Bridge Motor Driver (4 MOSFETs)

Four MOSFETs in an H configuration control motor direction and speed:

Critical: Never turn on both MOSFETs on the same side simultaneously — this creates a shoot-through (direct short from VCC to GND). Use a gate driver with dead-time insertion or code protection.

4. Push-Pull Audio Output

Complementary pair (NPN + PNP or N-MOS + P-MOS) for driving speakers:

Audio signal → Bases of both transistors NPN collector → VCC, PNP collector → GND Emitters tied together → Speaker

5. Current Source (BJT)

Iout ≈ Vzener ÷ Remitter (approximately constant)

Used for driving LEDs with constant current regardless of supply voltage variations.

6. Linear Voltage Regulator

Pass transistor + Zener reference + feedback = adjustable regulator Classic: 2N3055 + LM317 or discrete design

Popular Transistor Part Numbers

Small Signal BJTs

PartTypeIcVcehFEUse 2N2222 / PN2222NPN800mA40V100-300General purpose, switching 2N3904NPN200mA40V100-300Signal, switching BC547 / BC548NPN100mA45V110-800Audio, signal, European standard 2N2907 / 2N3906PNP600mA40V100-300Complementary switching BC557PNP100mA45V110-800Complement to BC547 TIP31CNPN3A100V25-50Medium power TIP41CNPN6A100V15-75Higher power 2N3055NPN15A60V20-70Classic power transistor 2N7000 / 2N7002N-MOS200mA60V—Small signal MOSFET

Power MOSFETs

PartTypeVdsRds(on)IdLogic Level? IRLZ44NN-MOS60V22mΩ@5V47AYes (4.5V drive) IRFZ44NN-MOS55V17.5mΩ@10V49ANo (needs 10V) AO3400 / SI2302N-MOS30V28mΩ@2.5V5.7AYes (SOT-23) AO3401P-MOS30V40mΩ@2.5V4AYes (SOT-23) IRL540NN-MOS100V44mΩ@5V36AYes FQP30N06LN-MOS60V35mΩ@5V32AYes (TO-220) IRF9540P-MOS100V200mΩ@10V23ANo IPP048N12N3N-MOS120V4.8mΩ@10V100ANo

Troubleshooting

SymptomCauseFix MOSFET gets very hot when switchingInsufficient gate drive voltage or slow switchingUse logic-level MOSFET; add gate driver; reduce gate resistor BJT not fully turning onInsufficient base currentDecrease base resistor; check hFE at operating current MOSFET gate blownVgs exceeded (typically ±20V max)Add Zener protection (15V) on gate; check drive voltage Shoot-through in H-bridgeBoth MOSFETs on same side conducting simultaneouslyAdd dead time in PWM; use gate driver with built-in dead time Transistor oscillates at high frequencyParasitic capacitance + inductance in layoutAdd ferrite bead on base/gate; keep leads short; add damping resistor High power loss in switchingSlow switching transitionsGate driver IC instead of GPIO; reduce gate resistor; optimize layout