Electronics & PCB Tools

Transistor Bias Calculator

Bias a bipolar transistor as a switch or a small-signal amplifier: base resistor for guaranteed saturation with an overdrive factor, collector current, the quiescent point of a divider bias stage and the power in each part.

  • Base resistor and drive current
  • Q-point and headroom
  • Dissipation per device
Runs in your browser

Everything you paste, type or drop is processed in this browser tab. It is not uploaded, logged, stored or sent to analytics.

Transistor bias workspace

1 What is the transistor doing?

Role
Try one:

The coil, lamp or resistor in the collector. Leave the collector current box empty to use this.

How many times the theoretical minimum base current to use. Five to ten is normal for a saturated switch.

2 Bias

Choose a role and fill in the circuit.

What the Transistor Bias Calculator does

This calculator biases a bipolar transistor for the two jobs it usually does. As a switch it gives the base resistor for guaranteed saturation with an overdrive factor you choose, along with the current the driving pin has to supply. As a small-signal amplifier it solves the four-resistor divider bias stage exactly, giving the quiescent collector current, the emitter and collector voltages, the headroom for an output swing and how stable that operating point is.

The point that matters in both cases is that hFE is not a design parameter. It varies by a factor of three between parts of the same type and changes with current and temperature, so a design that depends on its exact value does not work in production.

How to use it

  1. Choose whether the transistor is switching or amplifying.
  2. For a switch, enter the supply and the collector load - or the collector current directly if you know it - then the hFE at that current from the data sheet, and the voltage of whatever is driving the base.
  3. Set the overdrive factor. Five to ten times the theoretical minimum base current is normal; it is what makes the transistor saturate rather than merely conduct.
  4. For an amplifier, enter the two divider resistors, the collector and emitter resistors and hFE. The exact solution, including base current, is shown alongside the shortcut most textbooks use.
  5. Check the drive current against what your logic output can supply - 20 mA is about the limit for a microcontroller pin, and often less.

Reading the results

A switch is saturated when its Vce falls to a few hundred millivolts. That needs far more base current than Ic/hFE, because hFE collapses in saturation; the overdrive factor is how you buy that margin.

The stability ratio for a divider-biased amplifier is (hFE + 1) x Re / Rth. Above about 10 the operating point is set by the divider and the emitter resistor rather than by hFE, so it survives part-to-part spread and temperature. Below it, the stage drifts.

Vce at the quiescent point is your output headroom in one direction; Ic x Rc is the headroom in the other. A stage biased at half the supply has the largest symmetrical swing, which is why that is the classic starting point.

Worked example: switching a 12 V relay from a 5 V logic pin

A 120 ohm coil on 12 V with Vce(sat) of 0.2 V draws (12 - 0.2) / 120 = 98.3 mA. With an hFE of 100 the theoretical minimum base current is 0.983 mA, but at ten times overdrive we use 9.83 mA.

The base resistor is (5 - 0.7) / 0.00983 = 437 ohms, so 430 ohms from E24. The driving pin has to supply 9.8 mA, which is within a typical microcontroller's 20 mA limit but not trivial - two such loads on one port can exceed the total port current.

The transistor dissipates 98.3 mA x 0.2 V = 20 mW, which any small signal part handles. Add a 10 kOhm base-emitter resistor so the relay stays off while the microcontroller is in reset, and a freewheel diode across the coil, and the circuit is complete.

Formulas and scoring rules

Collector current from the load
Ic = (Vcc - Vce(sat)) / Rload
Minimum base current
Ib(min) = Ic / hFE
Base current with overdrive
Ib = overdrive x Ib(min)Five to ten is the usual range for a saturated switch.
Base resistor
Rb = (Vdrive - Vbe) / IbVbe is about 0.7 V for silicon at these currents.
Divider bias, Thevenin
Vth = Vcc x R2/(R1+R2), Rth = R1 x R2/(R1+R2)
Divider bias, exact base current
Ib = (Vth - Vbe) / (Rth + (hFE + 1) x Re)The shortcut Ic = (Vth - Vbe)/Re ignores Rth and base current.
Q-point
Ic = hFE x Ib, Ve = Ie x Re, Vc = Vcc - Ic x Rc, Vce = Vc - Ve
Stability ratio
(hFE + 1) x Re / RthAbove 10 the Q-point does not depend much on hFE.

Why a switch must be overdriven

