---
title: The pn junction under bias
heading: The band diagram of a pn junction, the built-in voltage from the doping on each side, the depletion region and how its width and field change with bias, why forward bias lets current flow exponentially and reverse bias doesn't, and the 60 mV per decade rule
eyebrow: D6 · Lesson 2 · The pn junction under bias
xp: 40
---

::: hook
Put p-type silicon against n-type and something remarkable happens at the boundary. Electrons from the n side and holes from the p side diffuse across and annihilate, leaving behind a thin layer stripped of free carriers, whose fixed charges build an electric field that stops further diffusion. That **depletion region** is the heart of every diode, transistor, solar cell and LED. Squeezing it with forward bias lets carriers flood across; widening it with reverse bias shuts them off. The band diagram shows it all as hills and valleys that carriers must climb.
:::

::: play
- The band diagram of a silicon pn junction: conduction band $E_c$ and valence band $E_v$ against position, with the p side's doping $10^a$ and the n side's $10^d$ cm⁻³.
- At zero bias the bands bend by the built-in voltage across the depletion region. Forward bias V lowers the hill; reverse bias raises it and widens the region.
- The dashed lines are the Fermi levels, separated by the applied bias.
:::

```sim plot
view: graph
x: x = -1..1
y: E = -2.5..2.5
slider: a = 15..18 step 0.1 = 17
slider: d = 15..18 step 0.1 = 16
slider: V = -3..0.7 step 0.05 = 0
plot: 1.12 - (step(x*1e-4 + sqrt(2*1.0359e-12*(0.02585*ln(10^(a + d)/1e20) - V)*(10^(-a) + 10^(-d))/1.602e-19)*10^d/(10^a + 10^d))*step(-x)*1.602e-19*10^a/(2*1.0359e-12)*(x*1e-4 + sqrt(2*1.0359e-12*(0.02585*ln(10^(a + d)/1e20) - V)*(10^(-a) + 10^(-d))/1.602e-19)*10^d/(10^a + 10^d))^2 + step(x)*((0.02585*ln(10^(a + d)/1e20) - V) - step(sqrt(2*1.0359e-12*(0.02585*ln(10^(a + d)/1e20) - V)*(10^(-a) + 10^(-d))/1.602e-19)*10^a/(10^a + 10^d) - x*1e-4)*1.602e-19*10^d/(2*1.0359e-12)*(sqrt(2*1.0359e-12*(0.02585*ln(10^(a + d)/1e20) - V)*(10^(-a) + 10^(-d))/1.602e-19)*10^a/(10^a + 10^d) - x*1e-4)^2)) | samples: 600 | label: conduction band, eV (x in µm)
plot: -(step(x*1e-4 + sqrt(2*1.0359e-12*(0.02585*ln(10^(a + d)/1e20) - V)*(10^(-a) + 10^(-d))/1.602e-19)*10^d/(10^a + 10^d))*step(-x)*1.602e-19*10^a/(2*1.0359e-12)*(x*1e-4 + sqrt(2*1.0359e-12*(0.02585*ln(10^(a + d)/1e20) - V)*(10^(-a) + 10^(-d))/1.602e-19)*10^d/(10^a + 10^d))^2 + step(x)*((0.02585*ln(10^(a + d)/1e20) - V) - step(sqrt(2*1.0359e-12*(0.02585*ln(10^(a + d)/1e20) - V)*(10^(-a) + 10^(-d))/1.602e-19)*10^a/(10^a + 10^d) - x*1e-4)*1.602e-19*10^d/(2*1.0359e-12)*(sqrt(2*1.0359e-12*(0.02585*ln(10^(a + d)/1e20) - V)*(10^(-a) + 10^(-d))/1.602e-19)*10^a/(10^a + 10^d) - x*1e-4)^2)) | samples: 600 | color: ch3 | label: valence band
plot: 0.02585*ln(1.8e19/10^a)*step(-x) + (0.02585*ln(1.8e19/10^a) + V)*step(x) | dashed | color: ch4 | label: Fermi levels
readout: built-in voltage, V = 0.02585*ln(10^(a + d)/1e20) | digits: 3
readout: depletion width, µm = 1e4*sqrt(2*1.0359e-12*(0.02585*ln(10^(a + d)/1e20) - V)*(10^(-a) + 10^(-d))/1.602e-19) | digits: 3
```

::: predict
## A junction has $10^{17}$ acceptors per cm³ on the p side and $10^{16}$ donors on the n side. Where does most of the depletion region lie?

- [ ] Evenly on both sides
- [ ] On the p side
- [x] On the n side, about 91% of it
- [ ] Entirely outside the junction

