BJT Calculator: Biasing, Amplification, and Switching
Introduction
A transistor does nothing useful until its operating point is defined. The Q-point — the pair of values IC and VCE imposed by the circuit with no signal applied — determines everything else: gain, how much signal it can handle before clipping, power dissipation, and how much all of this changes when you replace the transistor with another device from the same batch.
This is why the page is built around a single operating point. The first card calculates it and the other cards inherit it: the plot draws it, the amplifier uses it to derive the small-signal parameters, and the capacitors are sized from the resulting impedances. You can always use a card independently and enter your own values, but this is the natural workflow.
The second idea is that resistors are available only in standardized values. Every calculated resistance is shown in three columns — theoretical, E24, and E96 — together with the operating point recalculated using the commercial values. That is the circuit you will actually build, and it is never exactly the one you designed.
| Quantity | Relation | Used for |
|---|---|---|
| Base current | \( I_B = \dfrac{V_{TH}-V_{BE}}{R_{TH}+(\beta+1)R_E} \) | Biasing |
| Operating point | \( I_C=\beta I_B,\quad V_{CE}=V_{CC}-I_C R_C-I_E R_E \) | All cards |
| Transconductance | \( g_m = \dfrac{I_C}{V_T},\quad V_T=\dfrac{kT}{q} \) | Small-signal analysis |
| Base resistance | \( r_\pi = \dfrac{\beta}{g_m} \) | Zin |
| Output resistance | \( r_o = \dfrac{V_A+V_{CE}}{I_C} \) | Zout, maximum gain |
Global Parameters and Transistor
Card 1 — Voltage-Divider Bias
| β | IC | VCE | Deviation |
|---|
| Theoretical | E24 | E96 |
|---|
A base voltage divider combined with an emitter resistor is the bias arrangement to use when the circuit must work with any transistor of the selected type. The reason is clear in the stability table: double β and see how much IC moves. With RE in place, the change remains only a few percent; without RE, it would be proportional to β.
A common design rule is to make the divider current at least ten times IB, so that VB is set mainly by the divider rather than by the transistor. The calculation does not impose this rule — it uses the complete Thévenin model — but the table immediately shows whether you have satisfied it.
Power dissipation is the line that is easiest to forget: a TO-92 package without a heatsink is typically limited to roughly 300–500 mW, and at 12 V only 30 mA can be enough to reach that range.
VBE decreases by about 2 mV per degree: at 60 °C the operating point is no longer the one calculated at 25 °C. Change the temperature in the global parameters to see the effect.
Card 2 — Load Lines and Q-Point
The DC load line is the locus of operating points allowed by the supply and the resistors: from the ideal short-circuit current VCC/(RC+RE) to cutoff at VCE = VCC. The Q-point lies on this line, and its position is determined by Card 1.
The AC load line is steeper because, for the signal, the collector sees RC in parallel with RL rather than RC+RE. It passes through the same Q-point and determines how much signal swing is available before clipping on either side.
The last value is the important one: the maximum symmetrical peak amplitude, namely the smaller of the distances from Q to saturation and from Q to cutoff. If those distances are very different, the operating point is not centered and a large part of the available signal swing is being wasted.
Card 3 — Common-Emitter Amplifier
| Theoretical | E24 | E96 |
|---|
In analysis mode, the card starts from the operating point calculated by Card 1 and derives the small-signal parameters. With the emitter fully bypassed, the gain is \( A_v=-g_m(R_C\parallel R_L\parallel r_o) \): the minus sign represents phase inversion, while ro is the gain limit imposed by the Early effect even if RC were infinite.
As soon as an unbypassed RE1 is added, the gain drops to \( \dfrac{-\beta R_C’}{r_\pi+(\beta+1)R_{E1}} \), but it also becomes almost independent of β and temperature: this is the usual trade-off between gain and repeatability. In this case I neglect ro in the gain calculation because the resistance seen at the collector rises to \( r_o\left(1+g_m(R_{E1}\parallel r_\pi)\right) \) and becomes much larger than RC. The resulting error is below one percent, and I prefer to state the approximation explicitly.
Avs is the gain you actually measure: between the generator and the base there is a divider formed by Rs and Zin. With Zin of only a few kΩ and a 600 Ω source, about a quarter of the signal can already be lost before it reaches the transistor.
In design mode, the process is reversed: enter the required gain and collector current and the card selects the resistor values. The assumptions are explicit — VE as a fraction of VCC and divider current equal to ten times IB — and the E24 and E96 columns immediately show the resulting commercial values and the gain they actually produce.
Card 4 — Common Collector and Common Base
| Configuration | Av | Zin | Zout |
|---|
The three configurations are not three ways of doing the same job: they are different circuit tools. The common emitter provides voltage gain and phase inversion; the emitter follower has a gain just below unity but transforms a high impedance into a low one; the common-base stage has a Zin of only a few tens of ohms, which is a disadvantage at low frequency but useful when terminating a 50 Ω line.
The table compares all three configurations at the same operating point, which is the only meaningful way to compare them. Look at the Zout column: the emitter follower is in the tens of ohms, while the common-emitter stage is in the kΩ range. This, rather than gain, is why an emitter follower is so often placed at the end of a signal chain.
The emitter-follower equations include Rs, because Zout depends on the impedance driving the base: \( Z_{out}=R_E\parallel\dfrac{r_\pi+(R_s\parallel R_1\parallel R_2)}{\beta+1} \).
Card 5 — Two-Stage Cascade
The gain of two cascaded stages is not simply the product of their individual gains; that is one of the most common mental-calculation mistakes. Between the collector of the first stage and the base of the second there is a divider formed by Zout1 and Zin2. With two identical common-emitter stages — about 2 kΩ Zout against 1.5 kΩ Zin — more than 40% of the signal can be lost.
This is why an emitter follower is often inserted between stages: it adds almost no voltage gain, but it can reduce Zout1 to a few tens of ohms and recover nearly all the signal otherwise lost in the divider. Try setting Av1 = 0.99 and Zout1 = 30 Ω and then check the loss line.
Card 6 — Coupling and Bypass Capacitors
| Capacitor | Resistance seen | Pole | Theoretical | E12 |
|---|
Each capacitor forms a first-order high-pass network with the resistance it sees: the equations are the same as those used in the first-order filters tool, applied three times with three different resistances.
The design rule used here is to place the CE pole at the required lower cutoff frequency — it is the dominant pole because the resistance it sees is very small — and place the other two poles one decade lower so that their attenuation does not add significantly at cutoff. If all three poles are placed at the same frequency, the combined attenuation is about −9 dB rather than −3 dB.
The typical result can be surprising: CE may be hundreds of microfarads, while Cin and Cout remain below one microfarad. The reason is that the emitter bypass capacitor sees \( \dfrac{r_\pi+R_s’}{\beta+1} \) in parallel with RE, which is often only a few tens of ohms.
Card 7 — BJT as a Switch
In switching operation the transistor is not in the active region, so β is not used to calculate IC: the load determines the collector current, while β is used only to ensure that enough base current is supplied. This is the reason for overdrive: a forced β of roughly 10–20 is commonly targeted, meaning several times the minimum base current is applied so that the transistor remains saturated even with a low-gain device and at low temperature.
The trade-off is turn-off time: the more charge stored in the base, the longer it takes to remove it. For fast switching, a base-emitter resistor or a Schottky anti-saturation clamp can be used; for driving a relay or an LED, moderate overdrive is usually not a practical problem.
With an inductive load — relay, motor, or solenoid — a flyback diode connected across the load is always required; otherwise the turn-off voltage spike can exceed VCEO and damage the transistor on the first switching event.
Reference Tables
| Configuration | Av | Zin | Zout |
|---|---|---|---|
| Common emitter, bypassed RE | \( -g_m(R_C\parallel R_L\parallel r_o) \) | \( R_1\parallel R_2\parallel r_\pi \) | \( R_C\parallel r_o \) |
| Common emitter with RE1 | \( \dfrac{-\beta R_C’}{r_\pi+(\beta+1)R_{E1}} \) | \( R_1\parallel R_2\parallel[r_\pi+(\beta+1)R_{E1}] \) | \( \simeq R_C \) |
| Common collector | \( \dfrac{(\beta+1)R_E’}{r_\pi+(\beta+1)R_E’} \) | \( R_1\parallel R_2\parallel[r_\pi+(\beta+1)R_E’] \) | \( R_E\parallel\dfrac{r_\pi+R_s’}{\beta+1} \) |
| Common base | \( g_m(R_C\parallel R_L) \) | \( R_E\parallel\dfrac{r_\pi}{\beta+1} \) | \( R_C\parallel r_o \) |
| Transistor | Type | Typical β | at IC | VCEO |
|---|
The β values are typical datasheet values at the stated collector current, not guaranteed limits: production spread can easily range from roughly half to twice the typical value, and β also changes with current and temperature in the same device. A circuit that works only with the typical β value is not a robust design.
VA is rarely specified directly in datasheets: it can be estimated from the slope of the output-characteristic curves, and 100 V is a reasonable order-of-magnitude value for small-signal silicon BJTs. If you need an accurate value, measure it.