Tool 07 · Transistor Guide · Bipolar

CBE

NPN bipolar transistor

A small current into the base lets a current about β\beta times larger flow from collector to emitter.

Controlled by
Current into the base
With no drive
Off: it conducts only when driven
Fully on
A small fixed drop, VCE(sat)V_{CE(sat)} of 0.05 to 0.4 V
Terminals
B base, C collector, E emitter
Used for
Low-side switches for LEDs, relays, small motors; Small-signal amplifiers; Current sources, mirrors, differential pairs
01

How it works

An NPN is three layers of silicon: an N-type emitter, a very thin P-type base, and an N-type collector. Forward-biasing the base-emitter junction, about 0.65 V, pushes electrons from the emitter into the base. The base is so thin that almost all of them cross it, and the reverse-biased collector-base junction (collector above base) sweeps them into the collector; only a small fraction leave through the base wire.

So the base current sets a collector current β\beta times larger:

IC=β IBIE=IC+IB=(β+1) IBI_C = \beta\, I_B \qquad I_E = I_C + I_B = (\beta + 1)\, I_B

β\beta, written hFEh_{FE} on a datasheet, is between 100 and 300 for a 2N3904 at 10 mA, with only 30 guaranteed at 100 mA. It also changes with temperature and from one part to the next. A circuit that works only for one value of β\beta is a fragile circuit.

Seen from the base-emitter voltage instead, the collector current is exponential, like a diode:

IC=IS eVBE/VTVT=kTq≈25.9 mV at 300 KI_C = I_S\, e^{V_{BE}/V_T} \qquad V_T = \frac{kT}{q} \approx 25.9\ \text{mV at } 300\ \text{K}

ISI_S, the saturation current, is a tiny scale factor (6.7 fA in the 2N3904 SPICE model). VTV_T is the thermal voltage: kk is Boltzmann's constant, TT the absolute temperature and qq the electron charge. Ten times more current takes only VTln⁡10≈60V_T \ln 10 \approx 60 mV more on the base. That is why VBEV_{BE} hardly moves, about 0.6 to 0.72 V from 0.1 mA to 10 mA, and why a design can treat it as a fixed 0.65 V. At a fixed current it also falls by about 2 mV for every degree of warming.

Regions of operation

RegionBase-emitterBase-collectorWhat happensUsed as
Cutoffunder about 0.5 Vreverseonly leakage flowsopen switch
Activeabout 0.65 V, forwardreverseIC=βIBI_C = \beta I_B, nearly independent of VCEV_{CE}amplifier, current source
SaturationforwardforwardVCEV_{CE} down to 0.05 to 0.4 V, ICI_C set by the load, IC<βIBI_C < \beta I_Bclosed switch
Reverse activereverseforwardcollector and emitter swap roles, gain near 1rarely

"Saturation" means opposite things for a BJT and a MOSFET. In a BJT it is the fully-on switch, with almost no voltage across it. A MOSFET's "saturation" is its flat, current-source region, the equivalent of the BJT's active region.

Small-signal model

Around an operating point in the active region the transistor behaves, for small signals, like a controlled current source. Four numbers describe it: the transconductance gmg_m, the resistance rer_e seen looking into the emitter, the resistance rπr_\pi seen looking into the base, and the output resistance ror_o. The first two follow from the current alone, rπr_\pi also needs β\beta, and ror_o needs the Early voltage VAV_A:

gm=ICVTre=VTIE≈1gmrπ=βgmro=VAICg_m = \frac{I_C}{V_T} \qquad r_e = \frac{V_T}{I_E} \approx \frac{1}{g_m} \qquad r_\pi = \frac{\beta}{g_m} \qquad r_o = \frac{V_A}{I_C}

At IC=1I_C = 1 mA: gm=38.7g_m = 38.7 mS, re≈26 Ωr_e \approx 26\ \Omega, rπ=2.6r_\pi = 2.6 kΩ for β=100\beta = 100, and with VA≈74V_A \approx 74 V (the 2N3904 SPICE model) ro≈74r_o \approx 74 kΩ. The gain of a common-emitter stage or a follower is then a ratio of resistors to rer_e.

Relatives

