Why the P-N Junction Forms: The Physics Behind the Barrier
A p-n junction isn't just two pieces of semiconductor stuck together. The key to understanding it is this: nature hates sharp gradients in carrier concentration. When you bring p-type (excess holes) and n-type (excess electrons) material into contact, carriers immediately begin to diffuse across the junction — holes from p to n, electrons from n to p.
This diffusion is the engine that drives everything else.
Step 1: Diffusion Creates a Depletion Region
As holes leave the p-side, they leave behind fixed, negatively charged acceptor ions (A−). As electrons leave the n-side, they leave behind fixed, positively charged donor ions (D+). These ions are immobile — they're locked in the crystal lattice.
The region near the junction that gets stripped of mobile carriers is called the depletion region (or space-charge region). It contains only fixed ions, creating an electric field that points from the n-side (positive ions) toward the p-side (negative ions).
Do not confuse "depletion" with "no charge." The depletion region is highly charged — it's just that the charge is from fixed ions, not mobile carriers.
Step 2: The Electric Field Opposes Diffusion
The built-in electric field E exerts a force on any mobile carrier that tries to cross:
- Holes (positive) feel a force pushing them back toward the p-side.
- Electrons (negative) feel a force pushing them back toward the n-side.
This field grows stronger as more carriers diffuse and more ions are uncovered. Eventually, the field becomes strong enough that the drift current (carriers swept by the field) exactly balances the diffusion current (carriers moving due to concentration gradient). At this point, the net current is zero — thermal equilibrium is reached.
Step 3: The Built-in Potential Barrier
Because the electric field exists over a distance, there is a potential difference across the depletion region. This is the built-in potential V0 (also called Vbi). It represents the energy barrier that a majority carrier must overcome to cross to the other side.
V0=qkTln(ni2NAND)
Where:
- k = Boltzmann constant
- T = absolute temperature
- q = electron charge magnitude
- NA = acceptor doping concentration (p-side)
- ND = donor doping concentration (n-side)
- ni = intrinsic carrier concentration
Why This Formula Holds: The Derivation
The derivation comes from equating the Fermi levels on both sides. In equilibrium, the Fermi level must be constant throughout the entire structure.
On the p-side, the Fermi level EF lies close to the valence band. The position relative to the intrinsic Fermi level Ei is:
EF−Ei=kTln(niNA)(for p-type)
On the n-side, the Fermi level lies close to the conduction band:
EF−Ei=−kTln(niND)(for n-type)
The difference in Ei between the two sides (which is the same as the difference in EF between the two sides before contact) must be accommodated by the built-in potential. The total band bending qV0 equals this difference:
qV0=[kTln(niNA)]−[−kTln(niND)]
qV0=kT[ln(niNA)+ln(niND)] …