Transistor Base Resistor Calculator
Find the base resistor needed to switch a load fully on with an NPN or PNP transistor driven from a logic or PLC output.
- IB = IC ÷ hFE × k = 100 mA ÷ 100 × 5 = 5 mA
- RB = (Vin − VBE) ÷ IB = 860 Ω
Base Resistor Formula
RB = (Vin − VBE) ÷ IB
k is the overdrive factor (2 to 10) that makes sure the transistor saturates even with the lowest hFE and at low temperature. A forced beta of 10 to 20 is a common target.
Worked example
A 5 V output switches a 100 mA relay with a transistor of hFE 100. IB = 1 mA × 5 = 5 mA, RB = 4.3 ÷ 0.005 = 860 Ω, so fit 820 Ω.
Frequently Asked Questions
How do I calculate a transistor base resistor?
R = (Vin − 0.7) ÷ IB, with IB = IC ÷ hFE times an overdrive factor of about 5.
Why use an overdrive factor?
hFE varies widely between parts and falls at low temperature and high current. Extra base current guarantees saturation.
Should I round the base resistor up or down?
Down, so the base current is at least the calculated value.
Learn more on the blog
Electromagnetic relay working and coil suppression
A practical, field focused guide on instrumentationblog.in that explains the theory behind this calculator and how engineers apply it on real plants.
Read Full Article