Guide7 min read

Understanding Data Storage Units: KB, MB, GB Explained

Demystify digital storage units, binary vs decimal, and why your hard drive shows less space than advertised.

Ever wondered why your "500 GB" hard drive only shows 465 GB in Windows? Or what the difference between MB and MiB really is? This guide explains the confusing world of digital storage units.

The Binary vs Decimal Problem

The confusion stems from two different counting systems:

  • Decimal (SI): Based on powers of 1000 (like metric)
  • Binary (IEC): Based on powers of 1024 (like computers)

Storage manufacturers use decimal because it makes drives seem larger. Operating systems historically used binary because that's how computers work. This creates the "missing space" confusion.

Decimal Units (Storage Industry)

  • 1 KB (Kilobyte) = 1,000 bytes
  • 1 MB (Megabyte) = 1,000,000 bytes
  • 1 GB (Gigabyte) = 1,000,000,000 bytes
  • 1 TB (Terabyte) = 1,000,000,000,000 bytes
  • 1 PB (Petabyte) = 1,000,000,000,000,000 bytes

Binary Units (Computing)

  • 1 KiB (Kibibyte) = 1,024 bytes
  • 1 MiB (Mebibyte) = 1,048,576 bytes
  • 1 GiB (Gibibyte) = 1,073,741,824 bytes
  • 1 TiB (Tebibyte) = 1,099,511,627,776 bytes
  • 1 PiB (Pebibyte) = 1,125,899,906,842,624 bytes

Why 1,024?

Computers use binary (base 2). The closest power of 2 to 1,000 is 2^10 = 1,024. Early computing adopted this as "kilobyte" for convenience. But as storage grew, the discrepancy between 1,000 and 1,024 compounded:

  • At 1 KB: 2.4% difference (barely noticeable)
  • At 1 MB: 4.9% difference
  • At 1 GB: 7.4% difference
  • At 1 TB: 9.9% difference (nearly 100 GB "missing"!)

Practical Examples

Hard Drive: A "1 TB" drive contains 1,000,000,000,000 bytes. Windows shows this as 931 GiB (because 1 TB ÷ 1,073,741,824 = 931).

RAM: A "16 GB" RAM stick is actually 16 GiB (17,179,869,184 bytes). RAM uses binary because it directly interfaces with the CPU.

SSD: Your "256 GB" SSD appears as ~238 GiB in your OS.

Network Speed vs Storage

Internet speeds add another layer of confusion:

  • ISPs advertise in Mbps (megabits per second)
  • There are 8 bits in a byte
  • A 100 Mbps connection = ~12.5 MB/s = ~11.9 MiB/s

So a "1 Gbps" connection can download about 125 MB per second at peak, not 1 GB.

Which Should You Use?

  • Storage capacity: Manufacturers use decimal (GB, TB)
  • RAM size: Actually binary but labeled as GB
  • File sizes: Usually binary (GiB) in OS, decimal (GB) online
  • Network speeds: Decimal, in bits (Mbps, Gbps)

The Future

The IEC standardized binary prefixes (KiB, MiB, GiB) in 1998, but adoption has been slow. Some Linux distributions and developers now use them correctly. macOS switched to decimal GB in 2009, matching hard drive labels but confusing power users.

The best approach: understand both systems and check context. When precision matters, verify whether you're dealing with 1000-based or 1024-based units.

Frequently Asked Questions

Related Reference Tables

Try It Yourself

Put this knowledge into practice with our free online converter

Open Converter

More Guides