KB can mean 1000 bytes or 1024 bytes
The same letters, KB, MB, GB, and TB, are used for two different steps. Binary steps multiply by 1024, because 2^10 = 1024. Decimal steps multiply by 1000. A quantity is only unambiguous when the step is named.
IEC writes KiB, MiB, GiB, and TiB for the 1024 series, and leaves KB for 1000. Many screens still print KB for both. Other bases, such as hex, are a separate count: see the radix converter.
Which step the letters are using
Why one step is 1024 and the other is 1000
- 1024 is 2^10. Memory addresses and many file-size listings grow by that factor.
- 1000 is 10^3. Disk labels and SI prefixes grow by that factor.
- KB, MB, GB, and TB do not say which factor was used. The selected base does.
- KiB means 1024 bytes. A lowercase kB in SI means 1000 bytes. KB alone is the ambiguous spelling.
How many bytes each larger unit contains
- Binary: 1 KB = 1024 B, 1 MB = 1024 KB = 1,048,576 B, 1 GB = 1024 MB.
- Decimal: 1 KB = 1000 B, 1 MB = 1000 KB = 1,000,000 B, 1 GB = 1000 MB.
- One binary GB is 1,073,741,824 bytes, about 7.4% more than one decimal GB.
- Zero stays zero in every unit. A fraction such as 0.5 MB is half of that unit.
Why a drive labeled 1 TB looks smaller on a 1024 scale
- A disk labeled 1 TB is usually 10^12 bytes, the decimal terabyte.
- Dividing 10^12 by 1024^3 gives about 931.3. That is the same space printed with binary gigabytes.
- The difference is the step size, not missing sectors.
- The same gap appears between a decimal GB and a binary GB, only smaller.
Why megabits are not megabytes
- One byte is 8 bits. Storage quotes are almost always bytes.
- A link speed such as 100 Mbps counts megabits per second, usually with steps of 1000.
- 100 Mbps is 12.5 decimal megabytes per second: divide the bits by 8.
- Doing that division with a 1024 step instead of 1000 changes the MB figure again.
Where the two steps get mixed
Disk label versus the file listing
The label is often decimal. A listing that multiplies by 1024 and still prints GB shows a smaller number for the same bytes. 1 TB decimal is about 931 binary GB.
RAM and address width
A memory module sized as 8 GB is 8 × 1024^3 bytes. Address lines come in powers of two, so that capacity is not 8 × 1000^3.