Open the 3D lab
Tech 20 · COMPUTER

RAM
(memory)

Every bit in RAM is a speck of charge in a capacitor far smaller than a bacterium. It leaks, so the chip tops up every row 30 times a second, and it is all gone soon after the power goes.

TitleHow a ram (memory) worksDwg no.FIG. 20
DrawnTestIt3DUpdatedRevC
ScaleNTSReading8 minModelLive 3D
FIG. 20 · live model · drag to turn RAM (memory) 3D model, paused
38.4 GB/sone DDR5-4800 stick
16.7 nsCAS latency at CL40
64 bytesin one read burst
32 msevery row refreshed
288gold pins on the stick
Plain answer

How does RAM work?

RAM stores each bit as a tiny charge in a capacitor, arranged in rows and columns inside each chip. To read, the chip opens a row, copies it into a row buffer and streams 64 bytes to the processor. The charges leak, so every row is refreshed every 32 ms, and everything fades soon after power is cut.

Slot to cell

From gold pins down to one capacitor

Every one is labelled in the 3D lab. Turn the model to find them.

Exploded view of the parts of a ram (memory)
Illustration of the main parts. Find each one moving in the 3D lab.
  1. Gold contacts (288 pins)
  2. Key notch
  3. Memory chip
  4. PMIC power chip
  5. SPD ID chip
  6. Slot latch
  7. Memory bus
  8. Word line (row)
  9. Bit line (column)
  10. Memory cell
  11. Sense amplifiers
  12. Row decoder
One read

Open. Send. Close. Refill.

About 36 nanoseconds in real life: open a row, send the data, close it, refill.

RAM (memory) in 3D: activate
01

Activate

open

The chip switches on one row of cells. Their tiny charges spill onto the bit lines, and the sense amplifiers read and hold the whole row of 8,192 bits.

RAM (memory) in 3D: read
02

Read

send

After the CAS latency, the chip picks the wanted columns from the open row and streams them out in a burst of 16 beats. Four chips together deliver a 64-byte line to the CPU.

RAM (memory) in 3D: precharge
03

Precharge

close

Reading drained the cells, so the sense amplifiers write the charge back first. Then the row closes and the bit lines reset to half voltage, ready for the next row.

RAM (memory) in 3D: refresh
04

Refresh

refill

The capacitors leak all the time. Every row is read and topped up about every 32 ms, or the ones and zeros would fade within seconds.

Try it

Six things to do with the stick

Use the model's own controls. The numbers below are what its readouts show.

  1. Leave Memory speed at DDR5-4800 · CL40. Transfer rate reads 4,800 MT/s · 2,400 MHz clock, Bandwidth 38.4 GB/s = MT/s × 8 bytes and CAS latency CL40 = 16.7 ns.
  2. Follow one read. This read counts up to 36.3 ns for a row miss while the blue band (open row) fills on the enlarged bank and the yellow charge columns drain onto the bit lines.
  3. Press Row hit. From the next read, Activate, Precharge and Refresh shrink to slivers, reads walk along the same open row, and This read stops at 20.0 ns. Press Row miss to go back.
  4. Drag Memory speed to DDR5-8000 · CL38. The BANDWIDTH gauge rises to 64 GB/s, CAS latency drops only to 9.5 ns, and the Wait for data vs speed plot shows the ns lines sagging gently while the dashed bandwidth line climbs.
  5. Press Power off and count. It runs in real time; each cell loses half its charge in 0.2 to 8 s, and cups turn red as their bits fall below half full. Stored data shows the seconds and the share of 1s lost. Power on refills the cells as if reloaded from the SSD.
  6. Switch off Enlarged bank to see the whole stick, keep Data flow on to trace bytes over the gold contacts and the memory bus, and pick 1/300000000 for the slowest run.
Row by row

How a stick answers the processor

About 8 minutes of reading.

What does RAM do in a computer, and how is it different from storage?

Open twenty browser tabs on an 8 GB laptop, then click back to the first. Sometimes it reloads from scratch, or the whole machine hangs for a second while the drive works. You've just seen a computer run short of RAM and shuffle things out to its SSD.

