P-n junctions are the backbone of semiconductor devices. When p-type and n-type materials meet, charge carriers flow between them, creating a depletion region and built-in potential.
Understanding p-n junction formation is key to grasping how diodes, transistors, and solar cells work. This guide covers carrier diffusion, space charge regions, energy barriers, and the quantitative tools you need to analyze these junctions.
Formation of p-n junctions
A p-n junction forms when p-type and n-type semiconductors are brought into contact, allowing charge carriers to redistribute across the interface. This redistribution is the physical origin of everything that makes diodes and transistors work.
Bringing p-type and n-type semiconductors into contact
Before contact, each side has its own distinct properties:
- P-type semiconductors are doped with acceptor impurities. Holes are the majority carriers, and the Fermi level sits closer to the valence band.
- N-type semiconductors are doped with donor impurities. Electrons are the majority carriers, and the Fermi level sits closer to the conduction band.
When these two materials are joined, a massive concentration gradient exists at the interface. The p-side is full of holes but has very few electrons; the n-side is the opposite. This gradient is what drives the next step: diffusion.
Diffusion of majority carriers
Because of the concentration gradient across the junction, majority carriers diffuse across the boundary:
- Holes diffuse from the p-side into the n-side. Each hole that leaves exposes a negatively charged acceptor ion (fixed in the crystal lattice) near the junction on the p-side.
- Electrons diffuse from the n-side into the p-side. Each electron that leaves exposes a positively charged donor ion near the junction on the n-side.
- These exposed ions can't move. They form a growing region of fixed charge on both sides of the junction.
- Diffusion continues until the resulting electric field is strong enough to stop it.
Drift current and electric field
As diffusion exposes more and more ionized impurities, a space charge region builds up near the junction: positive donor ions on the n-side, negative acceptor ions on the p-side.
This space charge creates an electric field directed from the n-side toward the p-side. The field opposes further diffusion of majority carriers. At the same time, it sweeps minority carriers (electrons on the p-side, holes on the n-side) in the opposite direction, producing a drift current.
The drift current flows opposite to the diffusion current. As the space charge region grows, the electric field strengthens, the drift current increases, and eventually the two currents balance.
Equilibrium condition in p-n junctions
At thermal equilibrium, three things are true simultaneously:
- The diffusion current and drift current are equal and opposite, so the net current across the junction is zero.
- The Fermi level is constant throughout the entire structure. This is the defining condition of thermal equilibrium.
- A built-in potential exists across the junction, creating an energy barrier that prevents further net flow of majority carriers.
The Fermi level alignment is what "locks in" the built-in potential. Before contact, the p-side and n-side had different Fermi levels. After contact, carrier redistribution shifts the bands until the Fermi levels line up.
Depletion region in p-n junctions
The depletion region (also called the space charge region) is the zone near the junction that has been swept free of mobile carriers. Its width and properties directly determine the electrical characteristics of the device.
Depletion of majority carriers
When majority carriers diffuse across the junction, they leave behind a region stripped of free carriers. On the p-side, the remaining negative acceptor ions are immobile. On the n-side, the remaining positive donor ions are immobile. This carrier-depleted zone extends into both sides of the junction.
Space charge region
The fixed ions in the depletion region create a net charge distribution: positive on the n-side, negative on the p-side. This charge distribution produces the internal electric field that opposes diffusion and drives the drift of minority carriers. At equilibrium, the drift current from this field exactly cancels the diffusion current.
Depletion region width
For an abrupt p-n junction (where doping changes sharply at the boundary), the total depletion width is:
where:
- = permittivity of the semiconductor
- = elementary charge ( C)
- = acceptor doping concentration
- = donor doping concentration
- = built-in potential
- = applied voltage (positive for forward bias, negative for reverse bias)
Notice the factor . If one side is doped much more heavily than the other (say ), this simplifies to approximately , meaning the depletion region extends mostly into the lightly doped side.
Factors affecting depletion width
- Doping concentrations: Higher doping on both sides produces a narrower depletion region. Lower doping gives a wider one. The depletion region always extends further into the more lightly doped side.
- Applied voltage: Reverse bias increases (the term grows when is negative). Forward bias decreases .
- Temperature: Higher temperature slightly increases because thermal generation adds carriers and modifies .
- Material properties: The semiconductor's permittivity directly affects . A higher permittivity means a wider depletion region for the same doping and voltage.
Built-in potential in p-n junctions
The built-in potential is the voltage that develops across the junction at equilibrium. You can't measure it directly with a voltmeter (the contact potentials at the metal-semiconductor interfaces cancel it out), but it governs carrier transport and sets the energy barrier height.
Origin of built-in potential
Before contact, the p-type and n-type materials have different Fermi levels. When they're joined, carriers redistribute until the Fermi levels align. This alignment forces the energy bands to bend, and the resulting potential difference across the junction is .
The built-in potential acts as a barrier: majority carriers on either side need enough energy to climb over it in order to cross the junction. At equilibrium, only a tiny fraction of carriers have that energy, so the net flow is zero.
Fermi level alignment
In the isolated p-type material, the Fermi level is near the valence band. In the isolated n-type material, it's near the conduction band. The difference between these two Fermi levels (before contact) is directly related to the built-in potential.
When the junction forms, electrons flow from n to p and holes flow from p to n until the Fermi level is flat across the entire structure. The band edges (conduction and valence bands) must then bend to accommodate this flat Fermi level, and the amount of bending equals .
Calculation of built-in potential
The built-in potential is given by:
where:
- = Boltzmann constant ( J/K)
- = absolute temperature (K)
- = elementary charge
- , = acceptor and donor doping concentrations
- = intrinsic carrier concentration of the semiconductor
Example: For a silicon junction at 300 K with cm, cm, and cm:
Typical silicon p-n junctions have values in the range of 0.6 to 0.9 V, depending on doping levels.
Dependence on doping concentrations
- Increasing either or raises , because the Fermi levels start farther apart before contact.
- The dependence is logarithmic, so doubling the doping doesn't double the built-in potential. You need to change doping by orders of magnitude to see a significant shift in .
- This is in contrast to the depletion width, which depends on doping through a square-root relationship and is therefore more sensitive to doping changes.
Energy band diagram of p-n junctions
Energy band diagrams are the primary visual tool for understanding what's happening inside a junction. They show how the conduction band edge , valence band edge , and Fermi level vary with position.
Band bending in equilibrium
At equilibrium, the Fermi level must be flat (constant) across the entire junction. Since the p-side has its Fermi level near the valence band and the n-side has it near the conduction band, the bands must bend through the depletion region to connect the two sides while keeping flat.
The bands bend upward going from the n-side to the p-side. This upward bending for electrons represents the energy barrier they must overcome to diffuse from n to p. The total band bending equals .
Electron and hole energy barriers
The band bending creates energy barriers for both carrier types:
- Electrons trying to move from the n-side to the p-side face an uphill climb in the conduction band. The barrier height is as seen from the conduction band perspective.
- Holes trying to move from the p-side to the n-side face a downhill drop in the valence band (which is energetically uphill for holes, since holes have lower energy when the band is higher). The barrier is also related to .
These barriers prevent the net flow of majority carriers at equilibrium.
Relation between built-in potential and energy barriers
The electron and hole energy barriers ( and ) are related to the built-in potential and the Fermi level positions:
where the subscripts and refer to the respective bulk regions far from the junction.
The sum of these barriers equals the bandgap:
This makes sense: the total energy span from the valence band on one side to the conduction band on the other is always the bandgap, regardless of how the built-in potential divides it.
Quasi-Fermi levels under bias
When a voltage is applied, the junction is no longer in equilibrium, and a single Fermi level can no longer describe the system. Instead, two quasi-Fermi levels are used:
- for electrons
- for holes
The separation between the quasi-Fermi levels at the junction equals the applied voltage:
Under forward bias, at the junction, meaning excess carriers are being injected. Under reverse bias, the quasi-Fermi levels can cross in the depletion region, reflecting carrier extraction. Quasi-Fermi levels are essential for analyzing current flow in non-equilibrium conditions.
Charge neutrality in p-n junctions
Charge neutrality ensures that the total positive charge in the depletion region exactly balances the total negative charge. This constraint, combined with Poisson's equation, lets you solve for the electric field and potential profiles inside the junction.
Charge distribution in depletion region
Within the depletion region, mobile carriers have been swept away, leaving only fixed ionic charges. The p-side of the depletion region has a net negative charge density (from ionized acceptors), and the n-side has a net positive charge density (from ionized donors). Outside the depletion region, the semiconductor is electrically neutral because mobile carriers screen the dopant ions.
Ionized donors and acceptors
In the depletion region, the electric field has swept away the free carriers, exposing the dopant ions:
- Ionized donors () on the n-side are positively charged. Each donor atom contributed one electron to the conduction band and is now a fixed positive charge.
- Ionized acceptors () on the p-side are negatively charged. Each acceptor atom captured one electron from the valence band (equivalently, created a hole) and is now a fixed negative charge.
In the depletion approximation, you assume complete ionization and an abrupt transition from depleted to neutral regions.
Charge neutrality condition
The total positive charge on the n-side must equal the total negative charge on the p-side:
For an abrupt junction with uniform doping, this simplifies to:
This tells you something important: the depletion region extends further into the lightly doped side. If , then , and nearly all the depletion region is on the p-side.
Poisson's equation in depletion region
Poisson's equation connects the charge distribution to the electrostatic potential:
Solving this equation within the depletion region (using the depletion approximation where on the n-side and on the p-side) gives you:
- The electric field profile , which is triangular, peaking at the metallurgical junction.
- The potential profile , which varies quadratically through the depletion region.
- Boundary conditions: the electric field goes to zero at the edges of the depletion region ( and ), and the total potential drop equals .
These solutions are the foundation for deriving the depletion width formula and the capacitance expressions.
Capacitance of p-n junctions
P-n junctions store charge in the depletion region, and this charge changes with applied voltage. That voltage-dependent charge storage is capacitance, and it has practical applications in varactor diodes and voltage-controlled oscillators.
Depletion capacitance
The depletion region behaves like a parallel-plate capacitor. The "plates" are the edges of the depletion region (where mobile charge begins), and the "dielectric" is the depleted semiconductor between them.
where is the junction cross-sectional area and is the depletion width. Since depends on voltage, so does .
Variation with applied voltage
Substituting the expression for into the capacitance formula gives the voltage dependence:
where is the zero-bias depletion capacitance.
- Reverse bias (): The denominator grows, so decreases. The depletion region widens, moving the "plates" farther apart.
- Forward bias (): The denominator shrinks, so increases. The depletion region narrows.
This tunability is exactly what makes varactor diodes useful as voltage-controlled capacitors.
Diffusion capacitance
Under forward bias, minority carriers are injected across the junction and stored temporarily before recombining. This stored charge also varies with voltage, giving rise to diffusion capacitance:
where is the minority carrier lifetime and is the forward current.
Diffusion capacitance is proportional to the forward current, so it dominates at high forward bias. Under reverse bias, it's negligible because there's very little minority carrier injection.
Measuring capacitance-voltage characteristics
C-V measurements are a powerful experimental technique for extracting junction parameters. The procedure involves:
- Apply a DC bias voltage to set the operating point.
- Superimpose a small AC signal and measure the resulting capacitance.
- Sweep the DC bias and record vs. .
A Mott-Schottky plot graphs vs. . From the voltage-dependent capacitance equation, you can show that this plot should be a straight line for a uniformly doped junction. The slope gives you the doping concentration of the lightly doped side, and the x-intercept gives you . This makes C-V analysis one of the most practical ways to characterize a p-n junction experimentally.