ThinkRoost
How Everyday Things Work

Computers and software · 5 min

Why computers use binary

Learn about bits.

ReflectText size
Source reading

What the sources describe

Computers represent information using bits, short for binary digits, which can be either 0 or 1. German philosopher Gottfried Leibniz described binary numbers in the early 1700s, and in the 1800s George Boole developed a logic of true and false values.

In 1937, Claude Shannon, then a graduate student, showed that Boole's logic could be built with electrical switching circuits. This linked binary numbers, logic and electronics, an idea at the heart of digital computers.

Binary works well for electronics because circuits only need to tell two states apart, such as low and high voltage. Even if signals are a little noisy, it is easy to decide whether a value is closer to on or off. Distinguishing ten different voltage levels reliably would be much harder.

Bits combine to represent anything. Eight bits make a byte, which can represent 256 different values, enough for letters, numbers and symbols in early text codes such as ASCII. Larger groups of bytes represent colours in images, sound samples in music and instructions in programs.

Our interpretation

Connecting the ideas

Computers represent information as bits, 0s and 1s, because electronic circuits can reliably distinguish two states.

The idea, in plain language

The big idea

Everything digital is built from simple on and off states, which are reliable.

Use it in real life

Use it in real life

Count from 1 to 8 in binary: 1, 10, 11, 100, 101, 110, 111, 1000. Notice that each place doubles in value, then try writing your age in binary using place values of 1, 2, 4, 8, 16, 32 and 64.

Practice scenario (made up for this lesson)

Try it

Made-up example: Why don't computers use ten states like our decimal numbers?

A good answer: distinguishing ten voltage levels reliably is much harder than telling on from off, especially with electrical noise.

Quick quiz

1. A photo is stored on your phone. How is it represented inside the computer?

2. What did Claude Shannon show in 1937?

3. A byte has eight bits. Why can it represent 256 values?

Finished reading?

Make this the next Doom video?

Vote for the lessons you'd most like to see turned into a short animated story.

How was this lesson?

No ratings yet — be the first.

Sign in to rate

Sources

Overview sources only. These references are not a completed primary-source fact-check.

Limitations

Overview only.

Voice: Debby — Soft and soothing (tap to change)

Debby narration · part 1 of 15