RAM (random access memory) is where running programs and the data they're busy with live. The processor can't work straight off the SSD or hard drive. Whatever it needs is copied into RAM first and pulled from there into its caches. Storage makes the opposite trade. It keeps your files with the power off and holds far more per dollar or rupee, but it's slow to answer. A typical SSD read takes tens of microseconds, while the DDR5 stick in our model starts sending data within about 20-36 ns, hundreds to thousands of times sooner, and moves 38.4 GB/s where a fast SSD manages a few GB/s.

So when a phone is sold as 8 GB RAM and 128 GB storage, those are two separate parts with separate jobs. More storage holds more photos. More RAM keeps more apps open without reloading.

How does RAM work? One capacitor per bit

Each chip on the stick is a grid of cells, and each cell is one transistor plus one capacitor, a microscopic cup that holds charge. Charged is a 1, empty is a 0. The transistor acts as a gate. Gates along a row share a wire called the word line, and cells down a column share a bit line. Our 16 GB stick has eight chips of 16 Gbit; every chip holds 32 banks, and each bank has 65,536 rows of 8,192 cells. We drew one bank as 8 rows of 16 cells, roughly 200,000 times real size.

A read begins with an address, and the model prints how it gets split up, for instance 0x1_280D_3680 becomes group 2, bank 1, row 18,947, column 720. Activate switches on that row's word line. Every cell in the row tips its charge onto its bit line, and the sense amplifiers turn those faint nudges into firm 1s and 0s and hold the entire row. That row buffer is what Read picks from. After the CAS latency, 128 bits leave the chip as 16 beats of 8 bits. Chips 1 to 4 do the same in step, so each beat is 32 bits wide and the 16 beats add up to 64 bytes, one cache line for the processor.

Reading drains the cells, so the sense amplifiers push full charge back while the row is still open. Precharge then closes the row and parks every bit line at half voltage for the next one. At DDR5-4800 a row miss, from opening the row to the last beat, takes 36.3 ns. When the next read falls in the row that's already open, it's a row hit and goes straight to Read in 20.0 ns. Programs that walk through memory in order get a lot of those.

Those times cover the stick alone. Add the trip through the processor's caches and its memory controller and the full wait seen by a core comes to roughly 90 ns, the figure our processor model uses.

Why does RAM lose data when the power is off?

The capacitors leak. Charge seeps out through the transistor and the insulation, so a stored 1 slowly sags toward 0. The chip fights back by reading and rewriting every row every 32 ms, around 31 times a second, all day, even while you're not touching the keyboard. A refresh command goes out about every 3.9 µs and keeps the chip busy for about 295 ns, so close to a thirteenth of its time goes on simply keeping data alive.

Cut the supply and the topping-up stops. Real cells hold on for anything from well under a second to minutes when very cold, and then the bits are gone. That's why unsaved work vanishes in a power cut, a summer outage in Chennai or a thunderstorm in Texas alike, and why a desktop on a UPS (battery backup box) gives you time to save. Sleep mode keeps a trickle of power on the RAM so refresh carries on. Hibernate copies the RAM onto the SSD and then switches it off.

Does more RAM make a computer faster? How much RAM do I need?

More RAM helps only if you were running out. When your programs don't fit, the system parks some of their memory on the SSD (paging, or swap) and fetches it back when needed, at SSD speed. That's the stutter. Add RAM and it goes away. If everything already fits, the extra sits idle and you won't notice it.

To check, open the Performance tab of Task Manager on Windows or the Memory tab of Activity Monitor on a Mac during your normal day. Memory in use pinned near the total, or a memory pressure graph in yellow or red, means more would help. A reading of 60-70% with little open is fine, because the system fills spare RAM with cached files and hands it back the moment an app asks.

Typical needs, not hard rules. 8 GB covers schoolwork, office files and a browser with a sensible number of tabs, though it feels tight now. 16 GB is comfortable for most people, most gaming included. 32 GB suits video editing, big photo libraries, music production, virtual machines, or gaming while streaming. Many thin laptops have their RAM soldered down, so choose the amount when you buy.

