eduPhysics

p-n Junction Formation: Diffusion, Depletion Region & Barrier Potential (Class 12 NCERT)

EDUPHYSICS  ›  CLASS 12 PHYSICS  ›  SEMICONDUCTOR ELECTRONICS

By eduPhysics  •  17 November 2026  •  11 min read

p-n junction formation Class 12 NCERT guide by eduPhysics
p-n junction formation

Put a p-type and an n-type region side by side and something remarkable happens: without any battery, an electric field appears inside the crystal. That invisible field is what lets a diode block current in one direction, a solar cell produce voltage, and an LED glow. In this guide you will see exactly how a p-n junction forms, step by step, and why the depletion region and barrier potential appear. It builds on our guide to intrinsic and extrinsic semiconductors, so skim that first if n-type and p-type are new to you.

1. What Is a p-n Junction?

A p-n junction is the boundary between a p-type and an n-type region inside a single crystal of semiconductor. It is the basic building block of the junction diode, the LED, the photodiode, the solar cell and the transistor.

IMPORTANT NCERT POINT A p-n junction is not made by pressing a p-type piece against an n-type piece. Surface irregularities would break the continuity of the crystal and stop the carriers from crossing. In practice, a p-n junction is made by doping a single crystal, so that one part becomes p-type and the other n-type (for example by diffusing or implanting dopants).

2. Step 1: Before the Junction Forms

Imagine the p-type and n-type regions as two separate blocks.

before-junction-p-type-and-n-type.webp
Both regions are electrically neutral. The p-side is rich in holes; the n-side is rich in electrons.
  • p-side: many holes (majority carriers), few electrons (minority carriers), plus fixed negative acceptor ions.
  • n-side: many electrons (majority carriers), few holes (minority carriers), plus fixed positive donor ions.
  • Each region is electrically neutral, because the mobile charges are balanced by the fixed ions.

The moment the junction exists, there is a big difference in carrier concentration across it: lots of holes on the p-side and almost none on the n-side, and the reverse for electrons. This concentration gradient is the driving force for everything that follows.

3. Step 2: Diffusion and Recombination

Carriers always tend to move from where they are crowded to where they are scarce. This process is called diffusion.

carrier-diffusion-across-p-n-junction.webp
  • Holes diffuse from the p-side to the n-side.
  • Electrons diffuse from the n-side to the p-side.
  • Near the junction, an electron meets a hole and they recombine, so both disappear as free carriers.

This flow of carriers constitutes the diffusion current. Its direction, in terms of conventional current, is from the p-side to the n-side. Notice that both holes and electrons contribute to a current in the same conventional direction.

4. Step 3: The Depletion Region Appears

When an electron leaves the n-side, it leaves behind a positively charged donor ion, which is fixed in the crystal and cannot move. Likewise, when a hole leaves the p-side (that is, when an electron from the n-side fills it), a negatively charged acceptor ion is left uncompensated.

So a thin layer of immobile positive ions on the n-side and immobile negative ions on the p-side builds up on either side of the junction. This layer has almost no free carriers, and it is therefore called the depletion region. Its thickness is of the order of one-tenth of a micrometre (about 0.1 µm).

depletion-region-barrier-potential-equilibrium.webp
The immobile ions create an electric field E pointing from the n-side to the p-side.

The separated charges create an electric field that points from the n-side (positive ions) to the p-side (negative ions). This field pushes electrons back towards the n-side and holes back towards the p-side, so it opposes further diffusion.

5. Step 4: Drift Current and Equilibrium

The electric field in the depletion region does something useful: it sweeps minority carriers across the junction. Holes that wander from the n-side into the field are pushed to the p-side, and electrons from the p-side are pushed to the n-side. This movement due to the field is the drift current, and its conventional direction is from the n-side to the p-side, opposite to the diffusion current.

At first diffusion is strong and drift is weak. As more ions are uncovered, the depletion region widens, the field grows and drift increases while diffusion decreases. Eventually the two become equal and opposite

Diffusion current = Drift current   ⇒   Net current = 0

This is the equilibrium state of the p-n junction. The depletion region stops growing and its width stays fixed, as long as the temperature and the doping do not change.

6. Barrier Potential (V0): The Built-in Voltage

The electric field in the depletion region corresponds to a potential difference between the n-side (higher potential) and the p-side (lower potential). This is called the barrier potential or built-in potential, V0. A carrier needs at least this much energy to diffuse across the junction against the field.

barrier-potential-across-p-n-junction.webp
The potential rises across the depletion region by V0.
Material Typical barrier potential V0 Band gap
Silicon (Si) ≈ 0.7 V 1.1 eV
Germanium (Ge) ≈ 0.3 V 0.67 eV

The size of V0 depends on the doping concentrations (more doping gives a larger V0) and on the temperature (V0 decreases as temperature rises). Because the p-n junction as a whole is in equilibrium and has no external source, you cannot measure V0 with a voltmeter: the contact potentials at the metal leads exactly cancel it.

