← All Articles

Data Storage Units Explained: KB, MB, GB and Beyond

March 2026 · 6 min read

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.

Decimal vs Binary: The Root of the Problem

The issue is that "kilo" has two interpretations in computing:

SystemValue of "kilo"PrefixesUsed By
Decimal (SI)1000 (10³)kilo, mega, gigaHard drive manufacturers, network speeds
Binary1024 (2¹⁰)kibi, mebi, gibiOperating 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 PrefixValueBinary PrefixValueDifference
1 KB (kilobyte)1,000 B1 KiB (kibibyte)1,024 B2.4%
1 MB (megabyte)1,000,000 B1 MiB (mebibyte)1,048,576 B4.9%
1 GB (gigabyte)1,000,000,000 B1 GiB (gibibyte)1,073,741,824 B7.4%
1 TB (terabyte)10¹² B1 TiB (tebibyte)2⁴⁰ B10.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

AdvertisedActual BytesOS Display"Missing" Capacity
128 GB128,000,000,000~119 GiB~9 GiB
256 GB256,000,000,000~238 GiB~18 GiB
512 GB512,000,000,000~476 GiB~36 GiB
1 TB1,000,000,000,000~931 GiB~69 GiB
2 TB2,000,000,000,000~1.82 TiB~138 GiB

How Operating Systems Handle This

Try the Unit Converter Tool →

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

  1. IEC. "IEC 80000-13:2008 Quantities and units — Part 13: Information science and technology." International Electrotechnical Commission, 2008. https://webstore.iec.ch/publication/7313
  2. IEEE. "IEEE 1541-2002 — IEEE Standard for Prefixes for Binary Multiples." IEEE Standards Association, 2002. https://standards.ieee.org/standard/1541-2002.html
  3. NIST. "Prefixes for Binary Multiples." NIST Reference on Constants, Units, and Uncertainty, 2024. https://physics.nist.gov/cuu/Units/binary.html
  4. Kozierok, Charles M. "Binary vs. Decimal Capacity." The PC Guide, 2004. Detailed technical analysis of storage industry measurement differences.