A resistor-equipped transistor (also sold as a digital or pre-biased transistor) has its base resistor, and often a base-emitter resistor, built in: a logic pin drives it directly. Its resistors are only ±30 %, so it is used as a switch, never to bias an amplifier.

Matched pairs and arrays put two or more transistors in one package, often on one die, so their VBEV_{BE} match (2 mV at most for a BCM847BS at 2 mA, 0.45 mV typical and 5 mV at most for an LM3046 at 1 mA) and track in temperature: the parts for current mirrors and differential pairs that have to be accurate.

02

The curves

interactive

The output curves a curve tracer draws, from the Ebers-Moll model of a small NPN (β=150\beta = 150). The red line is the load line of RCR_C on VCCV_{CC}: the transistor can only sit where its curve crosses it.

active: V_CE = 6.73 V, I_C = 3.27 mA, V_BE = 0.683 V, I_C / I_B = 163, P = 22.0 mW

The base current picks a curve and the curve is nearly flat: ICI_C is about βIB\beta I_B (β\beta about 150 here) whatever VCEV_{CE} does. The resistor turns that current into a voltage, which is how the transistor amplifies.

03

Circuits to try

Falstad's simulator, one at a time

Each circuit runs in Paul Falstad's CircuitJS, loaded only on request. The sliders are in the panel on the right of the simulator, switches toggle with a click, and hovering a part shows its voltages, currents and state at the bottom right.

Simulation

NPN switch lighting an LED

A 5 V supply, an LED with its 330 Ω resistor in the collector, and a base resistor fed by an adjustable input voltage.

  1. Drag Input voltage in the right-hand panel slowly from 0 to 5 V.
  2. Stop near 0.9 V and hover the transistor: it reads fwd active, and the LED is dim.
  3. Go on to 5 V and hover again: it reads saturation, with VCEV_{CE} under 0.1 V.

What to see. Below about 0.6 V no current flows. Between 0.6 and about 1.1 V the LED current grows with the base current: the active region. Past that the LED current stops at about (5−1.8)/330 Ω=10(5 - 1.8) / 330\ \Omega = 10 mA however hard the base is driven, because the resistor sets it, not the transistor: that is saturation, the closed switch.

Open in the full simulator CircuitJS by Paul Falstad, loaded from falstad.com
Simulation

Common-emitter amplifier

A divider biases the base, RER_E sets the collector current, and a 20 mV sine at 1 kHz comes in through a capacitor. The output is taken from the collector through another capacitor.

  1. Compare the two scopes under the drawing: the output is larger and upside down.
  2. Drag Transistor beta from 50 to 400 and hover the transistor: the collector current hardly moves.
  3. Click the switch next to RER_E to connect the 100 µF bypass capacitor, and watch the output grow and flatten on one side.

What to see. Without the bypass capacitor the gain is about RC/RE=4.7R_C / R_E = 4.7: the emitter resistor feeds back and fixes it, and it fixes the bias too, which is why β\beta can change eightfold and move the collector current only from about 1.3 to 1.47 mA. Bypassing RER_E removes that feedback for the signal: the gain jumps to about RC/reR_C / r_e, near 250, and the output flattens at the bottom, where the transistor saturates against the emitter voltage. High gain, but no longer set by resistors.

Open in the full simulator CircuitJS by Paul Falstad, loaded from falstad.com
Simulation

Emitter follower

The base gets a 2 V sine around 6 V, the collector sits on 12 V, and the output is the emitter, across 1 kΩ. A switch adds a heavy 100 Ω load.

  1. Compare the two scopes: the output has the same shape as the input, about 0.6 V lower.
  2. Click the switch to add the 100 Ω load, and look at the output again.

What to see. The emitter stays one VBEV_{BE} below the base whatever the load does, so the voltage gain is about 1. What the follower gives is current: the base supplies only IE/βI_E / \beta, so a weak source can drive a 100 Ω load through it. That is the buffer used after a high-impedance stage.

Open in the full simulator CircuitJS by Paul Falstad, loaded from falstad.com
04

Design rules

A saturated switch: a base current of IC/10I_C / 10

