Transistor switch formulas
An NPN switch takes I_b = (V_in − 0.7 V) / R_b into its base. Saturated, it keeps only V_CE(sat) ≈ 0.2 V, so the load sets I_c = (V_cc − 0.2 V) / R_L, and the base needs I_c / β, given k = 2 to 10 times that: R_b = (V_in − 0.7 V) / I_b.
The formulas
| Formula | What it gives | Symbols |
|---|---|---|
I_b = (V_in − V_BE) ÷ R_b | Base current from a pin through R_b | V_BE ≈ 0.7 V for a conducting silicon transistor; R_b in Ω gives I_b in A |
I_c = (V_cc − V_CE(sat)) ÷ R_L | Load (collector) current, saturated | V_CE(sat) ≈ 0.2 V; valid while β × I_b is at least this current |
I_b = I_c ÷ β | Least base current that saturates | β (h_FE) = the current gain from the data sheet; use its lowest value |
I_b = k × I_c ÷ β | Base current with an overdrive k | k = 2 to 10 makes sure the transistor saturates even with a low β |
R_b = (V_in − V_BE) ÷ I_b | Base resistor for a base current | with I_b = I_c / β it gives the largest R_b that still saturates |
I_c = β × I_b | Collector current when not saturated | when β × I_b is less than (V_cc − 0.2 V) / R_L: the transistor is only partly on |
P = V_CE(sat) × I_c | Power wasted in a saturated transistor | leaving out the small base power V_BE × I_b |
P_L = (V_cc − V_CE(sat)) × I_c | Power in the load | or I_c² × R_L; the supply gives V_cc × I_c in all |
R = (V_cc − V_f − V_CE(sat)) ÷ I | Series resistor of an LED switched by a transistor | V_f = the LED's forward voltage (about 2 V red, 3.2 V white) |
V_out = V_CE(sat) | NOT gate output, input high | the transistor saturates and pulls the collector low |
V_out = V_cc × R_L ÷ (R_c + R_L) | NOT gate output, input low, with a load | the transistor is off, so R_c and the load make a divider; with no load V_out = V_cc |
V_C = V_cc + V_D | Collector at switch-off with a flyback diode | the diode across the coil, cathode towards +V_cc, carries the coil's current round; V_D ≈ 0.7 V |
V_C = V_cc + V_D + V_Z | Collector at switch-off with a diode and a zener | the zener lets the current die away faster, so the relay drops out sooner |
Worked example
This example is made by the same code as the practice questions. Open the working to see every step.
The lamp must switch fully on, with V_CE(sat) = 0.2 V across the transistor. The base gets 3 times the least base current I_c ÷ β, and V_BE = 0.7 V. What base resistor R_b is needed? Give your answer to 3 significant figures.
Answer: 2.38 kΩ. The load current, then k × I_c ÷ β for the base, and R_b takes V_in − V_BE: R_b = (3.3 V − 0.7 V) ÷ 1.093 mA ≈ 2.38 kΩ.
Show the working
- Write down what is given: V_in = 3.3 V, V_cc = 12 V, R_L = 270 Ω, β = 120, k = 3.
- First the collector current with the transistor saturated: I_c = (12 V − 0.2 V) ÷ 270 Ω ≈ 43.70 mA.
- Then the base current, k times the least: I_b = 3 × 43.70 mA ÷ 120 ≈ 1.093 mA.
- R_b takes the pin voltage less V_BE at that base current: R_b = (V_in − V_BE) ÷ I_b.
- Work it out and round to 3 significant figures: R_b = (3.3 V − 0.7 V) ÷ 1.093 mA ≈ 2.38 kΩ.
- Check: a bigger R_b gives less base current; a smaller one only drives it harder. Answer: 2.38 kΩ.
Why not the others?
- 3.02 kΩ Leaves out V_BE; the base-emitter junction takes 0.7 V of the pin voltage.
- 7.14 kΩ Leaves out the overdrive k; that is only the least base current I_c ÷ β.
Remember: Base resistor: R_b = (V_in − V_BE) ÷ I_b, with I_b = k × I_c ÷ β; the largest R_b gives just I_c ÷ β. Formula sheet
Common mistakes
These are the wrong answers the practice questions offer, and the slip that leads to each.
- Using 0.7 V for the saturated transistor: collector to emitter it keeps only V_CE(sat) ≈ 0.2 V.
- Giving the base only I_c / β: a low β or a warm transistor then leaves it partly on; use 2 to 10 times that.
- Taking β × I_b as the current when the transistor is saturated: the load limits it to (V_cc − 0.2 V) / R_L.
- Putting the flyback diode the wrong way round: with its anode at +V_cc it shorts the supply when the transistor turns on.
Questions
What is the formula for base current from a pin through R_b?
I_b = (V_in − V_BE) ÷ R_b. Symbols: V_BE ≈ 0.7 V for a conducting silicon transistor; R_b in Ω gives I_b in A.
What is the formula for load (collector) current, saturated?
I_c = (V_cc − V_CE(sat)) ÷ R_L. Symbols: V_CE(sat) ≈ 0.2 V; valid while β × I_b is at least this current.
What is the formula for least base current that saturates?
I_b = I_c ÷ β. Symbols: β (h_FE) = the current gain from the data sheet; use its lowest value.