BJT Transistor Switch Calculator
Calculate BJT transistor switch parameters including load current, required base current, base resistor value, saturation check, and power dissipation
Saturated BJT switch · forced β with overdrive · V_CE(sat) lossAPI slug transistor-switch
Specification
Circuit
| Ref | Position | Ideal |
|---|---|---|
| R1 | Base | 1.083kΩ |
Response
- Actual Base Current
- 2.4mA
- Transistor Power Dissipation
- 9.6mW
- Saturated? (1=Yes, 0=No)
- 1
- Load CurrentIC
- 48mA
- Required Base CurrentIB(min)
- 480µA
Formula
| Symbol | Quantity | Your value |
|---|---|---|
| IC | Collector (load) current (A) | 48 mA |
| IB | Base current (A) | — |
| RB | Base resistor (Ω) | 1.08 kΩ |
| β | Current gain | 100 |
| OD | Overdrive factor | 5 × |
Assumptions
5 items
- 01An NPN switch driven into saturation with its load from V_CC to the collector: I_C = (V_CC − V_CE(sat))/R_L, with V_CE(sat) a fixed value from the datasheet.
- 02The minimum base current is I_C/β, β the datasheet’s minimum DC gain, and R_B is designed for that current times the overdrive factor, R_B = (V_in − V_BE)/(OD·I_C/β), a forced gain of β/OD.
- 03V_BE is fixed and no resistor from base to emitter takes part of the drive, so the base current as built is (V_in − V_BE)/R_B, and the saturation check is 1 when that is at least I_C/β; V_CE(sat) is taken as reached at that drive, not checked against the forced gain at which the datasheet specifies it.
- 04The transistor’s dissipation is conduction alone, I_C·V_CE(sat): the base drive’s V_BE·I_B, switching losses and the turn-off spike of an inductive load, which needs a flyback diode, are not counted.
- 05With a part series chosen, R_B is rounded to the nearest value of that series, and the base current and the saturation check are the rounded resistor’s.
Worked example
12 V relay from a 3.3 V GPIO, E24
A 12 V relay with a 400 Ω coil is switched by an NPN transistor (minimum β 100, V_CE(sat) 0.2 V) from a 3.3 V GPIO, with 5 times the minimum base current and an E24 base resistor. Which resistor is it, and does the transistor saturate?
| Step | Expression | Result |
|---|---|---|
| Load current | (12 V − 0.2 V) / 400 Ω | 29.5 mA |
| Minimum base current | 29.5 mA / 100 | 295 µA |
| Base resistor, exact | (3.3 V − 0.7 V) / (5 × 295 µA) | 1.763 kΩ |
| Base resistor in E24 | 1.763 kΩ → E24 | 1.8 kΩ |
| Base current as built | (3.3 V − 0.7 V) / 1.8 kΩ | 1.444 mA |
| Base current as a multiple of the minimum | 1.444 mA / 295 µA | 4.9 |
| Saturation check (saturated) | 1.444 mA ≥ 295 µA | 1 |
| Transistor dissipation | 29.5 mA × 0.2 V | 5.9 mW |
How it works
Transistor switch calculator computes base resistor and saturation parameters for relay/LED drivers — essential for interfacing microcontrollers to high-current loads, motor control, and relay activation. Embedded engineers, hobbyists, and automation designers use transistor switches to control loads exceeding MCU GPIO current limits (typically 20-40mA). Per Horowitz & Hill 'Art of Electronics' (3rd ed., Ch.2), a saturated BJT switch has Vce(sat) = 0.1-0.3V with forced beta βf = Ic/Ib = 10-20 (much lower than DC beta hFE = 100-300). The base resistor Rb = (Vdrive - Vbe)/Ib where Ib = Ic/βf. For reliable saturation, use βf = 10 regardless of transistor's hFE specification. MOSFET switches require Vgs > Vth + 4V for full enhancement, achieving Rds(on) in mΩ range.
Practical tips
- For loads > 500mA, use power transistors (TIP120 Darlington: 5A) or MOSFETs (IRLZ44N: 47A with Vgs = 4V for logic-level drive)
- Add 10kΩ pull-down resistor from base to ground — ensures transistor turns off if MCU pin goes high-impedance during reset or programming
- For high-speed switching (>100kHz), use MOSFETs — BJTs have 1-10μs storage time delay; MOSFETs switch in <100ns with proper gate drive
Common mistakes
- Using DC beta (hFE = 200) to calculate Ib — transistors need overdrive for fast switching; use forced beta βf = 10-20 regardless of hFE rating
- Omitting flyback diode on inductive loads — relay coil inductance generates 100-400V spike on turnoff, destroying transistors instantly per Vishay application note
- Driving 12V loads from 3.3V logic without level-shifter — some transistors need Vbe > 0.7V at high current; verify datasheet Vbe(sat) at required Ic
Frequently asked questions
4 questions
What is the difference between saturation and cutoff modes?
Saturation: transistor fully ON, Vce = 0.1-0.3V, collector conducts maximum current limited by external circuit. Cutoff: transistor fully OFF, Vce = Vcc, leakage current only (typically <1μA). No intermediate states in switching applications — transistor acts as controlled switch, not linear amplifier.
How do I choose the right transistor for switching?
Verify: Ic(max) > load current × 1.5, Vce(max) > supply voltage × 2, Pd(max) > Ic × Vce(sat) × duty_cycle. For 100mA/12V: 2N3904 (200mA, 40V, 625mW) works. For 1A/24V: TIP31 (3A, 40V, 40W) or IRLZ44N MOSFET (47A, 55V). Logic-level MOSFETs simplify 3.3V MCU interfacing.
What is the purpose of a base resistor?
Rb limits base current to safe level while ensuring saturation. Too high Rb = insufficient Ib = transistor in active region = high Vce = high power dissipation. Too low Rb = excessive Ib = wasted MCU current but still works. Calculate: Rb = (Vdrive - 0.7V) / (Ic/10).
When should I use a MOSFET instead of BJT?
Use MOSFET for: high current (>1A), high switching frequency (>100kHz), or when MCU cannot supply base current. MOSFETs have zero DC gate current, lower Rds(on) than Vce(sat), and faster switching. BJTs are simpler for low-current (<500mA) loads driven from 5V logic.
Shop Components
As an Amazon Associate we earn from qualifying purchases.