::: reveal
The depletion region holds equal and opposite charge on each side: $N_Ax_p = N_Dx_n$. The lightly doped side must deplete ten times deeper to expose the same charge, so $x_n/W = N_A/(N_A + N_D)$ = 10/11 = 91%. At zero bias W = 0.33 µm, 0.30 µm of it on the n side.
:::
:::

::: nameit
## Built-in voltage

At equilibrium the Fermi level is flat, so the bands bend across the junction by

$$V_{bi} = \frac{kT}{q}\ln\frac{N_AN_D}{n_i^2}$$

0.774 V for $10^{17}$ and $10^{16}$ with $n_i = 10^{10}$ cm⁻³ and kT/q = 25.85 mV.

## The depletion region

In the depletion approximation, the region holds charge $-qN_A$ on the p side and $+qN_D$ on the n side, so the field rises linearly to a peak at the junction and the potential bends as two parabolas. With bias V (positive for forward),

$$W = \sqrt{\frac{2\varepsilon_s(V_{bi} - V)}{q}\left(\frac{1}{N_A} + \frac{1}{N_D}\right)}, \qquad x_n = W\frac{N_A}{N_A + N_D}$$

with $\varepsilon_s$ = 11.7ε₀ for silicon. The peak field is $E_\max = qN_Dx_n/\varepsilon_s$.

## Current

Forward bias lowers the barrier by qV, and the number of carriers able to cross grows as $e^{qV/kT}$:

$$I = I_s\left(e^{qV/kT} - 1\right)$$

so the current rises tenfold for every $(kT/q)\ln 10$ = 59.5 mV at room temperature. Reverse bias raises the barrier, leaving only the tiny saturation current $I_s$ until the field is strong enough for breakdown.
:::

::: example
## For the $10^{17}$/$10^{16}$ junction, find W at zero bias and at 5 V reverse, and the peak field at zero bias.

::: solution
1. **Width at zero bias.**
   $$W = 0.332\ \mu\text{m}$$
2. **Width at 5 V reverse.** W grows as $\sqrt{V_{bi} - V}$:
   $$W = 0.906\ \mu\text{m}$$
3. **Peak field at zero bias.** With $x_n$ = 0.302 µm:
   $$\begin{aligned} E_\max &= \frac{qN_Dx_n}{\varepsilon_{Si}} \\ &= 46.6\ \text{kV/cm} \end{aligned}$$
4. **Peak field at 5 V reverse.** It's 127 kV/cm.

**Answer:** W is 0.332 µm at zero bias and 0.906 µm at 5 V reverse, and the peak field at zero bias is 46.6 kV/cm.
:::
:::

::: example
## How much more current does a diode carry when its forward voltage rises by 0.1 V?

::: solution
1. **Current ratio.** The current grows as $e^{V/(kT/q)}$:
   $$e^{0.1/0.02585} = 47.9$$
2. **Per decade.** Every 59.5 mV multiplies it by 10.

**Answer:** 47.9 times more current.
:::
:::

::: example
## The $10^{17}$/$10^{16}$ junction covers 100 µm × 100 µm. What is its capacitance at zero bias and at 5 V reverse?

::: solution
1. **Capacitance per area.** A depletion layer acts as a parallel-plate capacitor of width W:
   $$\begin{aligned} \frac{C}{A} &= \frac{\varepsilon_{Si}}{W} \\ &= \frac{1.036 \times 10^{-12}}{0.332 \times 10^{-4}} \\ &= 31.2\ \text{nF/cm}^2 \end{aligned}$$
2. **At zero bias.** Over $10^{-4}$ cm²:
   $$\begin{aligned} C &= 31.2\ \text{nF/cm}^2 \times 10^{-4}\ \text{cm}^2 \\ &= 3.12\ \text{pF} \end{aligned}$$
3. **At 5 V reverse.** W = 0.906 µm gives 1.14 pF.
4. **Where it's used.** Varactor diodes tune radios with exactly this effect.

**Answer:** 3.12 pF at zero bias and 1.14 pF at 5 V reverse.
:::
:::

::: check
given: a = 15 | 16 | 17 | 18; d = 15 | 16 | 17
answer: 0.02585*ln(10^(a + d)/1e20)
unit: V
tolerance: 0.5%

## A silicon junction has $10^{\given{a}}$ acceptors and $10^{\given{d}}$ donors per cm³. What's its built-in voltage ($n_i = 10^{10}$ cm⁻³, kT/q = 25.85 mV)?

::: right
Right. $(kT/q)\ln(N_AN_D/n_i^2)$ = {answer} V.
:::

