---
title: The ideal diode equation
heading: From injected minority carriers to the exponential I–V
eyebrow: S1 · Lesson 9 · The ideal diode equation
xp: 50
---

::: hook
C5 used $I = I_S(e^{V/V_T} - 1)$ as a given. Now you have every piece needed to derive it: the law of the junction fixes how many minority carriers sit at each depletion edge, and the diffusion equation says how they spread and die. The current is just their diffusion flux at the edges. The derivation does more than justify the formula: it says what $I_S$ is made of, why it's dominated by the lightly doped side, why it climbs so fast with temperature, and how a thin diode differs from a thick one.
:::

::: play
- Excess minority carriers on both sides of a forward-biased junction, on a log scale. Holes injected into the n side have a diffusion length of 10 µm; electrons injected into the p side, 30 µm. The depletion region is squeezed to the line at x = 0.
- Raise $V_a$: both profiles rise by a factor of 10 every 60 mV. Make the doping unequal and the side with less doping receives far more injected carriers, and carries most of the current.
- Move the n-side contact in (Wn) until it's shorter than the diffusion length: the hole profile turns into a straight line and the saturation current climbs.
:::
:::

```sim plot
view: graph
x: x = -60..60 µm
y: n = 1e6..1e18 log
slider: Na = 1e15..1e19 = 1e18 log
slider: Nd = 1e15..1e19 = 1e16 log
slider: Va = 0.3..0.7 step 0.01 = 0.55 V
slider: Wn = 1..60 = 40 µm
plot: 1e20/Nd*(exp(Va/0.02585) - 1)*sinh((Wn - x)/10)/sinh(Wn/10)*step(x)*step(Wn - x) + 1 | samples: 800 | label: excess holes on the n side, cm⁻³
plot: 1e20/Na*(exp(Va/0.02585) - 1)*exp(x/30)*step(-x) + 1 | samples: 800 | color: ch2 | label: excess electrons on the p side, cm⁻³
marker: x = Wn | label: n-side contact
readout: saturation current density, A/cm² = 1.602e-19*1e20*((0.02585*(54.3 + 406.9/(1 + (Nd/2.35e17)^0.88)))/(10e-4*Nd)/tanh(Wn/10) + (0.02585*(92 + 1268/(1 + (Na/1.3e17)^0.91)))/(30e-4*Na)) | format: sci
readout: current density, A/cm² = 1.602e-19*1e20*((0.02585*(54.3 + 406.9/(1 + (Nd/2.35e17)^0.88)))/(10e-4*Nd)/tanh(Wn/10) + (0.02585*(92 + 1268/(1 + (Na/1.3e17)^0.91)))/(30e-4*Na))*(exp(Va/0.02585) - 1) | format: sci
readout: share carried by holes = ((0.02585*(54.3 + 406.9/(1 + (Nd/2.35e17)^0.88)))/(10e-4*Nd)/tanh(Wn/10))/((0.02585*(54.3 + 406.9/(1 + (Nd/2.35e17)^0.88)))/(10e-4*Nd)/tanh(Wn/10) + (0.02585*(92 + 1268/(1 + (Na/1.3e17)^0.91)))/(30e-4*Na))
```

::: predict
## A $p^+n$ diode has $N_a = 10^{19}$ and $N_d = 10^{16}$ cm⁻³. Which carriers carry most of its forward current?

- [ ] Electrons injected into the p side, because electrons are more mobile
- [x] Holes injected into the n side
- [ ] Both equally
- [ ] Majority electrons flowing through the n side

::: reveal
Holes injected into the lightly doped n side. The injected density at each edge is $\frac{n_i^2}{N}e^{qV/kT}$, so the side with a thousand times less doping receives a thousand times more minority carriers. The mobility difference changes that by a factor of a few at most. For a diode like this one, holes carry about 99% of the current, which is why a $p^+n$ diode's behavior is set by its n side: the doping, lifetime and width there.
:::
:::

::: nameit
## Assumptions

1. Low-level injection.
2. The depletion approximation, with all the applied voltage across the depletion region.
3. No generation or recombination inside the depletion region (lesson 10 adds it).
4. Steady state, field-free neutral regions.

## The derivation

