3. The pn junction and the MOS capacitor
Lecture 3 builds the two pieces every later lecture stands on. The first half finishes the pn junction: how much voltage is built into it, how wide its depletion region is, and why it behaves like a capacitor. The second half introduces the MOS transistor and explains, with a band diagram, how a gate voltage creates a conducting layer of electrons at the silicon surface. It ends with the threshold voltage, the gate voltage at which that layer appears.
After this chapter you can:
- draw the charge, field and potential of a pn junction and explain each shape;
- calculate the built-in voltage, depletion width, peak field and junction capacitance, with and without reverse bias;
- name the parts and the four terminals of a planar MOS transistor, and say what L and W are;
- describe accumulation, depletion and inversion in a MOS capacitor using its band diagram;
- derive and evaluate the threshold voltage , and say how doping and work function set it.
Boxes and equations marked board were written in the lecture. Parts marked added are explanations or examples this guide adds.
Before you start
You need four ideas from earlier chapters. Each is restated here so you don’t have to flip back.
- Charge → field → potential (Chapter 0). and . Constant charge gives a linear field and a quadratic potential.
- Electron energy is upside-down potential (Chapter 0). , so all bands bend opposite to the potential.
- Carriers from the Fermi level (Lecture 2). and . In p-type material ; in n-type .
- Constants in cm units: , (silicon), (SiO₂), , , .
Notation. means the transistor’s threshold voltage, as on the board. The thermal voltage is always written out as , so the two never get confused.
1. Inside a pn junction: charge, field and potential
The idea. Where p and n silicon meet, mobile carriers leave a thin region on each side, exposing fixed ion charge: negative on the p side, positive on the n side. That charge creates the field that bends the bands.
Lecture 2 ended with the junction’s band diagram in equilibrium: one flat Fermi level, p-type bands on the left, n-type on the right, and a region of band bending in between. The bending region is the depletion region, also called the space-charge region. It holds almost no mobile carriers but does hold fixed charge:
- on the p side, ionized acceptors: for ;
- on the n side, ionized donors: for .
Here is the metallurgical junction, where the doping switches from p to n. and are how far the depletion region reaches into each side. Treating the charge as these two clean rectangles is the depletion approximation.

The field: integrate the charge once
Start in the neutral p region, where the field is zero, and integrate Gauss’s law to a point inside the p-side depletion region:
Field on the p side (board, 2:12–4:50)
- Gauss’s law board: .
- Integrate from , where : .
- The charge is constant there, so .
- Substitute : . It is a straight line, falling from zero at .
- At the junction () the field is largest in size: .
Continue into the n side. Now the positive donor charge makes the field climb back, linearly, and it reaches zero exactly at . It must: the field is zero in the neutral n region too, which is only possible if the total charge is zero. So the field is a triangle, with its tip at the junction.
The field is negative everywhere in the depletion region: it points from the positive (n) side to the negative (p) side, that is, toward .
The potential: integrate again
Integrating a linear field gives a quadratic potential. That is exactly the S-shaped curve of the band bending: , and all follow . The lecturer puts it as “I integrate a constant, I get a linear; I integrate a linear, I get a quadratic” (5:25).
Check yourself Why must the two shaded areas of the charge-density plot be equal?
Because the field is zero outside the depletion region on both sides. Integrating Gauss’s law across the whole junction, the change in field equals the total charge (per area) divided by . A zero change requires zero total charge: .
Common mistakes.
- Putting the peak field anywhere but the metallurgical junction. The field keeps growing in size as long as you integrate charge of one sign, and the sign flips at .
- Thinking the depletion regions on the two sides have equal widths. They have equal charge; the lightly doped side depletes farther.
2. The built-in voltage
The idea. The potential step across the junction, , is fixed by how far each side’s Fermi level sits from mid-gap. You can read it straight off the band diagram.
In equilibrium the Fermi level is flat, so the band bending must make up the difference between the two sides’ positions.
Built-in voltage from the band diagram (board, 6:30–8:30)
- On the p side, , so . This is the circled spacing on the board.
- On the n side, , so .
- The total bending is the sum: .
- Divide by board: .
How large can be? The lecturer asks this himself (8:43). The best you can do is push all the way to on the p side and to on the n side, with very heavy doping. Each spacing is then about half the band gap, so can never exceed about . For ordinary doping it is about 0.8–0.9 V. The band gap fixes this number, and it can’t be scaled down. The lecturer flags that this will matter later, when supply voltages shrink with scaling (10:10–10:40).
Worked example. added , .
- .
- .
- . The rule of thumb gives the same: 13 decades × 60 mV ≈ 0.78 V.
Check yourself Both sides are doped 10× more heavily. By how much does Vbi rise?
grows by 100, so rises by , about 60 mV for each factor of 10.
3. The depletion width
The idea. Two facts fix the width: the charges on the two sides balance, and the area of the field triangle equals the voltage across the junction.

