---
title: The pn junction in equilibrium and under bias
heading: Electrostatics of the step junction, and what bias does to the bands
eyebrow: S1 · Lesson 7 · The pn junction in equilibrium and under bias
xp: 50
---

::: hook
C5 introduced the pn junction's depletion region and its built-in voltage. This lesson derives them properly and adds the picture that makes the rest of the course readable: the band diagram, with the Fermi level split into two quasi-Fermi levels under bias. Once you can draw it, the diode equation, breakdown, solar cells and the bipolar transistor all follow from reading the diagram: a barrier height, a split in the Fermi levels, and the carriers that make it over.
:::

::: play
- The band diagram of a step junction, p on the left. Na and Nd set the doping in units of $10^{16}$ cm⁻³; $V_a$ is the applied voltage, positive forward.
- At zero bias the Fermi level is flat (the dashed lines coincide) and the bands drop by $qV_{bi}$ across the depletion region.
- Go forward: the drop shrinks to $q(V_{bi} - V_a)$ and the quasi-Fermi levels separate by $qV_a$ across the junction. Go reverse: the drop grows and the depletion region widens, mostly into the more lightly doped side.
:::
:::

```sim plot
view: graph
x: x = -1..1 µm
y: E = -2.6..1.2 eV
slider: Na = 0.1..100 = 10 log
slider: Nd = 0.1..100 = 1 log
slider: Va = -1.5..0.6 step 0.05 = 0 V
plot: (-0.02585*ln(1.8e19/(Na*1e16)) - (step(x + (sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Nd/(Na + Nd)))*(1 - step(x))*(0.02585*ln(Na*Nd*1e12) - Va)*(x + (sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Nd/(Na + Nd)))^2/((sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Nd/(Na + Nd))*sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))) + step(x)*(0.02585*ln(Na*Nd*1e12) - Va)*(1 - step((sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Na/(Na + Nd)) - x)*((sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Na/(Na + Nd)) - x)^2/((sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Na/(Na + Nd))*sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd)))))) + 1.12 | samples: 800 | label: conduction band Ec
plot: (-0.02585*ln(1.8e19/(Na*1e16)) - (step(x + (sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Nd/(Na + Nd)))*(1 - step(x))*(0.02585*ln(Na*Nd*1e12) - Va)*(x + (sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Nd/(Na + Nd)))^2/((sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Nd/(Na + Nd))*sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))) + step(x)*(0.02585*ln(Na*Nd*1e12) - Va)*(1 - step((sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Na/(Na + Nd)) - x)*((sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Na/(Na + Nd)) - x)^2/((sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Na/(Na + Nd))*sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd)))))) | samples: 800 | color: ch2 | label: valence band Ev
plot: Va*step(x + (sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Nd/(Na + Nd))) | samples: 800 | dashed | color: ch3 | label: electron quasi-Fermi level Fn
plot: Va*step(x - (sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Na/(Na + Nd))) | samples: 800 | dashed | color: ch4 | label: hole quasi-Fermi level Fp
readout: built-in voltage = 0.02585*ln(Na*Nd*1e12) V
readout: width in µm = sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))
readout: peak field in kV/cm = 154.65*Nd*(sqrt(0.12934*(0.02585*ln(Na*Nd*1e12) - Va)*(Na + Nd)/(Na*Nd))*Na/(Na + Nd))
```

::: predict
## A silicon junction has 1 V of reverse bias. Inside its depletion region, how does the product np compare with $n_i^2$?

- [ ] Equal: np = $n_i^2$ always holds
- [ ] Much larger
- [x] Smaller by about $e^{-39}$
- [ ] Exactly zero

::: reveal
The quasi-Fermi levels stay flat across the depletion region and split by $q\lvert V_a\rvert$, so $np = n_i^2e^{qV_a/kT}$ with $V_a$ = −1 V: smaller by $e^{-38.7}$, about $10^{-17}$. With so few carriers, recombination can't keep up with thermal generation, and the region generates pairs at nearly the full SRH rate, the reverse leakage of lesson 10. In forward bias the same rule makes np far larger than $n_i^2$, and the excess recombines.
:::
:::

::: nameit
## The built-in voltage

In equilibrium $E_F$ is flat. Far into the p side, $E_i - E_F = kT\ln\frac{N_a}{n_i}$; far into the n side, $E_F - E_i = kT\ln\frac{N_d}{n_i}$. The bands must drop by the sum:

$$qV_{bi} = kT\ln\frac{N_aN_d}{n_i^2}$$

## The depletion approximation

