Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Online Courses / University Track / Computing Foundations

Module 7 · Lesson 2 · Core

Memory, storage and units of size

Use bytes, kilobytes, megabytes and gigabytes to size files and storage, and explain why memory is small and fast.

  • 50 minutes
  • Serves O7
  • Assumes M7.L1 and Module 2

Phase 1: Prepare

Step 1 Warm-up recall

From Module 2: how many bits make a byte?

Private: nothing you type here is sent or stored.

Step 2 Learning goal

By the end of this lesson you can:

  • convert between bytes, KB, MB and GB (Foundation);
  • estimate how many files fit (Core);
  • explain the speed and size pattern of memory (Core).

Phase 2: Teach

Step 3 A familiar example

A desk is quick to reach but small. A warehouse is large but far away. Computers use the same pattern: fast memory is small and costly, and slow storage is big and cheap.

Step 4 Clear explanation

Data is measured in bytes, and one byte is 8 bits (Module 2). Larger units use prefixes. This course uses the decimal prefixes, in which each unit is 1,000 times the one before. Note that some software uses 1,024 instead, so figures may differ slightly between tools.

UnitMeaning (decimal prefixes)In bytes
Byte8 bits1
Kilobyte (KB)1,000 bytes1,000
Megabyte (MB)1,000 KB1,000,000
Gigabyte (GB)1,000 MB1,000,000,000

To estimate how many files fit, convert both sizes to the same unit and divide. An invented example: a 4 GB card is 4,000 MB, and photos of 2 MB each fill it with 4,000 ÷ 2 = 2,000 photos. For speed, the general pattern is shown below.

Registersfastest, tiniestCachevery fast, smallMemoryfast, largerStorageslower, largest
Faster memory is smaller and costs more per byte; slower storage is larger and cheaper. This is a general pattern, not a set of exact figures.

The processor works fastest with the data closest to it, so computers keep small amounts of data in very fast memory and large amounts in slower storage. The figure shows the pattern only; exact sizes and speeds change with each new machine and are not given here. Keep the pattern in mind when you read a product description: more memory lets more programs and data stay close to the processor, while more storage holds more files.

Step 5 Worked example (4 marks)

A drive holds 500 GB. How many 25 MB files fit, using decimal units?

  1. Convert: 500 GB = 500,000 MB. (1 mark)
  2. Divide: 500,000 ÷ 25. (1 mark)
  3. 500,000 ÷ 25 = 20,000. (1 mark)
  4. Answer: 20,000 files. (1 mark)

Phase 3: Practise

Step 6 Learner practice (instant-marked)

1. How many bytes are in 3 KB (decimal)?

2. A 2 GB card in MB (decimal) is:

3. How many 5 MB files fit in 1 GB (decimal)?

4. Compared with storage, memory is generally:

Phase 4: Close

Step 7 Recap

  • Convert to one unit, then divide.
  • Decimal prefixes step by 1,000.
  • Faster memory is smaller; storage is larger and slower.

Step 8 Exit ticket (ungraded)

How many 4 MB files fit in 2 GB?

Private: nothing you type here is sent or stored.

Step 9 Go further (Extension)

Check the units on a real device and note whether it uses 1,000 or 1,024.

Common mistakes

MistakeWhy it fails
Mixing MB and GB in one calculationConvert first.
Assuming every tool uses 1,000Some use 1,024; check.
Treating memory and storage sizes as the sameThey have different jobs.

Limits. Sizes are estimates; file systems, formats and the operating system also use space.