How does a MOSFET work?

A MOSFET is voltage-controlled: the gate voltage opens a conducting channel under an insulating oxide. No steady current flows into the gate, but it needs enough VGS to turn fully on. As a switch, we keep it in the ohmic region, acting as a small resistor.

FundamentalsChapter 03

Structure: the N-channel enhancement MOSFET

With zero gate voltage, source to drain is blocked. Two back-to-back pn junctions sit between them.

  • Two n+ regions in a p-type body: the source and the drain.
  • Above the gap: a very thin SiO₂ insulator and the gate electrode.

Once VGS passes the threshold, an electron channel forms at the surface and links source to drain. In order:

  • The gate–oxide–body stack charges like a capacitor.
  • Holes under the oxide are pushed away: a depletion region.
  • Electrons gather at the surface and invert it to n-type: the inversion channel.
Lab

Cross-section: grow the channel with VGS

Blue: electrons in the channel (source → drain). Copper: current in the external circuit. Model: Vth = 2.0 V, k = 0.5 A/V², square law, body tied to source. When VDS > VGS − Vth the channel pinches off at the drain and the current barely rises.

Threshold voltage VGS(th): “barely on”, not “fully on”

The threshold is where the MOSFET starts to conduct, not where it carries amps. Datasheets measure it at a tiny current: ID = 250 µA, VDS = VGS.

The threshold is a range; 2–4 V for the IRF540N. “Threshold is 2 V, so 3.3 V is enough” is wrong: the worst part passes only 250 µA even at 4 V.

The right question: at what VGS is RDS(on) guaranteed? The RDS(on) table answers it, not the threshold. A 3.3 V GPIO needs a 2.5 V or 2.7 V row; 5 V needs a 4.5 V row. “Logic-level” usually means 4.5–5 V, not 3.3 V.

Three regions and a naming trap

RegionConditionIDBehaviourUsed for
CutoffVGS < Vth≈ 0 (nA–µA leakage)open circuitSwitch OFF
Ohmic (linear, triode)VDS < VGS − Vthk[(VGS−Vth)VDS − VDS²/2]acts as a resistor: RDS(on)Switch ON
Saturation (active)VDS ≥ VGS − Vth(k/2)(VGS−Vth)²current sourceAmplifier, inrush limiting; transitions in a switch
“Saturation” means opposite things for the two transistors For a BJT, saturation = switch fully on. For a MOSFET, saturation = current-source region; VDS is large and the part heats up. A fully-on MOSFET is in the ohmic region.
Ohmic: ID = k · [(VGS − Vth) · VDS − VDS²/2]    ⇒    RDS(on) ≈ 1 / (k · (VGS − Vth))
Saturation: ID = (k/2) · (VGS − Vth)² · (1 + λ·VDS) The simple square law. In power MOSFETs the drift region, bond wires and package add resistance. That is why RDS(on) flattens at high VGS.
Lab

ID–VDS curves, load line and Q point

Model: Vth = 2.0 V, k = 1 A/V², λ = 0.02 V−1. The green area is the ohmic region. Circuit: VDD → Rload → drain, source to ground. Give enough VGS to push Q into the green area and the loss drops.

Transfer curve and RDS(on) vs VGS

Datasheets give RDS(on) on the flat part of the curve: 4.5 V and 10 V. Just above threshold RDS(on) is huge, then falls steeply and flattens.

  • Transfer curve: ID as a function of VGS.
  • Below threshold a subthreshold current still flows; it grows 10× every ≈ 90 mV.
  • The threshold is where this curve crosses 250 µA.
Lab

Where is the threshold, where does RDS(on) flatten?

Model: RDS(on) = Rfixed + Rchannel; Rfixed = 0.4·R10V, Rchannel ∝ 1/(VGS − Vth). EKV-like transfer curve, subthreshold slope ≈ 90 mV/decade, 25 °C. Real curves bend at high current.

The P-channel MOSFET

A P-MOSFET is a natural high-side switch. Its source sits on the positive supply: gate at source voltage = off, gate at ground = on.

  • Doping is reversed: p+ source/drain in an n-type body; holes form the channel.
  • To turn on, the gate must be negative relative to the source: VGS < Vth < 0.
  • Holes are slower, so RDS(on) is 2–3× higher: IRF540N 44 mΩ, IRF9540N 117 mΩ.
  • That is why N-channel is preferred at high current.
Animation

N-channel low-side and P-channel high-side

Copper dots are load current. N-MOSFET: drain → source; P-MOSFET: source → drain; the body diode stays reverse-biased in both. A 3.3 V GPIO cannot turn off a 12 V P-MOSFET; you need the level shifter in Chapter 07.

The body diode: the hidden diode in every MOSFET

