The formula
I_b(min) = I_c / h_FE ; R_b = (V_drive − V_be) / (overdrive × I_b(min))
- I_c
- collector current the load needs (amperes)
- h_FE
- current gain — use the datasheet minimum, not the typical
- V_drive
- logic voltage driving the base (volts)
- V_be
- base-emitter drop, about 0.7 V for silicon
- R_b
- base resistor (ohms)
Worked example
Switching 100 mA with h_FE = 100 from a 5 V logic pin, overdrive 10.
- I_b(min) = 0.1 / 100 = 1 mA
- Drive at 10× : I_b = 10 mA
- R_b = (5 − 0.7) / 0.01 = 4.3 / 0.01
R_b = 430 Ω — but check the 10 mA is within the driving pin's rating first.
Where you'll use it
Driving relays, LEDs and small motors from a microcontroller. The calculator rejects a drive voltage at or below V_be, because no base resistor will make that transistor conduct.