All data in a computer is stored and processed using bits, which are the smallest unit of data and can hold just one of two values: 0 or 1.
These binary digits are the foundation of all digital information, including text, images, video, and software. Because a single bit can only represent two states, we group them together to form larger, more useful units. Eight bits make one byte, which is enough to represent a single character like a letter or number.
As technology evolved and files grew larger, it became necessary to work with even bigger units. That's why we use kibibytes (KiB), mebibytes (MiB), gibibytes (GiB), and tebibytes (TiB)—each one is 1024 times larger than the previous.
We can convert between the different units by doing the following (step-up):
From |
To |
Expression |
Explanation |
bits |
bytes |
number of bits ÷ 8 |
8 bits in 1 byte |
bytes |
kibibytes (KiB) |
number of bytes ÷ 1024 |
1024 bytes in 1 KiB |
kibibytes (KiB) |
mebibytes (MiB) |
number of KiB ÷ 1024 |
1024 KiB in 1 MiB |
mebibytes (MiB) |
gibibytes (GiB) |
number of MiB ÷ 1024 |
1024 MiB in 1 GiB |
gibibytes (GiB) |
tebibytes (TiB) |
number of GiB ÷ 1024 |
1024 GiB in 1 TiB |
For the GCSE exam specification you are not required to calculate the final number - just give an expression that would correctly solve the problem.
Examples
Convert 4096 bytes into kibibytes (KiB).
Step-by-step:
Expression:
4096 ÷ 1024
Convert 2.5 GiB into bits.
Step-by-step:
Expression:
2.5 × 1024 × 1024 × 1024 × 8
When we measure file transfer speeds over a network, we often use bits rather than bytes. Common units include kilobits per second (Kb/s), megabits per second (Mb/s), and gigabits per second (Gb/s).
These use the decimal system, so 1 kilobit = 1000 bits, 1 megabit = 1000 kilobits, and 1 gigabit = 1000 megabits. This is different from how we measure file sizes on storage devices (which use binary prefixes like kibibytes and mebibytes).
To work out things like how long it will take to download a file or what size a file is based on speed and time, we often have to combine both sets of units in expressions.
That might mean converting a file size in bytes into bits, or changing megabits per second into bits per second, so that all units match in the calculation.
We can convert between the different units by doing the following (step-up):
From |
To |
Expression |
Explanation |
bits |
kilobits |
number of bits ÷ 1000 |
1000 bits = 1 kilobit |
kilobits |
megabits |
number of kilobits ÷ 1000 |
1000 kilobits = 1 megabit |
megabits |
gigabits |
number of megabits ÷ 1000 |
1000 megabits = 1 gigabit |
We can also do the opposite operations and set-down between the different units:
From |
To |
Expression |
Explanation |
gigabits |
megabits |
number of gigabits × 1000 |
1 gigabit = 1000 megabits |
megabits |
kilobits |
number of megabits × 1000 |
1 megabit = 1000 kilobits |
kilobits |
bits |
number of kilobits × 1000 |
1 kilobit = 1000 bits |
When working on GCSE questions surrounding file transfer you need to be aware of the following formula for working out total transfer time.
Transfer Time (seconds) = Bandwidth (bits per second) / File Size (bits)
The formula may need to be rearranged, for example if you were asked to calculate the bandwidth based on transfer time and file size.
Examples
When working with GCSE exam questions you must remember that file size is represented in factors of 1024 and that bandwidth is represented in factors of 1000. Often you step down file size and bandwidth down to bits before dividing or multiplying to the requested unit.
Calculating transfer time: A file is 10 MiB in size. The network speed is 20 Mb/s. Write an expression to calculate how long it will take to transfer the file.
Steps:
Answer (Expression):
(10 × 1024 × 1024 × 8) ÷ (20 × 1000 x 1000)
Calculate Bandwidth: A 25 MiB file takes 10 seconds to transfer. Write an expression to calculate the bandwidth in Mb/s.
Steps:
Answer (Expression):
(25 × 1024 × 1024 × 8) ÷ 10 ÷ 1000 ÷ 1000
Calculate File Size: A download takes 15 seconds at 50 Mb/s. Write an expression to calculate the file size in MiB.
Steps:
Answer (Expression):
(50 × 1000000 × 15) ÷ 8 ÷ 1024 ÷ 1024