toolfree

GB to GiB

Convert gigabytes to gibibytes. Divide by 1.073741824, and see why a 1 TB drive reports as 931 GB in Windows.

Runs in your browser

The formula

GiB = GB × 1,000,000,000 ÷ 1,073,741,824
    = GB ÷ 1.073741824

A gigabyte is 10⁹ bytes. A gibibyte is 2³⁰ bytes, which is 1,073,741,824. The ratio is exact and the difference is 7.4%.

This is the page for “why is my 1 TB drive only 931 GB”

Nothing is missing from the drive. Two unit systems are being used at once, and one of them is using the other’s names.

So the same drive is described twice, accurately by the box and misleadingly by the operating system:

AdvertisedBytesWindows reports
128 GB128,000,000,000119 GB
256 GB256,000,000,000238 GB
500 GB500,000,000,000465 GB
512 GB512,000,000,000476 GB
1 TB1,000,000,000,000931 GB
2 TB2,000,000,000,0001.81 TB
4 TB4,000,000,000,0003.63 TB
8 TB8,000,000,000,0007.27 TB

macOS has reported decimal gigabytes since Snow Leopard in 2009, so the same drive plugged into a Mac shows the number on the box. Linux varies by tool: df -h gives binary by default, df -H gives decimal.

Quick reference

GBGiB
1 GB0.931 GiB
1.074 GB1 GiB
10 GB9.313 GiB
100 GB93.132 GiB
500 GB465.661 GiB
1000 GB931.323 GiB

Where the drive really does lose space

Separately from the unit confusion, a formatted drive genuinely holds less than its raw capacity:

A 1 TB SSD showing 915 GB free on a new laptop is 931 GiB of capacity minus a recovery partition and a filesystem. None of that is the 7.4%.

RAM is the other way round

Memory is genuinely binary: an “8 GB” DIMM is 8 GiB, or 8,589,934,592 bytes. So the industry uses decimal prefixes for storage and binary ones for memory, with the same names for both — which is the whole reason the IEC introduced KiB, MiB and GiB in 1998.

Estimating in your head

Take off 7%. 1000 GB minus 70 is 930 GiB, against a true 931.3. For terabytes, take off 10%: a 4 TB drive shows about 3.6 TiB.