When the bit is the unit you need

File sizes are quoted in bytes, and communication links are quoted in bits per second. To predict how long a transfer takes, both must be in the same unit, and the simplest choice is to express the file in bits and divide by the line rate. This page does the first step. A 4.7 GB disc image, for example, holds 37,600,000,000 bits, and over a link running at 100,000,000 bit/s the ideal time is 376 seconds. The conversion is exact because it combines the SI meaning of giga with the fixed 8 bits of a byte, and nothing in it depends on file type, compression or the medium that stores the data.

Ten to the ninth bytes times eight bits

A gigabyte in the decimal convention is 10^9 bytes. A byte is 8 bits, a definition fixed for decades in standards such as ISO/IEC 80000-13, which also names the bit as the unit of information content. Multiplying gives 8 × 10^9, or 8,000,000,000 bits per gigabyte. Dividing the other way uses the same figure. The binary gibibyte of 1,073,741,824 bytes is a different quantity and has its own sibling page. Using it by mistake would inflate the bit count by 7.37 percent, which is easily large enough to spoil a bandwidth estimate for a big transfer.

Reading the default, 10 GB

The default of 10 GB converts to 80,000,000,000 bits, written as 80 billion. That is the amount a link at 1,000,000,000 bit/s would carry in 80 seconds in the ideal case, and a link at 10,000,000,000 bit/s would carry it in 8 seconds. Many everyday items, such as a long high-definition movie file, fall near this size. The long string of digits is easy to miscount, so use the rule that any whole number of GB gives its value times 8 followed by nine zeros. Check the default by that rule: 10 times 8 is 80, with nine zeros after it. The page then shows the same figure with grouping separators.

Optical media and cards in bits

Capacity labels are decimal, and the bit count follows directly. A single-layer DVD at 4.7 GB holds 37,600,000,000 bits. A 25 GB Blu-ray layer holds 200,000,000,000 bits. A 128 GB flash card holds 1,024,000,000,000 bits, a little over one terabit. These are nominal capacities, and the usable space after formatting is smaller. The bit view is rarely needed to describe storage on its own. It matters when you compare the medium with a signal rate or a channel capacity, where information theory and telecommunications both use bits, and it makes the comparison direct. For example, a 25 GB Blu-ray layer at 200,000,000,000 bits would take 20,000 seconds to send at 10,000,000 bit/s, which is about 5.6 hours, a figure that explains why people ship large archives on physical media.

Transfer time worked through

A concrete case shows the use. A 2 GB video is 16,000,000,000 bits. On a connection that delivers 50,000,000 bit/s, the transfer takes 320 seconds, a bit over five minutes. At 500,000,000 bit/s it takes 32 seconds. The same calculation with megabytes would need a factor of 8 and a factor of 1,000, and doing it in bits shortens the chain. Real transfers take longer than the ideal figure because of protocol overhead, retransmissions and variable speed, so treat the converted size as the numerator of a best-case estimate, not as a promise. Add a margin for your own link by measuring its actual throughput at the time of day you plan to transfer. If a speed test shows 400,000,000 bit/s, the same 2 GB file needs 40 seconds, and a measurement of 80,000,000 bit/s stretches it to 200 seconds. Uploads are often slower than downloads on consumer connections, so measure the direction that matters.

From bits back to GB

To reverse the conversion, select bit as the source and GB as the target. The engine divides by 8,000,000,000. A count of 40,000,000,000 bits is 5 GB, 2,000,000,000 bits is 0.25 GB, and 8,000,000,000 bits is 1 GB. This direction suits a communications document that gives the amount of data in bits, such as a monthly allowance expressed as a bit total or a satellite downlink budget, and you want the size in the gigabytes that a user would recognize. Check for a leading or trailing zero, since one slip changes the answer tenfold.

Bit versus byte notation

Notation is the main hazard. A capital B is a byte and a lowercase b is a bit, so 5 GB is 40 Gb, written in lowercase for gigabits. Data sheets are not always careful, and some mix the two within a table. The source unit is the decimal gigabyte, and its target unit is the plain bit, so there is no prefix on the output. If you need gigabits instead, divide the result by 1,000,000,000, which is the same as multiplying the GB value by 8. Writing out the word gigabits avoids the ambiguity in text meant for others.

Precision and very large counts

The result is an integer whenever the GB value has at most nine decimal places, so no rounding occurs. 0.001 GB is 8,000,000 bits, and 0.25 GB is 2,000,000,000. Spreadsheets and programs hold such values easily, but a 32-bit signed integer stops at 2,147,483,647, which is only about 0.27 GB in bits. Software that counts bits needs a 64-bit type to hold files in the gigabyte range. If you export a conversion into code, store it as an integer, add a comment with the unit and avoid floating-point formats that might shorten the value.

Metadata, error correction and headers excluded

The conversion assumes plain data. It does not add the bits of file system metadata, error-correcting codes, packet headers or encryption padding, which all make the number of bits actually carried on a medium or a line larger than the payload. A file on a link that uses 8b/10b line coding, for example, sends 10 bits on the wire for each 8 bits of payload. For a pure unit change none of that applies, and the answer is the information content of the stated number of gigabytes in plain bits. Keep that in mind when you compare the bit count with a channel rate that is quoted after coding, since the two may not describe the same layer of the system. Quote the layer you mean, whether it is the file, the payload or the wire, and the comparison stays honest.