To be sure the transistor saturates whatever its β\beta, the base gets about a tenth of the collector current: a "forced beta" of 10, which is also the ratio the 2N3904 and PN2222A datasheets test VCE(sat)V_{CE(sat)} at (the BC547 sheet uses 20).

RB=Vdrive−VBE(sat)IC/10R_B = \frac{V_{drive} - V_{BE(sat)}}{I_C / 10}

A 2N3904 switching 100 mA from 5 V logic: IB=10I_B = 10 mA and VBE(sat)≈0.9V_{BE(sat)} \approx 0.9 V, read off the typical curve at 100 mA (the table guarantees values only up to 50 mA), so RB=(5−0.9)/10 mA=410 ΩR_B = (5 - 0.9) / 10\ \text{mA} = 410\ \Omega, 390 Ω in the E12 series. 10 mA is a lot for a logic pin. A forced beta of 20 halves it (820 Ω) at the cost of margin when cold, and a Darlington, a ULN2003 or a logic-level MOSFET needs far less drive.

An inductive load needs a flyback diode

A relay coil, a solenoid or a motor keeps its current flowing when the transistor turns off, and the collector flies far above the supply until something breaks down. A diode across the coil, cathode to the supply, gives that current a path and clamps the collector one diode drop above the supply.

The coil's inductance LL sets the voltage vv it makes when its current ii changes, the energy EE it stores at a current II, and the time constant τ\tau of the current dying away through its own resistance RcoilR_{coil}:

v=L didtE=12LI2τ=LRcoilv = L\,\frac{di}{dt} \qquad E = \tfrac{1}{2} L I^2 \qquad \tau = \frac{L}{R_{coil}}

A 5 V relay coil of 100 Ω and 100 mH carries 50 mA. Cut off in 50 ns, the maximum fall time of a 2N3904, it would need 0.1×0.05/50 ns=1000.1 \times 0.05 / 50\ \text{ns} = 100 kV to keep that current flowing. The transistor is rated 40 V (VCEOV_{CEO}) and breaks down long before, and the 0.125 mJ stored in the coil ends up in its junction at every turn-off. With the diode the collector stops one diode drop above 5 V, and the current dies away with τ=0.1 H/100 Ω=1\tau = 0.1\ \text{H} / 100\ \Omega = 1 ms.

An amplifier is biased by resistors, not by beta

A divider sets the base voltage and an emitter resistor RER_E turns it into a current: IE≈(VB−0.65)/REI_E \approx (V_B - 0.65) / R_E. With about 1 V across RER_E and a divider "stiff" enough, R1∥R2≤(βmin+1)RE/10R_1 \parallel R_2 \le (\beta_{min} + 1) R_E / 10, the collector current moves by a few percent over a threefold spread of β\beta.

On the +15 V lab rail, for 1 mA: RE=1.5R_E = 1.5 kΩ puts 1.5 V on the emitter and 2.15 V on the base. R1=56R_1 = 56 kΩ on top and R2=10R_2 = 10 kΩ below act as 2.27 V in series with 8.5 kΩ, under the 15.2 kΩ limit for βmin=100\beta_{min} = 100. IEI_E is then 1.024 mA at β=100\beta = 100 and 1.062 mA at β=300\beta = 300, 3.7 % apart.

The gain of the common-emitter stage is then set by resistors too:

Av≈−RCre+REA_v \approx -\frac{R_C}{r_e + R_E}

Heat: power times thermal resistance

P=VCE IC+VBE IBTJ=TA+P RθJAP = V_{CE}\, I_C + V_{BE}\, I_B \qquad T_J = T_A + P\, R_{\theta JA}

A TO-92 part has RθJA≈200R_{\theta JA} \approx 200 °C/W: 0.5 W already lifts the junction 100 °C above the room, and 0.625 W takes it from 25 °C to its 150 °C limit. A datasheet's derating line (5 mW/°C for the 2N3904) is just 1/RθJA1/R_{\theta JA}.

The base-emitter junction breaks down at only 5 to 6 V in reverse

VEBOV_{EBO} is 6 V on a 2N3904. An op-amp output swinging to -13 V on ±15 V rails, driving a base through its resistor, takes the junction into breakdown, which lowers β\beta at low current over time. A 1N4148 from emitter (anode) to base (cathode) clamps the reverse voltage near 0.7 V, and the base resistor limits the op-amp current through it.

