Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 3 min read

How 7 bits gave computers their first alphabet

Seven on-off switches encode exactly 128 characters — the original ASCII set.

Before emoji and accents, computers spoke ASCII: a 7-bit code mapping numbers to letters, digits and symbols. Seven bits give exactly 128 slots, which was enough for English text.

Bits set the alphabet size

Each bit doubles the number of codes. Seven bits give 2 to the 7 distinct characters.

N=27N = 2^{7}

Characters in 7-bit ASCII

Count the slots

See why 128.

ASCII capacity

  1. 1

    Two to the seventh

    27=1282^{7} = 128
  2. 2

    What it held

    Letters, digits, punctuation and control codes — later extended to 8 bits for 256.

Answer

128 characters from 7 bits built the foundation of digital text.

The formula behind it

Character Count

N=27N = 2^{7}

The takeaway

ASCII is 7-bit, giving 2^7 = 128 characters. Each added bit doubles the alphabet, which is how we reached Unicode.

Back to all stories