---
title: The bipolar junction transistor
heading: A small base current steering a large collector current
eyebrow: C5 · Lesson 21 · The BJT
xp: 50
---

::: hook
A bipolar transistor is two pn junctions back to back, with a very thin middle layer. Forward-bias the base-emitter junction and the emitter floods the base with electrons; the base is so thin that almost all of them diffuse straight through into the collector before they can recombine. The few that do recombine make up the base current. So a small base current controls a collector current about a hundred times larger, which made the BJT the first practical transistor and still the workhorse of many analog circuits.

::: play
- A transistor biased by a single resistor from the supply into its base. The meters read the base current, the collector current and the collector voltage.
- Lower $R_B$. The base current rises; the collector current follows, β times larger. Keep going: what happens to the collector voltage, and does the collector current keep following?
:::
:::

```sim circuit
VCC vcc 0 12                @ 6,-2 down 4
RB vcc b 1M                 @ 0,-2 down 3
Q1 c b 0 npn BF=100         @ 2,1
RC vcc c 4.7k               @ 3,-2 down 2
slider: RB 100k..10M log
scope: v(c)
time: 0..1m s
meter: i(Q1.b), i(Q1), v(c)
```

::: predict
## The transistor above has β = 100, $R_B$ = 1 MΩ and $R_C$ = 4.7 kΩ on 12 V. What is its collector voltage?

- [ ] 0.2 V
- [x] About 6.7 V
- [ ] 11.3 V
- [ ] 12 V

::: reveal
About 6.7 V. The base current is $(12 - 0.7)/1\text{ MΩ} = 11.3$ µA, so the collector current is 1.13 mA, which drops 5.3 V across $R_C$. Lower $R_B$ to 100 kΩ and β times the base current would need more voltage than $R_C$ has to give: the transistor **saturates**, its collector falls to about 0.2 V, and the collector current is set by $R_C$ instead of by β.
:::
:::

::: nameit
## How the BJT works

**Structure (NPN).** n-type emitter, a thin p-type base, n-type collector. In normal (**active**) operation the base-emitter junction is forward biased and the base-collector junction reverse biased.

**Currents.** The emitter injects electrons into the base. Most cross it by diffusion (B9.18) and are swept into the collector by the reverse-biased junction's field. So the collector current follows the base-emitter voltage exactly as a diode's does:

$$I_C = I_Se^{V_{BE}/V_T} \qquad I_B = \frac{I_C}{\beta} \qquad I_E = I_C + I_B$$

with β (also called $h_{FE}$) typically 50 to 500. β varies a lot between transistors of the same type and with temperature, so good circuits don't rely on its exact value (lesson 30).

**Regions:**

| Region | Junctions | Behavior |
|---|---|---|
| cutoff | both off | no current; an open switch |
| active | BE on, BC off | $I_C = \beta I_B$; $V_{BE} \approx 0.7$ V |
| saturation | both on | $V_{CE} \approx 0.1$ to 0.3 V; a closed switch |

**PNP** transistors are the mirror image: all currents and voltages reversed, emitter at the most positive point.

**BJT or MOSFET?** A BJT needs a steady base current but has higher transconductance for a given current ($g_m = I_C/V_T$, versus $2I_D/V_{OV}$ for a MOSFET) and very predictable $V_{BE}$; MOSFETs draw no gate current and dominate digital logic and power switching.
:::


::: example
## A BJT has $I_S = 10^{-15}$ A and β = 200. What collector and base currents flow at $V_{BE}$ = 0.65 V?

::: solution
1. **Collector current.**
   $$\begin{aligned} I_C &= 10^{-15}e^{0.65/0.02585}\ \text{A} \\ &= 0.083\ \text{mA} \end{aligned}$$
2. **Base current.**
   $$\begin{aligned} I_B &= I_C/200 \\ &= 0.42\ \mu\text{A} \end{aligned}$$

**Answer:** 0.083 mA flows in the collector and 0.42 µA in the base.
:::
:::

::: example
## In the circuit above, 1 MΩ from 12 V feeds the base, 4.7 kΩ the collector, with β = 100. Where is the collector?

::: solution
1. **Base current.**
   $$\begin{aligned} I_B &= \frac{12 - 0.7}{1\ \text{M}\Omega} \\ &= 11.3\ \mu\text{A} \end{aligned}$$
2. **Collector current.** With β = 100, $I_C$ = 1.13 mA.
3. **Collector voltage.**
   $$\begin{aligned} V_C &= 12 - 4.7 \times 1.13 \\ &= 6.69\ \text{V} \end{aligned}$$
   It's active, but entirely at the mercy of β.

**Answer:** the collector sits at 6.69 V.
:::
:::

::: example
## Two transistors pass 99% and 99.5% of their emitter current to the collector. What are their β's, and what base current does each need for 1 mA of collector current?

::: solution
1. **Convert α to β.**
   $$\beta = \frac{\alpha}{1 - \alpha}$$
   0.99 gives 99 and 0.995 gives 199.
2. **Base currents.** They are $\frac{1\ \text{mA}}{\beta}$: 10.1 µA and 5.03 µA.
3. **Why β spreads.** A half-percent change in α doubles β, because β depends on the small fraction lost to recombination in the base. That fraction varies with the base width, doping and temperature, which is why β spreads widely between parts of the same type, and why good circuits don't depend on it.

**Answer:** the β's are 99 and 199, needing 10.1 µA and 5.03 µA of base current.
:::
:::

::: check
given: beta = 50 | 100 | 200; IB = 10 | 20 | 50
answer: beta*IB/1000
unit: mA
tolerance: 0.5%

## A transistor in its active region has β = {beta} and a base current of {IB} µA. What is its collector current?

::: right
Right. $I_C = \beta I_B$ = {answer}.
:::

