Skip to main content
EnglandComputer ScienceSyllabus dot point

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.

Generated by Claude Opus 4.87 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Bits and bytes
  3. The larger units
  4. Calculating file sizes
  5. Why a byte is 256 values
  6. Working through a multi-step file-size question
  7. Try this

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 28=2562^8 = 256 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 2n2^n recurs throughout the topic, because nn bits always give 2n2^n 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. 50×40×4=800050 \times 40 \times 4 = 8000 bits, then 8000÷8=10008000 \div 8 = 1000 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 =width×height×colour depth=200×150×4=120000= \text{width} \times \text{height} \times \text{colour depth} = 200 \times 150 \times 4 = 120000 bits.

Convert to bytes by dividing by 8: 120000÷8=15000120000 \div 8 = 15000 bytes.

Convert to kilobytes by dividing by 1000: 15000÷1000=1515000 \div 1000 = 15 KB.

Markers reward the three stages (bits, then bytes, then KB), the correct use of ÷8\div 8 for the bit-to-byte step, and using 1000 (not 1024) per the AQA convention. Missing the ÷8\div 8 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 4000×1=40004000 \times 1 = 4000 bytes, which is 4000÷1000=44000 \div 1000 = 4 KB.

In bits, 4000 bytes×8=320004000 \text{ bytes} \times 8 = 32000 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

Sources & how we know this