The hFE on the front page of a data sheet is measured in the active region, with several volts across the transistor. In saturation, with Vce at 0.2 V, the effective current gain is far lower - often under 20 for a part rated at 100. Drive the base with exactly Ic/hFE and the transistor sits in the active region, dropping volts and dissipating power instead of switching.

Overdriving costs nothing but base current and a little turn-off delay, because the extra charge stored in the base has to be removed before the transistor turns off. That is why fast switching circuits use a Baker clamp or a MOSFET instead. For a relay or a lamp, ten times overdrive and a clean saturation is the right trade.

The four-resistor bias stage, and why Re matters

The emitter resistor is what makes divider bias stable. If the collector current rises, the emitter voltage rises with it, which reduces the base-emitter voltage and pushes the current back down - negative feedback on the DC operating point. Without Re, the Q-point follows hFE and temperature, and no two boards are alike.

The cost is gain: the stage's voltage gain is roughly -Rc/Re, so a large Re for stability means a small gain. The standard answer is to bypass Re with a capacitor, which leaves the DC stability intact while restoring the AC gain - at the price of a much lower input impedance and far more distortion, since the gain then depends on the transistor's own emitter resistance.

Limitations: what the result does not prove

  • hFE is treated as the single number you enter. In reality it spreads by a factor of three or more across a production batch and moves with current and temperature - design so that it does not matter.
  • Vce(sat) and Vbe are entered as constants. Both vary with current and temperature; Vbe falls by about 2 mV per kelvin, which is why bias circuits drift.
  • The amplifier analysis is DC only. It gives the operating point, not the AC gain, input impedance or frequency response, all of which depend on coupling and bypass capacitors and the transistor's own parameters.
  • The result is indicative and must be checked against the transistor's data sheet - in particular its absolute maximum collector current, Vceo and power dissipation with the heatsinking you actually have.

Privacy: where your data goes

Everything you paste, type or drop is processed in this browser tab. It is not uploaded, logged, stored or sent to analytics. Session recording and tag-manager scripts are switched off on this page.

Standards and sources

Frequently asked questions

How do I calculate the base resistor for a transistor switch?

Work out the collector current from the load, divide by hFE for the minimum base current, multiply by an overdrive factor of five to ten, then Rb = (Vdrive - 0.7) / Ib. For 100 mA through a part with hFE 100 driven from 5 V at ten times overdrive, that is about 430 ohms.

Why do I need an overdrive factor?

Because the current gain in saturation is far lower than the data sheet's headline hFE. Driving the base with exactly Ic/hFE leaves the transistor in the active region, where it drops volts and gets hot. Extra base current forces it into saturation, where Vce is a couple of hundred millivolts.

What hFE value should I use?

The minimum for your part at your collector current, read from the data sheet's curves - not the typical value. hFE spreads widely between samples and falls at high current, and designing to the minimum is what makes a circuit work in production.

What is a good Q-point for a small-signal amplifier?

Traditionally Vce at about half the supply, with the emitter at around a tenth of it, which gives the largest symmetrical output swing before clipping. Where the signal is small and headroom is not the constraint, a lower current gives less dissipation and lower noise.

Why is my amplifier's collector sitting at the supply voltage?

Almost no collector current is flowing, so the stage is cut off. Either the divider's output is below Vbe, or Re is too large for the current you intended. Check the Thevenin voltage the calculator shows against Vbe plus the voltage you want across Re.

What does the emitter resistor do?

It stabilises the operating point through negative feedback: more current raises the emitter voltage, which reduces the base-emitter voltage and pulls the current back. It also sets the stage's voltage gain at roughly -Rc/Re, which is why it is often bypassed with a capacitor for AC.

Should I use a BJT or a MOSFET as a switch?

A MOSFET for anything above a few hundred milliamps, or anything switched quickly: it needs no steady drive current and its on-resistance is usually far lower than a BJT's saturation voltage. A BJT is fine for small loads, is cheaper, and needs no gate-drive voltage headroom.

Do I need a resistor from base to emitter?

It is good practice on a switch. A 10 kOhm resistor from base to emitter holds the transistor off when the driving pin is high-impedance - during reset or before the firmware configures its pins - which stops a relay or motor from twitching at power-up.

Last reviewed by the A2Z.Tools team against the sources listed above.

Rate this tool

Was this tool useful? Your feedback helps us improve it.

No ratings yet — be the first to rate this tool.
Your rating (required)
0 / 2000

Please do not include passwords, payment details or other sensitive information.

Your feedback is sent privately to the A2Z.Tools team and will not be posted publicly.