This tutorial visualizes an N-Channel Enhancement-Mode MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor). Unlike the BJT, which is current-controlled, the MOSFET is purely voltage-controlled: the Gate is insulated from the body by a thin oxide layer, so Gate current is zero. A positive Gate voltage creates an inversion layer (N-channel) that connects Source and Drain.
Mathematical foundation
1. Structure
Body (P-type): Substrate with holes. Source and Drain (N-type): Two wells. Gate: Metal (or poly) above the body, separated by SiO2 (insulator). No direct current path to the Gate.
2. Threshold (Vth)
When Vgs < Vth, the body blocks current. When Vgs > Vth, the positive Gate repels holes and attracts electrons to the surface, forming a thin N-channel (inversion layer) under the oxide.
3. Square-law model
In saturation (Vds ≥ Vgs − Vth) the drain current follows the square law; in the triode (linear) region it is parabolic in Vds:
Id = K (Vgs − Vth)2 (saturation)
Id = K [2(Vgs − Vth)Vds − Vds2] (triode)
4. Transconductance
The small-signal gain of the device, with effectively infinite input impedance (Ig = 0):
gm = 2K(Vgs − Vth)
Simulation
The interactive simulator is below. Use the controls to explore the concepts described above.
Usage
Use the sliders and Source to explore the N-Channel MOSFET:
- Source: DC (constant Vgs, Vds), Sinusoidal, or Pulse Train. For non-DC, DC Offset and AC Amplitude set the Gate drive.
- Vgs (0–5 V): Gate-Source voltage. Above Vth ≈ 2 V the channel forms; blue electrons flow from Source to Drain.
- Vds (0–10 V): Drain-Source voltage. In triode (low Vds) current rises with Vds; in saturation (Vds ≥ Vgs − Vth) the channel pinches off and Id is roughly constant.
- Top canvas: P-body (light red), N-wells (blue) for Source and Drain, white oxide, grey Gate. Blue dots = electrons in the channel; red circles = holes in the body.
- Middle: Id vs Vds for several Vgs. Dashed curve = saturation boundary. Red dot = operating point.
- Scope: Yellow = Vgs; Cyan = Vout (load resistor). Ig = 0.00 nA always (Gate is insulated).
Lab trials
Lab 1: The Threshold Hunt
Objective: Find the Vgs where the channel "snaps" into existence.
Setup:
- Source: DC
- Vds: 5.0 V (fixed)
- Vgs: Start at 1.0 V and slowly increase.
What to Observe:
- Below ~2.0 V: The area under the oxide is empty. No electrons cross; Id = 0.
- Above ~2.1 V: A thin "bridge" of blue particles suddenly forms under the Gate. This is the inversion layer (N-channel).
- Physics: The positive Gate repels holes and attracts electrons to the surface, creating the channel.
Lab 2: Ohmic vs. Saturation (The Water Hose)
Objective: See how Vds affects the channel shape.
Setup:
- Source: DC
- Vgs: 3.5 V
- Vds: Start at 0 V and increase to 10 V.
What to Observe:
- Linear (triode): At low Vds, the channel looks like a uniform blue bridge. Id increases with Vds.
- Pinch-off: As Vds approaches Vgs − Vth, the channel narrows near the Drain.
- Saturation: The channel is wedge-shaped (thick at Source, thin at Drain). Id stays nearly constant; particles "sprint" through the pinched region.
Lab 3: The Perfect Switch
Objective: Use a Pulse Train to show why MOSFETs dominate digital circuits.
Setup:
- Source: Pulse Train
- DC Offset: 1.5 V, AC Amplitude: 2.0 V (input snaps between 0.5 V = Hard OFF and 3.5 V = Hard ON)
- Vds: 5.0 V
- Wave speed: 0.10 Hz
What to Observe:
- Scope: Output inverts the input (logic inverter).
- Ig = 0.00 nA: The Gate draws no current. Compare to a BJT, where Ib is always non-zero. MOSFETs don't get as hot in digital circuits because there is no Gate current.
Lab 4: The High-Fi Amplifier
Objective: Observe how a small wiggle in Vgs creates a large, inverted wiggle in Vout.
Setup:
- Source: Sinusoidal
- DC Offset: 2.5 V (biasing just above Vth)
- AC Amplitude: 0.2 V
- Vds: 5.0 V
What to Observe:
- Phase inversion: The Cyan wave (Vout) goes down when the Yellow wave (Vgs) goes up.
- Voltage gain: Compare the heights of the two waves. The MOSFET acts like a "magnifying glass" for the signal.
- Physics: Watch the blue channel "breathe"—getting thicker and thinner—without ever fully disappearing.
Lab 5: Frequency Response & Lag
Objective: Discover the physical speed limits of a transistor.
Setup:
- Source: Pulse Train (use Lab 3 settings: DC Offset 1.5 V, AC Amplitude 2.0 V)
- Wave speed: Start at 0.10 Hz and increase toward 2 Hz
What to Observe:
- The lag: At high speeds, the red holes can't "return" to the surface fast enough before the next pulse. The channel doesn't fully form or collapse.
- Signal degradation: On the scope, the Cyan pulses lose sharp corners and start looking like rounded "sharks' fins."
- Conclusion: This is why your CPU gets hot and has a clock-speed limit—physics takes time!
Summary
Vgs |
Vds |
Region |
Use |
< Vth |
Any |
Cutoff |
Switch OFF |
> Vth |
< Vgs − Vth |
Triode (Ohmic) |
Resistor / switch ON |
> Vth |
≥ Vgs − Vth |
Saturation |
Amplifier / current source |
Limitations
- Ideal square-law model. Uses the textbook Id = K(Vgs−Vth)2 law. It omits channel-length modulation (λ), velocity saturation, sub-threshold (weak-inversion) conduction, and short-channel effects that dominate modern nanometer devices.
- N-channel enhancement only. One device type at fixed parameters. Depletion-mode, P-channel, and the body (substrate-bias) effect on Vth are not shown.
- No second-order non-idealities. Gate-oxide leakage/tunneling, hot-carrier effects, temperature dependence, and breakdown are ignored; the gate is treated as a perfect insulator with Ig = 0.
- No parasitics or dynamics at speed. Gate, drain, and overlap capacitances are not circuit-modeled; the "frequency lag" lab is a qualitative animation, not an RC/transient solve.
- Arbitrary units. K, Vth ≈ 2 V, and currents are illustrative constants, not extracted from a real process; the I-V curves convey shape, not datasheet values.
- Single transistor. No load-line interaction beyond a fixed load resistor, no CMOS pair, and no real circuit topology (biasing networks, current mirrors, etc.).