BJT Transistor Base Resistor Sizer
Size a base resistor for an NPN or PNP switch. Check minimum base drive, maximum driver current, resistor tolerance, and ON-state power before choosing a standard value.
Switch conditions
For a single discrete BJT with a series base resistor and a fixed emitter reference. Defaults are illustrative, not a verified device design.
Base-drive result
Smaller RB increases drive current. Larger RB reduces drive but may no longer meet the forced-beta target.
Allowed nominal RB range
- Lower bound from driver-current budget
- —
- Upper bound from required base drive
- —
Both bounds include RB tolerance. Automatic selection searches 0.1 Ω–10 MΩ and chooses the largest E24 or E96 value inside this interval. Values at a boundary have little spare margin.
| Check | Calculated | Target / limit | Result |
|---|---|---|---|
| Base drive, minimum | — | — | — |
| Driver current, maximum | — | — | — |
Power & operating margin
- RB ON-state dissipation, maximum
- —
- RB continuous power-rating target
- —
- Maximum voltage across RB
- —
- Base-current range
- —
- Base-drive margin above requirement
- —
- Worst IC / IB at entered IC
- —
Base-emitter resistor
- Maximum current diverted through RBE
- —
- RBE ON-state dissipation, maximum
- —
- RBE continuous power-rating target
- —
- Nominal RBE / tolerance
- —
Save the inputs, resistor window, checks, and model limitations as a text file.
Enough base drive. A realistic driver.
A resistor must satisfy two constraints at once: supply the required junction base current at the weakest drive corner and stay within the driver-current budget at the strongest drive corner.
Start with saturation conditions
Forced beta is your chosen IC / IB ratio. The target base current is IC divided by that ratio. It is not a prediction of the transistor’s actual gain or load current.
IB,required = IC / βforcedInclude the opposing corners
High resistance and high |VBE| reduce base drive. Low resistance and low |VBE| increase driver current. The selected tolerance applies to nominal RB.
RB,min = (ΔVmax − VBEmin) / [Idriver,max × (1 − t)]
RB,max = (ΔVmin − VBEmax) / [(IB,required + Ishunt,max) × (1 + t)]Size for the ON state
The power target uses continuous ON-state dissipation. A low PWM duty cycle does not reduce peak base current or remove the need for a resistor pulse-rating check.
PRB,max = (ΔVmax − VBEmin)² / [RB × (1 − t)]
Power-rating target = PRB,max / utilizationAll voltages and currents in the equations are positive magnitudes; t and utilization are fractions. With no RBE, Ishunt,max = 0. With RBE, Ishunt,max = VBEmax / [RBE × (1 − tBE)]. The model treats entered limits as independent conservative bounds.
Preferred nominal values: Vishay — E-series standard resistance values. A series value does not establish stock availability, tolerance, package, or power rating.
50 mA load, 3 V minimum drive
Use IC = 50 mA, forced beta = 10, ΔV = 3.0–3.6 V, |VBE| = 0.70–0.95 V, a 12 mA driver budget, and ±5% RB tolerance. Without RBE, the allowed nominal range is about 254.39–390.48 Ω.
The largest E24 value that fits is 390 Ω. Minimum base current is about 5.006 mA; maximum driver current is about 7.827 mA. RB dissipates up to 22.70 mW, giving a 45.40 mW rating target at 50% utilization.
The base-drive margin is only about 0.12%. That leaves almost no room for unmodeled voltage, temperature, or resistance variation. Check a lower value such as 360 Ω in manual mode and confirm the increased driver current remains acceptable.
Why hFE is not forced beta
For the onsemi 2N3904, hFE is specified at VCE = 1 V; the 10 mA test gives a range of 100–300. Its separate saturation test at IC = 10 mA uses IB = 1 mA—a forced ratio of 10—with VCE(sat) limited to 0.2 V.
Those are different operating conditions. The ratio 10 is an example, not a universal rule for every transistor, current, or temperature. Review the exact device’s saturation table and relevant curves.
Source: onsemi 2N3904 datasheet, electrical characteristics. Listed values apply under the datasheet test conditions; the calculator defaults are not a complete 2N3904 design.
What the resistor calculation cannot decide
Driver, turn-off & voltage levels
- Loaded GPIO voltage: use the driver’s applicable VOH / VOL limits at the required source or sink current. A pin’s absolute-maximum current is not a normal operating target.
- PNP high-side drive: enter ΔV = Vemitter − Vdriver while ON. Turn-off must bring the base toward the emitter. A higher emitter supply may require a level-shifting driver; a series resistor alone does not prove GPIO voltage compatibility.
- Base-emitter resistor: it can help define the off state but consumes some ON-state drive. This tool includes that current when enabled; off-state leakage and switching behavior still need separate checks.
Transistor, load & temperature
- Switching speed: deeper saturation can increase stored charge. Check storage time and the actual turn-off drive rather than assuming extra base current always improves switching.
- Inductive loads: provide an appropriate flyback or clamp path and check voltage, energy, and release-time requirements. The diagrams show only the base-drive connections.
- Thermal and SOA limits: transistor dissipation includes collector-path and base-path contributions, plus switching losses. A passing RB check does not verify transistor heating, inrush capability, or safe operating area.
Background: Nexperia — Bipolar Junction Transistor Application Handbook.
Choose the next design step
No resistor window
The current budget and required base drive conflict at the entered corners. Consider a stronger driver, a different transistor with suitable saturation data, or a suitable MOSFET stage. Do not raise forced beta only to force a passing result.
A window, but no E24 value
Try E96, a tighter verified tolerance, or a manual value inside the interval. A narrow mathematical fit can still leave too little margin for real operating variation.
A value fits the model
Confirm base current and collector voltage on the real stage across supply, temperature, and load. Check the transistor pinout, resistor voltage rating, startup state, and switching waveforms before release.
BJT base-resistor questions
Can I use RB = (Vdrive − 0.7 V) / IB?
It is a useful nominal estimate, but it omits supply variation, loaded driver voltage, base-emitter voltage variation, resistor tolerance, and any base-emitter shunt current. This tool uses bounds instead of one fixed 0.7 V assumption.
Why does the tool choose a value below the upper bound?
The upper bound is the largest nominal resistor that still supplies the entered base-current target at the weakest drive corner. Rounding above it can underdrive the base. The selected value must also remain above the lower bound set by the driver-current budget.
Does meeting the forced-beta target prove saturation?
No. It only checks the base-current budget under the entered model. The transistor must have suitable saturation behavior at the relevant collector current and temperature, and the load circuit must permit that operating point. Review the datasheet and measure the actual stage.
Can I use this for Darlingtons, digital transistors, or amplifier bias?
Not as a complete sizing method. Darlington pairs, resistor-equipped transistors, emitter-degenerated stages, and linear bias networks have different internal paths or operating requirements. Use a model appropriate to the actual circuit.
Does E96 automatically mean 1% tolerance?
No. E96 defines preferred nominal values. Enter the tolerance of the resistor you intend to buy. Also account for temperature coefficient and other resistance variation where they matter.
Source the transistor & resistor
Share the exact part numbers, package, tolerance, power rating, quantity, and target delivery date for a sourcing review.
