Visual walkthrough — Mass action law (np = ni²)
Step 1 — Draw the stage: two energy bands and a gap
WHAT. Before any formula, we draw the world the electrons live in. Energy runs upward on the vertical axis. Two horizontal shelves are marked:
- — the bottom edge of the conduction band, the lowest energy a free electron can have.
- — the top edge of the valence band, the highest energy a bound electron sits at.
Between them is a forbidden zone of width , the band gap (see [[Band gap and its temperature dependence]]).
WHY. Every quantity later (, , the exponentials) is a distance measured on this vertical energy axis. If we don't fix the axis first, the exponents have no meaning.
PICTURE. Look at the amber gap in the figure. An electron on the lower shelf () must be lifted a height to reach the upper shelf (). That "lift height" is the whole story.

Step 2 — The heat budget: where the Fermi level sits
WHAT. We add one more horizontal line, the Fermi level . Roughly, is the energy at which a state is 50% likely to be occupied — the "water line" of the electron sea (full treatment in Fermi level & Fermi–Dirac statistics).
WHY. The number of electrons that make it up to depends on how far is above this water line. The larger the distance , the rarer a filled state up there. So we must mark before we can count anyone.
PICTURE. The dashed cyan water line sits inside the gap. Two labelled gaps appear:
- the distance (how far electrons must climb above the water line),
- the distance (how far below the water line the holes hang).
Notice they share — that shared line is the pivot everything will hinge on.

Step 3 — Count the electrons: the conduction-band population
WHAT. The number of free electrons per cm³ is
Reading it left to right:
- — the effective density of states at the conduction edge: think of it as the count of available seats bunched near (see Effective density of states $N_C$, $N_V$).
- — the climb height from Step 2.
- — the thermal energy scale: is Boltzmann's constant, the absolute temperature. It sets how big a climb heat can pay for.
- — the Boltzmann factor: a fraction between 0 and 1 saying "what share of the climb-height can thermal energy afford?"
WHY this tool — the exponential? Because the chance of a thermal kick of size dies off exponentially with . Not linearly, not as a power — exponentially. That's the defining behaviour of random thermal energy, and it's why doubling temperature barely changes the picture but doubling the gap changes it enormously.
PICTURE. The blue shaded blob above is the electron population. Its area is . Watch it shrink as the arrow grows — bigger climb, tinier blob.

Step 4 — Count the holes: the valence-band population
WHAT. A hole is an empty valence seat — a missing electron. Its population is the mirror image:
- — effective density of states at the valence edge (seats bunched near ).
- — the drop from the water line down to the valence shelf, from Step 2.
- — Boltzmann factor for emptiness this far below .
WHY. Same physics as Step 3, reflected. Electrons are counted above the water line; holes are counted below it. The signs in the two exponents therefore come out opposite: electrons carry , holes carry . Remember that opposite sign — it is the entire trick of Step 5.
PICTURE. The amber blob below is the hole population; its area is . It's the up-down mirror of the blue blob.

Step 5 — Multiply, and watch the water line vanish
WHAT. Multiply the two counts. Exponents add: In the combined exponent, from the electron term and from the hole term cancel:
Term by term in the result:
- — pure material seat-counts, no doping in sight.
- — depends only on the fixed gap height and temperature.
- — gone.
WHY this matters. Doping is the act of sliding the water line up (donors) or down (acceptors), see Doping: donors and acceptors. Step 5 shows cancels — so no amount of sliding changes the product . That is the mass action law.
PICTURE. The two exponential arrows point in opposite directions from ; when laid head-to-tail they span exactly , and the line drops out of the sum. The residual span is the amber gap arrow — doping-independent.

Step 6 — Name the constant: evaluate it in pure crystal
WHAT. In a pure (intrinsic) crystal there are no dopants, so every electron came from breaking one bond, leaving one hole: . Call this common value , the intrinsic carrier concentration (see [[Intrinsic carrier concentration ]]). Then , and comparing with Step 5: Taking the square root (the whole right side, so the exponent halves):
WHY. The constant on the right of Step 5 was some number depending only on the material. Step 6 gives that number a physical name by measuring it in the one situation where and are equal.
PICTURE. The pure crystal panel: blue and amber blobs are the same size (), and sits mid-gap. The product of the two equal areas is .

Step 7 — The seesaw: what doping does to and
WHAT. Since the product is pinned, and trade off: Dope n-type with donors (): charge neutrality (see Charge neutrality condition) gives , so
For silicon at room temperature (), doping :
- /cm³ (majority, tracks doping),
- /cm³ (minority, collapses),
- product . ✅
WHY. This is the payoff picture: raising one blob's area forces the other's area down by the same factor, because their product is a constant.
PICTURE. A seesaw. Left seat rises, right seat falls; a rigid bar labelled "" pins the pivot. The areas trade, the product holds.

Step 8 — Every regime at once (the degenerate cases)
WHAT. To cover all doping levels — including the awkward middle where doping — substitute into neutrality (net doping ):
Check the extreme cases so no reader is ever stranded:
- Heavy n-type : root , so . Majority = doping. ✓
- Undoped : . Pure crystal recovered. ✓
- Heavy p-type (i.e. ): the root gives a small positive , and becomes large ≈ . The seesaw simply tips the other way. ✓
- Zero temperature limit : , so and both minority populations vanish — carriers freeze out.
WHY. One quadratic, four physical corners. The single formula is continuous across all of them, which is exactly what "covers every case" means.
PICTURE. A curve of versus net doping (log axes for the amber tails, linear near zero). It hugs far out on both sides and bottoms out gently at when — the smooth floor set by the intrinsic value.

The one-picture summary
Everything on one canvas: the two bands with between them, the electron arrow up (carrying ) and the hole arrow down (carrying ) meeting head-to-tail to span , the cancelled crossed out, and the seesaw at the side showing and trading while the bar stays level.

Recall Feynman retelling of the whole walkthrough
We drew two shelves — a high one (conduction, ) and a low one (valence, ) — with a forbidden gap between them. A dashed "water line" sits in the gap; how high above it the top shelf is decides how few electrons climb up there, and how far below it the bottom shelf is decides how many empty spots (holes) sit down there. Both counts fall off exponentially with distance from the water line — that's just how heat spreads energy. Here's the trick: electrons count the distance going up from the line and holes count the distance going down, so when you multiply the two counts, the water line's position cancels out. What's left only knows the fixed gap and the temperature. Since doping only slides the water line, the product can't feel it — push electrons up and holes drop to keep nailed to the same number, . We named that number by looking at pure crystal (where ), then wrote one quadratic that handles pure, n-type, p-type and frozen-out crystals in a single stroke.
Recall Quick self-test
Why does cancel when you multiply and ? ::: Electrons carry (measured up from ), holes carry (measured down); the product's exponents add and subtracts to zero, leaving . In the summary picture, what does the amber gap arrow represent? ::: The surviving span after cancels — the only energy left in the product . Set net doping in Step 8's formula — what is ? ::: , the pure-crystal value.
Connections
- Intrinsic carrier concentration $n_i$
- Fermi level & Fermi–Dirac statistics
- Effective density of states $N_C$, $N_V$
- Charge neutrality condition
- Doping: donors and acceptors
- Quasi-Fermi levels & non-equilibrium carriers
- Band gap $E_g$ and its temperature dependence