Drift-Diffusion Current Calculator

Semiconductor Physics

Total current density Jn2.003 x 10^2 A/cm^2
Drift component q n mu E1.602 x 10^2 A/cm^2
Diffusion component q D dn/dx4.005 x 10^1 A/cm^2
Dominant mechanismDrift
How this was calculated
  1. Compute the drift component q n mu E = 1.602 x 10^2 A/cm^2 from the field 100 V/cm.
  2. Compute the diffusion component q D dn/dx = 4.005 x 10^1 A/cm^2 from the density gradient.
  3. Add the two transport terms of the drift-diffusion current equation.
  4. The total electron current density is 2.003 x 10^2 A/cm^2; the larger term shows whether drift or diffusion dominates.

Almost every semiconductor device model in existence is, at its core, this one equation evaluated carefully: the electron current density is the sum of a drift term, q n mu E, driven by the electric field, and a diffusion term, q D dn/dx, driven by the density gradient. This drift-diffusion current calculator evaluates both terms separately from the density, mobility, field, diffusion constant and gradient, then reports the total and tells you which mechanism dominates - the first diagnostic question in any device analysis.

The two terms fight or cooperate depending on the signs. Drift always pushes electrons against the field direction (their charge is negative, and the formula's sign convention here reports the conventional current). Diffusion pushes them from crowded regions toward empty ones, whatever the field says. In the worked example - n = 1 x 10^16 cm^-3, mu = 1000 cm^2/(V s), E = 100 V/cm, D = 25 cm^2/s and a gradient of 1 x 10^19 cm^-4 - drift contributes 1.602 x 10^2 A/cm^2 and diffusion 4.005 x 10^1 A/cm^2, for a total of 2.003 x 10^2 A/cm^2 with drift dominant.

The equation earns its keep at junctions, where the two terms very nearly cancel: in an equilibrium pn junction the enormous density gradient across the depletion region drives a diffusion current that the built-in field's drift current exactly balances, leaving zero net current from two individually large flows. Any simulator solving device physics is integrating this balance point by point; this calculator lets you evaluate a single point by hand and develop the intuition for what the simulator is doing.

Inputs are in the cm-based units of device physics. The gradient dn/dx deserves care: it is the change in density per centimetre, so a density falling from 1 x 10^17 to zero across 1 um is a gradient of -1 x 10^21 cm^-4. The examples span drift-dominated, opposed and diffusion-dominated cases so you can see all three regimes the equation produces.

Worked examples

Drift-led transport

(10000000000000000 cm^-3 · 1000 cm^2/(V s) · 100 V/cm · 25 cm^2/s · 10000000000000000000 cm^-4)

Total current density Jn2.003 x 10^2 A/cm^2
Drift component q n mu E1.602 x 10^2 A/cm^2
Diffusion component q D dn/dx4.005 x 10^1 A/cm^2
Dominant mechanismDrift

Opposed drift and diffusion

(10000000000000000 cm^-3 · 1000 cm^2/(V s) · 1000 V/cm · 25 cm^2/s · -100000000000000000000 cm^-4)

Total current density Jn1.202 x 10^3 A/cm^2
Drift component q n mu E1.602 x 10^3 A/cm^2
Diffusion component q D dn/dx-4.005 x 10^2 A/cm^2
Dominant mechanismDrift

Diffusion-led transport

(100000000000000000 cm^-3 · 500 cm^2/(V s) · 10 V/cm · 25 cm^2/s · 1e+21 cm^-4)

Total current density Jn4.086 x 10^3 A/cm^2
Drift component q n mu E8.011 x 10^1 A/cm^2
Diffusion component q D dn/dx4.005 x 10^3 A/cm^2
Dominant mechanismDiffusion

Two ways carriers move

Drift is the orderly part: the field accelerates each electron between collisions, and the accumulated bias of countless random walks is a net velocity mu E. The current it carries is simply charge per volume, q n, times that velocity. Diffusion is the statistical part: with no field at all, carriers still net-flow from where they are dense to where they are rare, because more of them random-walk out of a crowded region than into it. Fick's law quantifies that flow, and the charge converts it to the q D dn/dx term.

The Einstein relation D = mu kT/q binds the two coefficients: at 300 K, mu = 1000 cm^2/(V s) pairs with D of about 25.85 cm^2/s, and the calculator's default D = 25 respects that pairing. If you enter a mobility and diffusion constant that violate the relation wildly, the physics they describe is not a thermal-equilibrium material - occasionally intended (hot carriers, degenerate statistics modify the relation) but more often a units slip worth catching.

Worked example with both terms

Drift: q n mu E = 1.602 x 10^-19 x 1 x 10^16 x 1000 x 100 = 1.602 x 10^2 A/cm^2. Diffusion: q D dn/dx = 1.602 x 10^-19 x 25 x 1 x 10^19 = 4.005 x 10^1 A/cm^2. The total, 2.003 x 10^2 A/cm^2, is a substantial current density - power-device territory - from an unremarkable field and gradient, which is typical: the charge density q n of a doped semiconductor is large, so even modest drift velocities move serious current.

The second example sets the terms against each other: a field of 1000 V/cm drives drift of 1.602 x 10^3 A/cm^2 while a reversed gradient of -1 x 10^20 cm^-4 drives diffusion of -4.005 x 10^2 A/cm^2, leaving 1.202 x 10^3 A/cm^2 net. That partial cancellation is the everyday condition inside a forward-biased junction's quasi-neutral regions. The third example removes the field almost entirely (10 V/cm) with a steep gradient of 1 x 10^21 cm^-4 and the verdict flips: diffusion contributes 4.005 x 10^3 of the 4.086 x 10^3 A/cm^2 total.

Where each term dominates in real devices

Drift rules in resistors, in the channel of a MOSFET under bias, and across any region with a substantial field and gentle density variation. Diffusion rules in the base of a bipolar transistor - deliberately built with a near-zero field so injected carriers diffuse across - at the edges of depletion regions, and in the first instants after any disturbance, before fields rearrange. Solar cells split the difference: the absorber is quasi-neutral and diffusion-fed, the junction itself drift-swept.

The balance point is as important as either extreme. Set the total to zero and solve for the field, and you recover the built-in field of a graded doping profile: a semiconductor with a doping gradient carries an internal field even in equilibrium, a fact exploited in graded-base transistors and in the quasi-electric fields engineered into solar cell back-surface layers. The calculator makes the balance tangible: adjust E until the total crosses zero for your gradient and you have found that internal field.

Signs, units and the hole equation

Sign conventions cause most errors with this equation. The electron diffusion term carries a plus sign here because electron charge is negative and the conventional current of electrons diffusing toward lower density flows along the density decrease; the corresponding hole equation is Jp = q p mu_p E - q Dp dp/dx, with a minus on the diffusion term. Mixing the two is the classic homework disaster. This calculator evaluates the electron equation and labels it as such.

Units are the second trap: with n in cm^-3, mu in cm^2/(V s) and E in V/cm, the drift term lands in A/cm^2 directly. The gradient must be in cm^-4 - density per centimetre - which makes its raw values look extreme (10^19 to 10^21) until you remember a micrometre-scale transition multiplies any density by 10^4 per centimetre of slope. The examples are calibrated to realistic junction and base profiles so the magnitudes can be trusted as typical.

From one point to a device: what simulators add

A device simulator evaluates this equation, its hole counterpart, Poisson's equation and the continuity equations together on a mesh, iterating until the currents and fields are self-consistent everywhere. Nothing in that machinery changes the local physics you computed here - it enforces it everywhere at once, with boundary conditions at contacts and interfaces. When a simulation surprises you, probing a single point with this calculator, using the simulator's own local n, E and gradient, is the fastest way to see which term produced the surprise.

The known refinements - field-dependent mobility, degenerate Einstein relations, bandgap narrowing in heavy doping, thermoelectric terms under temperature gradients - all enter as corrections to the two coefficients or as extra driving forces. The skeleton remains drift plus diffusion. Learn to read the two terms' sizes at a glance, as this page trains, and most device behaviour becomes a story about which term won, where, and why.

  • Jn = q n mu E + q D dn/dx: drift follows the field, diffusion follows the gradient.
  • Worked example: drift 1.602 x 10^2, diffusion 4.005 x 10^1, total 2.003 x 10^2 A/cm^2.
  • Einstein relation check: mu = 1000 pairs with D near 25.85 at 300 K.
  • Zero total current defines the built-in field of a graded profile.

A note on current continuity

Steady state demands the total current be the same at every cross-section of a one-dimensional device, even as its drift and diffusion shares trade places - through a junction, the current morphs from diffusion-carried to drift-carried and back while the sum holds constant. That constraint, plus the recombination that lets electron and hole currents exchange their shares, is the continuity equation's content. Evaluating the split at several points along a structure, as this calculator invites, is the pencil-and-paper version of that whole theory.

FAQs

What total current density does the worked example give?

Jn totals 2.003 x 10^2 A/cm^2, the sum of drift 1.602 x 10^2 and diffusion 4.005 x 10^1 A/cm^2.

How large is the drift term?

q n mu E = 1.602 x 10^2 A/cm^2 at E = 100 V/cm for n = 1 x 10^16 cm^-3 and mu = 1000 cm^2/(V s).

How large is the diffusion term?

q D dn/dx = 4.005 x 10^1 A/cm^2 for a gradient of 1 x 10^19 cm^-4 with D = 25 cm^2/s.

What if the gradient reverses sign?

A gradient of -1 x 10^20 cm^-4 makes the diffusion term oppose the drift term: in the second example it subtracts 4.005 x 10^2 from 1.602 x 10^3 A/cm^2.

Which term wins at a field of 1000 V/cm?

Drift, at 1.602 x 10^3 A/cm^2 against the opposed diffusion term in the second example. Raise the gradient enough, as in the third example, and diffusion takes over instead.

What connects D and mu?

The Einstein relation D = mu x kT/q: at 300 K, Vt is 25.85 mV, so mu = 1000 cm^2/(V s) implies D of about 25.85 cm^2/s. The calculator's defaults respect that pairing.

Why is the hole equation different?

Holes carry positive charge, so their diffusion current flows down the density gradient with the opposite sign: Jp = q p mu_p E - q Dp dp/dx. This calculator evaluates the electron equation.

Sources

Related calculators

Drift Velocity Calculator
How slowly electrons actually drift through a wire: current divided by carrier density, cross-section and the electron charge.
Fick's Law Diffusion Calculator
Diffusive flux by Fick's first law for oxygen, carbon dioxide, sodium chloride, ethanol, glucose or sucrose in water: molar flux, total transfer over your area, mass rate in grams per hour and the characteristic time to cross the layer.
Electron Mobility Calculator
Computes carrier (electron) mobility from drift velocity and electric field, cross-checked by the conductivity route sigma / (n e) from carrier concentration.