::: misses
- [beta*IB] That's in µA. Give it in mA.
- [IB/beta/1000] Multiply by β.
- [any] Not yet. $I_C = \beta I_B$.
:::
:::

::: check
given: VCC = 9 | 12 | 15; RB = 470 | 680 | 1000
answer: (VCC - 0.7)/RB*1000
unit: µA
tolerance: 1%

## A transistor's base is fed from {VCC} V through {RB} kΩ. What base current flows (taking $V_{BE}$ = 0.7 V)?

::: right
Right. $(V_{CC} - 0.7)/R_B$ = {answer}.
:::

::: misses
- [VCC/RB*1000] Subtract the base-emitter drop.
- [any] Not yet. $I_B = (V_{CC} - V_{BE})/R_B$.
:::
:::

::: check
given: VCC = 9 | 12; IC = 1 | 1.5 | 2; RC = 2.2 | 3.3
answer: VCC - IC*RC
unit: V
tolerance: 0.5%

## A transistor in its active region carries {IC} mA through a {RC} kΩ collector resistor from {VCC} V. What is its collector voltage?

::: right
Right. $V_{CC} - I_CR_C$ = {answer}.
:::

::: misses
- [IC*RC] That's the drop across $R_C$; subtract it from the supply.
- [any] Not yet. $V_C = V_{CC} - I_CR_C$.
:::
:::

::: check
given: VCC = 5 | 12; RC = 1 | 2.2; IB = 20 | 50 | 100; beta = 100
answer: step(beta*IB/1000 - (VCC - 0.2)/RC)
tolerance: 0.01

## A transistor with β = 100 gets {IB} µA of base current, with $R_C$ = {RC} kΩ to {VCC} V. Is it saturated? Enter 1 for yes, 0 for no.

::: right
Right. It saturates when $\beta I_B$ exceeds what $R_C$ can pass, about $(V_{CC} - 0.2)/R_C$.
:::

::: misses
- [1 - step(beta*IB/1000 - (VCC - 0.2)/RC)] Compare $\beta I_B$ with $(V_{CC} - 0.2)/R_C$.
- [any] Not yet. Compare the current β would demand with the most $R_C$ allows.
:::
:::

::: check
given: k = 10 | 100 | 1000
answer: 25.85*ln(k)
unit: mV
tolerance: 0.5%

## How much more base-emitter voltage does a transistor need to carry {k} times the collector current?

::: right
Right. $V_T\ln k$ = {answer}: about 60 mV per decade, just like a diode.
:::

::: misses
- [25.85*log10(k)] Natural log: $V_T\ln k$.
- [any] Not yet. $I_C \propto e^{V_{BE}/V_T}$.
:::
:::

::: check
kind: parts
given: a = 0.97 | 0.98 | 0.99; I = 1 | 5

## A transistor passes a fraction α = {a} of its emitter current to the collector, which carries {I} mA.

::: part
answer: a/(1 - a)
tolerance: 0.5%

### What's its β?

::: misses
- [1/(1 - a)] That's β + 1.
- [any] $\beta = \frac{\alpha}{1 - \alpha}$.
:::
:::

::: part
answer: I*(1 - a)/a*1000
unit: µA
tolerance: 0.5%

### What base current does it need?

::: misses
- [I*(1 - a)*1000] Divide the collector current by β.
- [any] $\frac{I_C}{\beta}$.
:::
:::
:::

::: check
kind: derivation
vars: S = 1e-17..1e-13, v = 0.02..0.03, V = 0.5..0.8, b = 20..500

## A BJT with saturation current S and current gain b has $V_{BE}$ = V at thermal voltage v.

::: step
answer: S*exp(V/v)

### What collector current flows?
:::

::: step
answer: S*exp(V/v)/b

### What base current?
:::

::: step
answer: S*exp(V/v)*(b + 1)/b

### What emitter current?
:::

::: right
Right. The emitter carries both, $\frac{\beta + 1}{\beta}$ times the collector current.
:::
:::

::: explain
## Why does a small base current control a much larger collector current in a bipolar transistor?

::: model
Forward-biasing the base-emitter junction makes the emitter inject a large flow of electrons into the base. The base is made very thin and only lightly doped, so almost all of those electrons diffuse across it and are swept into the collector by the field of the reverse-biased base-collector junction before they meet a hole. Only a small fraction recombine in the base, and replacing the holes they use up is what the base current does. So the base current is a fixed small fraction, $1/\beta$, of the collector current, and controlling one controls the other.
:::
:::

::: practice

::: check
given: IC = 1 | 5; beta = 100 | 250
answer: IC/beta*1000
unit: µA
tolerance: 0.5%

## {IC} mA of collector current with β = {beta}. Base current, in µA?

::: misses
- [IC*beta] Divide.
- [any] $I_B = I_C/\beta$.
:::
:::

::: check
given: IC = 1 | 2; IB = 10 | 20
answer: IC + IB/1000
unit: mA
tolerance: 0.5%

## $I_C$ = {IC} mA, $I_B$ = {IB} µA. Emitter current?

::: misses
- [any] $I_E = I_C + I_B$.
:::
:::

::: check
kind: choice
given: VC = 0.05 | 0.1 | 0.15 | 0.2; VCC = 5 | 9 | 12 | 15 | 24

## A transistor's collector sits at {VC} V with a {VCC} V supply. Which region is it in?

- [ ] Cutoff
- [ ] Active
- [x] Saturation
- [ ] Breakdown

::: right
Right. A collector only a fraction of a volt above the emitter means both junctions are forward biased.
:::

::: misses
- [1] In cutoff no current flows, so the collector would sit near the supply.
- [2] In the active region $V_{CE}$ is well above 0.3 V.
- [4] Nothing here is near breakdown.
:::
:::
:::