Assume the region from $-x_p$ to $x_n$ is fully stripped of carriers and the rest is neutral. Poisson's equation $\frac{dE}{dx} = \frac{\rho}{\varepsilon}$ with $\rho = -qN_a$ and $+qN_d$ gives a triangular field and a parabolic potential, with

$$N_ax_p = N_dx_n, \qquad W = x_n + x_p = \sqrt{\frac{2\varepsilon(V_{bi} - V_a)}{q}\cdot\frac{N_a + N_d}{N_aN_d}}$$

$$E_\text{max} = \frac{qN_dx_n}{\varepsilon} = \frac{2(V_{bi} - V_a)}{W}$$

In a **one-sided** $p^+n$ junction ($N_a \gg N_d$), $W \approx \sqrt{\frac{2\varepsilon(V_{bi} - V_a)}{qN_d}}$ and nearly all of it lies on the n side.

The edges really blur over a few Debye lengths; solving Poisson's equation with the carriers included (the lab, lesson 51) shows the depletion formulas hold with $V_{bi} - V_a$ reduced by about $2kT/q$.

## Under bias

Almost all the applied voltage drops across the depletion region, whose resistance dwarfs the neutral regions'. The barrier becomes $q(V_{bi} - V_a)$. The currents that flow are tiny compared with the drift and diffusion currents that nearly cancel inside the junction, so each carrier stays in quasi-equilibrium with its own side: $F_p$ stays flat across the depletion region at its p-side value, $F_n$ at its n-side value, and they're separated by $qV_a$. Throughout the depletion region,

$$np = n_i^2e^{qV_a/kT}$$

## The law of the junction

At the depletion edges, that rule sets the injected minority densities:

$$n_p(-x_p) = \frac{n_i^2}{N_a}e^{qV_a/kT}, \qquad p_n(x_n) = \frac{n_i^2}{N_d}e^{qV_a/kT}$$

These are the boundary conditions for the diffusion equation of lesson 4, and lesson 9 turns them into the diode equation. They assume **low-level injection**: the injected minority density stays well below the majority doping, which fails when $V_a$ approaches $2\frac{kT}{q}\ln\frac{N}{n_i}$.
:::

::: example
## A junction has $N_a = 10^{17}$ and $N_d = 10^{16}$ cm⁻³. Find $V_{bi}$, W, $x_n$, $x_p$ and $E_\text{max}$ at zero bias and at 5 V reverse.

::: solution
1. **Built-in potential.**
   $$\begin{aligned} V_{bi} &= 0.02585\ln\frac{10^{33}}{10^{20}} \\ &= 0.774\ \text{V} \end{aligned}$$
2. **Width at zero bias.** With $\varepsilon_s = 1.036 \times 10^{-12}$ F/cm and $N_a + N_d = 1.1 \times 10^{17}$ cm⁻³,
   $$\begin{aligned} W &= \sqrt{\frac{2\varepsilon_sV_{bi}}{q}\cdot\frac{N_a + N_d}{N_aN_d}} \\ &= 0.332\ \mu\text{m} \end{aligned}$$
3. **How it splits.**
   $$\begin{aligned} x_n &= W\frac{N_a}{N_a + N_d} \\ &= 0.302\ \mu\text{m} \end{aligned}$$
   and $x_p$ = 0.030 µm.
4. **Peak field at zero bias.**
   $$\begin{aligned} E_\text{max} &= \frac{2V_{bi}}{W} \\ &= 46.6\ \text{kV/cm} \end{aligned}$$
5. **At 5 V reverse.** W grows by $\sqrt{5.774/0.774}$ to 0.906 µm, and the field to 127 kV/cm.

**Answer:** $V_{bi}$ = 0.774 V. At zero bias W = 0.332 µm ($x_n$ = 0.302 µm, $x_p$ = 0.030 µm) and $E_\text{max}$ = 46.6 kV/cm; at 5 V reverse W = 0.906 µm and $E_\text{max}$ = 127 kV/cm.
:::
:::

::: example
## The n side of a junction has $N_d = 10^{16}$ cm⁻³. What hole density is injected at the depletion edge at 0.6 V and at 0.75 V forward?

::: solution
1. **Equilibrium hole density.**
   $$\begin{aligned} p_{n0} &= \frac{n_i^2}{N_d} \\ &= 10^4\ \text{cm}^{-3} \end{aligned}$$
2. **At 0.6 V.**
   $$e^{0.6/0.02585} = 1.2 \times 10^{10}$$
   so $p_n(x_n) = 1.2 \times 10^{14}$ cm⁻³: 1% of the doping, still low-level injection.
3. **At 0.75 V.** The factor is $4 \times 10^{12}$, so $p_n = 4 \times 10^{16}$ cm⁻³, four times the doping.
4. **Where low-level injection broke down.**
   $$2 \times 0.02585\ln10^6 = 0.71\ \text{V}$$
   Above it the diode's current grows more slowly (lesson 10).