If the drain goes below the source, the body diode conducts whatever the gate says. It exists because the body is tied to the source. In an N-channel part its anode is at the source, its cathode at the drain.

  • A MOSFET blocks only one direction. Reverse-polarity protection uses this on purpose (Chapter 12).
  • In an H-bridge the body diode is the freewheel path during dead-time. Its slow reverse recovery causes loss and noise.
  • Turn the gate on while the diode conducts and current moves into the channel. The drop falls from 0.7–1.2 V to I·RDS(on): reverse conduction.
Animation

Body diode animation: four cases

Cycle: (1) normal, gate off → no current. (2) normal, gate on → the channel conducts. (3) reversed, gate off → the body diode conducts, ≈ 0.8 V. (4) reversed, gate on → the channel conducts in reverse, drop I·RDS(on).

The gate is a capacitor

The faster you charge the gate, the faster the MOSFET switches. There is no steady gate current, but turning on means delivering a charge Qg to the gate capacitances.

tswitch ≈ Qg / Igate     Pdrive = Qg · VGS · fPWM Details in Chapters 09 and 10.
IRLZ44N Qg48 nC
  1. From a GPIO, 20 mAt = 48 nC / 20 mA2.4 µs
  2. From a gate driver, 1 At = 48 nC / 1 A48 ns
A gate driver switches 50× faster. A slow edge means extra heat on every transition.
Never leave the gate floating A floating gate holds its charge for hours and picks up noise. It can sit half-on and cook the MOSFET in its linear region. Put a 10–100 kΩ pull-down from gate to source (Chapter 04).

The gate oxide is only tens of nm thick. Absolute max VGS is typically ±20 V, ±12 V or ±8 V on some low-voltage parts. A spike beyond it punches through the oxide permanently.

Temperature: RDS(on) rises as it heats

At 125 °C, RDS(on) is 1.5–2× its 25 °C value. About 1.5× for low-voltage parts, 2× for high-voltage ones. The datasheet’s “Normalized RDS(on) vs TJ” graph gives it.

  • Do the thermal calculation with the hot RDS(on) (Chapter 13).
  • Fully-on MOSFETs can be paralleled: the hotter one’s resistance rises and current shifts away.
  • BJTs do the opposite, which is why they need emitter resistors.
Animation

Normalised RDS(on) vs junction temperature

Approximate: R(T)/R(25 °C) = (T/298 K)a; a ≈ 1.5 for low-voltage, a ≈ 2.3 for high-voltage parts. For real numbers use the part’s own graph.

Real parts

PartType / packageVDSID (25 °C)VGS(th)RDS(on) (max)Qg
2N7002N, SOT-2360 V0.115–0.3 A1–2.5 V≈ 2–7.5 Ω @ 4.5–10 V≈ 1 nC
AO3400AN, SOT-2330 V5.7 A0.65–1.45 V26.5 mΩ @ 10 V
32 mΩ @ 4.5 V
48 mΩ @ 2.5 V
≈ 6 nC
Si2301P, SOT-23−20 V≈ −2.5 A−0.4…−1 V≈ 0.11 Ω @ −4.5 V
≈ 0.15 Ω @ −2.5 V
≈ 5 nC
IRLZ44NN, TO-220, logic-level55 V47 A1–2 V22 mΩ @ 10 V
25 mΩ @ 5 V
35 mΩ @ 4 V
≈ 48 nC
IRF540NN, TO-220100 V33 A2–4 V44 mΩ @ 10 V≈ 71 nC
IRF9540NP, TO-220−100 V−23 A−2…−4 V117 mΩ @ −10 V≈ 97 nC

Approximate datasheet values; design with the current datasheet. ID assumes a 25 °C case and ideal cooling. The IRF540N’s RDS(on) is guaranteed only at 10 V: no direct GPIO drive.

Worked example: a 3 A, 12 V load from a 3.3 V GPIO

First screen the candidates by their RDS(on) rows, then compute the heat of the survivor.

CandidateLowest guaranteed rowVerdict
IRF540N10 V only; Vth up to 4 Vunsuitable
IRLZ44N35 mΩ @ 4 V; nothing at 3.3 Vmarginal
AO3400A48 mΩ @ 2.5 Vcandidate
I3 AV12 VRDS(on) @ 3.3 V≈ 35 mΩRθJA125 °C/W, good copperTa25 °C
  1. Hot RDS(on)R = 35 mΩ · 1.4 (100 °C)≈ 50 mΩ
  2. LossP = 3² · 0.050.45 W
  3. Temperature riseΔT = 0.45 · 125≈ 56 °C
  4. Junction temperatureTj = 25 + 56≈ 81 °C
  5. Voltage margin30 V ≥ 1.5 · 12 = 18 VOK
The AO3400A works; mind the copper area. Gate: 100 Ω series + 100 kΩ pull-down; add a flyback diode if the load is inductive.