DDR4 vs DDR5: what actually changed?

Both come as 288-pin desktop sticks, but the key notch sits in a different spot, so neither fits the other's slot and each motherboard takes one type. A common DDR4 stick runs 3,200 MT/s (million transfers a second) for 25.6 GB/s. Standard DDR5 starts at 4,800 MT/s, 38.4 GB/s, and fast kits reach 8,000 MT/s, 64 GB/s. The arithmetic is MT/s times 8 bytes, because a stick is 64 bits wide.

Inside, DDR5 splits the stick into two independent 32-bit subchannels (printed on our board as SUBCHANNEL A and SUBCHANNEL B), doubles the burst from 8 beats to 16 so each half still delivers a whole 64-byte line, and puts its own power chip, the PMIC, on the stick. It runs at 1.1 V instead of 1.2 V and refreshes every 32 ms instead of 64.

Latency is the part people don't expect. The wait for the first data barely improved. DDR4-3200 CL22 waits 13.75 ns, and DDR5-4800 CL40 waits 16.7 ns. The CL number counts clock cycles, and DDR5's cycles are shorter, so a bigger CL can still mean less time. Memory has become much better at moving bulk data while the first-byte wait has hovered around 10-17 ns for years.

What is dual channel memory?

A desktop board has two memory channels, each with its own 64-bit path to the processor. One stick uses one channel. Two matching sticks in the right pair of slots use both, and bandwidth doubles, to 76.8 GB/s at DDR5-4800. The right pair is usually the second and fourth slots from the processor, often labelled A2 and B2, but the motherboard manual has the final say.

It matters most when graphics share the RAM. A graphics card carries its own memory, VRAM, soldered around its chip and built for enormous bandwidth. Processors with built-in graphics have none, so they borrow system RAM, and a single stick can starve them badly. Two 8 GB sticks usually beat one 16 GB stick for that reason.

Speed grades

DDR4-3200 against three DDR5 kits

Rounded figures for common retail sticks, the same ones the model uses.

DDR4-3200DDR5-4800DDR5-6000DDR5-8000
Transfers per second3,200 million4,800 million6,000 million8,000 million
Memory clock1,600 MHz2,400 MHz3,000 MHz4,000 MHz
Bandwidth, one stick25.6 GB/s38.4 GB/s48 GB/s64 GB/s
CAS latencyCL22CL40CL36CL38
Same wait in time13.75 ns16.7 ns12.0 ns9.5 ns
Channels per stickone 64-bittwo 32-bittwo 32-bittwo 32-bit
Burst8 beats16 beats16 beats16 beats
Power controlon the motherboard, 1.2 VPMIC on the stick, 1.1 VPMIC on the stickPMIC on the stick
Every row refreshedeach 64 mseach 32 mseach 32 mseach 32 ms

Sticks sold at the same speed can carry different timings, and tuned kits often run above the standard voltage. Faster DDR4 kits exist too.

Sticker maths

Turning CL40 into nanoseconds

The sum behind the CAS latency readout, worked for the default stick.

Printed on the stickerDDR5-4800 CL40
Transfers per second4,800 million
Two transfers per clock cycle, so the clock runs at2,400 MHz
One clock cycle1 ÷ 2.4 GHz = 0.417 ns
CAS wait, 40 cycles40 × 0.417 = 16.7 ns
ShortcutCL × 2,000 ÷ MT/s
DDR5-6000 CL3636 × 2,000 ÷ 6,000 = 12.0 ns
DDR5-8000 CL3838 × 2,000 ÷ 8,000 = 9.5 ns
DDR4-3200 CL2222 × 2,000 ÷ 3,200 = 13.75 ns
Row miss at 4800, open row + CAS + burst16.25 + 16.7 + 3.3 = about 36.3 ns

Activate takes tRCD, 39 cycles on this stick, and the 16-beat burst takes 16 ÷ 4,800 million seconds, about 3.3 ns. A row hit skips Activate and lands at 20.0 ns.

Memory mix-ups

RAM claims worth correcting

