# Random Access Memory (RAM)

> Fast memory for the work being done right now. It empties when power goes off.

**Field:** Infrastructure  
**Category:** Hardware  
**Also known as:** RAM, Main Memory, System Memory

## Think of it like

Think of it like a desk. What you are working on sits there, close at hand, until you clear it.

## Definition

Random access memory is the fast, short-term memory a computer works from. Programs and their data are loaded into RAM from storage so the CPU can reach them quickly. It is much faster than a disk, but it is emptied when the power goes off. A laptop often has 8 to 32 gigabytes. To run an AI model on the CPU, the whole model usually has to fit in RAM.

## Example

Jack's laptop has 16 GB of RAM. A model file of 20 GB will not fit, so it will not load on the CPU.

## Why it matters

RAM size limits what can run at once. For AI on your own machine, it often decides which models you can use.

## Common mistake

Mixing up RAM and storage. A 1 TB disk does not help when a model needs more RAM than the machine has.

## Three principles

- **Short-term.** Holds what is in use.
- **Fast.** Much quicker than a disk.
- **Empties at power off.** Nothing stays.

## Related terms

- [Video Memory (VRAM)](https://learn.benibix.com/term/infrastructure/video-memory)
- [Central Processing Unit (CPU)](https://learn.benibix.com/term/infrastructure/central-processing-unit)
- [Memory Bandwidth](https://learn.benibix.com/term/infrastructure/memory-bandwidth)
- [Heap Memory](https://learn.benibix.com/term/development/heap-memory)
- [Unified Memory](https://learn.benibix.com/term/infrastructure/unified-memory)

## Told apart from

- [RAM vs VRAM](https://learn.benibix.com/compare/ram-vs-vram): People often think a computer's memory is one pool that every chip shares. With a graphics card, there are two. RAM belongs to the CPU, and video memory sits on the card for the GPU alone. A model that fits in 32 GB of RAM can still be too big for a GPU with 12 GB of video memory.
- [RAM vs SSD](https://learn.benibix.com/compare/ram-vs-ssd): People call both of them memory, and they do different jobs. RAM holds what the computer is working on right now, and it empties when the power goes off. An SSD keeps your files when the power is off. RAM is many times faster, and it costs far more for each gigabyte. More RAM lets you run more at once. A bigger SSD only lets you keep more.

## Taught in

- [RAM and Memory Bandwidth](https://learn.benibix.com/learn/infrastructure-hardware/ram-and-memory-bandwidth): Computer Hardware, 3/8

![A CPU joined to RAM by a thin pipe, and a GPU joined to its video memory by a thick pipe. The pipe width is the memory bandwidth.](https://learn.benibix.com/diagrams/hw-memory.svg)

---

Source: https://learn.benibix.com/term/infrastructure/random-access-memory
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
