Why is the Fermi Energy (EF) Constant Along the Device in a Band Diagram?

pn-junction

In band diagrams of PN/PIN junctions etc. the Fermi energy level (\$E_F\$) is drawn as constant along the device (see image).

Band diagram (source)

Why is it constant? What does it represent?

Best Answer

A gradient in the Fermi level is the driving force for carrier motion:

$$F_n = \frac{D_n}{k_BT} n \frac{\mathrm{d}E_F}{\mathrm{d}x}$$

In equilibrium (zero bias), \$F_n = 0\$ and therefore \$E_F=\text{const}\$.