The p–n Junction
In the winter of 1940, an engineer at Bell Labs named Russell Ohl was testing rods of purified silicon as microwave (radar) detectors. One rod had a hairline crack running across it, and it behaved unlike any of the others. When Ohl connected it to a meter, it passed current sharply in one direction and blocked it in the other. Then he did something almost idle — he shone a flashlight on the crack. The needle jumped. A voltage had appeared out of nowhere, generated by light falling on a seam in a piece of grey metal. That crack was the first p–n junction anyone had knowingly held. On one side the silicon carried impurities that left it rich in free electrons; on the other, impurities that left it rich in holes. Where the two regions met, something remarkable happened on its own, with no battery attached: the crystal built its own internal electric field and its own voltage step — a potential barrier — across a zone too thin to see. This article is about that self-assembling junction, the single most important interface in all of electronics. Every diode, LED, solar cell, and transistor in the phone in your pocket is built from junctions exactly like Ohl's. We will follow, with nothing beyond school algebra, how bringing p-type and n-type silicon together forces electrons and holes to move, why that motion carves out a carrier-free depletion region of frozen ionic charge, why a barrier of about (silicon) or (germanium) grows across it, and why the whole thing settles into a tense, currentless equilibrium — the launch pad for the diode in the next article.
- A p–n junction is one crystal, p-type on one side and n-type on the other. It is grown or diffused as a single piece — you cannot make one by pressing two doped chips together.
- Majority carriers diffuse across the join. Electrons pour from the n-side into the p-side and holes pour the other way, driven purely by the enormous difference in their concentrations.
- They leave behind fixed, charged ions. Departing electrons expose positive donor ions on the n-side; departing holes expose negative acceptor ions on the p-side. This carrier-free zone is the depletion region.
- The exposed ions build an electric field and a potential barrier. The field points from the n-side to the p-side and opposes further diffusion; the built-in barrier potential is about for silicon and for germanium.
- Equilibrium is a standoff, not a stillness. The barrier grows until the diffusion of majority carriers is exactly cancelled by the drift of minority carriers, so the net current is zero — with no external supply attached.
- The depletion region is wider on the lightly-doped side, because charge must balance: .
- Key idea: when p-type and n-type silicon meet in one crystal, majority carriers diffuse across and leave a depletion region of immobile ions whose field builds a barrier potential (about 0.7 V for Si, 0.3 V for Ge) that grows until diffusion and drift exactly cancel and the net current is zero.
Joining p-type and n-type silicon in a single crystal lets majority carriers diffuse across the boundary and recombine, leaving behind a depletion region of fixed donor and acceptor ions whose electric field raises a built-in potential barrier — about in silicon, in germanium — that keeps rising until the majority-carrier diffusion current is exactly balanced by the minority-carrier drift current, so at equilibrium, with no battery attached, the net current across the junction is zero.
Where this lives today
The p–n junction is the atom of modern electronics: nothing in a chip works without it. Every rectifier diode in a phone charger, every LED in a screen, every photodiode in a camera sensor, and every one of the tens of billions of transistors in a processor is built from junctions like Ohl's — usually many per device. The same barrier that blocks current in the dark is what makes a solar cell work: sunlight absorbed in the depletion region creates electron–hole pairs, the built-in field sweeps them apart (electrons to the n-side, holes to the p-side), and that separated charge drives a current through an external circuit. Ohl's illuminated crack was the first glimpse of this, and today more than a terawatt of installed photovoltaics runs on exactly that physics. The next article takes this equilibrium junction, connects a battery, and watches the barrier bend: the diode.
The physical picture
Start with the two crystals from the previous article, held apart for a moment before we join them. The n-type silicon is peppered with pentavalent donor atoms; each has given up one electron to roam freely, so the n-side is crowded with mobile electrons (majority carriers) and has only a scattering of holes (minority carriers). Every donor that gave up its electron is now a fixed positive ion, locked into the crystal lattice — but the piece as a whole is electrically neutral, because those positive ions are exactly matched by the free electrons wandering among them. The p-type silicon is the mirror image: trivalent acceptor atoms have each captured an electron, creating a mobile hole and leaving behind a fixed negative ion, so the p-side is crowded with holes and, again, is neutral overall. Now fuse them into one continuous crystal. At the boundary the n-side has perhaps a hundred million times more electrons than the p-side, and the p-side just as lopsided an excess of holes. Nature abhors such a gradient. Electrons stampede from the electron-rich n-side into the electron-poor p-side, and holes stampede the opposite way — not because anything pushes them, but by sheer statistical diffusion, the same reason a drop of ink spreads through still water. As an electron crosses into the p-side it meets a sea of holes and quickly recombines with one, both vanishing as free carriers.
Every crossing carrier strips one more mobile charge from the boundary and empties out a sliver of crystal. On the n-side, each electron that leaves uncovers the fixed positive donor ion it used to neutralise; on the p-side, each hole that leaves (or each arriving electron that fills it) uncovers a fixed negative acceptor ion. Very quickly a thin zone straddling the junction is swept almost completely clear of mobile carriers, leaving only these locked-in charged ions: positive on the n-side, negative on the p-side. This carrier-free sleeve of exposed ionic charge is the depletion region — also called the space-charge region — and it is where all the action of a junction happens. It is typically astonishingly thin, of order half a micrometre to a micrometre, thinner than a wavelength of visible light.
The depletion region: how the barrier builds
The depletion region is not neutral. It is a slab of frozen charge — negative acceptor ions on the p-side, positive donor ions on the n-side — and any separated charge sets up an electric field. That field points from the positive donor ions on the n-side toward the negative acceptor ions on the p-side: in short, from the n-side to the p-side, across the junction. This is the crucial self-built field. Notice its direction is exactly wrong for the diffusing carriers: it pushes electrons back toward the n-side and holes back toward the p-side, opposing the very diffusion that created it. So the junction throttles itself. The first electrons cross easily, but each adds to the exposed ionic charge, strengthens the retarding field, and makes it harder for the next to follow. Diffusion does not stop instantly — it slows, chokes, and finally halts when the field turns back exactly as many carriers as diffusion sends forward. The depletion region stops growing and the junction sits in equilibrium. One clean statement governs the geometry, and it needs only the conservation of charge. The crystal was neutral before we joined it and neutral after, so the depletion region as a whole carries zero net charge: the total negative acceptor charge exposed on the p-side must equal the total positive donor charge on the n-side. If the depletion layer reaches into the p-side (doped acceptors per cubic metre) and into the n-side (doped donors per cubic metre), then across the same junction area those charges balance:
where: and are the acceptor and donor concentrations (per cubic metre), and , are how far the depletion region penetrates each side. The physical reading is immediate and often tested: the depletion region eats further into the lightly-doped side. If one side is doped ten times more heavily, it needs to expose ten times fewer ions over the same width, so the depletion layer barely dents it and reaches ten times deeper into the lightly-doped partner. A heavily-doped p⁺ region joined to a lightly-doped n region has almost all of its depletion width sitting on the n-side.
The barrier potential, and why it is 0.7 V or 0.3 V
An electric field across a gap means a potential difference across that gap — just as the field between the plates of a capacitor implies a voltage between them. Because the field points from n to p, the n-side sits at a higher potential than the p-side. This built-in voltage step is the barrier potential (or built-in potential) . An electron trying to diffuse from the n-side to the p-side must climb this hill; a hole trying to go the other way faces the same barrier. It is called a barrier precisely because it is the energy price a majority carrier must pay to cross, and only the fastest, most energetic carriers in the thermal spread can pay it. How big is ? It is fixed by the doping and by the intrinsic carrier density , through a result of equilibrium statistics:
where: is the thermal voltage, about at room temperature (), is the product of the two doping levels, and is the intrinsic carrier concentration from the intrinsic-semiconductor article ( for silicon, for germanium). This formula is quoted, not derived here: obtaining it requires balancing the drift and diffusion currents with Boltzmann statistics, which uses calculus and lies beyond this article — we simply state the standard result and read it. The physical reading is what matters for exams. First, the barrier grows with doping (more ions, bigger field) but only logarithmically, so it is remarkably insensitive — doping ten times harder adds only a few tens of millivolts. Second, and this is the punchline, the barrier is larger when is smaller. Silicon's tiny gives it a bigger barrier () than germanium's much larger () — and is small precisely because silicon's band gap is wider. So the two anchor numbers you must remember, for silicon and for germanium, trace all the way back to the forbidden gap of the first article.
Diffusion versus drift: the currentless equilibrium
It is tempting to picture the finished junction as dead — diffusion halted, nothing moving. The truth is subtler and is a favourite of examiners. Two opposing currents flow across the junction at all times, and equilibrium means they cancel, not that they cease. The first is the diffusion current: the majority carriers (electrons from the n-side, holes from the p-side) that are energetic enough to climb the barrier and cross. It is a majority-carrier current, and the taller the barrier, the smaller it gets. The second is the drift current: the junction field sweeps any minority carrier that wanders into the depletion region straight down the hill — a stray electron on the p-side is flung into the n-side, a stray hole on the n-side is flung into the p-side. It is a minority-carrier current, and because minority carriers are scarce it is small and roughly fixed. Equilibrium is the barrier height at which these two exactly balance:
where: is the majority-carrier flow over the barrier and is the minority-carrier flow down the field. The physical reading is the seed of the entire diode: the barrier self-adjusts to whatever height makes these equal. If you now lower the barrier with an external battery (forward bias), the sensitive diffusion current surges while the drift current barely notices — and the junction conducts. Raise the barrier (reverse bias) and diffusion is choked off, leaving only the tiny drift current — and the junction blocks. That asymmetry is rectification, and it is the whole story of the next article. For now, the essential fact is that with no battery attached the two currents are equal and opposite, so a p–n junction in isolation carries no net current and delivers no power — it is not a battery.
The goal is to show, from charge conservation alone, that the depletion region penetrates farther into whichever side is doped more lightly, and to put a number on it for a realistic asymmetric junction. We use only the fact that the depletion region carries no net charge, which forces the exposed acceptor charge on the p-side to equal the exposed donor charge on the n-side — no calculus, no field integrals, just balanced bookkeeping over the same junction cross-section.
Step 1. Count the exposed charge on each side. Over a junction of area , the p-side of the depletion region is a slab of thickness containing acceptor ions at density , so it holds charge of magnitude . The n-side slab of thickness holds of donor charge.
Step 2. Impose neutrality of the depletion region as a whole. Setting the two magnitudes equal and cancelling the common gives , which rearranges to the width ratio
The lightly-doped side (smaller ) gets the larger width — the depletion region reaches deeper where there are fewer ions to expose.
Step 3. Put in numbers. Take a p⁺–n junction with and , and suppose the total depletion width is . Then , so , giving and .
Step 4. Read the result. Ninety per cent of the depletion region — and therefore almost all of the voltage drop and the field — sits in the lightly-doped n-side. This is why real diodes and transistors are built with one heavily-doped side: it confines the depletion region, and hence the "action," to the lightly-doped partner. Verified: ratio , and , from — recomputed in verify_hs2-pn-junction.py.
Go deeper · Derivation B · 1 minRecovering the 0.7 V and 0.3 V barriers from the doping
The goal is to show that the quoted built-in-potential formula actually delivers the anchor numbers — about for a silicon junction and about for germanium — and to see why the two differ. We take equation (2) as given (it comes from equilibrium statistics, beyond this article) and do only arithmetic with logarithms, which is squarely school algebra.
Step 1. Fix the thermal voltage. At the thermal energy is , so the thermal voltage is . Use the same doping on both sides for a fair comparison: .
Step 2. Silicon, with . The argument of the logarithm is , whose natural log is . Hence — the familiar silicon figure of about .
Step 3. Germanium, with the same doping but . Now , with . Hence — the germanium figure of about .
Step 4. Read the difference. The doping was identical; only changed. Germanium's much larger intrinsic density (a consequence of its smaller band gap) shrinks the logarithm and so shrinks the barrier. The gap of Chapter M4's first article thus reappears here as the -versus- split that will set the diode's knee voltage in the next. Verified: gives (Si) and (Ge); gives and — recomputed in verify_hs2-pn-junction.py.
Limiting cases
| case | result | meaning |
|---|---|---|
| no external battery | equilibrium: diffusion current exactly cancels drift current | |
| one side doped much more heavily | depletion region sits almost entirely in the lightly-doped side | from ; the p⁺–n design |
| silicon vs germanium, equal doping | vs | larger (smaller gap) gives a smaller barrier |
| doping raised tenfold | barrier rises by only a few tens of mV | grows only as |
| temperature raised | barrier falls | climbs fast with , shrinking the logarithm |
| forward bias (barrier lowered) | diffusion current surges, junction conducts | the next article: the diode turns on above the knee |
| reverse bias (barrier raised) | only the tiny drift current flows | the junction blocks — rectification |
Worked examples
Board level — the built-in field and which way it points (CBSE and ICSE pattern)
A silicon p–n junction in equilibrium has a barrier potential across a depletion region of total width . Estimate the average electric field in the depletion region, state its direction, and say what happens to a stray (minority) electron that drifts to the p-side edge of this region.
Step 1. The average field is the potential drop divided by the distance over which it falls: . The peak field at the metallurgical junction is roughly twice this (the field profile is triangular), of order — enormous, over a submicron gap.
Step 2. Direction: the field points from the positive donor ions on the n-side toward the negative acceptor ions on the p-side, i.e. from the n-side to the p-side.
Step 3. A stray electron reaching the p-side edge of the depletion region feels this field. Force on an electron is opposite to the field, so it is pushed from the p-side toward the n-side — the field sweeps it "downhill" back into the n-side. This is exactly the minority-carrier drift current, and it is what balances the majority-carrier diffusion current at equilibrium. Answer: , directed n→p, sweeping the stray electron into the n-side.
Competitive level — sharing the depletion width in an asymmetric junction (JEE Main pattern)
A silicon junction has on the p-side and on the n-side. The total depletion width is . Find how far the depletion region extends into each side.
Step 1. Charge balance fixes the ratio: . The depletion region reaches nine times farther into the lightly-doped n-side.
Step 2. Impose the total width: with gives , so and .
Step 3. Interpret: about of the depletion region lies in the n-side. The heavily-doped p⁺ side is barely depleted at all. In a real device this is deliberate — you dope one side hard to park the junction's field and voltage drop in the other, lighter side. Answer: , . Timing note: under a minute. The only physics is ; everything after is the ratio trick . Read off the ratio by inspection, then divide by — no need to write the charges or the area, which cancel.
Enrichment level — how little the barrier moves (beyond the standard board syllabus)
For the silicon junction of derivation 2, with . (a) By how much does change if the doping on both sides is doubled? (b) Qualitatively, what does raising the temperature do to ?
Step 1. From , doubling both and multiplies the argument by , so increases by , that is, about — a rise of only for a fourfold jump in doping.
Step 2. This is the logarithm at work: the barrier is almost indifferent to doping. Practical junctions therefore all cluster near the same (Si) whatever their exact doping — which is why "" is quoted as a universal silicon number.
Step 3. Temperature: rises steeply with (thermal generation of pairs), so grows, the logarithm's argument shrinks, and falls. Real silicon junctions lose roughly of barrier per degree of warming. Answer: (a) rises by about ; (b) falls as temperature rises. Timing note: seconds, if you spot that only the change matters. A ratio change of the argument turns into an additive change of — you never need to recompute the whole logarithm, just .
Exam traps
Calling the depletion region "empty" or "chargeless." It has no mobile carriers, but it is full of fixed ionised donor and acceptor atoms, and that ionic charge is the entire source of the field and barrier. On CBSE, ICSE, NEET and JEE this distinction is worth the mark.
Treating the built-in as a usable EMF. You cannot read the barrier on a voltmeter or draw current from it — it is an equilibrium potential that vanishes around any external loop. A junction becomes a source only when light hits it (photovoltaic) or a battery biases it.
Confusing the barrier potential with the band gap. The silicon barrier () and the silicon band gap () are different quantities that merely happen to be numerically close-ish. The barrier depends on doping and temperature through equation (2); the gap is a fixed property of the crystal.
Getting diffusion and drift the wrong way round. Diffusion current is majority carriers climbing over the barrier; drift current is minority carriers swept down the field. They flow in opposite senses and cancel at equilibrium. Mislabelling which is which is a classic NEET/JEE slip.
Saying the depletion region is symmetric. Only if the doping is symmetric. In general it is wider on the lightly-doped side, from . Many problems hinge on exactly this.
Board scope. The p–n junction — depletion region, barrier potential, diffusion versus drift — is core on CBSE (Ch. 14), ICSE/ISC, JEE Main, JEE Advanced, NEET, and A-Level 9702. The depletion-width sharing (, pure charge balance) is a defensible JEE-Main-flavoured extension; the quantitative built-in-potential formula (equation 2) is advanced-prep enrichment, above the standard JEE/NEET syllabus — a student is never asked to compute the barrier from this log formula. CBSE, NEET and JEE expect the mechanism and the values qualitatively, not a log calculation. Note that AP Physics 2, IB Physics, and IGCSE do not carry semiconductor junction physics at all — do not cite them for this topic.
Origins · 1 minRussell Ohl and how this was discovered
Russell Shoemaker Ohl was an American electrochemist and engineer at Bell Telephone Laboratories whose obsessive work on purifying silicon led, almost by accident, to the p–n junction. In 1939–40, testing silicon rods as microwave detectors, he found one with a hairline crack that behaved unlike the rest: it rectified current sharply, and when he shone a lamp on the crack the voltage across it jumped. The crack, he realised, separated two regions of silicon carrying different accidental impurities — one rich in electrons, one in holes — meeting at a junction with a built-in field. Ohl coined the labels "n-type" (negative carriers) and "p-type" (positive carriers) that the whole field still uses. His cracked rod was at once the first known silicon p–n junction and the direct ancestor of the silicon solar cell, and it set the stage for the transistor seven years later.
Going further
Texts. NCERT Physics Class 12, Chapter 14 ("Semiconductor Electronics"), the p–n junction section · H. C. Verma, Concepts of Physics Vol. 2, "Semiconductors and Semiconductor Devices" · Sze & Ng, Physics of Semiconductor Devices, for the depletion approximation and built-in potential done properly · Neamen, Semiconductor Physics and Devices, Ch. 7.
Provenance. Anchor values from LANE_SPEC: barrier (Si), (Ge); , ; thermal voltage at . Recompute list: charge balance and ratio ; , from ; built-in potential giving and for Si, and for Ge at ; doubling doping raises by ; average field ; barrier difference cross-check .
Prerequisites. Extrinsic Semiconductors & Doping — where n-type, p-type, donors, acceptors, majority and minority carriers, and the mass-action law are built; this article simply brings those two doped crystals into contact. Leads to. The Junction Diode and its I–V Curve, which biases this equilibrium junction with a battery and reads off the one-way current. For the full treatment of the depletion width and built-in potential — the drift–diffusion equations and the depletion approximation, both requiring calculus — the university seam on semiconductor device physics is the place to go deeper (enrichment only, never needed for the exams above).
If electrons and holes keep diffusing, why doesn't the whole crystal eventually neutralise?
Because diffusion builds the very barrier that stops it. Each carrier that crosses exposes one more fixed ion, strengthens the retarding field, and makes the next crossing harder. Diffusion does not run to completion — it slows and halts when the barrier is just tall enough that the majority carriers climbing over it are exactly matched by minority carriers drifting back down. The two sides never fully mix; only a thin depletion layer, well under a micrometre, is ever swept clear. The bulk of each region stays neutral and full of its majority carriers, waiting for a battery or a photon to disturb the standoff.
Is the depletion region really empty?
It is empty of mobile carriers — free electrons and free holes have been swept out or have recombined — but it is emphatically not empty of charge. It is filled with the fixed, ionised dopant atoms: negative acceptor ions on the p-side, positive donor ions on the n-side, locked into the crystal lattice and unable to move. That stationary "space charge" is the source of the junction's electric field and its barrier potential. This is why the region is also called the space-charge region. Calling it "empty" or "chargeless" is the single most common exam error on this topic.
Can I measure the 0.7 V barrier with a voltmeter across the diode?
No, and this surprises almost everyone. The barrier is an internal equilibrium potential that exists exactly where it must to hold the net current at zero. The moment you touch probes to the two ends, the metal-to-semiconductor contacts form their own small junction potentials, and around the complete loop all the built-in voltages sum to zero — so an ideal voltmeter reads nothing. You cannot draw current from the barrier either; a bare junction delivers no power. The shows itself only indirectly, as the forward "knee" voltage the diode needs before it conducts, which you will meet in the next article.
Why is the depletion layer wider on the lightly-doped side?
Charge conservation demands it. The depletion region as a whole is neutral, so the positive donor charge exposed on the n-side must equal the negative acceptor charge on the p-side: . If one side has fewer dopant atoms per cubic metre, the depletion region must reach farther into it to expose the same amount of charge. Heavily doped means densely packed ions, so a thin slab already supplies the needed charge; lightly doped means sparse ions, so the region must extend deep. A junction with a heavily-doped p⁺ side and a lightly-doped n side keeps almost its entire depletion width — and its field and voltage drop — on the n-side.
What is the difference between diffusion current and drift current here?
They are the two opposing flows across the junction. Diffusion current is majority carriers — electrons from the n-side, holes from the p-side — that have enough thermal energy to climb the barrier and cross; it depends steeply on the barrier height. Drift current is minority carriers — the few stray electrons on the p-side and stray holes on the n-side — that wander into the depletion region and are swept across by the built-in field, sliding "downhill." At equilibrium the two are equal and opposite, so nothing net flows. Biasing the junction changes the barrier and unbalances them: that imbalance is what a diode's current actually is.
Does the barrier voltage equal the band gap? They look similar for silicon.
No — their closeness is a coincidence. Silicon's band gap is a fixed material property, , set by the crystal. The barrier potential () depends on the doping and temperature, through . You can change the barrier by changing the doping or heating the sample; you cannot change the gap that way. The two are linked — a bigger gap means a smaller means a bigger barrier for the same doping — but they are distinct quantities, and equating them is a marked error.
Can I make a p–n junction by pressing a p-type chip against an n-type chip?
No. A working junction must be a single continuous crystal whose doping changes from acceptor-rich to donor-rich across one plane. Pressing two separate crystals together gives a messy contact riddled with surface states, oxide, and gaps — no clean depletion region forms and it will not rectify. Real junctions are made by growing the crystal while switching dopants, by diffusing dopants into a wafer, or by ion implantation. Ohl's original junction formed inside one silicon rod as it solidified, when impurities segregated to opposite sides of a crack — still one crystal, not two pressed together.
Does an unbiased junction do anything at all, or is it just sitting there?
In the dark with no battery it sits in equilibrium: two currents cancelling, no net flow, no power delivered. But it is a loaded spring. Shine light on it and absorbed photons create electron–hole pairs in the depletion region; the built-in field instantly sweeps them apart and a voltage appears across the terminals — the photovoltaic effect Ohl stumbled onto, and how solar cells work. Connect a battery and the barrier bends, letting the junction conduct one way and block the other. The bare junction looks inert only because its two internal currents are perfectly balanced.