AS Level · Topic 1.1
A-Level Computer Science 9618 / Topic 1 / AS

Kilo or kibi?

A hard drive sold as 1 TB shows up as about 931 GB on your computer, and nothing has gone missing. Two different sets of prefixes are being used: decimal prefixes count in powers of 10, binary prefixes in powers of 2. Learn both and convert between them.

The key idea

Decimal prefixes go up in powers of 10 (steps of 1000): kilo = 103, mega = 106, giga = 109, tera = 1012. Binary prefixes go up in powers of 2 (steps of 1024): kibi = 210, mebi = 220, gibi = 230, tebi = 240. So 1 KiB = 1024 bytes but 1 kB = 1000 bytes. Memory sizes are naturally powers of 2, which is why the binary prefixes exist.

decimal prefixes (× 1000) binary prefixes (× 1024) kilo kBmega MBgiga GBtera TB kibi KiBmebi MiBgibi GiBtebi TiB 10³10⁶10⁹10¹² 2¹⁰2²⁰2³⁰2⁴⁰ the binary unit is always a little bigger: 1 KiB = 1024 bytes but 1 kB = 1000 bytes
Fig. 1: decimal prefixes multiply by 1000 each step; binary prefixes multiply by 1024
Section 01

Two ladders.

Open the prefixes mode of the lab and compare each decimal unit with its binary partner. Notice how the gap grows as the units get bigger.

Decimal prefixSymbolBytesBinary prefixSymbolBytes
kilokB103 = 1 000kibiKiB210 = 1 024
megaMB106 = 1 000 000mebiMiB220 = 1 048 576
gigaGB109 = 1 000 000 000gibiGiB230 = 1 073 741 824
teraTB1012tebiTiB240 = 1 099 511 627 776
Examiner trap

Read the symbol carefully. MB means 106 bytes and MiB means 220 bytes. If a question uses MiB, divide by 1024 at each step, not 1000.

Section 02

Converting units.

To move down a ladder multiply; to move up divide. Never mix the two ladders in one step: convert to bytes first if you need to switch.

Worked example Binary units
How many bytes are there in 4 MiB? How many bits is that?
  1. 1 MiB = 220 = 1 048 576 bytes.
  2. 4 × 1 048 576 = 4 194 304 bytes.
  3. Each byte is 8 bits: 4 194 304 × 8 = 33 554 432 bits.
Answer: 4 194 304 bytes = 33 554 432 bits
Worked example Switching ladders
A drive is sold as 500 GB. How many GiB will the operating system report?
  1. Convert to bytes using the decimal ladder: 500 GB = 500 × 109 = 500 000 000 000 bytes.
  2. 1 GiB = 230 = 1 073 741 824 bytes.
  3. 500 000 000 000 ÷ 1 073 741 824 = 465.66...
Answer: about 465.7 GiB
Your turn
How many 2 MiB photos can be stored in exactly 1 GiB?
Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

How many bytes are in 1 KiB?

Quick check+10 XP

In the lab, which is bigger: 1 GB or 1 GiB?

Quick check+10 XP

How many MiB make 1 GiB?

Quick check+10 XP

What does the prefix tera mean?

Section 03

Where each is used.

Both sets of prefixes appear on real devices, which is why the numbers on the box and the numbers on the screen disagree.

Examiner trap

A capital B is bytes and a small b is bits. 100 Mbps is 100 000 000 bits per second, which is 12 500 000 bytes per second.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to AS Paper 1 and Paper 2 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

A file is 3 145 728 bytes. What is its size in MiB?

Exam style+20 XP

Which statement about 1 mebibyte is correct?

Exam style+20 XP

A laptop has 8 GiB of RAM. How many bytes is this?

Exam style+20 XP

Why does a drive labelled 2 TB appear smaller when the operating system measures it in TiB?

Skill unlocked

Binary and decimal prefixes, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
Kibi, mebi, gibi and tebi against kilo, mega, giga and tera, with conversions between them.