Depletion width (board, 17:28–19:30)
- Charge balance: . So the peak field can be written either way: .
- Triangle area = voltage. The potential step is the area under the field, : , with .
- Use charge balance to write each side’s width as a share of added: and .
- Substitute into the area: , that is, with .
- Solve for : .
Explore the junction below. Change the doping on each side and the reverse bias, and watch all four pictures update together.
What to notice.
- Make one side much more heavily doped (say , ). Nearly all the depletion width moves into the light side, and . This is a one-sided junction, which is what a transistor’s source or drain in a p body looks like.
- The charge rectangles always have equal areas, and the field triangle always closes at zero.
- Raising widens the depletion region, deepens the field triangle and raises the band step. The depletion width grows only as .
Worked example. added Same junction, , , no bias.
- , a bit below the lighter doping.
- .
- Split: and . Ten times the doping, one tenth the width.
- Peak field: , about 47 kV/cm.
Check yourself NA = 4 ND. What fraction of W lies on the n side?
. The n side is the lighter one, so it holds 80% of the width.
4. Reverse bias
The idea. A reverse bias adds to the built-in voltage. The barrier gets taller, the depletion region wider and the peak field stronger, while almost no current flows.
Reverse bias means making the n side positive relative to the p side (11:07). The applied voltage then adds to , so the total voltage across the depletion region becomes (12:36):
- the barrier for electrons grows from to ;
- to hold more voltage, the junction must expose more fixed charge, so the depletion region widens;
- more charge means a deeper field triangle, so the peak field grows.
Only a tiny reverse leakage current flows. This is the left half of the diode’s I–V curve on the board at 15:40.

In a MOS transistor, the source–body and drain–body junctions are always zero- or reverse-biased (11:07). That is why the lecture spends time on this case.
Check yourself Doubling (Vbi + VR) multiplies W by what factor? And the peak field?
, so grows by . The peak field is , so it also grows by .
5. The junction is a capacitor
The idea. A small extra voltage on a reverse-biased junction moves a small amount of charge at the depletion edges. That is a capacitor whose plate spacing is the depletion width.
Put a small AC signal on top of the DC reverse bias (13:44). Each wiggle of voltage pushes the edges and in and out a little. That uncovers or covers a sliver of ion charge on each side, equal and opposite, like charge on two plates. To a circuit, the junction looks like a parallel-plate capacitor with silicon as the dielectric and as the spacing.
Why exactly ? added The charge on one side is , and . Differentiate: , so . The small-signal capacitance comes out exactly like a parallel plate.
The key consequence. As reverse bias grows, grows, so falls (15:24). A reverse-biased junction is a capacitor whose value depends on its voltage. This matters later, because these junction capacitances load every logic gate’s output.
Worked example. added The same junction, at and at .
- : .
- : , so grows by to .
- , down to 53% of its zero-bias value.
- For a junction: 31 fF at 0 V, 16 fF at 2 V.
Common mistakes.
- Expecting capacitance to rise with voltage because the stored charge rises. The charge does rise, but as , whose slope falls. Capacitance is the slope.
- Using (3.9) here. The dielectric of a junction capacitor is silicon (11.7).
Check yourself What reverse bias halves Cj relative to zero bias?
. Halving it needs , so , about 2.3 V for this junction.
6. The MOS transistor: structure
The idea. A MOS transistor is a p-type body with two islands, the source and drain, and a gate sitting on a thin insulator over the gap between them.
MOS stands for metal–oxide–semiconductor, the three layers stacked under the gate (20:58).

Unipolar, NMOS and PMOS
- A bipolar device, such as the bipolar junction transistor (BJT), can only be understood by following both electrons and holes.
- A MOS transistor is unipolar: its operation depends on one carrier type (21:07–21:42).
- NMOS conducts with electrons.
- PMOS conducts with holes.
- A technology that offers both is CMOS, complementary MOS (21:59).
A bit of history from the lecture: early MOS technologies could make only NMOS. Circuit styles from that era, pseudo-NMOS and dynamic logic, still appear later in the course. Mead and Conway’s textbook (1980), the first VLSI text, was NMOS-only (22:27). The lecture analyses the NMOS device; PMOS works the same way with every sign flipped, which you practise in the problem set (22:58).
Cross-section and terminals

