⚡ PN Junction Depletion Width Simulator

OBJECTIVE: Calculate Depletion Width Variation with Doping Concentration
▸ Junction Visualization
P-region (holes)
N-region (electrons)
Depletion region
Charge carriers
W vs Na (vary Na)
W vs Nd (vary Nd)
▸ Doping Parameters
1.00×10¹⁶ cm⁻³
10¹⁴cm⁻³10¹⁹
1.00×10¹⁶ cm⁻³
10¹⁴cm⁻³10¹⁹
0.00 V
−2V (Rev)00.6V (Fwd)
W total
—
Vbi
—
xp
—
xn
—
Physics Equations (Si, 300 K):

V_bi = (kT/q)·ln(Na·Nd / ni²)
Built-in potential

W = √(2ε(Na+Nd)(V_bi−V) / (q·Na·Nd))
Total depletion width

xp = W · Nd/(Na+Nd)
xn = W · Na/(Na+Nd)
P-side & N-side widths
Model Scope: Idealized 1D abrupt step-junction under the full-depletion approximation at 300 K; ignores bandgap narrowing, incomplete ionization, and high-injection effects.
▸ Concept Explanation & Key Observations

What is a Depletion Region?

When a P-type and N-type semiconductor are joined, electrons from the N-side diffuse to the P-side and recombine with holes. This leaves behind ionized donor (+) and acceptor (−) atoms near the junction, creating a region devoid of free carriers — the depletion region. The width of this region determines device behaviour.

Key Observations

  • Higher doping → narrower depletion width (W ∝ 1/√N)
  • Heavily doped side has a smaller depletion extent (charge balance)
  • Reverse bias increases W (wider depletion)
  • Forward bias decreases W (narrower depletion)
  • Vbi increases with higher doping (logarithmic)
  • Charge conservation: Na·xp = Nd·xn always holds

Material Constants (Silicon, 300 K)

Relative permittivity: εr = 11.7
ε = εr · ε0 = 1.036 × 10⁻¹² F/cm
Intrinsic carrier ni = 1.5 × 10¹⁰ cm⁻³
Charge q = 1.602 × 10⁻¹⁹ C
Thermal voltage kT/q = 0.02585 V

How to Use the Simulator

  • Drag Na and Nd sliders to change doping
  • Apply reverse bias (negative V) to widen the depletion region
  • Apply forward bias (positive V) to narrow it
  • Click Start to animate qualitative majority-carrier motion
  • Read the graph to see how W varies across 10¹⁴–10¹⁹ cm⁻³ doping