"My phone has 128 GB of memory." That's storage. The RAM is a separate, much smaller amount, often 6-12 GB, and it empties when the phone switches off.

"A bigger CL number means slower RAM." Not across speeds. CL counts clock cycles, so DDR5-6000 CL36 waits 12.0 ns while DDR4-3200 CL22 waits 13.75 ns.

"High RAM usage means something is wrong." Systems deliberately fill unused RAM with cached files and release it on demand. Worry only when it's full and the machine stutters.

"Shutting down keeps what was in RAM." Without power the charges fade within seconds, which is why the computer reloads everything from the SSD when it starts.

Sticker decoder

Terms printed on a memory stick

DRAM
Dynamic RAM, memory that stores each bit as charge in a capacitor and must be refreshed constantly.
Word line
The wire along a row of cells that switches all their transistors on at once.
Bit line
The wire down a column of cells that carries each cell's charge to its sense amplifier.
Sense amplifier
A circuit that turns a cell's faint charge into a clear 1 or 0 and holds the open row.
CAS latency
The clock cycles between a column request and the first data leaving the chip, printed as CL.
MT/s
Million transfers per second; DDR memory makes two transfers in each clock cycle.
Bandwidth
How much data the memory can move each second, in GB/s, equal to MT/s times 8 bytes per stick.
PMIC
Power management chip on a DDR5 stick that makes its working voltages from the motherboard supply.
Refresh
Reading each row and writing its charge back before it leaks away, every 32 ms on DDR5.
Upgrade questions

RAM, answered plainly

Short, straight answers. Open one to read it.

How much RAM do I need?

As a typical guide, 8 GB is enough for browsing, schoolwork and office files, 16 GB suits most people including most gamers, and 32 GB is for video editing, music production, virtual machines or gaming while streaming. Check how much you actually use before buying more.

Does more RAM make a computer faster?

Only if you were running out. When programs don't fit, the computer swaps memory to the SSD and stutters, and more RAM stops that. If your usage already sits well below the total, adding more changes nothing you'd notice.

Can I put DDR5 RAM in a DDR4 slot?

No. Both have 288 pins, but the notch is in a different place, so a DDR5 stick won't go into a DDR4 slot or the other way round. Each motherboard supports one type, listed in its manual and specifications.

What is VRAM vs RAM?

RAM is the computer's main working memory, shared by the processor and every program. VRAM is separate memory on a graphics card, next to the graphics chip, holding textures and frames. Built-in graphics without their own VRAM borrow part of the system RAM instead.

What does CL mean on a RAM stick?

CL is CAS latency, the number of memory clock cycles between asking for data from an open row and the first data coming out. Convert it to nanoseconds before comparing sticks: CL × 2,000 ÷ MT/s. DDR5-4800 CL40 works out at 16.7 ns, and DDR5-6000 CL36 at 12.0 ns.

Why does my RAM show half its rated speed?

Many tools report the memory clock, while the box gives transfers per second. DDR memory moves data twice per clock cycle, so a DDR5-4800 stick runs a 2,400 MHz clock. That's normal. If it shows a lower figure than that, the faster profile may not be switched on in the firmware settings.

Can I mix RAM sticks of different sizes or speeds?

It often works, but every stick then runs at the settings of the slowest one, and mismatched sizes can lose some dual-channel benefit. A matched kit bought together is the safest choice, and the motherboard's support list shows what has been tested.

Does phone RAM work the same way?

Yes, at cell level. Phones use low-power DRAM soldered right beside or on top of the main chip, with the same capacitor cells that need refreshing. It can't be upgraded later, so the amount you buy is the amount you keep.

Fitting it right

Before you open the case

  • More RAM only speeds things up if you were running out. Past that, extra memory sits idle.
  • A higher MT/s number brings more bandwidth, but the wait for the first byte stays at about 10-17 ns.
  • Fit two matching sticks in the dual-channel slots, and switch off at the wall before opening the case.
Your turn

Tell us what to build next

Name a machine you have always wondered about. We build the most requested ones first.

We read every idea. The most asked-for machines get built first. See our privacy policy.