Calculate gigabytes from bytes instantly using the decimal (1 GB = 1,000,000,000 bytes) or binary (1 GiB = 1,073,741,824 bytes) standard.
Bytes to GB Formula
The conversion depends on which standard you use. The decimal (SI) standard defines a gigabyte as one billion bytes, while the binary (IEC) standard defines a gibibyte as 2^30 bytes.
GB = Bytes / 1,000,000,000
GiB = Bytes / 1,073,741,824
Where:
- Bytes is the amount of data you start with.
- GB is the result in gigabytes using the decimal standard (1 GB = 1,000,000,000 bytes).
- GiB is the result in gibibytes using the binary standard (1 GiB = 1,073,741,824 bytes).
To go the other direction, multiply instead of divide. The calculator divides your byte value by the chosen base raised to the third power to get gigabytes, and it multiplies your gigabyte value by that same number to get bytes. Pick the decimal standard when you are working with storage marketing figures and network rates, and pick the binary standard when you are matching the values reported by most operating systems.
Byte and Gigabyte Reference Values
The first table lists common byte counts and their gigabyte equivalents under both standards. The second table shows how each data unit is defined so you can see why the two standards drift apart as the numbers grow.
| Bytes | Decimal (GB) | Binary (GiB) |
|---|---|---|
| 1,000,000,000 | 1 GB | 0.9313 GiB |
| 1,073,741,824 | 1.0737 GB | 1 GiB |
| 5,000,000,000 | 5 GB | 4.6566 GiB |
| 10,000,000,000 | 10 GB | 9.3132 GiB |
| 500,000,000,000 | 500 GB | 465.66 GiB |
| Unit | Decimal bytes | Binary bytes |
|---|---|---|
| Kilobyte (KB / KiB) | 1,000 | 1,024 |
| Megabyte (MB / MiB) | 1,000,000 | 1,048,576 |
| Gigabyte (GB / GiB) | 1,000,000,000 | 1,073,741,824 |
| Terabyte (TB / TiB) | 1,000,000,000,000 | 1,099,511,627,776 |
Example Problems
Example 1. You have a file that is 8,000,000,000 bytes and want its size in gigabytes using the decimal standard.
Divide by 1,000,000,000: 8,000,000,000 / 1,000,000,000 = 8 GB.
Example 2. Your operating system reports a drive as 2,147,483,648 bytes and you want gibibytes using the binary standard.
Divide by 1,073,741,824: 2,147,483,648 / 1,073,741,824 = 2 GiB.
FAQ
Why does the same number of bytes give two different gigabyte values?
There are two accepted standards. The decimal standard divides by 1,000,000,000, and the binary standard divides by 1,073,741,824. Storage makers and network providers usually use the decimal standard, while most operating systems report the binary value. The same byte count therefore looks slightly smaller in binary gigabytes.
Which standard should I use?
Use the decimal standard when matching advertised storage capacity, data caps, or transfer rates. Use the binary standard when you need the number to match what Windows or another operating system shows for the same file or drive.
How many bytes are in a gigabyte?
A decimal gigabyte holds 1,000,000,000 bytes. A binary gibibyte holds 1,073,741,824 bytes, which is about 7.4 percent more than a decimal gigabyte.
