Who’s exploring?

DISCOVER · ARTICLE

Counting with only ones and zeros

Computers run on the simplest counting system imaginable — two symbols — and it turns out two is enough for everything.

A microscope in a bright laboratory

Places, but in twos

Ordinary counting uses ten digits and place values that grow by tens: ones, tens, hundreds. Binary keeps the same idea but grows by twos: ones, twos, fours, eights. So the number five, which needs one digit in decimal, is written 101 in binary — one four, no twos, one one.

Any whole number can be written this way, and so can everything else, once you agree on codes: letters become numbers, colours become numbers, sounds and pictures become numbers. Inside a computer, it is binary all the way down.

Why machines love two

A computer's switches — billions of transistors — are easiest to read when they are simply on or off. Two states leave no room for argument: the voltage is high or it is low, the switch is open or shut. Trying to build reliable machinery on ten voltage levels would invite constant confusion from electrical noise.

Each binary digit is called a bit, and bits travel in packs of eight called bytes. The philosopher-mathematician Gottfried Leibniz published the modern binary system in 1703, little suspecting it would one day carry photographs of distant planets.

Try it on your fingers

Hold up one hand. Treat each finger as a place: thumb 1, then 2, 4, 8, 16, finger up for 1 and down for 0. You can count to 31 on one hand — and confuse your friends wonderfully in the process.

Two symbols, endlessly combined: it is the same trick as the alphabet, which builds every book from a handful of letters. Small pieces, patiently arranged, can say anything.

Keep reading? Spark picked your next article.

Your first microscope slide: a drop of pond waterMore about Science

More in Computing

— forget which articles you’ve read on this device.

Sources, credits & transparency

Development reference photograph · Unsplash. Reference use; provenance and final image approval pending; see public/images/manifest.json.

Created with AI assistance as part of a bulk seed pack approved by the SparkKindly site owner on 15 November 2026. No independent specialist review is claimed.

Report a mistake on this page