Reading 4: Why KB and MB Have Two Different Meanings

Why 24 MB of your "500 MB" hard drive is ghosting you.

Why Do KB and MB Have Two Meanings?

If you've ever looked at a file size and seen one app say a file is 500 KB while another says it is 512 KB, you're not imagining things. In computing, the units KB (kilobyte) and MB (megabyte) actually have two different definitions. This can be confusing, especially for teachers learning to read digital storage numbers for the first time.

The reason is simple: computer scientists and hardware manufacturers have historically used different counting systems. One follows the regular metric prefixes you already know. The other uses the binary math that computers rely on.

Course policy on kilobytes: Both definitions of KB exist in the real world, and you will encounter both. For all calculations in this course — including all Competency Demo questions — we use the binary definition: 1 KB = 1,024 bytes. This matches the definition used by most programming tools, operating systems, and computer science textbooks.

Definition 1: The Metric System (Base 10)

The metric system is based on powers of ten. Prefixes like kilo and mega always mean the same thing:

This is the definition you will often see used by:

Metric units look clean and round, and they match how most people already think about prefixes in everyday life.

Definition 2: Binary Units (Base 2)

Computers store data using bits that naturally form groups based on powers of two. Because of this, early computer scientists defined kilobytes and megabytes using binary-friendly values:

This definition is still used when you see:

Computers love powers of two, so this system fits naturally with how digital data is stored internally.

A Real-World Example

Imagine you buy a storage device labeled as 500 GB. When you plug it into your computer, the computer reports only about 465 GB available. Nothing is wrong with the drive — the difference is caused by the two competing definitions.

The manufacturer used metric gigabytes (1 GB = 1,000,000,000 bytes). Your computer displayed binary gigabytes (1 GiB = 1,073,741,824 bytes).

Both numbers are correct. They are just using different measuring systems. Storage manufacturers use the decimal system because it makes the numbers look bigger on the box (1,000,000,000 bytes sounds better than 931,322,574 bytes). But the operating system uses binary because that's how memory is physically addressed.

An Attempt at a Solution: New Binary Names

To reduce confusion, international standards groups created new names specifically for binary values:

Binary Prefix
Symbol
Meaning
Bytes
kibibyte
KiB
2^10
1,024 bytes
mebibyte
MiB
2^20
1,048,576 bytes
gibibyte
GiB
2^30
1,073,741,824 bytes

These terms are precise, but not widely used outside of technical computing. Most everyday users have never heard of kibibytes or mebibytes, so the two-definition problem continues.

For your classroom: You are unlikely to need to teach these terms to your K–12 students. It's enough to recognize them if they appear — for example, in a Linux file manager or a technical manual — and know that they refer to the binary definition.

When You Will See Each Meaning

You are likely to see metric values (1 KB = 1000 bytes) when viewing:

You are likely to see binary values (1 KB = 1024 bytes) when viewing:

Putting It All Together: Converting to Kilobytes

In the previous three readings you calculated the size of text, image, and sound files in bytes. Now that you know this course uses 1 KB = 1,024 bytes, you can add one final step to each of those calculations. The three examples below use the exact "Now You Try" problems from those readings so you can see the complete picture in one place.

Text: Student Essay (3 pages, 40 lines, 70 characters, ASCII)

Step What we are calculating Result
1–3 Size in bytes (from Reading 1): 3 × 40 × 70 × 8 ÷ 8 8,400 bytes
4 Convert to kilobytes: 8,400 ÷ 1,024 ≈ 8.2 KB

Check: 3 × 40 × 70 × 8 ÷ 8 ÷ 1,024 ≈ 8.2 KB ✓

Image: School Headshot (1,200 × 1,600 pixels, 24-bit)

Step What we are calculating Result
1–3 Size in bytes (from Reading 2): 1,200 × 1,600 × 24 ÷ 8 5,760,000 bytes
4 Convert to kilobytes: 5,760,000 ÷ 1,024 ≈ 5,625 KB

Check: 1,200 × 1,600 × 24 ÷ 8 ÷ 1,024 ≈ 5,625 KB ✓

Sound: Teacher Introduction (5 minutes, mono, CD quality)

Step What we are calculating Result
1–5 Size in bytes (from Reading 3): 300 × 44,100 × 16 × 1 ÷ 8 26,460,000 bytes
6 Convert to kilobytes: 26,460,000 ÷ 1,024 ≈ 25,840 KB

Check: 300 × 44,100 × 16 × 1 ÷ 8 ÷ 1,024 ≈ 25,840 KB ✓

Notice that the kilobyte conversion step is always the same regardless of the media type: divide the byte total by 1,024. Once you have the byte count, the final step never changes.

Summary