A transistor is a tiny electrically-controlled switch: a small voltage on its gate decides whether a much larger current is allowed to flow. That one trick β a faucet for electrons with no moving parts β is the building block of every chip on Earth. Scroll through to see the channel open and close, watch two of them become a logic gate, then learn why this is the most important invention you've never looked at.
Current wants to flow from the source to the drain, but the gap between them normally blocks it. Raise the gate voltage and its electric field pulls a thin conducting channel into existence β electrons rush through. Below the threshold voltage the channel vanishes and flow stops. A tiny gate voltage thus steers a big sourceβdrain current: that's a switch and an amplifier in one.
Wire transistors so that "channel open" means a 1 and "closed" means a 0, and you can compute. Here's a NAND gate β two switches in series to ground, so the output is pulled low only when both inputs are high. Toggle the inputs and watch the transistors and the truth table react. NAND is "functionally complete": any logic β and so any CPU β can be built from nothing but these. A modern chip packs tens of billions of them.
Semiconductors & doping. A transistor is carved from silicon, a semiconductor β neither a good conductor nor a true insulator. By doping it with trace impurities you make n-type silicon (extra free electrons) or p-type (electron "holes"). A MOSFET puts an n-type source and drain in a p-type body, so no current can cross β until you change that.
The gate field controls conduction. The gate sits on a wafer-thin insulator over the body. Put a voltage on it and its electric field reaches through and yanks electrons up to the surface, forming a conducting channel that links source to drain. Above the threshold the channel conducts; below it, nothing flows. No springs, no contacts, no wear β just a field switching a path on and off, billions of times a second.
The universal building block. Because one small signal controls a larger one, the same device works as a digital switch (fully on or fully off β 0s and 1s) or an analog amplifier (a faint signal nudges a strong one β radios, audio, sensors). Stack switches into logic gates, logic gates into adders and memory, and that into a processor: every computer, phone, and chip is ultimately just transistors flicking on and off.
Moore's law, in a sentence: for decades the number of transistors that fit on a chip roughly doubled every ~2 years β which is how we went from a handful of them to tens of billions packed into a fingernail-sized die.