Understanding Real and Ideal Diodes

A diode is a two-terminal semiconductor device formed by joining p-type and n-type silicon crystals. The resulting p-n junction conducts readily in the forward direction but blocks current in reverse, making it essential for rectification, protection, and signal control.

An ideal diode switches on instantly once forward voltage exceeds a threshold and permits zero reverse current. Real diodes deviate from this simplicity due to:

  • Exponential forward conduction: Current rises gradually, not abruptly, as voltage increases.
  • Leakage current: A small reverse current flows even when reverse biased.
  • Voltage drop: Forward bias requires 0.6–0.7 V for silicon to reach useful current levels.
  • Temperature sensitivity: All parameters shift with heat, altering performance unpredictably.

The Shockley equation captures these real-world effects through measurable material constants, allowing circuit designers to forecast diode behaviour across operating ranges without building prototypes.

The Shockley Diode Equation

The relationship between forward current I and voltage drop VD across a diode is governed by the Shockley equation. This exponential model accounts for diffusion and recombination within the depletion region:

I = IS × (eVD ÷ (n × VT) − 1)

  • I — Forward current flowing through the diode (amperes).
  • I<sub>S</sub> — Saturation current; the leakage current at reverse bias, typically 10⁻¹² to 10⁻¹⁵ A for silicon diodes.
  • V<sub>D</sub> — Applied voltage across the diode (volts); positive for forward bias, negative for reverse bias.
  • n — Emission coefficient or ideality factor, ranging from 1 (perfect junction) to 2 (degraded junction); accounts for non-ideal recombination.
  • V<sub>T</sub> — Thermal voltage = kT/q, approximately 26 mV at room temperature (25 °C).

Using the Calculator for Circuit Design

The Shockley calculator accepts any four of the five parameters and solves for the fifth. Common workflows include:

  • Finding operating point: If you know the diode model (IS, n) and apply a voltage, compute the resulting current to check if it falls within rated limits.
  • Reverse-engineering device specs: Measure current and voltage in the lab, then solve for saturation current or emission coefficient to characterize an unknown sample.
  • Temperature effects: Recalculate IS and VT at different temperatures to see how sensitivity shifts.
  • Cascading with other tools: Combine results with Ohm's law (V = IR) to find series resistance, or with power equations (P = VI) to estimate heat dissipation in rectifier stacks.

The exponential nature of the equation means small changes in voltage produce enormous current swings once forward bias approaches 0.7 V, which is why precise control matters in precision circuits.

Common Pitfalls and Design Notes

Avoid these mistakes when interpreting diode behaviour from the Shockley model.

  1. Saturation current varies with temperature — I<sub>S</sub> roughly doubles every 5 °C rise. If your datasheet lists I<sub>S</sub> at 25 °C, recalculate it for your actual operating temperature using an exponential correction, or the model will seriously underestimate reverse leakage in hot environments.
  2. Emission coefficient hides junction quality — Real diodes rarely sit exactly at n = 1. Silicon rectifiers typically use n = 1.2–1.4; Schottky diodes often n ≈ 1.05. Tweaking n lets you fit measured data, but n > 2 signals a faulty or damaged junction and should trigger replacement.
  3. The equation breaks down at extreme reverse voltages — Below about −5 V, the Shockley model assumes constant I<sub>S</sub>, but true reverse current grows rapidly due to avalanche and Zener effects. For reverse-bias analysis, consult breakdown voltage ratings and use dedicated models in SPICE.
  4. Thermal voltage is not constant — V<sub>T</sub> = 26 mV is only exact at 25 °C. At 0 °C it drops to 23 mV; at 100 °C it climbs to 35 mV. In precision circuits, compute V<sub>T</sub> = kT/q directly for your actual junction temperature, not a nominal value.

Practical Applications and Examples

Rectifier design: A 1N4007 silicon diode has IS ≈ 70 nA, n = 1, and is used in a 60 Hz bridge rectifier. At 0.7 V forward bias, the Shockley equation predicts conduction; at −600 V reverse spike (before snubbing), IS dominates, yielding only microamps of leakage.

