GCSE · Computer Science · AQA · Spec 8525

Volatile vs non-volatile memory

A storm cuts the power. When the lights come back, one memory inside the computer is completely empty and the other is exactly as it was. Which is which?

Computer Science · Memory

The power-off test

The storm has cut the power. Pick a memory and follow it down: what does it need, and what's left when the lights come back?

Does it need power to keep its contents? → The power comes back on

  • Nothing has been deleted on purpose. The only thing that has changed is that there's no power. So the question is: which memories needed it?

2 possible fates for a memory when the power goes.

On The power is switched off. 2 branches to choose from.

Walk both branches. The one question to carry into any memory problem: when the power comes back, is it still there?

RAM vs ROM: beyond the power-off test

RAMvsROM

You've seen what happens when the power goes. Now look at what each memory actually does while the computer runs.

Focus

What's in it

RAM

The data and instructions being processed right now, held temporarily

ROM

The essential instructions to start up and operate, including the BIOS

The insight

RAM's contents change all the time as you open and close things. ROM's job is the start-up instructions, not your apps or your work.

How things get in

RAM

Apps are loaded in from secondary storage when they're in use

ROM

Usually programmed by the manufacturer

Access

RAM

Read and write: data can be read from and written to memory addresses

ROM

Read-only

Can the contents be changed?

RAM

Yes: data is written to it as programs run

ROM

Not easily

UK note

AQA GCSE Computer Science (8525), section 3.4.5.

Hang on: why use RAM at all?

RAM loses everything when the power goes. So why does the computer bother putting apps there?

When you open an app, it's loaded from secondary storage into RAM instead of being run from where it's stored. What's the point of moving it?

What do you actually think?

The group chat after the power cut

The morning after the storm, four friends are arguing in a group chat about what really happened inside their computers.

Which message is closest to what you think right now?
How sure are you?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

One question sorts RAM from ROM. Switch the power off, switch it back on, and check what each memory is still holding.

What you need to know

  • Here's the test for any memory: switch the power off, then ask what's still stored when it comes back on.
  • RAM (random access memory) is volatile: it needs a constant supply of power to keep the data stored on it.
  • Switch the computer off and all the data and instructions in RAM are lost.
  • Have a goSam is forty minutes into a game when the cat knocks the plug out. Sam shrugs: “No worries, RAM will remember where I was.” Is Sam right about RAM?

    No. Whatever the game was holding in RAM is gone.

    Remembering without power is exactly what RAM can't do: it's volatile, so with no power every bit of data and every instruction in it is lost.

  • ROM (read-only memory) is non-volatile: it still stores its instructions when there's no power.
  • ROM holds the essential instructions for the computer to start up and operate, including the BIOS (basic input/output system).
  • The BIOS is also called the start-up or bootstrap loader, and its instructions are the first ones executed to start the computer.
  • Have a goFinish the sentence: when a computer is switched on, its very first instructions can't come from RAM, because…

    …RAM lost everything when the power went off, so it's empty.

    RAM is volatile, so after a power-off there's nothing in it. The first instructions executed have to come from somewhere that kept them: non-volatile ROM.

  • RAM temporarily stores the data and instructions being processed right now; apps are loaded into it from secondary storage when in use.
  • Why load them into RAM? The CPU can access RAM faster than files stored in secondary storage.
  • RAM gives read and write access: data can be read from and written to memory addresses.
  • ROM is read-only. It's usually programmed by the manufacturer, can't easily be changed, and has a small memory capacity.
  • Have a goA game's score changes every second while you play. Which memory can hold it as it changes: RAM or ROM?

    RAM.

    The score keeps being written as it changes, and RAM gives read and write access. ROM is read-only and can't easily be changed, so it's no use for a value that keeps changing.

The big picture

Volatile memory needs a constant supply of power to keep its data; non-volatile memory keeps its contents with no power at all. RAM is volatile: it temporarily holds the data and instructions being processed right now, gives read and write access, and loses everything when the computer is switched off. Apps are loaded into it from secondary storage because the CPU can access RAM faster. ROM is non-volatile: it keeps the essential start-up instructions, including the BIOS, is read-only, is usually programmed by the manufacturer, can't easily be changed and has a small memory capacity.

Key points

1Volatile: needs a constant supply of power to keep its data. Non-volatile: keeps its contents with no power.
2RAM is volatile; ROM is non-volatile.
3RAM temporarily holds the data and instructions in use. Apps are loaded into it because the CPU can access it faster than secondary storage.
4ROM holds the essential start-up instructions: the BIOS, also called the start-up or bootstrap loader.
5RAM gives read and write access; ROM is read-only, usually programmed by the manufacturer, not easily changed, and small.

Worked example

Problem

Practice question: a memory in a computer is described like this: 'Its contents are lost when the power is switched off, and the CPU writes data to it while a program runs.' Which memory is it, RAM or ROM? Is it volatile or non-volatile? Explain how you decided.

⚠ Watch out

Thinking 'volatile' means 'can be changed'. Volatile is only about power: a volatile memory like RAM loses its contents when the power goes. Whether a memory can be written to is a different property: RAM gives read and write access, ROM is read-only.

🧠

Memory hook

Pull the plug: RAM forgets, ROM remembers. Volatile means it vanishes when the power goes.

✓

Check yourself

Cover the page. Run the power-off test on RAM and on ROM, use it to define volatile and non-volatile, then name two more ways they differ.

Flashcards

(12)
What does 'volatile' mean for memory?
It needs a constant supply of power to keep its data. Switch off, and its contents are lost.
What does 'non-volatile' mean for memory?
It keeps its contents even when there's no power.
RAM and ROM: which is volatile and which is non-volatile?
RAM is volatile. ROM is non-volatile.
What do the letters RAM and ROM stand for?
RAM: random access memory. ROM: read-only memory.
What does RAM hold while the computer is running?
The data and instructions currently being processed, held temporarily.
Where are apps loaded from when you open them, and where do they go?
From secondary storage into RAM.
Why is RAM used for the apps in use, rather than running them from secondary storage?
The CPU can access RAM faster than files stored in secondary storage.
What does ROM store?
The essential instructions the computer needs to start up and operate, including the BIOS.
BIOS: what does it stand for, and what else is it called?
Basic input/output system. Also called the start-up loader or bootstrap loader.
RAM vs ROM: what kind of access does each give?
RAM: read and write. ROM: read-only.
Who usually programs ROM, and how easily can it be changed?
Usually the manufacturer. It can't easily be changed (which isn't the same as never).
How big is ROM's memory capacity?
Small.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 4 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.