Is 1 KB 1000 Bytes or 1024 Bytes? KB vs KiB Explained
Published
By the international standard, 1 KB is 1000 bytes and 1024 bytes is 1 KiB (kibibyte). Some software, Windows included, labels the 1024-based figure as KB, which is why a 1 TB drive appears as about 931 GB. The gap grows with size: 2.4% at KB, 7.4% at GB and about 10% at TB.
Plug in a brand new 1 TB external drive and your computer may report 931 GB. Where did 69 GB go? Nothing is broken and nobody lied. The same letters, KB and GB, are used by some for multiples of 1000 and by others for multiples of 1024. This post covers why the two conventions exist, who uses which, and how big the difference really is.
Kilo means 1000
Kilo (k) is an International System of Units (SI) prefix meaning exactly 1000, just as a kilometer is 1000 meters. Mega is a million (10⁶), giga a billion (10⁹), tera a trillion (10¹²). By that rule, 1 KB is 1000 bytes and 1 GB is a billion bytes.
Computers, however, work in binary. Memory addresses split neatly into powers of two, so early engineers found 2¹⁰ = 1024 a far more natural bundle than 1000. Since 1024 is only 2.4% more than 1000, they borrowed "kilo" to mean "about a thousand", and the habit carried on to mega and giga. In binary 1024 is 10000000000 (a one followed by ten zeros) and in hexadecimal it is 400; put it into the Number Base Converter and you can see why it is such a tidy number for a computer.
Enter the KiB
To end the confusion of KB meaning both 1000 and 1024, the International Electrotechnical Commission (IEC) defined separate binary prefixes in 1998: kibi (Ki) for 1024, mebi (Mi) for 1024², gibi (Gi) for 1024³ and tebi (Ti) for 1024⁴.
| Decimal (SI) | Bytes | Binary (IEC) | Bytes | Difference |
|---|---|---|---|---|
| 1 KB | 1,000 | 1 KiB | 1,024 | 2.4% |
| 1 MB | 1,000,000 | 1 MiB | 1,048,576 | 4.9% |
| 1 GB | 1,000,000,000 | 1 GiB | 1,073,741,824 | 7.4% |
| 1 TB | 1,000,000,000,000 | 1 TiB | 1,099,511,627,776 | 9.95% |
The standard settled the names, but not every program switched. When a screen says "GB" you still have to judge from context which one it means.
Who uses which
- Hard drives, SSDs, USB sticks: manufacturers use decimal (1 TB = one trillion bytes).
- Windows File Explorer: calculates in 1024s but labels the result KB, MB, GB. A trillion bytes divided by 1024³ is about 931.3, shown as "931 GB". A 500 GB drive shows about 465.7 GB and a 256 GB drive about 238.4 GB.
- macOS: switched to decimal in 2009 with Snow Leopard (10.6), so a 1 TB drive looks close to 1 TB.
- Memory (RAM): binary by convention; 8 GB of RAM is really 8 GiB.
- Internet speeds: bits (b) with decimal prefixes. 100 Mbps is 100 million bits per second, or 12.5 MB per second (about 11.9 MiB) once divided by 8.
The old 3.5-inch floppy's "1.44 MB" is the classic mixed case. It held 1,474,560 bytes, which is 1440 × 1024 bytes, then divided by 1000 to get "1.44 M". In pure decimal that is about 1.47 MB, in pure binary about 1.41 MiB.
Keeping it straight
Remember that the gap grows with size and most surprises explain themselves. At 1 KB the difference is a barely noticeable 2.4%, but at 1 TB it is about 10%. A 4 TB drive shows up in Windows as about 3.64 TB, which feels like hundreds of gigabytes went missing. Formatting takes a little more for the file system, and laptops and phones reserve space for the operating system, so the usable capacity is smaller still.
When in doubt, look at the exact byte count. File and drive property windows usually show it in brackets next to the rounded figure, and dividing that number by 1000 or by 1024 tells you at once which convention the label used. The byte count itself never changes; only the way it is rounded and named does.
If you want to be precise, use KB, MB and GB for multiples of 1000 and KiB, MiB and GiB for multiples of 1024. When comparing capacities in a document, mixing the two throws figures off by several percent, so stating which one you mean is the surest habit. Strictly speaking, the SI symbol for kilo is a lowercase k (kB); the common uppercase K (KB) is not an official symbol.
Tools in this post
More posts
- Tech JSON vs YAML: What's the Difference and When to Use Each?JSON vs YAML compared side by side: braces and quotes versus indentation, comments, strictness, why APIs use JSON while config files use YAML, and how YAML 1.2 reads almost any JSON.
- Tech How Was Morse Code Invented? Its History and the Logic of Dots and DashesMorse code history from the 1844 telegraph to International and Korean Morse code: why E is a single dot while Q is long, the timing rules for dots and dashes, and how SOS was chosen.
- Tech How Damaged Can a QR Code Be and Still Scan? Error Correction ExplainedQR code error correction levels L, M, Q and H recover from about 7, 15, 25 and 30% damage. How Reed-Solomon codes make that work, which parts must stay intact, and which level to pick for a logo.