On the n side, measuring x′ from the depletion edge, the excess holes obey $D_p\frac{d^2\Delta p}{dx'^2} = \frac{\Delta p}{\tau_p}$, with the law of the junction at the edge,

$$\Delta p(0) = p_{n0}\left(e^{qV_a/kT} - 1\right), \qquad p_{n0} = \frac{n_i^2}{N_d}$$

and $\Delta p \to 0$ deep inside. The solution is $\Delta p(0)e^{-x'/L_p}$ and the hole current entering the n side is $qD_p\Delta p(0)/L_p$. The electrons on the p side give the same with n and p swapped. With no recombination in the depletion region, each current is the same at both edges, so the total is their sum:

$$J = J_0\left(e^{qV_a/kT} - 1\right), \qquad J_0 = qn_i^2\left(\frac{D_p}{L_pN_d} + \frac{D_n}{L_nN_a}\right)$$

## Short and long diodes

If a neutral region of width $W_n$ ends at an ohmic contact, its term becomes $\frac{D_p}{L_pN_d}\coth\frac{W_n}{L_p}$; for $W_n \ll L_p$ (a **short** or **narrow-base** diode) that's $\frac{D_p}{W_nN_d}$. Modern diodes and transistor emitters are short.

## Reverse bias

For $V_a \ll -3kT/q$, $J \to -J_0$: the minority carriers within a diffusion length of the junction are swept across. The ideal diode's reverse current is tiny, about $10^{-12}$ A/cm² in silicon, and real silicon diodes leak more (lesson 10).

## Temperature

$J_0 \propto n_i^2 \propto T^3e^{-E_g/kT}$, so it roughly doubles every 4 to 5 K near room temperature. At fixed current, the forward voltage falls by

$$\frac{dV}{dT} = \frac{V - E_g/q - 3kT/q}{T} \approx -2\text{ mV/K}$$

which is how silicon temperature sensors work (B9's project).

## Stored charge

The excess holes on a long n side hold charge $Q_p = qA\Delta p(0)L_p = I_p\tau_p$. Every hole injected lives $\tau_p$ on average, so the diode stores its current times the lifetime. That charge must be removed to switch the diode off (lesson 14).
:::

::: example
## A $p^+n$ diode of area $10^{-3}$ cm² has $N_a = 10^{19}$, $N_d = 10^{16}$ cm⁻³, $\tau_p$ = 1 µs on the n side and $L_n$ = 1 µm on the heavily doped p side. Find $J_0$, the current at 0.6 V, and the voltage for 1 mA.

::: solution
1. **Hole diffusion constant.** On the n side,
   $$\begin{aligned} D_p &= 0.02585 \times 437 \\ &= 11.3\ \text{cm}^2/\text{s} \end{aligned}$$
2. **Hole diffusion length.**
   $$\begin{aligned} L_p &= \sqrt{11.3 \times 10^{-6}}\ \text{cm} \\ &= 33.6\ \mu\text{m} \end{aligned}$$
3. **Hole term.**
   $$\begin{aligned} J_p &= \frac{qn_i^2D_p}{L_pN_d} \\ &= \frac{1.602 \times 10^{-19} \times 10^{20} \times 11.3}{33.6 \times 10^{-4} \times 10^{16}} \\ &= 5.39 \times 10^{-12}\ \text{A/cm}^2 \end{aligned}$$
4. **Electron term.** On the p side,
   $$\begin{aligned} D_n &= 0.02585 \times 116 \\ &= 3.0\ \text{cm}^2/\text{s} \end{aligned}$$
   and the electron term is $4.8 \times 10^{-14}$ A/cm², under 1%.
5. **Saturation current.** So $J_0$ = 5.4 × 10⁻¹² A/cm², and over the $10^{-3}$ cm² area
   $$I_0 = 5.4 \times 10^{-15}\ \text{A}$$
6. **Current at 0.6 V.**
   $$\begin{aligned} I &= I_0e^{0.6/0.02585} \\ &= 65\ \mu\text{A} \end{aligned}$$
7. **Voltage for 1 mA.**
   $$\begin{aligned} V &= 0.02585\ln\frac{10^{-3}}{I_0} \\ &= 0.670\ \text{V} \end{aligned}$$

**Answer:** $J_0$ = 5.4 × 10⁻¹² A/cm², almost all of it from holes; the diode carries 65 µA at 0.6 V and needs 0.670 V for 1 mA.
:::
:::

::: example
## The same diode's n region is thinned to 2 µm between the junction and the contact. How does $J_0$ change?

::: solution
1. **Thickness against diffusion length.**
   $$\begin{aligned} \frac{W_n}{L_p} &= \frac{2}{33.6} \\ &= 0.0595 \end{aligned}$$
2. **Correction factor.**
   $$\coth(0.0595) = 16.8$$
   so the hole term grows 16.8 times, to 9.1 × 10⁻¹¹ A/cm².
3. **Short-diode limit.** That's nearly $L_p/W_n$ = 16.8: the short-diode formula with $W_n$ in place of $L_p$.
4. **Why the current rises.** The steeper straight-line profile carries more current for the same edge density.
5. **Stored charge.** Almost none of the holes recombine before the contact, so the stored charge is far smaller and the diode switches faster.

**Answer:** the hole term of $J_0$ grows 16.8 times, to $9.1 \times 10^{-11}$ A/cm².
:::
:::

::: example
## A silicon diode runs at 0.65 V. How much does its voltage fall per kelvin at constant current?

::: solution
1. **Slope at constant current.** With $I_0 \propto T^3e^{-E_g/kT}$, holding I fixed gives
   $$\begin{aligned} \frac{dV}{dT} &= \frac{V - E_g/q - 3kT/q}{T} \\ &= \frac{0.65 - 1.12 - 0.078}{300}\ \text{V/K} \\ &= -1.8\ \text{mV/K} \end{aligned}$$
2. **Where it's used.** Silicon temperature sensors and bandgap references are built on this steady slope.

**Answer:** it falls about 1.8 mV per kelvin.
:::
:::

::: check
given: d = 1e15 | 1e16 | 1e17; D = 11.3 | 12; L = 10 | 30
answer: 1.602e-19*1e20*D/(L*1e-4*d)
unit: A/cm^2
tolerance: 1%

## A $p^+n$ diode's n side has $N_d$ = {d} cm⁻³, $D_p$ = {D} cm²/s and $L_p$ = {L} µm. What's its saturation current density, ignoring the p side?

::: right
Right. $J_0 = \frac{qn_i^2D_p}{L_pN_d}$ = {answer} A/cm².
:::

::: misses
- [1.602e-19*1e10*D/(L*1e-4*d)] Use $n_i^2$: the edge density is $n_i^2/N_d$.
- [1.602e-19*1e20*D/(L*d)] Convert µm to cm.
- [any] Not yet. Diffusion flux at the edge: $qD_pp_{n0}/L_p$.
:::
:::

::: check
given: a = 1e17 | 1e18; d = 1e15 | 1e16
answer: (11.3/(30e-4*d))/(11.3/(30e-4*d) + 3/(30e-4*a))
tolerance: 1%

## A diode has $N_a$ = {a}, $N_d$ = {d} cm⁻³, $D_p$ = 11.3 and $D_n$ = 3 cm²/s, and both diffusion lengths 30 µm. What fraction of its current do holes carry?

::: right
Right. $\frac{D_p/N_d}{D_p/N_d + D_n/N_a}$ = {answer}.
:::

::: misses
- [(3/(30e-4*a))/(11.3/(30e-4*d) + 3/(30e-4*a))] That's the electrons' share.
- [any] Not yet. Compare the two terms of $J_0$.
:::
:::

::: check
given: J = 1e-12 | 1e-11; A = 1e-4 | 1e-2; I = 0.1 | 10
answer: 0.02585*ln(I*1e-3/(J*A))
unit: V
tolerance: 1%

## A diode has $J_0$ = {J} A/cm² and area {A} cm². What forward voltage drives {I} mA?

::: right
Right. $V = \frac{kT}{q}\ln\frac{I}{I_0}$ = {answer} V.
:::

::: misses
- [0.02585*ln(I/(J*A))] Convert mA to A.
- [any] Not yet. $I_0 = J_0A$, then invert the exponential.
:::
:::

::: check
given: W = 1 | 3 | 8; L = 25 | 50
answer: 1/tanh(W/L)
tolerance: 1%

## A diode's n region is {W} µm thick to its contact; the hole diffusion length is {L} µm. By what factor is the hole term of $J_0$ larger than for a long region?

::: right
Right. $\coth\frac{W}{L}$ = {answer}.
:::

::: misses
- [W/L] Upside down: a short region raises the current.
- [any] Not yet. The finite region replaces $1/L_p$ with $\coth(W/L_p)/L_p$.
:::
:::

::: check
given: d = 5 | 10 | 20
answer: 2^(d/4.5)
tolerance: 2%

## Taking $J_0$ to double every 4.5 K, by what factor does it grow over {d} K?

::: right
Right. $2^{\Delta T/4.5}$ = {answer}.
:::

::: misses
- [2^(d/9)] That's the rate for $n_i$; $J_0$ goes as $n_i^2$.
- [any] Not yet. Count doublings.
:::
:::

::: check
given: V = 0.55 | 0.65 | 0.7; T = 300 | 330
answer: (V - 1.12 - 3*8.617e-5*T)/T*1000
unit: mV/K
tolerance: 2%

## A silicon diode runs at {V} V and {T} K at fixed current. What's its forward voltage's temperature coefficient? (Take $E_g$ = 1.12 eV.)

::: right
Right. $\frac{V - E_g/q - 3kT/q}{T}$ = {answer} mV/K.
:::

::: misses
- [(V - 1.12)/T*1000] Include the $T^3$ in $n_i^2$: subtract $3kT/q$.
- [any] Not yet. Differentiate $V = \frac{kT}{q}\ln\frac{I}{I_0(T)}$.
:::
:::

::: check
given: I = 1 | 10 | 50; t = 0.1 | 2 | 10
answer: I*t*1e-3*1e-6*1e9
unit: nC
tolerance: 1%

## A long-base diode carries {I} mA, nearly all of it holes injected into the n side, where $\tau_p$ = {t} µs. How much excess charge does it store?

::: right
Right. $Q = I\tau_p$ = {answer} nC.
:::

::: misses
- [any] Not yet. Each injected hole lives $\tau_p$ on average.
:::
:::

::: check
given: V = 0.06 | 0.12 | 0.18
answer: exp(V/0.02585)
tolerance: 1%

## By what factor does an ideal diode's forward current grow when its voltage rises {V} V?

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

::: misses
- [10^(V/0.06)] Close: 60 mV is one decade only approximately. Use $e^{\Delta V/0.02585}$.
- [any] Not yet. The current is exponential in $V/V_T$.
:::
:::

::: check
kind: parts
given: V = 0.55 | 0.65 | 0.75; E = 1.12 | 0.66

## A diode in a material with a {E} eV gap runs at {V} V and 300 K, at constant current.

::: part
answer: (V - E - 3*0.02585)/300*1000
unit: mV/K
tolerance: 1%

### How does its voltage change per kelvin?

::: misses
- [any] $(V - E_g/q - 3kT/q)/T$.
:::
:::

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

### How much does V rise per decade of current?

::: misses
- [any] $(kT/q)\ln 10$.
:::
:::
:::

::: check
kind: derivation
vars: A = 1e-4..1e-2, D = 1..30, L = 1e-4..1e-1, N = 1e14..1e18, V = 0.3..0.8

## A $p^+n$ diode of area A has hole diffusivity D, diffusion length L and donor density N on its n side.

::: step
answer: A*1.602e-19*D*1e20/(L*N)

### What is its saturation current (long base, $n_i^2 = 10^{20}$)?
:::

::: step
answer: A*1.602e-19*D*1e20/(L*N)*(exp(V/0.02585) - 1)

### What current flows at forward voltage V?
:::

::: right
Right. Lighter doping on the n side means more injected holes and a larger current: the light side controls the diode.
:::
:::

::: explain
## Why is an ideal diode's saturation current dominated by the lightly doped side?

::: model
Forward bias lowers the barrier, and the number of minority carriers that end up injected at each edge of the depletion region is the equilibrium minority density there multiplied by $e^{qV/kT}$. The equilibrium minority density is $n_i^2$ divided by the doping, so the lightly doped side starts with far more minority carriers and receives far more injected ones. Those injected carriers diffuse away and recombine, and that diffusion is the current. A side doped a thousand times more heavily contributes a thousandth as much, give or take its diffusion coefficient and length, so the lightly doped side controls the saturation current, the stored charge and the switching speed.
:::
:::

::: practice

::: check
given: d = 3e15 | 3e16; L = 15 | 40
answer: 1.602e-19*1e20*11.3/(L*1e-4*d)
unit: A/cm^2
tolerance: 1%

## $J_0$ from the n side: $N_d$ = {d}, $D_p$ = 11.3, $L_p$ = {L} µm?

::: misses
- [any] $qn_i^2D_p/L_pN_d$.
:::
:::

::: check
given: J = 3e-12 | 2e-10; A = 1e-3 | 1e-2; I = 1 | 20
answer: 0.02585*ln(I*1e-3/(J*A))
unit: V
tolerance: 1%

## Voltage for {I} mA: $J_0$ = {J}, area {A} cm²?

::: misses
- [any] $V_T\ln(I/J_0A)$.
:::
:::

::: check
given: W = 2 | 6; L = 30 | 60
answer: 1/tanh(W/L)
tolerance: 1%

## Short-region factor for W = {W} µm, L = {L} µm?

::: misses
- [any] $\coth(W/L)$.
:::
:::
:::
