DP Computer Science · HL / SL · A1 Computer fundamentals

A1.2 Data representation and computer logic

Get started
Notes Quiz

What is Binary and Why Do Computers Use It?

Binary: Binary is a base-2 numeral system that uses only two digits , 0 and 1. Each digit is called a bit (short for binary digit).

Every single piece of data stored or processed by a computer , numbers, text, images, audio, video , is ultimately represented as a sequence of 1s and 0s. This isn't arbitrary: computers are built from billions of tiny electronic switches called transistors, which have exactly two states:

  • On → 1
  • Off → 0

Because the hardware naturally operates in two states, binary is the perfect fit. There's no ambiguity, no rounding , just on or off.

Analogy

Binary is like a digital Morse code , only two symbols, but through different combinations, you can express anything from the letter 'A' to a full HD movie.

Note

Binary is the most compact and reliable representation for computers because it directly mirrors the physical behaviour of transistors. More complex number systems would require hardware that distinguishes many voltage levels, which is far more error-prone.

Units of Binary Data

Binary data is measured in increasingly large units. Starting from the smallest:

UnitSize
1 bit1 binary digit (0 or 1)
1 nibble4 bits
1 byte8 bits
1 kilobyte (KB)1024 bytes
1 megabyte (MB)10242 bytes
1 gigabyte (GB)10243 bytes
1 terabyte (TB)10244 bytes
1 petabyte (PB)10245 bytes
Warning

Note that in computing, 1 kilobyte = 1024 bytes (not 1000). This is because binary systems work in powers of 2, and 210=1024. Don't confuse this with the SI (metric) prefix kilo = 1000, which is used in some storage marketing contexts.

Exam Tip

A handy memory sequence: bit → nibble → byte → KB → MB → GB → TB → PB. Each step from KB onwards multiplies by 1024.

Free preview

12 more sections in this topic

← Previous topicA1.1 Computer hardware and operationNext topic →A1.3 Operating systems and control systems
Koncepts

Learn it properly. Then practise like it's the real paper.

Start free

Features

  • Lessons
  • Past papers
  • Library
  • Homework Help
  • Duels

More

  • For parents
  • Compare
  • Plans & pricing
  • DP for students

Legal

  • Privacy
  • Terms
  • Account deletion

© 2026 Koncepts (product of PrepAiro, Inc). All rights reserved.
DP, IB, EE and TOK are terms of the International Baccalaureate Organization.

Made for IB DP students.