Worked example
Example: Illustrative: 3.3 V pin, 150 mA relay at 12 V, forced gain 10. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Drive voltage (logic high) | 3.3000 V |
| Collector (load) current | 150.00 mA |
| Forced current gain for hard saturation (about 10–20) | 10.000 - |
| Base-emitter voltage in saturation | 0.80000 V |
| Load supply voltage | 12.000 V |
| Collector-emitter saturation voltage | 0.20000 V |
Applying the formula below gives:
| Result | Value |
|---|---|
| Base resistor (largest value) | 0.16667 kΩ |
| Base current | 15.000 mA |
| Transistor dissipation I_C V_CE(sat) + I_B V_BE | 42.000 mW |
| Equivalent load resistance (V_CC − V_CE)/I_C | 78.667 Ω |
Open this example in the calculator and change any input.
Formula
\(I_B = \frac{I_C}{\beta_{forced}}, \quad R_B = \frac{V_{drive} - V_{BE(sat)}}{I_B}, \quad P_T = I_CV_{CE(sat)} + I_BV_{BE}\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(V_{drive}\) | Drive voltage (logic high) | V |
| \(I_C\) | Collector (load) current | A |
| \(\beta_{forced}\) | Forced current gain for hard saturation (about 10–20) | - |
| \(V_{BE(sat)}\) | Base-emitter voltage in saturation | V |
| \(V_{CC}\) | Load supply voltage | V |
| \(V_{CE(sat)}\) | Collector-emitter saturation voltage | V |
| \(R_B\) | Base resistor (largest value) | Ω |
| \(I_B\) | Base current | A |
| \(P_T\) | Transistor dissipation I_C V_CE(sat) + I_B V_BE | W |
| \(R_{load}\) | Equivalent load resistance (V_CC − V_CE)/I_C | Ω |
Method and standards
Bipolar transistor switch design.
Where it is used
- Driving relays, LEDs, buzzers and small motors from logic.
- Level shifting and open-collector outputs.
Common mistakes
- Designing with typical h_FE so the transistor only half turns on.
- Forgetting the flyback diode on relay coils.
Assumptions and limits
- Saturated operation, room-temperature datasheet values.
References
- Saturated bipolar switch design
Questions and answers
Why not use the datasheet h_FE?
h_FE is for the active region and varies widely; to be sure of saturation, design with a forced gain of 10–20, well below it.
When is a MOSFET better?
For larger currents or when the drive pin cannot supply the base current; a logic-level MOSFET needs almost no steady gate current.
What do the defaults represent?
An illustrative 3.3 V microcontroller pin switching a 150 mA, 12 V relay coil with a forced gain of 10.
Method and article reviewed by FireCAD engineering on 17 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.
Sources
Horowitz and Hill, The Art of Electronics, 3rd ed. (Cambridge University Press, 2015), ch. 2