When you open a game, a video or a homework file, the computer doesn’t work on it straight from its storage. It first copies it into a fast working memory called RAM. RAM is one of the main reasons a computer or phone feels fast or slow. In this guide you’ll learn what RAM means, how it works, the types of RAM (including DDR4 and DDR5), how much RAM you need, and the difference between RAM and ROM.
What is RAM?
RAM (Random Access Memory) is the computer’s short-term working memory. It holds the programs and files you are using right now, so the CPU can read and change them very quickly. RAM is emptied when the power goes off.
The full form of RAM is Random Access Memory. “Random access” means the computer can jump straight to any place in the memory and read it just as fast as any other place. It doesn’t have to go through the memory in order, the way an old cassette tape had to be wound forward to reach a song.

How Does RAM Work?
Here is what happens when you open an app, for example a web browser:
- You click the app: the browser is stored on the SSD or hard disk.
- It is copied into RAM: the computer loads the program and its data from storage into RAM.
- The CPU works from RAM: the CPU reads instructions from RAM, does the work and writes results back into RAM, billions of times every second.
- You save your work: saving copies your file from RAM back to storage, where it stays safe.
- You close the app or turn off the computer: that part of RAM is freed. Anything you didn’t save is lost.
RAM is used because storage is much slower. RAM is many times faster than even a fast SSD, and far faster than a hard disk, so the CPU never has to wait long for its data.
Types of RAM
There are two main types of RAM:
| SRAM (Static RAM) | DRAM (Dynamic RAM) | |
|---|---|---|
| How it keeps data | Keeps data as long as power is on | Must be refreshed (re-charged) thousands of times a second |
| Speed | Very fast | Fast, but slower than SRAM |
| Cost and size | Expensive, takes more space per bit | Cheaper, so it comes in large sizes |
| Where it is used | CPU cache memory (a few megabytes) | Main memory of computers and phones (gigabytes) |
When people say “my laptop has 16 GB RAM”, they mean DRAM. Today’s DRAM is called DDR SDRAM (Double Data Rate Synchronous DRAM). “Double data rate” means it moves data twice in every tick of its clock.
DDR generations: DDR3, DDR4 and DDR5
Each new generation of DDR memory is faster and uses less power than the one before:
| Type | Came to PCs around | Where you find it today |
|---|---|---|
| DDR | 2000 | Very old computers |
| DDR2 | 2004 | Very old computers |
| DDR3 | 2007 | Older computers that still work |
| DDR4 | 2014 | Many computers still in use |
| DDR5 | 2021 | New desktops and laptops |
The generations don’t mix. A DDR4 stick doesn’t fit in a DDR5 slot: the notch in the stick is in a different place, so you can’t put the wrong one in by mistake.
There are also special kinds of DRAM:
- LPDDR (Low Power DDR), like LPDDR5X: used in phones, tablets and thin laptops because it saves battery. It is soldered onto the board.
- GDDR (Graphics DDR), like GDDR7: very fast memory on graphics cards, also called VRAM (video RAM).
- ECC RAM (Error-Correcting Code): finds and fixes small memory errors. Servers use it because they run all day and must not crash.
RAM sticks: DIMM and SO-DIMM
In a desktop, RAM comes on small boards called sticks or modules that clip into slots on the motherboard:
- DIMM: the long stick used in desktop computers.
- SO-DIMM: a shorter stick used in many laptops and mini PCs.
- Soldered RAM: phones, tablets, MacBooks and many thin laptops have RAM chips fixed on the board, so it can’t be upgraded later.
How Much RAM Do You Need?
More RAM lets you keep more apps and browser tabs open without slowing down. Here is a simple guide for a new device:
| What you do | Good amount of RAM |
|---|---|
| Phone for calls, chat, photos and videos | 6–8 GB |
| Phone with on-device AI features, heavy games | 8–12 GB or more |
| Laptop for school, browsing, online classes, office work | 8 GB (16 GB if you keep many tabs open) |
| Gaming, programming, photo editing | 16 GB |
| Video editing, 3D work, virtual machines, running AI models locally | 32 GB or more |
Windows 11 needs at least 4 GB of RAM to install, but it runs much better with 8 GB or more. To run AI models on your own computer, check how much memory each model needs with our LLM VRAM calculator.
What is ROM?
ROM (Read-Only Memory) is memory that keeps its data even when the power is off. It holds the small, fixed programs a device needs to start up, and it is rarely changed.
In a computer, the most important ROM chip holds the firmware (BIOS or UEFI). When you press the power button, the CPU runs this firmware first. It checks the hardware with the Power-On Self-Test (POST) and then starts the operating system.
Old ROM chips were written once in the factory and could never be changed. Newer kinds can be rewritten:
- PROM (Programmable ROM): can be written once, after it is made.
- EPROM (Erasable PROM): erased with strong ultraviolet light, then written again.
- EEPROM (Electrically Erasable PROM): erased and rewritten with electricity, without taking it out.
- Flash memory: a fast kind of EEPROM. Today’s BIOS/UEFI chips use it, so the firmware can be updated. SSDs, USB drives and memory cards use flash memory too.
Difference Between RAM and ROM
| RAM | ROM | |
|---|---|---|
| Full form | Random Access Memory | Read-Only Memory |
| When power goes off | Data is lost (volatile) | Data stays (non-volatile) |
| Read and write | Read and written all the time | Mostly read; written rarely or never |
| What it holds | Open apps, files and the running operating system | Startup firmware (BIOS/UEFI) |
| Speed | Very fast | Slower |
| Size in a PC | Gigabytes (8 GB, 16 GB, 32 GB) | Megabytes (for example 16 MB or 32 MB) |
| Types | SRAM, DRAM (DDR4, DDR5, LPDDR) | PROM, EPROM, EEPROM, flash |
| Used for | Working on things now | Starting the device |
RAM vs Storage
People often mix up RAM and storage because both are measured in gigabytes. They do different jobs:
| RAM | Storage (SSD, hard disk) | |
|---|---|---|
| Job | Holds what you are using now | Keeps all your files and apps |
| When power goes off | Emptied | Keeps everything |
| Speed | Much faster | Slower |
| Usual size | 8–32 GB | 256 GB to several TB |
| Desk example | The desk | The cupboard |
Example: Editing a photo
| Step | Where the photo is |
|---|---|
| Photo saved in your Pictures folder | Storage (SSD) |
| You open it in a photo app | A copy is loaded into RAM |
| You crop it and make it brighter | The CPU changes the copy in RAM |
| You click Save | The new version is written back to storage |
If the power goes off before you click Save, the changes in RAM are lost, but the old photo is still safe in storage.
What Happens When RAM Is Full?
When you open more apps than the RAM can hold, the computer doesn’t stop. It moves the parts you haven’t used for a while out to storage, into an area called virtual memory (the page file on Windows, swap on Linux). Because storage is much slower than RAM, the computer starts to lag: apps take longer to switch and the mouse may freeze for a moment.
To make it faster again:
- Close apps and browser tabs you aren’t using.
- Restart the computer or phone now and then.
- Stop apps that start by themselves when the computer turns on.
- Add more RAM, if your computer has a free slot or uses removable sticks.
On Linux servers, you can add swap space to stop programs from crashing when RAM runs out. See how to add swap memory on Ubuntu.
How to Check How Much RAM You Have
- Windows 11: open Settings → System → About and look at Installed RAM. For more detail, press
Ctrl + Shift + Escto open Task Manager and go to Performance → Memory. It shows how much RAM is in use, its speed, how many slots are used, and the form factor (DIMM or SO-DIMM). - Mac: click the Apple menu → About This Mac and look at Memory.
- Android: open Settings → About phone. Some phones show RAM there, others under Settings → Device care or in the phone’s specifications.
- Linux: run the
freecommand in a terminal.
free -h
The total column on the Mem line is your RAM, and available is how much is free for new programs. The -h option shows sizes in units like Gi (gibibytes). Learn more in the free command guide. To see the type (DDR4 or DDR5) and speed of each stick, run:
sudo dmidecode --type memory
A Short History of RAM
- 1940s–1950s: early computers stored data in odd ways, such as sound waves in tubes of mercury and spots of charge on screens. Then came magnetic core memory, made of tiny rings threaded on wires.
- 1966: Robert Dennard at IBM invented the one-transistor DRAM memory cell, which is still the idea behind the RAM we use today.
- 1970: Intel released the 1103, the first DRAM chip sold widely. It held just 1 kilobit (1,024 bits).
- 2000s onwards: DDR memory became the standard, and each generation (DDR2 to DDR5) made RAM faster and bigger. A normal laptop today has millions of times more RAM than the 1103 chip.
Practice Questions
Try these yourself, then click a question to see the answer.
1. What is the full form of RAM?
Random Access Memory.
2. What is the full form of ROM?
Read-Only Memory.
3. Which memory loses its data when the power goes off: RAM or ROM?
RAM. It is volatile memory.
4. Which type of RAM is used for the CPU’s cache?
SRAM (Static RAM).
5. Name the two newest DDR generations used in computers.
DDR4 and DDR5.
6. Where is the BIOS or UEFI firmware stored?
In a ROM chip (today a flash memory chip) on the motherboard.
7. In the desk example, is RAM the desk or the cupboard?
The desk. Storage is the cupboard.
8. Why does a computer slow down when RAM is full?
It moves data out to virtual memory on storage, which is much slower than RAM.
Frequently Asked Questions
What is RAM in simple words?
RAM is the computer’s short-term working memory. It holds the apps and files you are using right now so the CPU can reach them quickly, and it is cleared when the power goes off.
What is the main difference between RAM and ROM?
RAM is fast working memory that loses its data when the power goes off. ROM keeps its data without power and holds the startup firmware, so it is rarely changed.
Is RAM a primary or secondary memory?
Primary memory. RAM and ROM are primary memory because the CPU uses them directly. SSDs, hard disks and USB drives are secondary memory (storage).
Is 8 GB RAM enough?
For browsing, online classes, office work and phones, yes. For gaming, programming or keeping many tabs open, 16 GB works better, and video editing or running AI models locally needs 32 GB or more.
Is more RAM better than a faster CPU?
They do different jobs. If RAM runs out, the computer slows down a lot, so get enough RAM first. Beyond what you need, extra RAM does nothing, and a faster CPU helps more.
Can I use DDR4 RAM in a DDR5 slot?
No. DDR4 and DDR5 sticks have the notch in different places and work differently, so a motherboard supports only one of them.
Does a phone have ROM?
When a phone is sold as “128 GB ROM”, it means 128 GB of internal flash storage for apps and photos. The phone also has a small amount of firmware memory to start up, like a computer.
Conclusion
RAM (Random Access Memory) is the fast, short-term memory where a computer keeps the apps and files you are using right now. It is volatile, so it is cleared when the power goes off, which is why you save your work to storage. Most RAM today is DRAM in the form of DDR4 or DDR5, while the CPU’s cache uses faster SRAM. ROM (Read-Only Memory) keeps its data without power and holds the firmware that starts the computer. For most people, 8 GB of RAM is enough for everyday work and 16 GB or more is better for gaming, coding and creative work.
How did it make you feel?
