PN Junction Diode I-V Simulator Back
Semiconductor Simulator

PN Junction Diode I-V Characteristic Simulator

Compute diode current using the Shockley equation $I = I_0(e^{V/nV_T}-1)$. Adjust material, ideality factor, and temperature to explore how semiconductors behave across operating conditions.

Material & Parameters
Reverse Sat. Current I₀ (A) 1e-12
10⁻¹⁵10⁻³
Ideality Factor n 1.0
Temperature T (K) 300 K
Summary
25.9
VT (mV)
0.617
Vf @ 1 mA (V)
3.42e-4
I @ 0.5 V (A)
Breakdown Est.

Shockley Equation

$$I = I_0\left(e^{V/nV_T}- 1\right)$$ $$V_T = \frac{kT}{q}\approx 25.9\,\text{mV at 300 K}$$

k = 1.381×10⁻²³ J/K, q = 1.602×10⁻¹⁹ C. n = 1: diffusion-dominated; n = 2: recombination-dominated.

I-V Characteristic (Log Scale)
Temperature Comparison (250K / 300K / 350K / 400K)

What is a PN Junction Diode?

🧑‍🎓
What exactly is a PN junction, and why does it only let current flow one way?
🎓
Basically, it's a sandwich of two semiconductor types: P-type (with extra "holes") and N-type (with extra electrons). Where they meet, electrons and holes recombine, creating a "depletion region" that acts like a built-in barrier. To get current flowing, you need to apply a forward voltage to lower this barrier. Try moving the voltage slider in the simulator above to see how the current suddenly shoots up after a certain point.
🧑‍🎓
Wait, really? So the curve isn't perfectly sharp? I see a parameter called the "Ideality Factor" (n). What's that for?
🎓
Great observation! In a perfect, textbook diode, the turn-on is described by a simple exponential. In practice, real diodes have imperfections. The ideality factor, `n`, accounts for this. If `n=1`, current is dominated by pure diffusion of charges. If `n=2`, it means recombination in the depletion region is significant. Slide the "Ideality Factor" control between 1 and 2 to see how it smears out the knee of the curve.
🧑‍🎓
Okay, and what about temperature? I see it's set to 300K. What happens if the diode gets hot?
🎓
Temperature is huge! It affects two key things: the thermal voltage $V_T$ and the reverse saturation current $I_0$. As you increase the temperature with the slider, you'll see the curve shift left—the diode turns on at a lower voltage. This is critical for circuit design because a hot diode can behave very differently from a cold one.

Physical Model & Key Equations

The core model for an ideal PN junction diode's current-voltage relationship is given by the Shockley diode equation:

$$I = I_0\left(e^{V/(nV_T)}- 1\right)$$

I is the diode current (A). V is the voltage across the diode (V). I₀ is the reverse saturation current, a tiny constant dependent on the material. n is the ideality factor (1 to 2). V_T is the thermal voltage.

The thermal voltage is not a fixed number; it's set by the absolute temperature and fundamental constants:

$$V_T = \frac{kT}{q}$$

k is Boltzmann's constant (1.381×10⁻²³ J/K). T is the absolute temperature in Kelvin (K). q is the elementary charge (1.602×10⁻¹⁹ C). At room temperature (T=300K), $V_T \approx 25.9$ mV. This equation shows why temperature is a key control in the simulator.

Real-World Applications

Rectifiers in Power Supplies: The one-way current flow is used to convert alternating current (AC) from your wall outlet into direct current (DC) needed by electronics. The sharpness of the I-V curve determines how efficiently this conversion happens.

Voltage Clamping & Protection: Diodes can be used to limit voltage spikes. For instance, a Zener diode (a special type) uses the reverse breakdown region—which you can simulate by extending the voltage to negative values—to provide a stable reference voltage or protect sensitive circuits.

Temperature Sensing: Since the forward voltage drop has a known, predictable dependence on temperature (as you explored with the T slider), diodes are often used as inexpensive and accurate temperature sensors in integrated circuits.

Solar Cells & Photodiodes: A PN junction is the heart of a solar cell. When light hits it, it generates a current. This simulator shows the "dark" characteristic; under light, the entire I-V curve shifts down, allowing power to be extracted from the device.

