RAM vs ROM

Press the power button on a computer and, in a couple of seconds, it wakes up — a blank chip somehow knows how to start itself, load the operating system, and hand you a working machine. How? The secret is that a computer's main memory is actually two different kinds of chip, each doing a job the other can't.

Those two kinds are RAM (Random-Access Memory) and ROM (Read-Only Memory). They sit close to the CPU so it can reach them fast. The whole trick of switch-on is a careful hand-off between the two — so let's meet each one, then see them work together.

RAM — the fast, forgetful workbench

Think of RAM as the computer's desk. Whatever you are working on right now is spread out on it: the operating system, the game or app you have open, the document you are editing, the web page on your screen. The CPU can read from and write to any spot on this desk almost instantly — that is what "random access" means: every location is equally quick to reach, no matter where it is.

That last point is the one to remember. Volatile just means "forgets its contents when the power is switched off." This is exactly why, if you haven't saved your essay and the power cuts out, your work is gone — it was only ever living on the RAM desk, and the desk got wiped.

ROM — the permanent instruction card

ROM is the opposite temperament. Imagine a small card of instructions printed onto the chip at the factory and glued down so it can't be rubbed out. It says the same thing every time you look at it, and — crucially — it keeps saying it even with no power.

Because ROM never forgets, it is the perfect place for the "how to switch myself on" instructions. If those lived in RAM, they'd be wiped every time — and then a freshly powered-off computer would have no idea what to do when you turned it back on. A chicken-and-egg problem that ROM neatly solves.

Side by side

The two chips are best understood as a set of opposites. Here they are lined up — read across each row to see how RAM and ROM differ on the same question.

Notice the pattern: almost every property is a mirror image. RAM is fast, changeable and forgetful; ROM is fixed, read-only and permanent. That is why a computer needs both — neither chip alone could run a computer.

Switch-on: watch them hand off

Here is the moment it all comes together — the sequence from a cold, powered-off machine to a ready-to-use one. Step through it and watch the baton pass from ROM to RAM.

So ROM gets the machine started (its instructions survived the power-off), and RAM becomes the workspace the running system lives in. Turn the power off again and the RAM empties — but the ROM card is still there, ready to do it all again next time.

"Random" here doesn't mean unpredictable! It means the CPU can jump straight to any location in the memory just as quickly as any other — like picking any book off a shelf directly, rather than winding through a tape from the start to reach the middle. Old cassette and reel-to-reel tapes were the opposite: to reach data near the end you had to play through everything before it. RAM's "any spot, instantly" is what makes it a proper desk rather than a scroll.

This is the classic mix-up in the exam. Memory (RAM) and storage (a hard drive or SSD) are two different things:

When you "save" a file, you copy it from the temporary RAM desk into permanent storage so it survives being switched off. Saying a computer "has 16 GB of memory" (RAM) is a completely different claim from "has 512 GB of storage" (SSD). (Storage is its own topic — a separate page.)

Good spot. The ROM in most modern computers is really a type called flash memory, which can be rewritten — but only deliberately, by a special update process, not during ordinary use. So day to day it behaves as read-only and stays non-volatile, which is all that matters for how it's used. This is why you occasionally see a "BIOS update" or "firmware update": that's the rare, careful rewriting of the normally read-only chip.