**Answer:** $1.2 \times 10^{14}$ cm⁻³ at 0.6 V, still low-level injection, and $4 \times 10^{16}$ cm⁻³ at 0.75 V, four times the doping.
:::
:::

::: example
## What built-in potential does a junction of $10^{18}$ acceptors and $10^{15}$ donors have?

::: solution
1. **Built-in potential.**
   $$\begin{aligned} V_{bi} &= \frac{kT}{q}\ln\frac{N_aN_d}{n_i^2} \\ &= 0.02585\ln\frac{10^{33}}{10^{20}} \\ &= 0.02585 \times 29.93 \\ &= 0.774\ \text{V} \end{aligned}$$
2. **How doping moves it.** Each decade of doping on either side adds 59.5 mV, so $V_{bi}$ ranges only from about 0.6 to 1 V across practical doping.

**Answer:** 0.774 V.
:::
:::

::: check
given: a = 1e15 | 1e17 | 1e19; d = 1e15 | 1e16 | 1e17
answer: 0.02585*ln(a*d/1e20)
unit: V
tolerance: 1%

## What's the built-in voltage of a silicon junction with $N_a$ = {a} and $N_d$ = {d} cm⁻³?

::: right
Right. $V_{bi} = \frac{kT}{q}\ln\frac{N_aN_d}{n_i^2}$ = {answer} V.
:::

::: misses
- [0.02585*ln(a*d/1e10)] Divide by $n_i^2 = 10^{20}$.
- [0.02585*log(a*d/1e20)] That used log₁₀.
- [any] Not yet. Add the Fermi level's offsets on the two sides.
:::
:::

::: check
given: d = 1e15 | 1e16 | 1e17
answer: sqrt(2*11.7*8.854e-14*0.02585*ln(1e19*d/1e20)/(1.602e-19*d))*1e4
unit: µm
tolerance: 1%

## A $p^+n$ junction has $N_a = 10^{19}$ and $N_d$ = {d} cm⁻³. How wide is its depletion region at zero bias?

::: right
Right. $W \approx \sqrt{\frac{2\varepsilon V_{bi}}{qN_d}}$ = {answer} µm.
:::

::: misses
- [sqrt(2*11.7*8.854e-14*0.7/(1.602e-19*d))*1e4] Compute $V_{bi}$ for this doping rather than assuming 0.7 V.
- [any] Not yet. Find $V_{bi}$, then use the one-sided width.
:::
:::

::: check
given: V = 0.75 | 0.85; W = 0.1 | 0.4 | 1.5
answer: 2*V/(W*1e-4)/1000
unit: kV/cm
tolerance: 1%

## A junction has $V_{bi}$ = {V} V and a zero-bias depletion width of {W} µm. What's its peak field?

::: right
Right. The field is a triangle with area $V_{bi}$: $E_\text{max} = 2V_{bi}/W$ = {answer} kV/cm.
:::

::: misses
- [V/(W*1e-4)/1000] A triangle's area is half base times height: the peak is twice the average.
- [any] Not yet. The potential drop is the area under the field.
:::
:::

::: check
given: a = 1e15 | 3e16 | 1e18; d = 2e15 | 5e16
answer: a/(a + d)
tolerance: 1%

## A junction has $N_a$ = {a} and $N_d$ = {d} cm⁻³. What fraction of its depletion width lies on the n side?

::: right
Right. $\frac{x_n}{W} = \frac{N_a}{N_a + N_d}$ = {answer}.
:::

::: misses
- [d/(a + d)] That's the p-side fraction. The more heavily doped side depletes less.
- [any] Not yet. $N_ax_p = N_dx_n$.
:::
:::

::: check
given: v = 0.7 | 0.8; R = 1 | 3 | 5
answer: sqrt((v + R)/v)
tolerance: 1%

## A junction with $V_{bi}$ = {v} V is reverse biased by {R} V. By what factor does its depletion width grow?

::: right
Right. $W \propto \sqrt{V_{bi} - V_a}$, so the factor is {answer}.
:::

::: misses
- [(v + R)/v] The width goes as the square root of the voltage.
- [sqrt(R/v)] Include the built-in voltage: the total is $V_{bi} + V_R$.
- [any] Not yet. Compare $V_{bi} - V_a$ before and after.
:::
:::

::: check
given: d = 1e15 | 1e16 | 1e17; V = 0.45 | 0.55 | 0.65
answer: 1e20/d*exp(V/0.02585)
unit: cm^-3
tolerance: 2%

