66 exam-style questions plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes and past-paper booklets are open to everyone. Practice needs a free account.
Or take a quick quiz: 10 questions on this subtopic in GCSE Computer Science (Edexcel), marked as you tap.
The units used to measure data storage (bit, nibble, byte, kibibyte, mebibyte, gibibyte and tebibyte), converting between them, and constructing expressions for file sizes and storage requirements. Paper 1 is taken without a calculator, so many questions ask you to construct an expression rather than work out the answer.
Key facts
1 nibble = 4 bits; 1 byte = 8 bits
1 KiB = 1024 bytes
1 MiB = 1024 KiB
1 GiB = 1024 MiB
1 TiB = 1024 GiB
Smaller to larger unit: ÷ (8 or 1024); larger to smaller: × (8 or 1024)
Order: bit, nibble, byte, KiB, MiB, GiB, TiB
Number of files that fit = capacity ÷ file size, rounded down
Notes
The units
Bit: a single binary digit, 0 or 1. The smallest unit of data.
These are binary multiples: 1024 = 210. Computers work in binary, so storage is measured in powers of 2.
Drive makers often use decimal units (1 TB = 1,000,000,000,000 bytes). A tebibyte is bigger than a terabyte, so a computer that measures in TiB shows a smaller number for the same drive. Grade 7+ only
Converting
diagram
To a larger unit, divide: bits ÷ 8 = bytes; bytes ÷ 1024 = KiB; KiB ÷ 1024 = MiB; MiB ÷ 1024 = GiB; GiB ÷ 1024 = TiB.
To a smaller unit, multiply: e.g. 3 GiB = 3 × 1024 = 3072 MiB.
8 bits = 1 byte; after that each unit is 1024 times the one before. (A nibble is 4 bits, half a byte.)
Several steps: 2 MiB in bits = 2 × 1024 × 1024 × 8.
File sizes and capacity
Text: number of characters × bits per character.
Image: width × height × colour depth (bits).
Sound: sample rate × bit depth × seconds (bits).
Then convert: ÷ 8 for bytes, ÷ 1024 for KiB, ÷ 1024 again for MiB.
Construct an expression means write the calculation with the right numbers and operations. You do not have to work it out.
To find how many files fit on a device, divide the capacity by the size of one file (both in the same unit) and round down to a whole number.
How to answer each type of question
Convert between units
1 to 2 marksGrade 5
Decide whether the unit is getting bigger (divide) or smaller (multiply).
Use 8 between bits and bytes, and 1024 for every other step.
Count the steps: bytes to MiB is two steps, so ÷ 1024 ÷ 1024.
Example. (a) State the number of bits in 5 bytes. (b) Construct an expression to calculate the number of bytes in 6 GiB.
Show the model answerHide the model answer
(a) 40
(1)
(b) 6 × 1024 × 1024 × 1024
(1)
Calculate the total storage needed
3 marksGrade 7
Work out the size of each group of files.
Convert everything to the unit the question asks for.
Add, and give the unit.
Example. A student has 40 photos of 3 MiB each and a video of 1.5 GiB. Calculate the total storage needed, in MiB. Show your working.
Show the model answerHide the model answer
Photos: 40 × 3 = 120 MiB
(1)
Video: 1.5 × 1024 = 1536 MiB
(1)
Total: 120 + 1536 = 1656 MiB
(1)
Construct an expression for a storage requirement
3 to 4 marksGrade 8
Write the size of one file in bits.
Multiply by the number of files.
Divide by 8, then by 1024 once for each step up to the unit asked for.
Example. An online album stores 500 images. Each image is 1600 × 1200 pixels with a colour depth of 24 bits. Construct an expression to calculate the storage needed for all the images, in GiB. You do not need to do the calculation.
Convert the capacity and the file size to the same unit.
Divide the capacity by the size of one file.
Round down: only complete files count.
Example. A memory card has 2 GiB of free space. Each recording is 96 MiB. Calculate the number of complete recordings that can be stored. Show your working.
Show the model answerHide the model answer
2 × 1024 = 2048 MiB
(1)
2048 ÷ 96 = 21.3, so 21 complete recordings
(1)
Don’t lose marks
Using 1000 instead of 1024 for storage units.
Forgetting to divide by 8 to change bits into bytes (the image and sound formulas give bits).
Adding sizes that are in different units without converting them first.
Rounding up the number of files that fit: 21.3 means 21 complete files, not 22.
Multiplying when you should divide: going to a bigger unit makes the number smaller.
More tips
Memory tricks
Order of units: 'Big Nosy Bears Kick Muddy Green Tyres' (bit, nibble, byte, KiB, MiB, GiB, TiB).
Every step up is ÷ 1024, except bits to bytes, which is ÷ 8.
State what is meant by the term sample rate in a sound recording.
The number of samples taken each second.
Complete the sentences using words from the box. Each word can be used once. kibibytes, mebibytes, bytes One gibibyte is 1024 ………………… . One mebibyte is 1024 ………………… .
mebibytes; kibibytes
Choose the most suitable unit from the box to measure the storage capacity of a modern smartphone. byte, kibibyte, mebibyte, gibibyte
gibibyte
Sample questions
Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.
Question 1Easy3 marks
(a) Identify the smallest unit of data.
[1]
Byte
Nibble
Kibibyte
Bit
(b) State the number of bits in a nibble.
[1]
(c) State the number of bytes in one kibibyte (KiB).
[1]
Show the answer and mark scheme
(a)Answer: Bit
(b)Answer: 4
4
(c)Answer: 1024
1024
Question 2Medium4 marks
A student’s project folder contains:
a report of 768 KiB
12 photos of 2.5 MiB each
a video of 1.25 GiB
(a) Calculate the total size of the folder in MiB. Show your working.
[3]
(b) State whether the folder will fit on an empty 1 GiB USB flash drive. Give a reason for your answer.