BJT Base Resistor Calculator
Base resistor for a BJT switch driven into saturation.
How to Use
- Enter drive V, Vbe, Ic, hFE, and overdrive factor.
- Rb = (Vdrive − Vbe) · hFE / (k·Ic).
Show Work
Formulas
History of the BJT as a Switch
The bipolar junction transistor was invented by William Shockley, John Bardeen, and Walter Brattain at Bell Labs in late 1947 — the device that earned them the 1956 Nobel Prize and launched the semiconductor revolution. The first BJTs were point-contact germanium devices; Shockley's 1949 junction transistor design (silicon by 1954) became the dominant form and the basis for the 2N2222 (1962), arguably the most-used discrete BJT in history.
BJTs as switches date to the 1950s transistor-transistor logic (TTL) work at TI and Fairchild. Charles Sporck and Jerry Sanders popularized the low-side switch configuration — base resistor + NPN + emitter-grounded — as a universal interface between logic and high-current loads (relays, lamps, solenoids). The overdrive factor (5-10×) compensates for hFE drop at high currents and pushes Vce(sat) down to ~200 mV, minimizing switching losses.
Modern MCU-controlled load switching has largely moved to MOSFETs (logic-level N-channel for low-side, P-channel for high-side) because they have near-zero gate current and lower on-resistance per dollar. But BJTs remain preferred for small-signal switching, analog isolation (optocouplers, current mirrors), and low-cost driver stages where their 0.7 V base-emitter drop is a feature rather than a bug.
About This Calculator
Enter drive voltage (typically the MCU logic level), Vbe (~0.7 V for silicon, ~0.3 V for germanium), collector current Ic, minimum hFE (use the datasheet worst-case, not typical), and overdrive factor k (5-10 for saturation). The tool returns required base resistance Rb = (V_drive − Vbe)·hFE / (k·Ic), base current Ib, resistor dissipation, and the nearest standard E12 value.
When switching inductive loads (relays, solenoids, motors), add a flyback diode across the load — without it, the collapsing magnetic field will spike the collector voltage beyond VCEO and destroy the transistor. For loads above ~1 A, consider a MOSFET instead; below 100 mA, BJT remains the cheaper and simpler choice. Everything runs client-side; no values leave your browser.
Frequently Asked Questions
Overdrive k?
Factor 5–10 ensures hard saturation; reduces Vce(sat).
PNP vs NPN?
Same math; PNP has drive to ground.
Common Use Cases
Relay Driver
2N2222 + MCU.
Load Switch
Low-side BJT.
Last updated: