---
title: Fermi–Dirac statistics and the Fermi level
heading: How electrons fill the available states at a temperature
eyebrow: B9 · Lesson 12 · Fermi–Dirac statistics
xp: 40
---

::: hook
A band holds an enormous number of states, and electrons can't double up in them (lesson 4). At absolute zero they fill every state up to a sharp edge and none above. Warm the material and a few electrons near the edge get kicked a little higher. How many, and how high, is set by one function and one energy, the Fermi level. With them you can count the electrons and holes in any semiconductor, and see where the formula $np = n_i^2$ from lesson 13 comes from.
:::

::: play
- The curve is the chance that a state at energy $E$ is occupied, against $E - E_F$, at temperature $T$. The dashed curve is the Boltzmann approximation $e^{-(E - E_F)/kT}$.
- At low temperature the curve is a sharp step at $E_F$. Warm it up: the step softens over a few $kT$, staying at exactly ½ at $E_F$.
- Above about $3kT$ the two curves agree. That's the region where a semiconductor's conduction band sits.
:::
:::

```sim plot
view: graph
x: E = -0.3..0.3 eV
y: f = 0..1.05
slider: T = 10..600 step 10 = 300 K
slider: d = -0.3..0.3 step 0.01 = 0.1 eV
plot: 1/(1 + exp(E/(8.617e-5*T))) | label: Fermi–Dirac | samples: 600
plot: exp(-E/(8.617e-5*T)) | label: Boltzmann | dashed | color: ch2 | samples: 600
marker: x = d | label: state
readout: kT, meV = 1000*8.617e-5*T | digits: 3
readout: chance the state is occupied = 1/(1 + exp(d/(8.617e-5*T))) | digits: 3
```

::: predict
## At room temperature ($kT$ = 25.85 meV), what is the chance that a state 0.1 eV above the Fermi level holds an electron?

- [ ] One half
- [ ] About 10%
- [x] About 2%
- [ ] Zero

::: reveal
About 2%: $\frac{1}{1 + e^{0.1/0.02585}} = \frac{1}{1 + 47.8} = 0.020$. A state 0.1 eV *below* the Fermi level is empty with the same 2% chance. Every extra $kT$ above $E_F$ cuts the occupancy by a factor of about $e$.
:::
:::

::: nameit
## The Fermi–Dirac function

In thermal equilibrium at temperature $T$, a state at energy $E$ is occupied with probability

$$f(E) = \frac{1}{1 + e^{(E - E_F)/kT}}$$

The **Fermi level** $E_F$ is the energy where $f = \frac12$. Well above it, $f \approx e^{-(E - E_F)/kT}$ (the **Boltzmann approximation**, which overestimates by a fraction $e^{-(E - E_F)/kT}$: 5% at $3kT$). Well below it, $1 - f$, the chance of a state being empty, is $\approx e^{-(E_F - E)/kT}$.

In a metal the Fermi level lies inside a band, so there are empty states just above the filled ones and electrons conduct easily. In a semiconductor it lies in the gap, far from both bands, so the Boltzmann tails govern how many carriers there are.

## Counting carriers

The number of states per unit energy, the **density of states**, rises from each band edge like $\sqrt{E - E_c}$. Multiplying by $f$ and adding up all the states gives

$$n = N_ce^{-(E_c - E_F)/kT} \qquad p = N_ve^{-(E_F - E_v)/kT}$$

The **effective densities of states** $N_c$ and $N_v$ work as if every state were stacked at the band edge. For silicon at 300 K they're about $3.2 \times 10^{19}$ and $1.8 \times 10^{19}$ cm⁻³, and they grow as $T^{3/2}$.

## The mass-action law, derived

Multiply the two: the Fermi level cancels.

$$np = N_cN_ve^{-E_g/kT} = n_i^2 \qquad n_i = \sqrt{N_cN_v}\,e^{-E_g/2kT}$$

For silicon that gives $9.4 \times 10^9$ cm⁻³, the $10^{10}$ used throughout this course. In pure material $n = p = n_i$ and the Fermi level is the **intrinsic level** $E_i$, near midgap: $E_i = \frac{E_c + E_v}{2} + \frac{kT}{2}\ln\frac{N_v}{N_c}$, 7 meV below the middle for silicon.
:::

::: example
## What are the occupancies of states 0.1 eV above and 0.1 eV below the Fermi level at 300 K? And at 77 K?

