Understanding Digital Information Units
A bit is the fundamental building block of digital data, holding a single binary value: either 0 or 1. Eight bits combine to form one byte, which can represent 256 distinct values (from 0 to 255). This pairing emerged as the industry standard because it provides enough combinations to encode letters, numerals, punctuation, and basic control characters.
From bytes, larger units scale upward using either decimal (base 10) or binary (base 2) multipliers:
- Decimal multiples use powers of 1,000: kilobyte (10³), megabyte (10⁶), gigabyte (10⁹), terabyte (10¹²)
- Binary multiples use powers of 1,024: kibibyte (2¹⁰), mebibyte (2²⁰), gibibyte (2³⁰), tebibyte (2⁴⁰)
Storage manufacturers typically advertise capacity in decimal units, while operating systems often report file sizes in binary units—creating the apparent "missing" space on new drives.
Byte Conversion Formulas
Converting between units requires multiplying or dividing by the appropriate scaling factor. The formulas below show conversions to and from bytes as the reference unit:
Kilobytes = Bytes ÷ 1,000
Megabytes = Bytes ÷ 1,000,000
Gigabytes = Bytes ÷ 1,000,000,000
Terabytes = Bytes ÷ 1,000,000,000,000
Kibibytes = Bytes ÷ 1,024
Mebibytes = Bytes ÷ 1,048,576
Gibibytes = Bytes ÷ 1,073,741,824
Bytes— The number of individual bytes you want to convertKilobytes— One kilobyte equals 1,000 bytes in the decimal systemMegabytes— One megabyte equals 1,000,000 bytes (or 1,000 kilobytes)Gigabytes— One gigabyte equals 1,000,000,000 bytes (or 1,000 megabytes)Terabytes— One terabyte equals 1,000,000,000,000 bytes (or 1,000 gigabytes)
Decimal vs. Binary: A Critical Distinction
The confusion between decimal and binary units stems from competing standards. The International System of Units (SI) defines kilobyte as 1,000 bytes, while the IEC standard reserves the "kibi-" prefix for binary quantities (1,024 bytes = 1 kibibyte).
This 2.4% difference at the kilobyte level compounds dramatically:
- 1 MB (decimal) = 1,000 KB, but 1 MiB (binary) = 1,024 KiB—a 2.4% gap
- 1 GB (decimal) = 1,000 MB, but 1 GiB (binary) = 1,024 MiB—a 7.3% gap
- 1 TB (decimal) = 1,000 GB, but 1 TiB (binary) = 1,024 GiB—a 10% gap
Hard drive manufacturers use decimal units for marketing, meaning a "1 TB" drive actually holds roughly 931 GiB. Your operating system reports capacity in binary units, explaining the discrepancy when you physically connect the device.
Common Conversion Pitfalls
Avoid these frequent mistakes when converting between digital storage units:
- Confusing decimal and binary prefixes — A kilobyte (KB) is not the same as a kibibyte (KiB). If a document shows 1 MB, confirm whether it means 1,000,000 bytes or 1,048,576 bytes. Always check the source documentation or context clues to identify which system is being used.
- Forgetting that storage devices underreport capacity — When you buy a 1 TB external drive and connect it to your computer, it typically shows as ~931 GB. This isn't a defect—manufacturers advertise in decimal terabytes (10¹² bytes), but your OS displays binary tebibytes (2⁴⁰ bytes). The difference is normal and expected.
- Assuming all file sizes follow the same standard — Cloud storage services may advertise space in decimal units, while your local file explorer uses binary units. Before comparing storage quotes across platforms, verify which system each one employs to avoid purchasing insufficient capacity.
- Overlooking bits in bandwidth contexts — Internet speeds are measured in megabits (Mb) per second, not megabytes (MB). A 100 Mbps connection transfers ~12.5 MB/s. Many users mistakenly compare download speeds directly to file sizes without converting, leading to incorrect transfer time estimates.