## The n side of a junction has $N_d$ = {d} cm⁻³. What's the hole density at its depletion edge at {V} V forward?

::: right
Right. $p_n(x_n) = \frac{n_i^2}{N_d}e^{qV_a/kT}$ = {answer} cm⁻³.
:::

::: misses
- [1e20/d] That's the equilibrium value; forward bias multiplies it by $e^{qV_a/kT}$.
- [any] Not yet. Use the law of the junction.
:::
:::

::: check
given: N = 1e15 | 1e16 | 1e17
answer: 2*0.02585*ln(N/1e10)
unit: V
tolerance: 1%

## The lightly doped side of a diode has {N} cm⁻³. Above roughly what forward voltage does the injected minority density exceed the doping?

::: right
Right. $\frac{n_i^2}{N}e^{qV_a/kT} = N$ gives $V_a = 2\frac{kT}{q}\ln\frac{N}{n_i}$ = {answer} V.
:::

::: misses
- [0.02585*ln(N/1e10)] The equilibrium minority density is $n_i^2/N$, so the factor needed is $(N/n_i)^2$.
- [any] Not yet. Set the injected density equal to N.
:::
:::

::: check
given: V = 0.2 | 1 | 3
answer: exp(-V/0.02585)
tolerance: 2%

## A junction is reverse biased by {V} V. What's np in its depletion region as a fraction of $n_i^2$?

::: right
Right. $e^{-qV_R/kT}$ = {answer}.
:::

::: misses
- [exp(-V/(2*0.02585))] The quasi-Fermi levels split by the whole $qV_R$.
- [any] Not yet. $np = n_i^2e^{qV_a/kT}$ with $V_a$ negative.
:::
:::

::: check
kind: parts
given: Na = 1e17 | 1e18 | 1e19; Nd = 1e15 | 1e16

## A step junction has $N_a$ = {Na} and $N_d$ = {Nd} cm⁻³.

::: part
answer: 0.02585*ln(Na*Nd/1e20)
unit: V
tolerance: 0.5%

### What is $V_{bi}$?

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

::: part
answer: sqrt(2*1.036e-12*0.02585*ln(Na*Nd/1e20)/1.602e-19*(1/Na + 1/Nd))*1e4
unit: µm
tolerance: 0.5%

### How wide is the depletion region at zero bias?

::: misses
- [any] $\sqrt{(2\varepsilon V_{bi}/q)(1/N_a + 1/N_d)}$.
:::
:::
:::

::: check
kind: derivation
vars: N = 1e14..1e17, V = 0.5..1, R = 0..20

## A one-sided $p^+n$ junction has donor density N on its light side, built-in potential V, and reverse bias R. Use $\varepsilon = 1.036 \times 10^{-12}$ F/cm.

::: step
answer: sqrt(2*1.036e-12*(V + R)/(1.602e-19*N))

### How wide is the depletion region?
:::

::: step
answer: sqrt(2*1.602e-19*N*(V + R)/1.036e-12)

### What is the peak field?
:::

::: right
Right. Both grow as the square root of the total voltage, and lighter doping trades a wider region for a lower field.
:::
:::

::: explain
## Why do the quasi-Fermi levels stay flat across a forward-biased depletion region, even though current flows through it?

::: model
A quasi-Fermi level slopes only as much as needed to drive the current: the electron current equals the electron density times the mobility times the slope of $F_n$. Inside the depletion region the carrier densities are still enormous compared with what the diode's current needs, because the drift and diffusion currents there are each thousands of times larger than the net current and nearly cancel. So a tiny slope suffices, far smaller than kT across the region, and the quasi-Fermi levels are effectively flat. Each carrier type stays in equilibrium with the side it came from, which is what lets the law of the junction fix the minority densities at the edges.
:::
:::

::: practice

::: check
given: a = 5e16 | 2e18; d = 3e15 | 8e16
answer: 0.02585*ln(a*d/1e20)
unit: V
tolerance: 1%

## $V_{bi}$ for $N_a$ = {a}, $N_d$ = {d} cm⁻³?

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

::: check
given: a = 4e15 | 6e17; d = 1e16 | 2e17
answer: a/(a + d)
tolerance: 1%

## n-side fraction of W for $N_a$ = {a}, $N_d$ = {d}?

::: misses
- [any] $N_a/(N_a + N_d)$.
:::
:::

::: check
given: d = 5e15 | 5e16; V = 0.5 | 0.6
answer: 1e20/d*exp(V/0.02585)
unit: cm^-3
tolerance: 2%

## Injected holes at the edge: $N_d$ = {d}, {V} V forward?

::: misses
- [any] $(n_i^2/N_d)e^{qV/kT}$.
:::
:::
:::
