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.
About the BJT Base Resistor Calculator
The BJT Base Resistor Calculator gives you a fast, free answer for electronics and circuit design without sending anything off your device. Base resistor for a BJT switch driven into saturation.
How it works
Enter your figures and the result appears instantly, updating the moment you change anything. There is no submit button and nothing to wait for, so it is easy to try a few what-if numbers and compare the results. Just check each box holds the kind of value it expects.
Want the deeper story? The Knowledge Base explains the ideas behind the tools in more detail.
Frequently Asked Questions
Overdrive k?
Factor 5–10 ensures hard saturation; reduces Vce(sat).
PNP vs NPN?
Same math; PNP has drive to ground.
How do I use the BJT Base Resistor Calculator?
Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Does it cost anything or need an account?
No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.
Is anything I type uploaded?
No. The tool works entirely on your device, so the values you enter never leave your browser.
Common Use Cases
Relay Driver
2N2222 + MCU.
Load Switch
Low-side BJT.
Last updated: