Decimal and binary storage units
Data is measured in bits and bytes, with 8 bits in a byte. Larger units come in two families. Decimal units (kilobyte, megabyte, gigabyte) step up by 1,000, like other metric units. Binary units (kibibyte, mebibyte, gibibyte) step up by 1,024, which is 2 to the power of 10 and suits the way computer memory is built.
| Decimal unit | Bytes | Binary unit | Bytes |
|---|---|---|---|
| Kilobyte (KB) | 1,000 | Kibibyte (KiB) | 1,024 |
| Megabyte (MB) | 1,000,000 | Mebibyte (MiB) | 1,048,576 |
| Gigabyte (GB) | 1,000,000,000 | Gibibyte (GiB) | 1,073,741,824 |
| Terabyte (TB) | 1,000,000,000,000 | Tebibyte (TiB) | 1,099,511,627,776 |
The gap grows at each step. A kibibyte is 2.4% bigger than a kilobyte, a gibibyte is 7.4% bigger than a gigabyte, and a tebibyte is 10% bigger than a terabyte.
Why a new drive shows less space than advertised
Drive and phone makers label capacity in decimal units, so a 1 TB drive holds 1,000,000,000,000 bytes. Windows measures in binary units but still labels them GB and TB, so the same drive shows up as 931 GB. Nothing is missing. It's the same number of bytes, counted in bigger units.
Example: Why 1 TB shows as 931 GB
- 1 TB = 1,000,000,000,000 bytes
- 1 GiB = 1,073,741,824 bytes
- 1,000,000,000,000 ÷ 1,073,741,824 = 931.32
The drive holds 931.32 GiB, which Windows displays as 931 GB.
| Advertised | Bytes | In binary units |
|---|---|---|
| 128 GB | 128 billion | 119.2 GiB |
| 256 GB | 256 billion | 238.4 GiB |
| 512 GB | 512 billion | 476.8 GiB |
| 1 TB | 1 trillion | 931.3 GiB |
| 2 TB | 2 trillion | 1,862.6 GiB (1.82 TiB) |
The space you can actually use is usually a little lower again, because formatting, the operating system and preinstalled apps take their share. macOS has reported storage in decimal units since 2009, so a Mac shows a figure much closer to the number on the box.
Memory cards and USB sticks are labeled the same way. A 64 GB card shows up as about 59.6 GB in Windows, so if you're planning how many photos or videos fit, work from the smaller figure.
Bits and bytes in internet speeds
Internet plans are sold in megabits per second (Mbps), with a lowercase b, while file sizes are in megabytes (MB), with a capital B. A byte is 8 bits, so divide the speed by 8 to see how many megabytes arrive each second.
Example: Downloading a 4 GB game update at 100 Mbps
- 100 ÷ 8 = 12.5 MB per second
- 4 GB = 4,000 MB
- 4,000 ÷ 12.5 = 320 seconds
At best, the download takes about 5 minutes 20 seconds. Real connections usually run a bit slower.
The same rule scales up. A 1 Gbps fiber line moves at most 125 MB per second, and a 20 Mbps connection manages 2.5 MB per second, so the same 4 GB update takes about 32 seconds on one and nearly 27 minutes on the other.
To turn a long download estimate in seconds into hours and minutes, the Time Converter does the division for you.
Reading data unit abbreviations correctly
In data units, a single letter changes the meaning, so it pays to read abbreviations slowly. The small differences are easy to miss on a spec sheet or a phone plan.
- b versus B. Lowercase b is a bit, uppercase B is a byte, eight times larger. 50 Mb is 6.25 MB.
- i in the middle. GiB, MiB and KiB are binary units. GB, MB and KB without the i should be decimal, though Windows and plenty of older software use them for binary sizes.
- k versus K. The metric prefix kilo is a lowercase k, as in kbps for kilobits per second. KB with a capital K is common for kilobytes, and you'll see both.
Example: A 3.5 GiB file in decimal gigabytes
- 3.5 × 1,073,741,824 = 3,758,096,384 bytes
- 3,758,096,384 ÷ 1,000,000,000 = 3.76
The file is about 3.76 GB, so it won't fit on a USB stick with exactly 3.7 GB free.
Where binary units still show up
For decades, KB, MB and GB were used for both meanings, which is where today's confusion comes from. In 1998 the International Electrotechnical Commission introduced kibi, mebi and gibi for the binary sizes, leaving kilo, mega and giga with their usual metric meaning.
Memory (RAM) is still built in binary sizes, so a laptop with 16 GB of RAM actually has 16 GiB. Windows File Explorer shows file sizes in binary units, and Linux tools vary from program to program.
When you compare two storage figures, check that both use the same family of units. The Percentage Calculator shows how big the gap between them really is.