Common Misconceptions and Points of Caution

There are several important points to keep in mind when using this simulator, especially from a practical design perspective. First, the misconception that "the forward voltage Vf is always 0.7V (for silicon)". This is a significant misunderstanding. The 0.7V in a datasheet is merely a "typical value" at a specific current (e.g., 10mA or 100mA). Try switching the current scale in the simulator from logarithmic to linear and compare the voltage drop at 1mA and 100mA. Even when the current increases tenfold, the voltage only increases by about 60mV (for n=1 at room temperature), but the absolute value changes substantially. In low-current circuits, it can be around 0.4V, and in high-current rectification, exceeding 1V is not uncommon.

Next, the handling of the reverse saturation current I₀. While it's a fixed value in the simulator, actual components have significant manufacturing variations, and datasheets often only list a "maximum" value. For example, a silicon diode's I₀ might be listed as 1nA (typical) at 25°C, but the maximum could be 50nA, and at high temperatures, this value can swell by a factor of 1000 or more. In high-impedance circuits where reverse leakage current must be strictly considered, this variation can make or break your design.

Finally, it's crucial to understand the "applicability limits" of the Shockley diode equation. While this equation explains mid-current region behavior very well, real diodes have many effects not included in this model. In the high forward current region, the voltage drop due to internal semiconductor resistance (bulk resistance) becomes non-negligible, making the graph slope steeper. Conversely, at very low forward voltages or in the reverse region, effects like surface leakage and recombination become dominant, causing simulation and actual measurements to diverge. It's essential to use it strictly as a "beautiful first-order approximation model" and move to higher-order models (like SPICE models) as needed.

Related Engineering Fields

Understanding this I-V characteristic is directly linked to analyzing any semiconductor device based on a PN junction. The most direct example is the Bipolar Junction Transistor (BJT). The base-emitter junction of a BJT is precisely a PN junction diode, and its characteristics form the core of the amplification operation. The phenomenon in the simulator where the graph shifts left as temperature increases is one cause of the operating point shifting with temperature ("thermal runaway") in BJT circuits, a constant consideration in actual amplifier design.

Furthermore, the operating principle of solar cells (photovoltaic devices) can be understood by extending this equation. A solar cell can be viewed as a diode operating in "power generation mode," where carriers generated by light drive the PN junction. Its output characteristic is modeled by shifting the dark I-V curve (exactly the graph from this simulator) downward. The reverse saturation current I₀ learned here is deeply related to a solar cell performance metric called the "diode quality factor."

Moreover, even in CMOS integrated circuits, the core of modern microelectronics, the behavior of parasitic diodes is critical. For instance, PN junctions are involved in structures like IC input protection circuits and parasitic thyristor structures that cause latch-up. To predict and eliminate these unwanted phenomena via simulation, understanding the underlying diode characteristics is indispensable.

For Further Learning

Once you've appreciated the elegance of the Shockley diode equation, I strongly recommend following its derivation process. Open a textbook and follow the keywords "minority carrier continuity equation" and the "Boltzmann relation". Combining these reveals why the current takes an exponential form and provides an intuitive physical understanding (e.g., how a voltage several times the thermal voltage V_T causes an exponential change in carrier concentration at the boundary). Mathematically, this involves solving a boundary value problem for differential equations.

A practical next step is to experiment with actual diode models in a circuit simulator like SPICE. The SPICE diode model is based on the Shockley equation but adds numerous parameters like bulk resistance Rs and junction capacitance Cj0 to compensate for the aforementioned "applicability limits." For example, by adjusting parameters like "N" (emission coefficient), "Is" (saturation current), and "Rs" in a .model statement and running transient analysis, you can experience firsthand how switching recovery characteristics and voltage overshoot change, connecting theory with practice.

Finally, take a step beyond materials like "silicon" and "germanium" and look into the world of compound semiconductors (like Gallium Arsenide GaAs and Silicon Carbide SiC). The bandgap of SiC is about three times larger than silicon's, enabling high-temperature, high-voltage operation essential for applications like electric vehicle inverters. Consider how changing the bandgap affects I₀ and forward voltage, and consequently impacts power loss and heat generation. The fundamental concepts you learn with this tool form a solid foundation for understanding such cutting-edge power devices.