Sub topic 11
The p-n Junction
This chapter assumes you know how n-type and p-type semiconductors are made by doping, and that you can describe electrons and holes as charge carriers. It also assumes you know electric field, potential and drift versus diffusion of charges at class 12 level. Here we explain what happens when the two types are joined, how the depletion layer and barrier potential form, and what the common mistakes are.
What a p-n junction is
A p-n junction is a single crystal of semiconductor (usually silicon or germanium) doped p-type on one side and n-type on the other. The boundary between the two regions is the junction. It is not made by pressing two separate pieces together, because surface roughness and oxide layers would break the crystal lattice. The doping is changed inside one continuous crystal.
Before joining, each piece is electrically neutral.
- The n-side has many free electrons (majority carriers) and few holes (minority carriers). Its fixed donor atoms are neutral overall, because each mobile electron is balanced by a positive donor ion.
- The p-side has many holes (majority carriers) and few electrons (minority carriers). Its fixed acceptor atoms balance the holes in the same way.
The key point is that the doped atoms are fixed in the lattice. Only electrons and holes move.
How the depletion layer forms
At the moment of joining, the carrier concentrations jump sharply across the boundary. Electrons are plentiful on the n-side and scarce on the p-side. Holes are the reverse. This difference drives two processes.
- Diffusion. Electrons from the n-side move into the p-side, and holes from the p-side move into the n-side. Carriers move from high concentration to low concentration, as gas molecules do. The resulting current is the diffusion current. Its direction is from p to n (conventional current), because both electrons moving one way and holes moving the other way give current in the same direction.
- Recombination. A diffusing electron that enters the p-side meets a hole and recombines with it. Both mobile carriers disappear. The same happens to holes entering the n-side.
After recombination, the atoms near the junction have lost their mobile partners.
- On the n-side near the junction, the positive donor ions are left uncompensated. This region carries net positive charge.
- On the p-side near the junction, the negative acceptor ions are left uncompensated. This region carries net negative charge.
This thin region, empty of mobile carriers and containing only fixed ions, is the depletion layer (also called the space-charge region). Its width is typically about 1 micrometre or less, and for most practical devices it is of the order of 10^-7 to 10^-6 m.
Barrier potential and the built-in field
The two layers of fixed charge form a layer of positive charge on the n-side and negative charge on the p-side. This produces an electric field across the depletion layer that points from the n-side to the p-side.
This field opposes further diffusion. It pushes electrons back toward the n-side and holes back toward the p-side. A current driven by this field is the drift current. Its conventional direction is n to p, opposite to the diffusion current.
The potential difference across the depletion layer is the barrier potential (or junction potential). Its sign is such that the n-side is at higher potential than the p-side. A diffusing electron must climb this potential hill to cross to the p-side, which is why it is called a barrier.
Typical values at room temperature:
| Material | Barrier potential |
|---|---|
| Silicon | about 0.7 V |
| Germanium | about 0.3 V |
Equilibrium
Diffusion continues until the growing field makes drift as strong as diffusion. At that point the two currents cancel exactly:
Idiffusion = Idrift (opposite directions), so the net current is zero.
This is dynamic equilibrium. Carriers still cross the junction, but equal numbers cross each way. The depletion layer width and the barrier potential then stay constant. This is why an unconnected junction does not deliver current to an external circuit.
Estimating the field in the depletion layer
A barrier potential of 0.7 V across a width of about 1 micrometre gives a very large field. The average field is
E = V / d = 0.7 / (1 × 10^-6) = 7 × 10^5 V/m.
The field is that large even though the voltage is small, because the layer is so thin. The check below computes it for several widths.
barrier = 0.7 # volts, silicon
for width_um in (0.1, 0.5, 1.0):
d = width_um * 1e-6 # metres
field = barrier / d
print(f"width = {width_um} um -> E = {field:.2e} V/m")Which side is wider?
The depletion layer extends equally in terms of total charge on both sides, because the positive charge on the n-side must equal the negative charge on the p-side. If the doping levels are equal, the layer extends equally into both sides. If one side is doped more heavily, the layer extends less into that side, because fewer atoms are needed to supply the same charge. In a heavily doped p-side and lightly doped n-side junction, the layer lies mostly in the n-side.
What the barrier does and does not stop
The barrier stops majority carriers. Electrons on the n-side need energy equal to e times the barrier potential to cross. Only the few with enough energy do.
The same field helps minority carriers. A minority electron on the p-side that wanders to the junction is swept to the n-side by the field. A minority hole on the n-side is swept to the p-side. These minority carriers create the drift current, which is therefore very small, because minority carriers are rare. In equilibrium the rare drift current is balanced by the small number of majority carriers that are energetic enough to climb the barrier.
This is also why the junction later behaves as a rectifier. In the next chapter, an external voltage changes the barrier height. A lower barrier lets many majority carriers through, and a higher barrier lets almost none through. The drift current from minority carriers barely changes, so reverse current is small.
Common errors
- "The depletion layer contains no charge." It contains no mobile charge. It contains fixed ions, which is the reason a field exists.
- "The n-side is negative overall." Both sides are neutral far from the junction. Only the depletion layer has net charge, positive on the n-side and negative on the p-side.
- "The barrier potential can be measured with a voltmeter." If you connect a voltmeter across an isolated diode, you read zero. The contact potentials at the metal-semiconductor connections cancel the junction potential, so no net voltage appears and the diode cannot supply energy for free.
- Mixing up current directions. Diffusion current runs p to n. Drift current runs n to p. The barrier field points n to p, and it pushes positive carriers (holes) toward the p-side.
- "Diffusion stops at equilibrium." It does not stop. It is balanced by drift.
- Treating 0.7 V as universal. The value depends on material, doping and temperature. Use 0.7 V for silicon and 0.3 V for germanium unless a problem gives other numbers.
Quick numerical checks
A silicon junction has depletion width 0.5 micrometre. The average field is 0.7 / (0.5 × 10^-6) = 1.4 × 10^6 V/m.
An electron crossing the barrier from the n-side to the p-side gains potential energy of e × V = 0.7 eV. In joules this is 0.7 × 1.6 × 10^-19 = 1.12 × 10^-19 J. This is the minimum kinetic energy a majority electron needs to cross.
Exercise
A silicon p-n junction has a depletion layer of width 0.35 micrometre and a barrier potential of 0.7 V. (a) Find the average electric field in the layer. (b) State the direction of this field and the name of the current it drives.
Show answer
(a) E = V/d = 0.7 / (0.35 × 10^-6) = 2 × 10^6 V/m. (b) The field points from the n-side to the p-side. It drives the drift current, which is carried by minority carriers and flows in the conventional direction n to p, opposing the diffusion current.
Exercise
A p-n junction is heavily doped on the p-side and lightly doped on the n-side. Into which side does the depletion layer extend farther, and why?
Show answer
It extends farther into the n-side. The total fixed charge on each side must be equal in magnitude. The lightly doped n-side has fewer donor ions per unit volume, so a thicker layer is needed to supply the same charge.
Exercise
In equilibrium, the diffusion current across a junction is 5 microamperes. What is the drift current, and what is the net current?
Show answer
The drift current is also 5 microamperes, in the opposite direction. The net current is zero.