::: solution
1. **Above, at 300 K.**
   $$\frac{1}{1 + e^{3.87}} = 0.020$$
2. **Below, at 300 K.**
   $$1 - 0.020 = 0.980$$
3. **Above, at 77 K.** At 77 K, $kT$ = 6.6 meV, so
   $$\frac{1}{1 + e^{15.1}} = 2.8 \times 10^{-7}$$
4. **What cooling does.** Cooling sharpens the edge enormously.

**Answer:** at 300 K the occupancies are 0.020 above and 0.980 below; at 77 K the state above holds only $2.8 \times 10^{-7}$.
:::
:::

::: example
## In silicon at 300 K, the Fermi level sits 0.2 eV below the conduction band edge. How many electrons per cm³ are there, and how many holes?

::: solution
1. **Electrons.**
   $$\begin{aligned} n &= 3.2 \times 10^{19}e^{-0.2/0.02585} \\ &= 1.4 \times 10^{16}\ \text{cm}^{-3} \end{aligned}$$
2. **Holes.**
   $$\begin{aligned} p &= \frac{n_i^2}{n} \\ &= \frac{10^{20}}{1.4 \times 10^{16}} \\ &= 7 \times 10^3\ \text{cm}^{-3} \end{aligned}$$
3. **What kind of silicon.** This is n-type silicon (lesson 14), with about $10^{16}$ donors.

**Answer:** $1.4 \times 10^{16}$ electrons and $7 \times 10^3$ holes per cm³.
:::
:::

::: example
## In pure silicon at 300 K ($N_c$ = 3.2 × 10¹⁹, $N_v$ = 1.8 × 10¹⁹ cm⁻³), how far is the Fermi level from the middle of the gap?

::: solution
1. **Balance electrons and holes.** Setting $n = p$ gives
   $$E_F = \frac{E_c + E_v}{2} + \frac{kT}{2}\ln\frac{N_v}{N_c}$$
2. **Put in the numbers.**
   $$\begin{aligned} E_F - \text{midgap} &= 0.0129 \times \ln 0.5625 \\ &= -7.4\ \text{meV} \end{aligned}$$
3. **Why below the middle.** The conduction band has more states to fill than the valence band has to empty, so the Fermi level sits slightly below the middle to keep electrons and holes equal.
4. **How big the shift is.** At 7 meV out of a 1.12 eV gap the shift is small, and "the intrinsic level is at midgap" is a good approximation.

**Answer:** 7.4 meV below the middle of the gap.
:::
:::

::: check
given: dE = 20 | 40 | 60; T = 200 | 300 | 400
answer: 1/(1 + exp(dE/1000/(8.617e-5*T)))
tolerance: 0.5%

## What is the chance that a state {dE} meV above the Fermi level is occupied at {T} K?

::: right
Right. $\frac{1}{1 + e^{(E - E_F)/kT}}$ = {answer}.
:::

::: misses
- [exp(-dE/1000/(8.617e-5*T))] That's the Boltzmann approximation; use the full Fermi–Dirac function.
- [any] Not yet. Find $kT$, then $f(E)$.
:::
:::

::: check
given: x = 2 | 3 | 5
answer: 100*exp(-x)
tolerance: 0.5%

## By what percentage does the Boltzmann approximation overestimate the occupancy of a state {x}$kT$ above the Fermi level?

::: right
Right. The ratio is $e^{-x}(1 + e^x) = 1 + e^{-x}$, so the excess is $e^{-x}$: {answer}%.
:::

::: misses
- [any] Not yet. Divide $e^{-x}$ by $\frac{1}{1 + e^x}$.
:::
:::

::: check
given: d = 0.15 | 0.25 | 0.35
answer: 3.2e19*exp(-d/0.02585)
unit: cm^-3
tolerance: 0.5%

## In silicon at 300 K, the Fermi level is {d} eV below the conduction band edge. What is the electron density?

::: right
Right. $N_ce^{-(E_c - E_F)/kT}$ = {answer}.
:::

::: misses
- [any] Not yet. $n = N_ce^{-(E_c - E_F)/kT}$ with $N_c = 3.2 \times 10^{19}$ cm⁻³.
:::
:::

::: check
given: n = 1e15 | 1e16 | 1e17
answer: 1000*0.02585*ln(3.2e19/n)
unit: meV
tolerance: 0.5%

## Silicon at 300 K has {n} electrons per cm³. How far below the conduction band edge is the Fermi level?

::: right
Right. $kT\ln\frac{N_c}{n}$ = {answer}.
:::

