Home
Ec-SimEE CALCULATORS
Interactive Circuit Design & Direct SPICE Export

BJT NPN Switch & Saturated Load Driver Calculator

Size the base drive resistor Rb to drive an NPN BJT firmly into hard saturation (Vce(sat) ≈ 0.1–0.2 V) for switching relays, LEDs, or coils.

23 • TRANSISTORS

Interactive BJT Saturated Switch Solver

Type values into any fields (using standard engineering suffixes like m, u, n, k, M) and leave the remaining field empty to solve for it.

Circuit Parameters

V
A
Solve Target
Ω
Interactive Schematic Preview — Click any reference badge to focus its input field
Vdrive 3.3 VRb 260 ΩIc 100 mAβsat 10
Required Base Current (Ib)
10 mA
Ic / βforced = 10 mA
BJT Saturation Power (PQ)
27 mW
Assuming Vce(sat) ≈ 0.2 V + Vbe·Ib
Base Resistor Power (PRb)
26 mW
Safe for 0402 (1/16 W) & 0603 (1/10 W)
GPIO Pin Current Check
Safe for 3.3V/5V MCU GPIO
Ib = 10.00 mA
Nearest Standard EIA Resistor Values
Snap calculated resistances to standard 5% (E24) or 1% (E96) commercial values:
FORMULAS & THEORY

BJT Saturated Switch Equations & Design Guidelines

Core transfer equation: Rb = (Vdrive − 0.7V) · βforced / Ic

1. 1. Forced Beta (βforced = 10 to 20) Saturation Rule

Small-signal current gain hFE (100–300) applies only in the linear active region. To guarantee a low collector-emitter saturation drop Vce(sat) ≤ 0.2 V, overdrive the base with βforced = Ic / Ib = 10:

  • Required Base Current (Ib): Ib = Ic / βforced
  • Base Drive Resistor (Rb): Rb = (Vdrive − Vbe(sat)) / Ib

2. 2. Inductive Load Flyback Protection

When switching relay coils or solenoids, always place a freewheeling diode (e.g. 1N4148 or 1N4007) anti-parallel across the coil to clamp inductive kickback.

  • Base Pull-Down Resistor: Add 10 kΩ–100 kΩ from Base to Emitter so the BJT stays off while MCU pins are tri-stated.
WORKED EXAMPLE & PRACTICE

Using the BJT Saturated Switch Calculator in a Real Design

To use a bipolar transistor as a switch it must be driven well into saturation, with far more base current than its gain would require in the linear region. The base resistor sets that current. The usual rule is a forced gain of 10 to 20: one tenth to one twentieth of the collector current into the base.

Worked example: Switching a 200 mA relay from a 3.3 V pin

Collector current 200 mA, drive voltage 3.3 V, forced gain 10.

  1. Base current needed = 200 mA / 10 = 20 mA.
  2. Voltage across the resistor = 3.3 V − 0.7 V = 2.6 V.
  3. Rb = 2.6 V / 20 mA = 130 Ω.

What it means: 130 Ω, but 20 mA is more than many microcontroller pins can source. Either accept a forced gain of 20 (270 Ω, 10 mA) with a transistor specified for it, or use a small logic-level MOSFET.

Common mistakes

  • Using the datasheet hFE. The gain in the datasheet is measured with several volts across the transistor. In saturation the effective gain is far lower. Designing with hFE = 200 leaves the transistor half on and dissipating.
  • No flyback diode. An inductive load such as a relay or a solenoid produces a voltage spike when the transistor turns off. Without a diode across the coil it will exceed the collector rating.
  • A floating base. While the microcontroller is in reset its pin is high-impedance, and leakage can partly turn the transistor on. Add 10 kΩ from base to emitter.