Explainer
How A Transistor Decides
One gate, two states, all of computing.
Here's the premise, plainly: every single thing your phone has ever done, from loading this page to autocorrecting your typos, comes down to a piece of silicon deciding, billions of times a second, whether a tiny gate is open or shut. Open or shut. That's the whole vocabulary. I'd like to tell you there's more to it, and there is, but almost all of it is just that one decision repeated until it looks like magic.
Before I explain, I want you to guess. A modern processor has somewhere around tens of billions of these switches packed onto a chip the size of a fingernail. How many of them do you think flip state in a single second? Pick a number. Be honest with yourself, because the answer is going to make you feel slightly ridiculous about whatever you picked.
Guess the number
How many transistors in a modern processor change state in one second?
100 trillion
switches per second, order of magnitude
1 billion10,000,000 trillion
The transistor is, at its core, a valve for electricity. You have a gate. Apply a small voltage to the control terminal and the gate lifts, letting current flow between two other terminals. Remove the voltage and the gate drops, and the current stops. I'll admit the water-pipe picture is a bit tired, but it earns its keep here: a small push on one lever decides whether a much larger flow gets through. Nothing more mysterious than that is happening inside the chip.
Process · 3 steps
What one switch does, in order
- 1Input arrives
A voltage shows up on the gate terminal, carried there by wiring from another part of the circuit.
- 2Channel forms
The field from that voltage pulls charge into a thin region under the gate, letting current pass between source and drain.
- 3Output settles
The drain now sits at a high or low voltage, which becomes the input for the next gate downstream.
Here's the part I find genuinely delightful. A transistor only needs to distinguish two conditions: high voltage and low voltage. Engineers call these 1 and 0, but the names are a convenience, not a property of the silicon. Once you have a reliable two-state thing, you can chain them. Feed the output of one gate into the input of another and you can build logic: AND, OR, NOT. Chain enough of those and you can add numbers, which means you can do arithmetic, which means every program ever written is, underneath, a very long argument about whether a gate should be open.
Key point
Every computation is built from one repeated decision: whether a gate passes current or blocks it.
The mechanism
A voltage on the gate controls whether a channel forms between two other terminals. Current flows when the channel exists and stops when it does not.
The scale
Billions of these switches, flipping quadrillions of times a second across a chip. The speed is the trick; no single switch is clever.
One gate, two states. Stack enough decisions together and you get a spreadsheet, a game, and whatever you are reading this on.
Misconception · Modern Machinery
MythA computer thinks in some rich, many-valued way, so its chips must hold lots of different kinds of information in each part.
Actually
Each transistor holds one of two states. The richness comes entirely from how huge numbers of two-state decisions are arranged and sequenced.
Why people get it wrong
We experience software as sophisticated, so we assume the hardware underneath must be similarly complex at the level of each component.
So where does this leave the phone in your hand? Still doing the same thing, just in staggering volume. Each app, each pixel, each keystroke you make resolves into a pattern of open and shut gates rippling through the chip. I won't pretend I can hold that whole picture in my head at once, and I'm not sure anyone can. What I can say is that the single decision is simple enough to fit in a sentence, and the rest is a question of how many times you are willing to repeat it.
Choose