05

Real parts and their datasheets

Pinouts as seen from the front, legs down. Every value comes with the condition it is measured at: a number from a datasheet means nothing without it.

EBCflat face

flat face toward the viewer; a BC547 has the reverse order

2N3904

NPN, small signal

onsemi, TO-92. Datasheet (PDF), onsemi.com

LineValueMeasured at
VCEOV_{CEO}40 V maxbase open
ICI_C200 mA maxcontinuous
hFEh_{FE}100 to 300IC=10I_C = 10 mA, VCE=1V_{CE} = 1 V
hFEh_{FE}30 minIC=100I_C = 100 mA, VCE=1V_{CE} = 1 V
VCE(sat)V_{CE(sat)}0.2 V maxIC=10I_C = 10 mA, IB=1I_B = 1 mA
VCE(sat)V_{CE(sat)}0.3 V maxIC=50I_C = 50 mA, IB=5I_B = 5 mA
VBE(sat)V_{BE(sat)}0.65 to 0.85 VIC=10I_C = 10 mA, IB=1I_B = 1 mA
VEBOV_{EBO}6 V maxemitter-base, reverse
fTf_T300 MHz minIC=10I_C = 10 mA, VCE=20V_{CE} = 20 V, f=100f = 100 MHz
PDP_D, RθJAR_{\theta JA}625 mW, 200 °C/WTA=25T_A = 25 °C, derate 5.0 mW/°C

What to read first. hFEh_{FE} at the current of the job: 100 minimum at 10 mA but only 30 at 100 mA, and the "typical 300" quoted online is the 10 mA maximum. Then VCE(sat)V_{CE(sat)}, measured at IC/IB=10I_C / I_B = 10, which is the forced beta to design a switch with.

EBCflat face

flat face toward the viewer; the onsemi P2N2222A, also sold as "2N2222A", is C B E

PN2222A

NPN, small signal, higher current

onsemi (Fairchild), TO-92. Datasheet (PDF), onsemi.com

LineValueMeasured at
VCEOV_{CEO}40 V maxbase open
ICI_C1.0 A maxabsolute maximum, steady state
hFEh_{FE}100 to 300IC=150I_C = 150 mA, VCE=10V_{CE} = 10 V, pulsed
hFEh_{FE}50 minIC=150I_C = 150 mA, VCE=1V_{CE} = 1 V
hFEh_{FE}40 minIC=500I_C = 500 mA, VCE=10V_{CE} = 10 V
VCE(sat)V_{CE(sat)}0.3 V maxIC=150I_C = 150 mA, IB=15I_B = 15 mA
VCE(sat)V_{CE(sat)}1.0 V maxIC=500I_C = 500 mA, IB=50I_B = 50 mA
VBE(sat)V_{BE(sat)}0.6 to 1.2 VIC=150I_C = 150 mA, IB=15I_B = 15 mA
fTf_T300 MHz minIC=20I_C = 20 mA, VCE=20V_{CE} = 20 V, f=100f = 100 MHz
PDP_D, RθJAR_{\theta JA}625 mW, 200 °C/WTA=25T_A = 25 °C, derate 5.0 mW/°C

What to read first. The 1 A on page 1 is a stress limit: at 500 mA the table guarantees an hFEh_{FE} of only 40 and allows 1.0 V of VCE(sat)V_{CE(sat)}, so a relay or LED switch is designed from the 150 mA rows. Then the body marking, since the PN2222A and the P2N2222A have opposite pinouts.

CBEflat face

flat face toward the viewer; the reverse of a 2N3904

BC547B

NPN, small signal

onsemi (Fairchild), TO-92. Datasheet (PDF), onsemi.com