LED biasing: An infrared LED may show n ≈ 1.5 due to junction degradation. If you measure 20 mA at 1.1 V, the calculator lets you extract its saturation current, then predict behaviour at 1.2 V or different temperatures without trial and error.

Precision current source: The exponential term makes a forward-biased diode highly sensitive to voltage. This sensitivity is exploited in Howland and transimpedance circuits where millivolt changes trigger microamp shifts, enabling accurate logarithmic conversion of sensor signals.

Frequently Asked Questions

What is the difference between ideal and real diodes according to the Shockley equation?

An ideal diode has an emission coefficient n = 1 and exhibits sharp on/off switching: zero conduction below the threshold voltage, then instant linear rise above it. Real diodes show gradual exponential conduction and carry leakage current even when reverse biased due to thermal generation in the depletion region. The Shockley equation unifies both cases; setting n = 1 recovers near-ideal behaviour, while n > 1 models manufacturing imperfections, surface defects, and non-uniform current distribution that degrade junction quality.

How does temperature affect diode current and voltage?

Temperature influences two critical parameters: saturation current I<sub>S</sub> and thermal voltage V<sub>T</sub>. Saturation current approximately doubles every 5 K, causing reverse leakage to grow exponentially in hot conditions. Thermal voltage V<sub>T</sub> = kT/q rises linearly with absolute temperature, increasing the 'softness' of the forward knee. Consequently, a diode conducts at a slightly lower voltage when cold and requires more voltage to reach the same current when hot. In precision circuits, always measure or correct for junction temperature, not ambient temperature.

When does the Shockley model fail, and what should I use instead?

The equation assumes the diode is not breaking down. It works well for forward bias (0 to 0.8 V for silicon) and modest reverse bias (−1 to −5 V). Beyond the breakdown voltage—whether Zener (sharp, intentional) or avalanche (gradual, destructive)—true current rises rapidly and the model underestimates danger. For extreme reverse voltages, consult the datasheet breakdown specifications or use SPICE subcircuits that include avalanche multiplication factors. Similarly, for high-frequency switching, parasitic capacitance and series resistance become dominant, requiring more complex equivalent circuits.

Can I use this calculator to determine diode parameters from experimental data?

Yes. If you measure voltage and current in the lab, input those two values plus any known parameter (like thermal voltage at 26 mV), and solve for the unknowns—typically I<sub>S</sub> and n. Taking measurements at multiple voltages and fitting the equation to your data is a standard characterization technique. Ensure noise is minimized: use a precision voltmeter across the diode and measure current with a calibrated meter or resistor drop, then average several readings to extract reliable parameters.

What is saturation current, and why is it so small?

Saturation current I<sub>S</sub> is the reverse leakage current flowing through the diode when reverse biased, caused by thermal generation of minority carriers in the depletion region. It is small (10⁻¹² to 10⁻¹⁵ A for silicon) because the depletion layer is depleted of mobile charge carriers; only thermally excited electron–hole pairs can cross it. As temperature rises, thermal energy increases this generation rate exponentially, which is why I<sub>S</sub> doubles every few degrees. At room temperature, this current is negligible, but at 150 °C or higher, it can become appreciable and degrade reverse-bias performance.

How do I account for series resistance in a real diode?

The basic Shockley equation assumes a lossless junction; true diodes have bulk resistance (typically 1–100 Ω) and contact resistance that cause additional voltage drop. For small currents, this effect is negligible, but at high forward current, the measured voltage exceeds the model prediction because of V<sub>drop</sub> = I × R<sub>series</sub>. To include this, add a resistance term: V<sub>measured</sub> = V<sub>Shockley</sub> + I × R<sub>s</sub>. Rearranging and solving iteratively, or plotting the load line with R<sub>s</sub>, reveals the true operating point. Datasheets often list series resistance; if not, extract it by comparing high-current measurements to the Shockley prediction.

More physics calculators (see all)