Skip to content

What is RAM? Meaning, Types and Difference Between RAM and ROM

RAM (Random Access Memory) is the computer's fast, short-term working memory. Learn how RAM works, SRAM vs DRAM, DDR4 vs DDR5, how much RAM you need, and RAM vs ROM.

Category
Tech Basics
On this page

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.

What is RAM: storage keeps files, RAM holds what you use right now, and the CPU reads and changes the data in RAM
RAM sits between storage and the CPU: it holds the apps and files you are using right now.
RAM is like a deskThink of your study room. The cupboard is storage (SSD or hard disk): it keeps all your books, even when you go to sleep. The desk is RAM: you put only the books you are using right now on it, so they are quick to reach. A bigger desk lets you keep more books open at once. And at the end of the day, the desk is cleared.

How Does RAM Work?

Here is what happens when you open an app, for example a web browser:

  1. You click the app: the browser is stored on the SSD or hard disk.
  2. It is copied into RAM: the computer loads the program and its data from storage into RAM.
  3. 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.
  4. You save your work: saving copies your file from RAM back to storage, where it stays safe.
  5. 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.

RAM is volatileRAM needs electricity to keep its data. When the power goes off, everything in RAM is lost. Memory that forgets when the power goes is called volatile memory. That’s why you should save your work often, especially on a desktop computer without a battery.

Types of RAM

There are two main types of RAM:

SRAM (Static RAM)DRAM (Dynamic RAM)
How it keeps dataKeeps data as long as power is onMust be refreshed (re-charged) thousands of times a second
SpeedVery fastFast, but slower than SRAM
Cost and sizeExpensive, takes more space per bitCheaper, so it comes in large sizes
Where it is usedCPU 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:

TypeCame to PCs aroundWhere you find it today
DDR2000Very old computers
DDR22004Very old computers
DDR32007Older computers that still work
DDR42014Many computers still in use
DDR52021New 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 doGood amount of RAM
Phone for calls, chat, photos and videos6–8 GB
Phone with on-device AI features, heavy games8–12 GB or more
Laptop for school, browsing, online classes, office work8 GB (16 GB if you keep many tabs open)
Gaming, programming, photo editing16 GB
Video editing, 3D work, virtual machines, running AI models locally32 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.

Did you know?RAM sizes use binary units. A “16 GB” RAM stick holds exactly 16 × 1024 × 1024 × 1024 bytes, which is about 17.2 billion bytes. Storage makers count in thousands instead, which is why a “1 TB” SSD shows as about 931 GB in Windows. Read more in MB vs Mb vs MiB.

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

RAMROM
Full formRandom Access MemoryRead-Only Memory
When power goes offData is lost (volatile)Data stays (non-volatile)
Read and writeRead and written all the timeMostly read; written rarely or never
What it holdsOpen apps, files and the running operating systemStartup firmware (BIOS/UEFI)
SpeedVery fastSlower
Size in a PCGigabytes (8 GB, 16 GB, 32 GB)Megabytes (for example 16 MB or 32 MB)
TypesSRAM, DRAM (DDR4, DDR5, LPDDR)PROM, EPROM, EEPROM, flash
Used forWorking on things nowStarting the device
“8 GB RAM, 128 GB ROM” on a phonePhone shops often list a phone as “8 GB RAM + 128 GB ROM”. Here “ROM” really means the phone’s internal storage, where your apps, photos and videos are kept. It is flash memory that you write to every day, not true read-only memory. A better name is “128 GB storage”.

RAM vs Storage

People often mix up RAM and storage because both are measured in gigabytes. They do different jobs:

RAMStorage (SSD, hard disk)
JobHolds what you are using nowKeeps all your files and apps
When power goes offEmptiedKeeps everything
SpeedMuch fasterSlower
Usual size8–32 GB256 GB to several TB
Desk exampleThe deskThe cupboard

Example: Editing a photo

StepWhere the photo is
Photo saved in your Pictures folderStorage (SSD)
You open it in a photo appA copy is loaded into RAM
You crop it and make it brighterThe CPU changes the copy in RAM
You click SaveThe 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 + Esc to 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 free command 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.

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top