LineValueMeasured at
VCEOV_{CEO}45 V maxbase open
ICI_C100 mA maxcontinuous
PCP_C500 mW maxabsolute maximum; no thermal resistance in this document
hFEh_{FE}200 to 450IC=2I_C = 2 mA, VCE=5V_{CE} = 5 V, B grade (A: 110 to 220, C: 420 to 800)
VBE(on)V_{BE(on)}0.58 to 0.70 VIC=2I_C = 2 mA, VCE=5V_{CE} = 5 V (0.66 V typ)
VCE(sat)V_{CE(sat)}0.25 V max (0.09 typ)IC=10I_C = 10 mA, IB=0.5I_B = 0.5 mA
VCE(sat)V_{CE(sat)}0.6 V max (0.25 typ)IC=100I_C = 100 mA, IB=5I_B = 5 mA
fTf_T300 MHz typIC=10I_C = 10 mA, VCE=5V_{CE} = 5 V, f=100f = 100 MHz; no minimum given
CobC_{ob}6.0 pF max (3.5 typ)VCB=10V_{CB} = 10 V, IE=0I_E = 0, f=1f = 1 MHz

What to read first. The suffix first: A, B and C are gain grades of the same die, and the pinout, which is the reverse of the 2N3904. The often-linked onsemi bc546-d.pdf is marked obsolete on every page; this bc550-d.pdf is the current document.

06

On the bench

Meter check. On the diode range, red lead on the base: 0.6 to 0.7 V to the emitter and to the collector, nothing with the leads swapped, nothing between collector and emitter either way. The base-emitter reading is usually a few millivolts higher than the base-collector one, which tells the emitter from the collector.

First build. The LED switch above on a breadboard: 2N3904, 4.7 kΩ to the base, 330 Ω and an LED from 5 V to the collector. Fully on, the meter reads about 0.75 V from base to emitter and under 0.1 V from collector to emitter.

07

Common traps

  • The base current flows on to the collector.

    The base current leaves through the emitter. The collector current comes from the collector supply, enabled by the base current; the emitter carries both.

  • β\beta is a design value.

    β\beta varies two- to threefold between parts of the same number and with current and temperature. A good design depends on resistors and uses β\beta only as a minimum.

  • VBEV_{BE} is exactly 0.7 V.

    It runs from about 0.6 V at 0.1 mA to about 0.72 V at 10 mA and drops about 2 mV/°C at a fixed current. 0.65 V is a starting guess, never a constant to subtract precisely.

  • Saturation is the most amplification the transistor can give.

    It is the opposite: in saturation the transistor no longer amplifies, ICI_C is set by the load and IC/IBI_C / I_B falls below β\beta.

  • All TO-92 transistors have the same pinout.

    A 2N3904 is E-B-C seen from the flat face, a BC547 C-B-E, and a TO-92 "2N2222A" can be either: the PN2222A is E-B-C, the P2N2222A C-B-E. The drawing in the datasheet of the exact part number, then a diode-test check, settle it.

08

Check yourself

answers fold out
  1. A 2N3904 has to switch a 50 mA load from a 3.3 V logic pin. What base resistor?

    Answer

    Forced beta 10 gives IB=5I_B = 5 mA. The datasheet guarantees VBE(sat)≤0.95V_{BE(sat)} \le 0.95 V at exactly 50 mA and 5 mA, so RB=(3.3−0.95)/5 mA=470 ΩR_B = (3.3 - 0.95) / 5\ \text{mA} = 470\ \Omega, an E12 value. Check that the pin can source 5 mA.

  2. A transistor with β=150\beta = 150 carries IC=12I_C = 12 mA for IB=1I_B = 1 mA, with VCE=0.1V_{CE} = 0.1 V. Which region?

    Answer

    Saturation: IC/IB=12I_C / I_B = 12 is far below β\beta and the collector sits at 0.1 V. The load, not the transistor, sets the current.

  3. Why does an emitter resistor keep the bias of an amplifier stable?

    Answer

    IE≈(VB−VBE)/REI_E \approx (V_B - V_{BE}) / R_E depends on resistors and on VBEV_{BE}, not on β\beta. With VB=2.15V_B = 2.15 V and RE=1.5R_E = 1.5 kΩ, IE=1I_E = 1 mA. Warming by 50 °C takes 0.1 V off VBEV_{BE}, and IEI_E only rises to 1.07 mA. With no RER_E and the base held at a fixed voltage, the same 0.1 V would multiply the current by about e0.1/VT≈48e^{0.1/V_T} \approx 48. The mechanism is negative feedback: if the current rises, the emitter voltage rises and cuts VBEV_{BE}.