Reading the cross-section from left to right (23:23–26:13):
- Shallow trench isolation (STI): trenches etched into the silicon and filled with deposited oxide (CVD, chemical vapour deposition). It isolates neighbouring devices. Older processes grew a thick field oxide instead. That doesn’t scale well, because the oxide grows sideways into “bird’s beaks”.
- Source and drain: regions, ion-implanted and diffused into the p-type substrate.
- Body contact: a region tying the substrate to a terminal. It is often shared with other devices.
- Gate dielectric: a thin insulator, traditionally SiO₂. Newer processes use high-κ metal oxides, but still rely on the good interface between SiO₂ and silicon.
- Gate: a conductor. Traditionally it is polysilicon, heavily doped polycrystalline silicon that acts as a (resistive) metal and has a convenient work function (Section 9). Modern processes use real metal gates.
So a MOS transistor has four terminals: source, gate, drain and body (S, G, D, B). The body terminal matters, and Chapter 5 returns to it.
Source and drain are interchangeable. The device is symmetric, so which end is the source depends only on how it is biased, and the roles can swap while a circuit runs. A pass transistor is the example (26:13–27:16). A BJT is different: its emitter and collector are built differently, and running it backwards gives a poor transistor.
Length and width
From the top view (27:38–28:58):
- Channel length : the gate’s extent from source to drain. It is usually the smallest dimension the lithography can draw, and digital circuits nearly always use the minimum . That minimum is what names the technology node (Chapter 1).
- Width : the gate’s extent across the channel. Width is the designer’s main knob, because the transistor’s current drive scales with it. Most of this course is about choosing widths for the load a transistor drives.
Don’t confuse this (transistor width) with the junction depletion width above. The board uses the same letter for both.
Check yourself A transistor's source and drain are swapped in the layout. Does the circuit behave differently?
No. The planar MOS transistor is symmetric. Whichever region is at the lower potential acts as the source (for NMOS). Only biasing decides.
7. The MOS capacitor: depletion, then inversion
The idea. A positive gate voltage first pushes holes away from the surface, leaving negative acceptor ions (depletion). Push harder and the bands bend so far that electrons collect at the surface: an n-type layer forms in p-type silicon (inversion).
The setup
Ground the source, drain and body, apply between gate and body, and look at a vertical slice through the gate (28:58–29:48). That slice is a MOS capacitor: metal, oxide and p-type silicon.

Band diagram at zero bias (29:48–31:39):
- the metal: a Fermi level with filled states below it (the hatched line);
- the oxide: drawn as a very wide-gap semiconductor (the gap of SiO₂ is about 8 eV);
- the p-type silicon: Fermi level in the lower half of the gap.
The lecture first assumes that with all bands are flat and there is no charge anywhere. This is the flat-band condition. In general, flat bands need a particular gate voltage, the flat-band voltage . For now, ; Section 9 removes this assumption.
Positive gate voltage
Applying takes the structure out of equilibrium, so the Fermi levels on the two sides separate by . The lecturer calls them quasi-Fermi levels. He mentions the cute name “imrefs” (Fermi spelled backwards) only to say he won’t use it (31:39–32:48). A positive pulls the metal’s level down by , and the silicon bands bend down toward the surface.
Now follow the charge as rises:
- Depletion (32:50). Downward bending pushes holes away from the surface, uncovering acceptor ions: a depletion region of charge , just as on the p side of a junction. An equal positive charge appears on the gate, as a thin sheet against the oxide. The two balance, so the field is zero deep in the silicon.
- The depletion region grows as rises and the bending increases.
- Inversion (34:15). Eventually the surface drops below . Electrons now outnumber holes there: the surface has inverted to n-type. The standard criterion is the point where at the surface is as far below as it is above in the bulk. This is strong inversion, and the gate voltage that reaches it is the threshold voltage (34:45–35:27).
- Above threshold. The depletion region stops growing. Its maximum depth is . Any further gate charge is balanced by electrons in the thin inversion layer at the surface (34:25).
Why it matters. The inversion layer is a sheet of electrons connecting the source to the drain. Below there is no such path, and the transistor is off. Above the path exists, and the transistor is on. This is how the MOS transistor works as a switch (35:27–35:53).
Explore the MOS capacitor below. Press Play sweep to raise from −1 V to 3 V and watch the inversion layer form.
What to notice.
- Accumulation (below ): the bands bend up and holes pile up at the surface. The lecture doesn’t discuss this case, but the widget shows it for completeness.
- Depletion: the shaded depletion region deepens and the band bending rises quickly with .
- Inversion: once nears , it nearly stops rising. Extra gate voltage now goes almost entirely into electrons, and grows along the straight line .
- The full model (solid curve) turns on smoothly, not abruptly at . is a well-defined criterion on a smooth curve. Lecture 4 uses the straight-line part.
- In the full model the depletion depth still creeps past above threshold, by about 10% at 2 V above threshold, because rises a few . The lecture’s “it stops growing” is the standard approximation.
Check yourself Above threshold, why doesn't the depletion region keep growing?
At strong inversion the surface electron population grows exponentially with any extra band bending. A tiny increase in supplies all the extra negative charge as electrons. So , and with it the depletion depth, stays almost fixed at its threshold value, .
8. The threshold voltage
The idea. At threshold, the gate voltage is split between two drops: the band bending in the silicon, , and the voltage across the oxide needed to hold the depletion charge.

