transistor
A transistor is a tiny electronic switch: a three-terminal device in which a voltage on one terminal controls whether current flows between the other two. It is the fundamental building block of all digital electronics — a modern processor packs tens of billions of them onto a fingernail-sized die — and stacking these switches into logic gates is how a chip computes.\n\n```svg\n\n```\n\n**The dominant kind is the MOSFET.** In a metal-oxide-semiconductor field-effect transistor, current would flow between two doped regions called the *source* and the *drain*, but only if a conducting path exists in the silicon between them. A *gate* electrode sits just above that region, separated by a thin insulating oxide. When the gate voltage passes a threshold, it electrostatically pulls charge carriers into the channel, forming a conducting bridge; below threshold, the channel is absent and the switch is off. The gate never touches the current path — it controls it purely through an electric field, which is what "field-effect" means.\n\n**On and off are how a transistor represents a bit.** A conducting transistor can be read as a 1, a non-conducting one as a 0. Wire a few together and you get logic gates — AND, OR, NOT — and from those you build adders, memory cells, and eventually an entire processor. The switch is also an amplifier, since a small gate voltage controls a much larger current, which is why transistors dominated analog electronics before they dominated digital.\n\n**Faster, cooler, cheaper — all come from making it smaller.** A shorter channel means the carriers cross it faster and the device switches quicker, while a smaller footprint means more transistors per chip at lower cost per transistor. This is the physical basis of Moore's Law: for decades, shrinking the transistor delivered speed, density, and efficiency all at once.\n\n**Shrinking created a control problem, and the gate's shape solved it.** As channels shrank below roughly 20 nanometers, a flat planar gate could no longer fully turn the channel off, and current leaked even in the "off" state — wasting power and generating heat. The fix was geometric: the *FinFET* stands the channel up as a fin and wraps the gate around three of its sides, and the newer *gate-all-around* nanosheet transistor surrounds the channel on all four sides. More gate coverage means tighter electrostatic control, which is what keeps leakage in check at 3 and 2 nanometer nodes.\n\n**Two flavors, working together.** An n-type transistor (NMOS) conducts when the gate is high; a p-type (PMOS) conducts when the gate is low. Pairing them so that one is on whenever the other is off — CMOS logic — means a gate draws almost no power except while switching, which is why essentially all modern digital chips are built in CMOS.\n\n| Type | Era | Gate wraps channel on | Why it arrived |\n|---|---|---|---|\n| Planar MOSFET | pre-2011 | one side (top) | simple, but leaks when very short |\n| FinFET | 2011–~2020 | three sides (fin) | controls short-channel leakage |\n| Gate-all-around | 2022+ | four sides (nanosheet) | electrostatics at 3 nm and 2 nm |\n\nRead the transistor through a *gate-control and switching* lens rather than a *material* lens: everything that matters — whether it is on or off, how fast it flips, how much it leaks — comes down to how well the gate commands the channel between source and drain. That single idea explains the whole arc of the industry, because making the switch smaller is Moore's Law, and wrapping the gate ever more tightly around the channel is how that shrink kept working once simple flat transistors began to leak.\n