Computer Literacy · Foundations
CPU, RAM, and Storage
On this page 9 sections
In 30 seconds
Every computer runs on three performance components. The CPU (central processing unit) The processor chip that carries out a program's instructions, one after another, at very high speed. Full entry → is the chip that executes instructions, stepping through a Fetch-decode-execute cycle The repeating sequence a CPU follows: retrieve the next instruction from memory, interpret it, carry it out, then repeat. Full entry → billions of times a second. RAM is fast, volatile working memory that holds the programs and data you are actively using, and it empties when the power goes off. Storage, an SSD or a hard drive, is slower but non-volatile: it keeps your files even when the machine is unplugged. Confusing volatile RAM with permanent storage is the classic beginner mistake.
Why this matters
Knowing how the CPU, RAM, and storage differ turns vague complaints like 'my computer is slow' or 'it's out of space' into specific, fixable problems. It tells you whether adding memory or a bigger drive will help, why the file you didn't save is gone after a crash, and what the numbers on a spec sheet actually mean. These three components anchor almost every later topic in computing, from operating systems that manage memory to the file systems that organize storage. The distinction between volatile RAM and permanent storage is one of the most common, and most consequential, points of confusion for new computer users.
The college version
The CPU: the part that computes
The central processing unit (CPU), or processor, is the chip that carries out the instructions that make up every program. It works by repeating a simple loop called the fetch-decode-execute cycle: it fetches the next instruction from memory, decodes what that instruction means, executes it, and moves on to the next one. A modern CPU repeats this cycle billions of times per second. Clock speed How many cycles a CPU performs per second, measured in hertz; modern processors are rated in gigahertz (billions of cycles per second). Full entry →, measured in gigahertz (GHz), counts those cycles - a 3 GHz processor steps through roughly three billion cycles each second. Most CPUs also contain multiple cores, which are effectively independent processing units on one chip, so several instruction streams can run at once. To avoid waiting on slower memory, the CPU keeps a small pool of very fast memory called cache close at hand, holding data and instructions it is likely to need next.
RAM: fast, volatile working memory
Random-access memory (RAM) is the computer's working space. When you open an application or a document, the system loads it from storage into RAM, where the CPU can reach it quickly. RAM is much faster than a drive but far more limited in capacity, and it is volatile: it holds its contents only while the computer has power. Switch the machine off - or lose power in a crash - and everything in RAM disappears. That is why unsaved work vanishes after a freeze, and why the amount of RAM shapes how much you can do at once. Open more programs or larger files than RAM can hold, and the system slows down as it shuffles data back and forth between memory and the drive.
Storage: slower, non-volatile, keeps your data
Storage is where files, programs, and the operating system itself live when they are not in active use. Unlike RAM, storage is non-volatile: it retains data without power, which is why your documents are still there after you shut down. Storage is also much larger and cheaper per gigabyte than RAM, but slower to read and write. Two main technologies dominate. A hard disk drive (HDD) records data magnetically on spinning platters read by a moving arm; the moving parts make it cheaper for large capacities but slower and more fragile. A solid-state drive (SSD) stores data in flash memory chips with no moving parts, which makes it faster, quieter, and more durable. Both keep your data when the power is off.
The memory hierarchy and the RAM-versus-storage confusion
These components form a Memory hierarchy The layered arrangement of registers/cache, RAM, and storage, in which higher levels are faster, smaller, and costlier per byte. Full entry →. Near the top sit the CPU's registers and cache - tiny, extraordinarily fast, and expensive. Below them is RAM: larger, still fast, still volatile. At the bottom is storage: very large, non-volatile, and comparatively slow. The pattern is consistent - as you move up, memory gets faster, smaller, and costlier per Byte A unit of digital information equal to eight bits; larger capacities are expressed in kilobytes, megabytes, gigabytes, and terabytes. Full entry →; as you move down, it gets slower, larger, and cheaper. The design exists because fast memory is expensive, so computers use a little of it where speed matters most and a lot of cheap storage for everything else. The most common confusion is treating RAM and storage as the same thing. They are not. RAM is temporary working memory that empties at shutdown; storage is the permanent home for your data. 'Running out of memory' (too little RAM to run what is open) is a different problem from 'running out of space' (a full drive), and each calls for a different fix.
Units: bits, bytes, and clock speed
Capacity is measured in bits and bytes. A bit is a single binary digit, a 0 or a 1; eight bits make one byte. Bytes are grouped into larger units - kilobytes (KB), megabytes (MB), gigabytes (GB), and terabytes (TB). There is a subtlety worth knowing: in the decimal convention a kilobyte is 1,000 bytes, but memory is often measured in binary, where 1,024 bytes is properly a kibibyte (KiB), 1,048,576 bytes a mebibyte (MiB), and about 1.07 billion bytes a gibibyte (GiB), per the IEC standard. This is why a drive labeled '500 GB' can appear to hold slightly less once the operating system reports it in binary units. Speed uses different units: storage and RAM throughput is quoted in bytes per second, while CPU clock speed is quoted in hertz - cycles per second - with modern chips rated in gigahertz.