::: misses
- [1000*0.02585*log(3.2e19/n)] Use the natural logarithm.
- [any] Not yet. Solve $n = N_ce^{-(E_c - E_F)/kT}$.
:::
:::

::: check
given: Nc = 4.7e17 | 1.04e19; Nv = 9e18 | 6e18; Eg = 0.66 | 1.42
answer: sqrt(Nc*Nv)*exp(-Eg/(2*0.02585))
unit: cm^-3
tolerance: 1%

## A semiconductor has $N_c$ = {Nc} cm⁻³, $N_v$ = {Nv} cm⁻³ and a {Eg} eV gap. What is its intrinsic carrier density at 300 K?

::: right
Right. $\sqrt{N_cN_v}e^{-E_g/2kT}$ = {answer}.
:::

::: misses
- [sqrt(Nc*Nv)*exp(-Eg/0.02585)] The exponent is $E_g/2kT$.
- [any] Not yet. $n_i = \sqrt{N_cN_v}e^{-E_g/2kT}$.
:::
:::

::: check
given: Nc = 4.7e17 | 3.2e19; Nv = 9e18 | 1.8e19
answer: 1000*0.02585/2*ln(Nv/Nc)
unit: meV
tolerance: 1%

## A semiconductor has $N_c$ = {Nc} and $N_v$ = {Nv} cm⁻³. How far above midgap is its intrinsic Fermi level at 300 K? (Negative means below.)

::: right
Right. $\frac{kT}{2}\ln\frac{N_v}{N_c}$ = {answer}.
:::

::: misses
- [1000*0.02585/2*ln(Nc/Nv)] The level shifts away from the band with more states.
- [any] Not yet. Set $n = p$ and solve for $E_F$.
:::
:::

::: check
kind: parts
given: E = 50 | 100 | 200; T = 300 | 400

## A state lies {E} meV above the Fermi level, at {T} K.

::: part
answer: 1/(1 + exp(E/1000/(8.617e-5*T)))
tolerance: 0.5%

### What is the chance it holds an electron?

::: misses
- [any] $f = \frac{1}{1 + e^{(E - E_F)/kT}}$.
:::
:::

::: part
answer: exp(-E/1000/(8.617e-5*T))
tolerance: 0.5%

### What does the Boltzmann approximation $e^{-(E - E_F)/kT}$ give?

::: misses
- [any] Drop the 1 in the denominator.
:::
:::
:::

::: check
kind: derivation
vars: E = -0.3..0.3, T = 100..600

## A state an energy E (in eV) above the Fermi level, at temperature T.

::: step
answer: 1/(1 + exp(E/(8.617e-5*T)))

### What is its occupancy?
:::

::: step
answer: 1/(1 + exp(-E/(8.617e-5*T)))

### What is the chance it is empty?
:::

::: right
Right. The chance of being empty at E above the Fermi level equals the chance of being full at E below it: the function is symmetric about $E_F$.
:::
:::

::: explain
## Why does the Fermi level drop out when you multiply $n$ by $p$?

::: model
Raising the Fermi level makes states near the conduction band more likely to be filled, so $n$ grows by a factor of $e$ for every $kT$ it rises. The same rise makes states near the valence band more likely to be filled too, which means fewer holes, and $p$ falls by exactly the same factor. In the product the two changes cancel, leaving only the band gap, the temperature and the densities of states. That's why $np = n_i^2$ holds whatever the doping.
:::
:::

::: practice

::: check
given: T = 77 | 300 | 400
answer: 1000*8.617e-5*T
unit: meV
tolerance: 0.5%

## What is $kT$ at {T} K?

::: misses
- [any] $k = 8.617 \times 10^{-5}$ eV/K.
:::
:::

::: check
given: dE = 10 | 25 | 50 | 75 | 100 | 200
answer: 1 - 1/(1 + exp(-dE/1000/0.02585))
tolerance: 0.5%

## At 300 K, what is the chance that a state {dE} meV below the Fermi level is empty?

::: misses
- [any] $1 - f(E)$.
:::
:::

::: check
given: d = 0.1 | 0.2 | 0.3
answer: 1.8e19*exp(-d/0.02585)
unit: cm^-3
tolerance: 0.5%

## In silicon at 300 K, the Fermi level is {d} eV above the valence band edge. What is the hole density?

::: misses
- [any] $N_ve^{-(E_F - E_v)/kT}$.
:::
:::
:::
