How do we measure the amount of data a computer stores?
Know that data is stored in bits and bytes, the units from bit to terabyte, and calculate file sizes and storage requirements.
A focused answer to AQA GCSE Computer Science 3.3.4, covering bits and bytes, the units from bit to terabyte, and calculating file sizes and storage requirements.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
AQA wants you to know that data is stored in bits and bytes, recall the units from bit up to terabyte, and calculate file sizes and storage requirements, showing each conversion step.
Bits and bytes
The larger units
You may have read that a kilobyte is "really" 1024 bytes. That is the older binary (kibibyte) convention. For the 8525 specification AQA uses powers of 1000 unless a question explicitly tells you otherwise, so use 1000 every step. Storage manufacturers also quote capacities in powers of 1000, which is why a "500 GB" drive shows as slightly less in some operating systems that count in 1024s.
Calculating file sizes
The single most useful habit is to write the calculation as a chain: bits, then bytes (divide by 8), then KB or MB (divide by 1000 each step). Doing it in stages makes part-marks easy to earn even if you slip on the final unit.
Why a byte is 256 values
A single byte of 8 bits can represent different values, from 0 to 255. This is the reason a byte became the standard unit: 256 values is enough to give every character in the original ASCII set its own code with room to spare. The pattern recurs throughout the topic, because bits always give combinations: 1 bit gives 2 values, 4 bits (a nibble) give 16, and 8 bits give 256. Recognising this lets you answer questions about how many colours a colour depth allows, how many characters a code can represent, or how many amplitude levels a bit depth gives, all from the same rule.
Working through a multi-step file-size question
Exam file-size questions often combine several steps, so always lay them out as a chain. First find the total bits using the right formula for the medium (image: width times height times colour depth; sound: sample rate times bit depth times duration; text: characters times bits per character). Then divide by 8 to get bytes. Then divide by 1000 for each step up to KB, MB or whatever the question asks. Writing each stage separately means a slip in one step still earns the method marks for the others, and it makes it obvious whether you have answered in the unit the question requested.
Try this
Q1. State how many bits are in a byte. [1 mark]
- Cue. 8 bits.
Q2. Calculate the file size in bytes of a 50 by 40 pixel image with a colour depth of 4 bits per pixel. [2 marks]
- Cue. bits, then bytes.
Exam-style practice questions
Practice questions written in the style of AQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
AQA 20194 marksAn image is 200 pixels wide by 150 pixels high and uses a colour depth of 4 bits per pixel. Calculate the file size in kilobytes. Show your working and use 1 kilobyte = 1000 bytes.Show worked answer →
Total bits bits.
Convert to bytes by dividing by 8: bytes.
Convert to kilobytes by dividing by 1000: KB.
Markers reward the three stages (bits, then bytes, then KB), the correct use of for the bit-to-byte step, and using 1000 (not 1024) per the AQA convention. Missing the is the most common error.
AQA 20223 marksA text file stores 4000 characters, each encoded in 1 byte. Calculate the file size in kilobytes and state how many bits are used in total.Show worked answer →
Each character is 1 byte, so the file is bytes, which is KB.
In bits, bits.
Markers reward the correct byte total, the KB conversion using 1000, and multiplying bytes by 8 to get bits. Watch the direction of conversion: multiply by 8 to go from bytes to bits, divide by 8 to go the other way.
Related dot points
- Understand the binary, denary and hexadecimal number bases, why computers use binary, and convert between binary and denary.
A focused answer to AQA GCSE Computer Science 3.3.1, covering the binary, denary and hexadecimal number bases, why computers use binary, and how to convert between binary and denary.
- Understand how characters are represented using ASCII and Unicode character sets, and the effect of the character set on storage and the range of characters.
A focused answer to AQA GCSE Computer Science 3.3.5, covering how characters are represented using ASCII and Unicode, and the effect of the character set on storage and the range of characters.
- Understand how a bitmap image is represented using pixels and colour depth, the effect of resolution and colour depth on quality and file size, and the role of metadata.
A focused answer to AQA GCSE Computer Science 3.3.6, covering how bitmap images are represented using pixels and colour depth, the effect of resolution and colour depth on quality and file size, and metadata.
- Understand how analogue sound is sampled to be stored digitally, the effect of sample rate and bit depth on quality and file size, and calculate sound file sizes.
A focused answer to AQA GCSE Computer Science 3.3.7, covering how analogue sound is sampled for digital storage, the effect of sample rate and bit depth on quality and file size, and calculating sound file sizes.
Sources & how we know this
- AQA GCSE Computer Science (8525) specification — AQA (2020)