Data Storage Units Explained: KB, MB, GB and Beyond
Have you ever bought a "1 TB" hard drive only to find your computer showing just 931 GB? Or downloaded a file advertised as 100 MB but saw 95.4 MiB in the progress bar? These discrepancies stem from a long-standing issue in the tech world: the confusion between decimal and binary measurement.
Bits and Bytes: The Fundamental Units
All digital data is composed of bits. A single bit can represent either 0 or 1 — the smallest unit of data in computing. A byte consists of 8 bits and typically represents one character.
- 1 bit: 0 or 1
- 1 byte = 8 bits: Can represent 256 different values (2⁸)
- One English letter takes about 1 byte
- One Chinese character in UTF-8 encoding takes 3 bytes
Decimal vs Binary: The Root of the Problem
The issue is that "kilo" has two interpretations in computing:
| System | Value of "kilo" | Prefixes | Used By |
|---|---|---|---|
| Decimal (SI) | 1000 (10³) | kilo, mega, giga | Hard drive manufacturers, network speeds |
| Binary | 1024 (2¹⁰) | kibi, mebi, gibi | Operating systems, RAM |
This is why your hard drive "shrinks": Drive manufacturers use decimal (1 GB = 1,000,000,000 bytes), but operating systems use binary (1 GiB = 1,073,741,824 bytes). The same number of bytes yields different numbers depending on the calculation method.
IEC Binary Prefixes: The Standard Solution
To resolve this confusion, the International Electrotechnical Commission (IEC) established IEC 80000-13 in 1998, introducing dedicated binary prefixes:
| Decimal Prefix | Value | Binary Prefix | Value | Difference |
|---|---|---|---|---|
| 1 KB (kilobyte) | 1,000 B | 1 KiB (kibibyte) | 1,024 B | 2.4% |
| 1 MB (megabyte) | 1,000,000 B | 1 MiB (mebibyte) | 1,048,576 B | 4.9% |
| 1 GB (gigabyte) | 1,000,000,000 B | 1 GiB (gibibyte) | 1,073,741,824 B | 7.4% |
| 1 TB (terabyte) | 10¹² B | 1 TiB (tebibyte) | 2⁴⁰ B | 10.0% |
As you can see, the larger the capacity, the greater the difference. A 1 TB hard drive calculates to only about 931 GiB in binary.
How Different Devices Handle Units
Hard Drives and SSDs
Storage manufacturers almost universally use decimal. So when you buy a 512 GB SSD, it contains 512,000,000,000 bytes, but Windows displays it as approximately 476 GiB (though Windows still labels it "GB," adding to the confusion).
RAM (Memory)
RAM is inherently binary due to its hardware architecture (the binary nature of address lines). So 8 GB of RAM actually equals 8 GiB = 8,589,934,592 bytes.
Network Speeds
Network speeds are typically calculated in decimal bits. A 100 Mbps network speed means 100,000,000 bits per second = 12.5 MB/s. Note: bits (lowercase b) not Bytes (uppercase B).
Actual Capacity Reference Table
| Advertised | Actual Bytes | OS Display | "Missing" Capacity |
|---|---|---|---|
| 128 GB | 128,000,000,000 | ~119 GiB | ~9 GiB |
| 256 GB | 256,000,000,000 | ~238 GiB | ~18 GiB |
| 512 GB | 512,000,000,000 | ~476 GiB | ~36 GiB |
| 1 TB | 1,000,000,000,000 | ~931 GiB | ~69 GiB |
| 2 TB | 2,000,000,000,000 | ~1.82 TiB | ~138 GiB |
How Operating Systems Handle This
- Windows: Uses binary calculation but labels it GB/TB (most confusing)
- macOS: Since Snow Leopard (10.6), uses decimal — display matches manufacturer specs
- Linux: Most distributions use binary prefixes (GiB/TiB), labeled correctly
- iOS/Android: Generally use decimal
Conclusion
The decimal vs binary debate for data storage units has persisted for decades. Although the IEC introduced binary prefixes (KiB, MiB, GiB) in 1998 to resolve the confusion, adoption remains limited. As a consumer, understanding this difference helps you correctly interpret your storage device capacities.
References
- IEC. "IEC 80000-13:2008 Quantities and units — Part 13: Information science and technology." International Electrotechnical Commission, 2008. https://webstore.iec.ch/publication/7313
- IEEE. "IEEE 1541-2002 — IEEE Standard for Prefixes for Binary Multiples." IEEE Standards Association, 2002. https://standards.ieee.org/standard/1541-2002.html
- NIST. "Prefixes for Binary Multiples." NIST Reference on Constants, Units, and Uncertainty, 2024. https://physics.nist.gov/cuu/Units/binary.html
- Kozierok, Charles M. "Binary vs. Decimal Capacity." The PC Guide, 2004. Detailed technical analysis of storage industry measurement differences.