Eli explains
The same idea, in plain words
Explain it like I’m 10
Imagine you're doing homework at a desk. Your brain doing the actual thinking is the CPU - it does the work, one step after another, very fast. The desktop in front of you is RAM: it's where you spread out the books and papers you're using right now. A big desk lets you work on more things at once, but at the end of the day you have to clear it off, and anything left on the desk is gone. The filing cabinet in the corner is storage: slower to reach into, but it holds everything permanently, even overnight. The key point is that the desk (RAM) is temporary while the filing cabinet (storage) is permanent.
Picture it like this
A computer is like a workshop. The worker is the CPU, the workbench is RAM (fast to reach, but only so big, and it gets cleared each night), and the storage room down the hall is the drive (huge and permanent, but you have to walk over to fetch things). A tiny tray of tools right in the worker's hands is the CPU cache.
Where the picture stops working
The analogy breaks down in two places. A real workbench doesn't erase itself the instant the lights go out, but RAM loses everything the moment power stops - there's no gentle fade. And a worker can hold many tools at once, while a single CPU core executes one instruction stream at a time; doing several things at once comes from having multiple cores, not busier hands.
Worked example
A student's three-year-old laptop has 8 GB of RAM and a 256 GB SSD that is nearly full, and they notice two separate problems. First, with a browser, a video call, and a word processor all open at once, everything crawls - that is a RAM limit: the working memory is too small to hold everything, so the system constantly shuffles data between RAM and the drive. Adding RAM, say to 16 GB, would help most here. Second, they can no longer save new files - that is a storage limit: the 256 GB drive is full. A larger drive, or deleting and offloading files, fixes that. The same 'it's slow / it won't work' feeling comes from two different components and needs two different fixes.
Key takeaway
The CPU does the computing, RAM is the fast but temporary workspace that empties at power-off, and storage is the slower but permanent home for your files. Telling volatile RAM apart from non-volatile storage is the single most useful distinction: it tells you whether a slow or full computer needs more memory or more space.
Quick check
3 questions here, of 5 in this lesson’s practice set. Answers stay hidden until you check.
How many bits are there in one byte?
What is the name of the basic repeating cycle a CPU uses to process instructions?
Study tools & related lessonsYou’ll learn to · Common mistakes · Easily confused · Key vocabulary · Related
You’ll learn to
- Define the CPU, RAM, and storage and explain the distinct job each one does.
- Distinguish volatile memory (RAM) from non-volatile storage, and explain what happens to each when power is lost.
- Explain the memory hierarchy and why faster memory tends to be smaller and more expensive.
- Apply the CPU/RAM/storage distinction to diagnose a common performance or capacity problem.
- Use the correct units - bit, byte, KB/MB/GB/TB, and GHz - when describing capacity and speed.
Common mistakes
Thinking RAM and storage are the same thing, or that a bigger hard drive will speed up a computer that keeps running out of memory.
They are separate. RAM is temporary working memory; storage permanently holds files. If programs are slow because too much is open at once, you need more RAM, not more drive space.
Believing files in RAM are safe during a crash or sudden power loss.
RAM is volatile - its contents vanish when power stops. Unsaved work exists only in RAM; saving writes it to non-volatile storage, where it survives a shutdown.
Assuming a higher clock speed in GHz always means a faster computer.
Clock speed is only one factor. Core count, cache, amount of RAM, and drive speed all matter, and GHz cannot be compared across different CPU designs as if it told the whole story.
Reading '1 GB' as always exactly 1,000,000,000 bytes and being surprised when a new drive seems to 'lose' capacity.
Manufacturers often use decimal units (1 GB = 1,000,000,000 bytes) while the operating system may report binary units (1 GiB = 1,073,741,824 bytes), so the formatted number looks smaller. Nothing is actually missing.
Easily confused
RAM vs. Storage
RAM is fast, volatile working memory that is cleared at power-off; storage is slower, non-volatile, and keeps data permanently. More RAM lets you run more at once; more storage lets you keep more files.
HDD (hard disk drive) vs. SSD (solid-state drive)
An HDD stores data magnetically on spinning platters with a moving read/write arm (cheaper, larger, slower, more fragile); an SSD uses flash memory chips with no moving parts (faster, quieter, more durable, costlier per GB). Both are non-volatile.
Decimal units (KB, MB, GB) vs. Binary units (KiB, MiB, GiB)
Decimal units are powers of 1,000; the IEC binary units are powers of 1,024. A '500 GB' drive holds 500 billion bytes in decimal, which the OS may display as about 465 GiB in binary - the same drive, a different unit.
Key vocabulary
- CPU (central processing unit)
- The processor chip that carries out a program's instructions, one after another, at very high speed.
- Fetch-decode-execute cycle
- The repeating sequence a CPU follows: retrieve the next instruction from memory, interpret it, carry it out, then repeat.
- Clock speed
- How many cycles a CPU performs per second, measured in hertz; modern processors are rated in gigahertz (billions of cycles per second).
- Core
- An independent processing unit within a CPU; a multi-core chip can work on several instruction streams at once.
- CPU cache
- A small, very fast memory built into or next to the CPU that holds data and instructions the processor is likely to need next.
- RAM (random-access memory)
- Fast, volatile working memory that holds the programs and data currently in use and loses its contents when power is removed.
- Volatile memory
- Memory that retains data only while it is powered; its contents are lost at shutdown or power loss.
- Non-volatile storage
- Memory that keeps data without power, such as an SSD or hard drive, used to store files permanently.
- Memory hierarchy
- The layered arrangement of registers/cache, RAM, and storage, in which higher levels are faster, smaller, and costlier per byte.
- Byte
- A unit of digital information equal to eight bits; larger capacities are expressed in kilobytes, megabytes, gigabytes, and terabytes.
Sources & references
- Prefixes for Binary Multiples — NIST (National Institute of Standards and Technology)
- Computer Organization with MIPS — Seth D. Bergmann, Rowan University (Open Educational Resources / Rowan Digital Works)
- Computer Science Field Guide - Data Representation — Computer Science Education Research Group, University of Canterbury, New Zealand
- What's the Difference Between SSD and Hard Drive? — Amazon Web Services
EliExplains lessons are original prose written from the open, credible references above. See Copyright & Licensing.
Researched 2026-08-19
Educational content only. It is not medical, legal or professional advice. Found an error? Tell us.

