3 min readTechnology

RAM vs storage: what is the difference?

RAM is the fast, temporary workspace your computer uses right now; storage is the slower, permanent place where files live. Each does a job the other cannot.

Computer specifications often list two numbers that both sound like "memory": a figure for RAM and a figure for storage. People mix them up all the time, and shops do not always help. They are two different things with two different jobs, and knowing which is which makes it much easier to understand what a device can and cannot do.

The short answer#

RAM is the computer's working memory. It is where the programs and data currently in use are kept so the processor can reach them quickly. Storage, sometimes called long-term or auxiliary storage, is where programs and files are kept permanently, such as on a hard disk drive or a solid-state drive (SSD).

A useful comparison is a desk and a filing cabinet. The desk is where you spread out what you are working on at the moment. The cabinet is where everything is kept when you are not using it. A bigger desk lets you work on more things at once, and a bigger cabinet lets you keep more things in total, but one cannot stand in for the other.

Volatile and nonvolatile#

The key technical difference is what happens when the power goes off. Britannica describes RAM as volatile memory: it keeps data only while the computer is powered on, and its contents are lost when power is interrupted. Storage devices are nonvolatile. They retain data even when the power is turned off, which is why your documents are still there after a restart.

That is why an unsaved document can vanish in a power cut. Until you save it, it exists only in RAM.

Speed and size#

The two also differ in speed and cost. According to Britannica, storage devices such as hard disks and SSDs offer large capacities at a lower cost but are significantly slower than RAM. RAM is much faster and works directly with the processor, but it is more expensive for each unit of capacity, so computers generally have much less of it than storage.

How they work together#

When you open a program, the computer copies it from storage into RAM. This step is needed because permanent storage is too slow for the processor to use directly while a program is running. When you save a file, the data is written from RAM back to storage.

This explains some everyday experiences:

  • A slow start, then smooth running. Loading takes a moment because data is being moved from storage into RAM.
  • A full storage drive. This stops you saving new files, but it is a different problem from running out of RAM.

A note on exceptions#

The simple division has some edges. Britannica notes that some nonvolatile memory is used for special purposes rather than as everyday storage, for example in holding a computer's BIOS, the basic startup software, where updates are rare. These parts are not what the specifications mean by storage or RAM.

Which should you look at?#

  • If you want to run several programs at once, RAM is the number to check.
  • If you are running out of room for photos, videos and files, storage is the number to check.
  • Both numbers matter, but they answer different questions, so be careful not to treat them as interchangeable.

The short version#

RAM is the temporary, fast workspace, and it empties when the power goes off. Storage is the permanent, slower archive, and it keeps its contents. Every computer needs both, because each makes up for what the other lacks.

Sources#

  • Encyclopaedia Britannica, How is RAM different from auxiliary storage in a personal computer? https://www.britannica.com/technology/How-is-RAM-different-from-auxiliary-storage-in-a-personal-computer
  • Encyclopaedia Britannica, Why does a computer need both main memory and long-term storage? https://www.britannica.com/technology/Why-does-a-computer-need-both-main-memory-and-long-term-storage
  • Encyclopaedia Britannica, Nonvolatile memory. https://www.britannica.com/technology/nonvolatile-memory
  • Encyclopaedia Britannica, RAM. https://www.britannica.com/technology/RAM-computing