What is a P-N Junction?
Inside virtually every piece of modern electronics — your phone, your laptop, the LED in your lamp, the solar panel on a roof — lies the same fundamental structure: the p-n junction. It is where a piece of semiconductor material doped to have excess electrons meets a piece doped to have electron holes. This interface, a few nanometers thick, is the transistor's heart, the diode's core, and the photovoltaic cell's engine. Understanding it means understanding the electronic revolution.
Semiconductor Basics
A pure silicon crystal has four valence electrons per atom, all tied up in covalent bonds. At absolute zero, silicon is a perfect insulator — no free electrons to carry current. At room temperature, thermal energy kicks a few electrons out of their bonds, creating free electron-hole pairs: a freed electron that can move through the crystal, and the vacancy it left behind (the hole), which other electrons can flow into, effectively moving as a positive charge carrier.
Doping is the deliberate introduction of impurity atoms to dramatically increase the number of free carriers:
N-type: Dope silicon with phosphorus (5 valence electrons). The extra electron is not needed for bonding — it's loosely held and easily freed. Result: many more free electrons (negative carriers) than holes. The phosphorus atoms become positive donor ions fixed in the crystal lattice.
P-type: Dope silicon with boron (3 valence electrons). Boron can only form 3 bonds with silicon, leaving one bond site empty — a hole. Result: many more holes (positive carriers) than electrons. The boron atoms become negative acceptor ions fixed in the lattice.
Formation of the Junction
When p-type and n-type silicon are brought into contact, a remarkable sequence of events occurs at the interface:
Step 1 — Diffusion: Free electrons in the n-type region near the boundary see a high concentration of holes on the p-side. They diffuse across (as do holes in the opposite direction) — not because of any electric field, but simply because of the concentration gradient. This is the same random walk that causes any diffusing species to spread from regions of high concentration to low.

Step 2 — Charge buildup: As electrons leave the n-side, they leave behind positively charged donor ions (which can't move — they're fixed in the lattice). As holes leave the p-side, they leave behind negatively charged acceptor ions. A region of net charge builds up on both sides of the junction — positive on the n-side, negative on the p-side.
Step 3 — Built-in electric field: These fixed charges create an electric field pointing from the positive n-side to the negative p-side (i.e., from n to p). This field opposes further diffusion: it pushes electrons back to the n-side and holes back to the p-side.
Step 4 — Equilibrium: Diffusion continues until the electric field exactly balances the diffusion tendency. No net current flows. This creates the depletion region — a zone depleted of free carriers, with net fixed charge on both sides.
The electric potential difference across the depletion region is called the built-in potential :
where and are acceptor and donor concentrations, is the intrinsic carrier concentration, is Boltzmann's constant, is temperature, and is the electron charge. For silicon at room temperature with typical doping, is about 0.6–0.7 V.
Bias: Controlling the Junction
Applying an external voltage — biasing the junction — tips the equilibrium and allows us to control whether current flows.

Forward Bias
Connect the positive terminal to the p-side and negative terminal to the n-side. The external voltage opposes the built-in field, narrowing the depletion region. Once the applied voltage exceeds (about 0.6 V for silicon), the depletion zone nearly collapses and carriers flood across the junction. Current rises exponentially with voltage — described by the Shockley diode equation:
where is the tiny reverse saturation current and V at room temperature. This exponential behavior is why a diode has a very sharp "turn-on" voltage.
Reverse Bias
Connect positive to n-side and negative to p-side. The external voltage reinforces the built-in field, widening the depletion region. No free carriers can cross it — only the tiny thermally-generated current (typically nanoamps) flows. The junction blocks current.
At high enough reverse voltages, the junction breaks down: either through avalanche multiplication (carriers gain enough energy to knock out other carriers in a chain reaction) or quantum mechanical Zener tunneling (carriers tunnel through the depletion zone). These aren't always destructive — Zener diodes are specifically designed to operate in reverse breakdown for voltage regulation.
How It's Made
P-n junctions are created during semiconductor fabrication through doping processes:
Ion implantation: A beam of impurity ions (boron, phosphorus, arsenic) is accelerated to high energy and fired into the silicon wafer. The implantation depth is precisely controlled by the ion energy, and the dose by the beam current. After implantation, the wafer is annealed (heated) to repair crystal damage and activate the dopants.
Diffusion: The wafer is exposed to a vapor of the dopant species at high temperature (900–1200 °C). Dopant atoms diffuse into the surface. The depth and concentration profile depends on temperature and time — controlled to produce exactly the desired doping profile.
Modern CMOS fabrication uses ion implantation almost exclusively for its precision and repeatability.
Carrier Behavior and Band Diagrams
The p-n junction is most clearly understood in terms of the band diagram — a plot of energy vs. position across the device, showing the conduction band (where free electrons live) and the valence band (where holes live) relative to a reference energy level.
At equilibrium, the Fermi level — the energy at which the probability of electron occupation is 50% — must be constant throughout the device (no net current). This requires the bands to bend across the depletion region, creating the energy barrier that blocks carrier flow.
Forward bias lowers this barrier (making it easier for carriers to cross). Reverse bias raises it (impossible for thermally-excited carriers to cross).
Applications
The p-n junction is the foundation of:
| Device | Principle |
|---|---|
| Rectifier diode | Passes current in one direction only |
| Zener diode | Voltage regulation via controlled breakdown |
| LED | Electrons and holes recombine, emitting photons |
| Laser diode | Stimulated emission from a p-n junction |
| Solar cell | Photons create electron-hole pairs; junction separates them |
| Bipolar transistor | Two p-n junctions in series, with a thin base |
| MOSFET | Gate voltage controls a p-n junction channel |
| Photodiode | Detects light via photogenerated current |
The transistor as two junctions: A bipolar junction transistor (BJT) is simply two p-n junctions placed back-to-back (either p-n-p or n-p-n). The thin middle region — the base — is lightly doped, allowing carriers injected from one junction to diffuse to the other before recombining. A small current into the base controls a much larger current between emitter and collector: transistor action. This amplification principle, discovered at Bell Labs in 1947, launched the digital age.