::: misses
- [0.02585*ln(10^(a + d)/1e10)] Divide by $n_i^2$, not $n_i$.
- [any] Not yet. The built-in voltage formula.
:::
:::

::: check
given: a = 16 | 17 | 18; d = 15 | 16; V = 0 | -2 | -10
answer: 1e4*sqrt(2*1.0359e-12*(0.02585*ln(10^(a + d)/1e20) - V)*(10^(-a) + 10^(-d))/1.602e-19)
unit: µm
tolerance: 0.5%

## A junction with $10^{\given{a}}$ acceptors and $10^{\given{d}}$ donors per cm³ is biased at {V} V. How wide is its depletion region? (ε = 1.036 × 10⁻¹² F/cm)

::: right
Right. {answer} µm.
:::

::: misses
- [1e4*sqrt(2*1.0359e-12*(-V)*(10^(-a) + 10^(-d))/1.602e-19)] Include the built-in voltage: $V_{bi} - V$.
- [any] Not yet. Find $V_{bi}$, then W.
:::
:::

::: check
given: a = 16 | 17 | 18; d = 14 | 15
answer: 100*10^a/(10^a + 10^d)
tolerance: 0.5%

## What percentage of a $10^{\given{a}}$/$10^{\given{d}}$ junction's depletion region lies on the n side?

::: right
Right. $N_A/(N_A + N_D)$ = {answer}%.
:::

::: misses
- [100*10^d/(10^a + 10^d)] That's the p side's share.
- [any] Not yet. Equal charge on each side.
:::
:::

::: check
given: v = 0.05 | 0.1 | 0.2
answer: exp(v/0.02585)
tolerance: 0.5%

## A diode's forward voltage rises by {v} V. By what factor does its current grow (kT/q = 25.85 mV)?

::: right
Right. $e^{\Delta V/V_T}$ = {answer}.
:::

::: misses
- [10^(v/0.06)] Close: the exact rule is $e^{\Delta V/V_T}$.
- [any] Not yet. The exponential diode law.
:::
:::

::: check
kind: parts
given: W = 0.2 | 0.33 | 0.9; A = 0.01 | 0.1 | 1

## A junction's depletion layer is {W} µm wide over {A} mm².

::: part
answer: 1.036e-12/(W*1e-4)*1e9
unit: nF/cm²
tolerance: 0.5%

### What is its capacitance per cm²?

::: misses
- [any] $\varepsilon_{Si}/W$.
:::
:::

::: part
answer: 1.036e-12/(W*1e-4)*A*1e-2*1e12
unit: pF
tolerance: 0.5%

### What is its capacitance?

::: misses
- [any] Per area × area, with 1 mm² = 0.01 cm².
:::
:::
:::

::: check
kind: parts
given: d = 0.05 | 0.1 | 0.2; n = 1 | 1.5

## A diode with ideality factor {n} at 300 K has its forward voltage raised by {d} V.

::: part
answer: exp(d/(n*0.02585))
tolerance: 0.5%

### By what factor does its current rise?

::: misses
- [any] $e^{\Delta V/(nV_T)}$.
:::
:::

::: part
answer: n*0.02585*ln(10)*1000
unit: mV
tolerance: 0.5%

### How many millivolts multiply its current by ten?

::: misses
- [any] $nV_T\ln 10$.
:::
:::
:::

::: explain
## Why does a pn junction conduct easily one way and hardly at all the other?

::: model
At equilibrium the depletion region's field builds a potential barrier that exactly balances the tendency of electrons on the n side and holes on the p side to diffuse across. Forward bias lowers that barrier, and because carrier energies follow a Boltzmann distribution, the number with enough energy to cross grows exponentially as the barrier drops, so the current rises by a factor of ten for about every 60 millivolts. Reverse bias raises the barrier, so essentially no majority carriers cross, and the only current is the trickle of minority carriers that happen to wander into the field and get swept across, which is tiny and almost independent of the voltage.
:::
:::

::: practice

::: check
given: a = 14 | 15 | 16 | 17 | 18 | 19; d = 14 | 15 | 16 | 17 | 18 | 19
answer: 0.02585*ln(10^(a + d)/1e20)
unit: V
tolerance: 0.5%

## $V_{bi}$ for $10^{\given{a}}$ and $10^{\given{d}}$?

::: misses
- [any] $(kT/q)\ln(N_AN_D/n_i^2)$.
:::
:::

::: check
given: v = 0.01 | 0.02 | 0.05 | 0.06 | 0.1 | 0.2 | 0.3
answer: exp(v/0.02585)
tolerance: 0.5%

## Current factor for a {v} V rise?

::: misses
- [any] $e^{\Delta V/V_T}$.
:::
:::
:::