Threshold voltage (board, 37:06–41:03)
- Split the gate voltage board: , the voltage dropped in the semiconductor plus the voltage across the oxide (with ).
- The bulk spacing , written as a voltage board: .
- At strong inversion, the surface must be pulled from above to below it, a total of . So .
- The oxide is a capacitor holding the depletion charge: , with per area ().
- The depletion charge is .
- follows exactly as for a one-sided junction, with across the depletion region: .
- Combine 5 and 6: , as spoken at 40:50.
Where comes from, in carrier terms. added The Fall 2026 class added this. Bending the bands down by multiplies the surface electron concentration by : . At , , so . Strong inversion means the surface has as many electrons as the bulk had holes.
Worked example. added , , .
- , so .
- .
- .
- .
- .
- . Most of it is band bending; the oxide takes about a fifth.
Common mistakes.
- Using instead of . At the surface is merely intrinsic.
- Multiplying by instead of dividing. The spoken words at 39:44 say “Q bulk times C ox”, but the board is right: a voltage is charge divided by capacitance.
- Using in . The oxide’s permittivity is .
Check yourself The oxide is made twice as thick. Which terms of VT change?
Only the oxide term. halves, so doubles (0.241 → 0.482 V in the example). and depend only on the body doping.
9. Flat-band voltage and the work function
The idea. The metal and the semiconductor generally hold their electrons at different depths below the vacuum level. Joining them bends the bands even at zero bias, and the gate voltage that undoes that bending is .

The lecturer motivates this with the photoelectric effect, the work Einstein actually won his Nobel Prize for (42:20–43:24). Shine light of high enough energy on a metal and an electron is kicked out of the metal entirely, from the Fermi level up to the vacuum level. The energy needed is the work function:
A semiconductor has a work function too. Because doping moves within the gap, a semiconductor’s work function depends on its doping (43:36).
If the gate and the silicon have different work functions, their Fermi levels can only line up in equilibrium if the bands bend. So even at the bands are not flat, and a gate voltage is needed to flatten them (44:13). Threshold is then reached by applying first and the inversion voltage on top:
The formula for added. The board’s "" runs off the frame. The standard result, also the Fall 2026 board’s, is the work-function difference in volts, (metal minus semiconductor), for an ideal oxide with no trapped charge. Note the name clash: this is the semiconductor’s work function, not the surface potential.
Worked example. added The same device with : . The work-function difference shifts one-for-one.
10. What sets the threshold in practice
The lecture closes with two levers (44:41–49:36).
(1) Doping. enters strongly through , and weakly (logarithmically) through . Real devices engineer not just the doping level but the doping profile: non-uniform doping under the gate controls short-channel effects (Lecture 4) as well as (45:19–46:11). The uniform- formula is a model, not the real device.
The problem with doping at small sizes: random dopant fluctuations (46:24–48:12). In a tiny transistor, the number of dopant atoms under the gate becomes countable, say about 30. One device gets 28, the next 32, and their thresholds differ noticeably. The dopants’ positions also vary. This threshold variability is especially harmful in SRAM cells, which depend on the strength ratios of their transistors. Mismatched thresholds can leave random bits in a cache that simply don’t work.
(2) Work-function engineering (48:24–49:05). One fix is to remove the doping. Fully depleted device structures use essentially undoped channels and set by choosing the gate metal’s work function, that is, through . No dopants means no random dopant fluctuations.
Check yourself Why does a 'countable' number of dopants cause threshold variation, when the average doping is exactly as designed?
Each device samples a random number of dopants around the average. With about 30 dopants, the statistical spread is about ±√30 ≈ ±5.5, roughly 18% (an added Poisson-counting estimate, not from the board). The depletion charge, and with it , varies device to device by a comparable fraction of its doping-dependent part.
Formulas to remember
| Formula | Meaning |
|---|---|
| built-in voltage, at most about | |
| charge balance | |
| , | peak field; triangle area |
| , | depletion width |
| junction capacitance per area; falls with reverse bias | |
| , at threshold | band bending to invert |
| oxide capacitance per area | |
| , | depletion depth and charge at threshold |
| threshold voltage |
The lecture’s boards