7. Diffusion Current vs Drift Current

* Diffusion current Drift current
Cause Concentration gradient of carriers Electric field in the depletion region
Carriers involved Majority carriers crossing the junction Minority carriers swept across the junction
Conventional direction p-side to n-side n-side to p-side
Effect on depletion region Widens it Narrows it
At equilibrium Equal in magnitude to drift current Equal in magnitude to diffusion current

8. p-n Junction Formation in 4 Lines (Quick Revision)

  • A concentration gradient exists between the p-side and the n-side.
  • Carriers diffuse across the junction and recombine, leaving fixed ions behind.
  • The fixed ions form the depletion region with a built-in electric field and barrier potential V0.
  • The field causes drift; at equilibrium diffusion = drift and the net current is zero.

WORKED EXAMPLE

The depletion region of a silicon p-n junction is 0.1 µm thick and the barrier potential is 0.7 V. Find the electric field in the depletion region.

Solution: E = V0/d = 0.7 V / (0.1 × 10−6 m) = 0.7 / 10−7 = 7 × 106 V/m. Such a large field is possible only because the depletion region is extremely thin.

9. Common Mistakes Students Make

  • Believing a p-n junction is made by joining two separate pieces. It is made within a single crystal.
  • Saying the depletion region has no charge. It has no mobile charges but it does contain fixed ions.
  • Getting the field direction wrong. It points from the n-side to the p-side.
  • Thinking diffusion goes on forever. It stops at equilibrium when drift balances it.
  • Believing V0 can be measured with a voltmeter, or that it is an external voltage. It is an internal potential difference.
  • Mixing the direction of electron flow with conventional current when comparing diffusion and drift currents.

MEMORY TRICK: Diffusion goes Down the gradient (majority carriers). Drift is Driven by the field (minority carriers). The depletion region is where the ions are left behind.

10. Frequently Asked Questions (FAQs)

1. What is a p-n junction?

A p-n junction is the interface between a p-type and an n-type region formed within a single semiconductor crystal. It is the basic structure of diodes, LEDs, solar cells and transistors.

2. How is a p-n junction formed?

A p-n junction is formed by doping a single crystal so that one region becomes p-type and the adjacent region n-type. Once the regions meet, carriers diffuse across, fixed ions build up, and a depletion region with a barrier potential forms until equilibrium is reached.

3. Why can’t we make a p-n junction by joining two pieces?

Surface irregularities in two separate pieces would break the continuity of the crystal lattice, so carriers could not cross the boundary smoothly. A junction must be made inside one crystal.

4. What is the depletion region?

It is the thin layer on both sides of the junction that has been emptied of mobile charge carriers. It contains only fixed positive donor ions on the n-side and fixed negative acceptor ions on the p-side.

5. Why is it called the depletion region?

Because the mobile charge carriers (electrons and holes) have been depleted, that is, removed, from this region by diffusion and recombination.

6. What is barrier potential?

It is the potential difference that develops across the depletion region because of the fixed ions. It opposes the diffusion of majority carriers and is typically about 0.7 V for silicon and 0.3 V for germanium.

7. Why does diffusion stop at some point?

As the depletion region grows, its electric field increases and opposes further diffusion while increasing drift. When drift current equals diffusion current, the net current is zero and the junction is in equilibrium.

8. What is the direction of the electric field in the depletion region?

The field points from the n-side (positive donor ions) to the p-side (negative acceptor ions).

9. What is the difference between diffusion current and drift current?

Diffusion current is due to a concentration gradient and involves majority carriers crossing the junction (conventional direction p to n). Drift current is due to the electric field and involves minority carriers (conventional direction n to p).

10. Is the p-n junction charged?

No. The whole junction is electrically neutral. The positive charge of the donor ions on the n-side exactly balances the negative charge of the acceptor ions on the p-side.

11. Is the depletion region equally wide on both sides?

Only if the doping is equal. The depletion region extends further into the lightly doped side, because more ions must be uncovered there to supply the same amount of charge.

12. Can the barrier potential be measured with a voltmeter?

No. It is an internal potential difference. When metal leads are connected, contact potentials at the metal-semiconductor junctions cancel it, so a voltmeter shows zero across an unbiased junction.

FOUND THIS HELPFUL? Next, learn how the junction behaves under forward and reverse bias in our p-n Junction Diode notes on eduPhysics, and share this guide with your study group.

Classification of Metals, Conductors and Semiconductors: Conductivity and Energy Band Theory

Intrinsic and Extrinsic Semiconductors: n-Type & p-Type Explained (Class 12 NCERT)


Discover more from eduPhysics

Subscribe to get the latest posts sent to your email.

Discover more from eduPhysics

Subscribe now to keep reading and get access to the full archive.

Continue reading