Why do computers use only 0 and 1?
Using 0 and 1 is less about numbers than about certainty: two wide ranges are hard to confuse.
At a glance
A computer’s memory is made of billions of tiny switches, each read as either on (1) or off (0). Text, photos, video, and even AI models are stored as long sequences of these ons and offs. You could store more in each switch by splitting its voltage into ten levels, but electrical signals always wobble a little, and ten narrow levels are easy to mix up. Two wide levels can still be read correctly through the same wobble. So the choice of 0 and 1 is less about numbers than about certainty.
Billions of switches
Memory chips store one bit per cell. In the DRAM that serves as a computer’s working memory, each cell is a single transistor that opens and closes access to a tiny capacitor holding an electrical charge (MIT 6.004). A single 32-gigabit DDR5 chip, like the one Samsung announced in 2023, holds more than 32 billion such bits (about 34.4 billion, counting a gigabit as 2^30 bits; our calculation), and a memory module holds several such chips.
AI pushes the numbers higher still. NVIDIA lists a total of 1,440 GB of GPU memory for a single DGX B200 AI server; by comparison, Microsoft’s minimum for a Copilot+ PC is 16 GB of RAM. An AI model, too, is stored as a very long sequence of 0s and 1s.
0 does not mean “no electricity”
A light switch is a useful picture: on is 1, off is 0. Inside a real chip, though, 0 does not mean “no voltage at all.” It means “a voltage below a set threshold.” MIT’s computer architecture course (6.004) describes two thresholds: a voltage at or below the low one is read as 0, and a voltage at or above the high one is read as 1. The gap between them is a forbidden zone. Components are designed not to output a voltage in that zone when they receive a valid 0 or 1, and an input that falls there is not guaranteed to be read either way. In other words, a computer does not read two exact values; it reads two ranges.
Why more levels are harder to tell apart
To store more information in one voltage, you have to split the same range into more levels. The course notes that storing N bits in one voltage would mean telling apart 2^N different voltages within the range (its example is 0 V to 1 V). The more levels you add, the narrower each one becomes, and the more easily a small wobble pushes the signal into the next level. With only two levels, each one is wide, so the same wobble still reads as the same value.
Two levels still have limits
Components send their 0s and 1s with room to spare: a 0 below the receiver’s 0 threshold, a 1 above its 1 threshold. The gaps between what is sent and what is accepted are called noise margins. As the course explains, they tell you how much noise can be added to a valid 0 or 1 before it might be misread. In the course’s example of an inverter (a part that flips its input), a 0 is sent at 0.5 V or below, and anything at 1 V or below is read as 0, so the margin on the 0 side is 0.5 V. The flip side is that a wobble larger than the margin can cause even a two-level signal to be misread.
Cleaning up the signal at every step
In analog circuits, which pass voltages along as they are, errors pile up from one stage to the next. Digital components work differently: when one receives a slightly wobbly 0 or 1, it sends out a clean 0 or 1 within the valid range, removing the noise before it can build up. That is how a value can pass through billions of switches and still come out unchanged.
From switches to letters
One switch holds one bit. Eight switches together have 256 possible patterns, enough to give every English letter, digit, and punctuation mark its own number. Read 0100 0001 as a binary number and you get 64 + 1 = 65. In the character code that ASCII and Unicode share, 65 is the capital letter A.
The bits themselves do not say “I am a number” or “I am a letter.” The rule used to read them is what decides.
Remember
- A bit is a switch read as one of two states: on (1) or off (0).
- Two wide voltage ranges are harder to confuse than many narrow ones, which is why computers use 0 and 1.
- Within limits, digital components clean up small wobbles at every step, so errors do not pile up.
Next question
If a switch can only be on or off, how does a computer make a decision like “run only when the door is closed”? See How do 0s and 1s make decisions? in the logic circuits layer.
Sources
- MIT OCW 6.004 Computation Structures (Spring 2017), The Digital Abstraction: “Voltages less than or equal to V_L will be interpreted as 0, and voltages greater than or equal to V_H will be interpreted as 1.” · “we need to be able to distinguish a total 2^N voltages in the range of 0V to 1V” · “The gaps between the input and output voltage thresholds are called the noise margins.” · “The noise margins tell us how much noise can be added to a valid 0 or a valid 1 output signal” · in analog systems “the errors accumulate”; digital components “work to remove the noise on their inputs before it has a chance to accumulate” · example inverter V_OL 0.5 V, V_IL 1 V
- MIT OCW 6.004 (Spring 2017), Caches and the Memory Hierarchy: “DRAM bit cells consist of a single access FET connected to a storage capacitor”
- Samsung Newsroom, 2023-09-01: “the industry’s first and highest-capacity 32-gigabit (Gb) DDR5 DRAM” (the bit count is our calculation)
- NVIDIA DGX B200 specifications: “GPU Memory: 1,440 GB total”
- Microsoft, Windows 11 specifications: Copilot+ PC minimum: “RAM: 16 GB DDR5/LPDDR5”
- Unicode code chart, C0 Controls and Basic Latin (U+0000 to U+007F): U+0041 LATIN CAPITAL LETTER A (hex 41 = 65)