🔬
🔬 Science & engineering

BJT Transistor Switch & Bias Calculator

Results update as you type.

Your numbers

Understanding the BJT transistor switch calculator — concept and principle

A bipolar junction transistor (BJT) is often used as a low-side switch so that a microcontroller pin can drive a relay, motor, lamp or LED string. This calculator sizes the base resistor so the transistor is driven hard into saturation, and estimates the power the transistor dissipates while it is on.

Transistor switch with base resistorA 100 mA load with hFE 100 needs 1 mA; five times overdrive gives 5 mA, and 4.3 V across R_B means 860 Ω.A small base current switches a big load12 Vload5 VR_B = 860 Ω5 mA100 mA1 mA100 ÷ hFE 1005 mA× overdrive 54.3 V5 − 0.7 VR_B = 4.3 V ÷ 5 mA = 860 Ωsaturated: 0.2 V × 100 mA = 20 mW
5 mA into the base, five times the minimum, keeps the 100 mA switch fully on.

How it is calculated

I_C is the load (collector) current, h_FE the minimum current gain from the datasheet, V_in the drive voltage from the logic pin, V_cc the supply and of the overdrive factor. The model assumes V_BE ≈ 0.7 V, V_CE(sat) ≈ 0.2 V.

The principle

In the active region a BJT's collector current is about h_FE times its base current. A switch, however, should not sit in that region, because the transistor would drop several volts and heat up. Supplying more base current than I_C / h_FE pushes it into saturation, where the collector-emitter voltage collapses to a few tenths of a volt and the load current is set by the load itself. Gain varies between parts and falls at high current and low temperature, so designers multiply the minimum by an overdrive factor of 2 to 10. Ohm's law across the voltage left after the V_BE drop then gives the base resistor.

Worked example

  1. Minimum base current: 100 mA / 100 = 1 mA.
  2. With overdrive 5: I_B = 5 × 1 = 5 mA (a forced gain of 20).
  3. Voltage across the base resistor: 5 − 0.7 = 4.3 V.
  4. R_B = 4.3 / 0.005 = 860 Ω.
  5. Power at saturation: 0.2 V × 100 mA = 20 mW.
  6. With a 12 V supply: R_load = 11.8 V / 0.1 A = 118 Ω, and the load takes 11.8 V × 0.1 A = 1,180 mW.
How Base resistor (Ω) changes with Collector (load) current (mA)How Base resistor changes with Collector…01,0002,0003,0004,000255075100125150200Example: 860Collector (load) current (mA)
Each point is the calculator re-run with only “Collector (load) current (mA)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Collector (load) current (mA)Base resistor (Ω)
253,440
501,720
751,146.666667
100860
125688
150573.3333333
200430

How to read the result

Choose the nearest standard resistor at or below the result (820 Ω in the E12 series gives about 5.2 mA) so the transistor stays saturated. Check that the logic output can source that current; many microcontroller pins are limited to a few mA to around 20 mA.

Common mistakes

Keep in mind: The 0.7 V and 0.2 V figures are typical, not guaranteed. Check the datasheet's V_CE(sat) at your current and base drive, and follow the manufacturer's ratings for current, voltage and power.

Frequently asked questions

What overdrive factor should I use?

A forced gain of 10 to 20 (overdrive 5 to 10 with h_FE 100) is a common rule for reliable saturation.

Why not just use a very small base resistor?

Too much base current wastes power, can overload the driving pin and slows turn-off because of stored charge.

When should I use a MOSFET instead?

For load currents above a few hundred mA, a logic-level MOSFET needs almost no gate current and has lower conduction loss.

Sources: Sedra and Smith, Microelectronic Circuits, chapter on bipolar junction transistors · Horowitz and Hill, The Art of Electronics, 3rd edition, chapter on transistors

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →