Stewdent.eu
▾

RAM and Memory

RAM is the computer's short-term working memory, storing programs and data that are currently being used.

Last updated: 12 December 2025

★☆☆☆☆ Level 1computingSystemshardwarerammemory4 min read

Report an error

What is RAM?

RAM stands for Random Access Memory. It is where your computer keeps the programs and data it is currently using. When you open a web browser, edit a document, or play a game, that software is loaded from storage (your hard drive or SSD) into RAM so the CPU can access it quickly.

RAM is much faster to read from than a hard drive, but it is also volatile — it loses all its data when the power is switched off. That is why you need to save your work before shutting down!

Warning

RAM does not store your files permanently. If your computer loses power without saving, anything only in RAM (like an unsaved document) will be lost. Always save your work!

RAM vs Storage

It is very important not to confuse RAM with storage (hard drives or SSDs):

FeatureRAMStorage (HDD/SSD)
SpeedVery fastSlower (SSD) / Much slower (HDD)
Capacity4 – 64 GB (typical)256 GB – several TB
Volatile?Yes (loses data on power off)No (permanent storage)
Used forRunning programs activelyStoring files long-term

How Much RAM Do You Need?

RAM is measured in gigabytes (GB). The more RAM your computer has, the more programs it can run at the same time without slowing down.

RAM AmountTypical Use
4 GBBasic tasks: browsing, documents
8 GBComfortable multitasking, most games
16 GBVideo editing, demanding games
32 GB+Professional video/3D work

When you run out of RAM, the operating system uses part of the hard drive as "virtual memory" (called a page file or swap space). This works, but it is much slower, causing the computer to lag.

Note

"Random Access" in RAM means the CPU can read any memory location in the same amount of time, regardless of where it is. This is different from a magnetic tape, where you have to scroll to find data.

Types of RAM

The main type of RAM in modern computers is DRAM (Dynamic RAM), which constantly needs to be refreshed (re-written) to keep its data. Inside the CPU, there is a small amount of SRAM (Static RAM) — this is faster but much more expensive and is used for the CPU cache.

What Happens When You Run a Program?

  1. You double-click an application
  2. The OS loads the program's code from storage into RAM
  3. The CPU reads instructions from RAM and executes them
  4. As you work, data is read from and written to RAM
  5. When you save, data is written back to storage

Practice Problems

Explain the difference between RAM and a hard drive. Why does a computer need both?

Show answer
RAM is fast, temporary working memory that loses data when power is off. A hard drive is slow, permanent storage that keeps data even when off. A computer needs both because RAM gives the CPU fast access to currently running programs, while the hard drive stores all files and programs permanently for when they are needed later.

A student's computer has 4 GB of RAM. They open many browser tabs, a game, and a music player at the same time and notice the computer becomes very slow. Explain what is likely happening.

Show answer
The computer has run out of RAM. The operating system is using virtual memory — swapping data between RAM and the hard drive. Since hard drives are much slower than RAM, this causes noticeable lag and slow performance.