UnitNimble

UnitNimble guide · 3 min read

GB vs GiB: storage units explained

A gigabyte is based on powers of 1,000. A gibibyte is based on powers of 1,024. The similar names describe different numbers of bytes.

By Shahbaz Ahmed · Updated

The exact definitions

One gigabyte (GB) is exactly 1,000,000,000 bytes, or 10⁹ bytes. One gibibyte (GiB) is exactly 1,073,741,824 bytes, or 2³⁰ bytes. GiB belongs to the IEC system of binary prefixes.

The distinction also applies at other scales: kB and MB are decimal, while KiB and MiB are binary. Capitalization matters, and the lowercase b represents bits rather than bytes.

Why advertised and displayed capacity can differ

Storage manufacturers normally label capacity using decimal units. Some operating systems or applications calculate with binary quantities but may display a decimal-looking label. Formatting, recovery partitions, and filesystem metadata can reduce available space further.

A drive containing 500 GB has 500,000,000,000 bytes. Dividing by 1,073,741,824 gives about 465.66 GiB. No bytes disappeared during that unit conversion; the numerical value changed because the measuring unit is larger.

Bits, bytes, and network speeds

One byte contains eight bits. Storage capacity is commonly expressed in bytes, while network speed is commonly expressed in bits per second. A 1 Gb/s connection has a theoretical maximum of 125 MB/s before protocol and real-world overhead—not 1 GB/s.

  • B = byte; b = bit
  • GB = 10⁹ bytes
  • GiB = 2³⁰ bytes
  • Gb/s = 10⁹ bits per second

Which label should you use?

Use GB when the specification is decimal and GiB when the quantity is explicitly binary. When comparing products or troubleshooting capacity, compare the underlying byte count or convert both values into the same unit.

Worked example: estimating a file transfer

Suppose a file is 10 GB and a connection is rated at 100 Mb/s. In decimal units, the file contains 10 × 1,000,000,000 × 8 = 80,000,000,000 bits. Divide by 100,000,000 bits per second to obtain 800 seconds, or 13 minutes 20 seconds. That is an ideal minimum at a constant payload rate.

Protocol overhead, congestion, Wi-Fi conditions, server limits, and other traffic usually make the transfer slower. If the file is actually 10 GiB, the underlying byte count is larger and the same ideal calculation gives about 859 seconds. Confirm both capacity and rate conventions before comparing estimates.

A capacity troubleshooting checklist

First compare byte counts if both systems expose them. A nominal 1 TB drive has 1,000,000,000,000 bytes, equivalent to about 931.323 GiB. A smaller numerical capacity in GiB can therefore be consistent with the label. If available space is smaller still, inspect partitions, reserved space, filesystem metadata, and actual stored files separately.

Do not assume every missing gigabyte is a unit-label issue. Conversely, do not assume a drive is defective solely because an interface uses a binary quantity. Our calculator converts capacity units only; it does not inspect devices, recover storage, or measure actual transfer performance.

Sources and standards

Definitions were checked against the following primary references: