Open the 3D lab
Tech 23 · STORAGE

Solid-state
drive

An SSD keeps your files as electrons trapped in billions of tiny cells. Writing pushes them in with about 20 volts, and they stay put for months with the power off.

TitleHow a ssd (solid-state drive) worksDwg no.FIG. 23
DrawnTestIt3DUpdatedRevC
ScaleNTSReading8 minModelLive 3D
FIG. 23 · live model · drag to turn SSD (solid-state drive) 3D model, paused
7,000 MB/sNVMe over PCIe 4.0 ×4
16 KBone page, written as one
~20 Vto push electrons in
8charge levels in a TLC cell
600 TBWrated writes, 1 TB TLC
Quick version

How does an SSD work?

An SSD stores data as electrons trapped in billions of flash cells, with no moving parts. To write, the controller picks an empty 16 KB page and pushes electrons in with pulses of about 20 V; the amount of charge sets each cell's bits. Old data is never overwritten, only marked stale and erased later, a block at a time.

Flash vs platters

SSD vs HDD, one request at a time

The 1 TB NVMe drive from Fig. 23 against a 7,200 rpm desktop hard drive. Rounded typical figures.

NVMe SSD (PCIe 4.0)

How it reaches dataelectrically, every page equally close
One scattered readabout 0.1 ms
Scattered reads per secondabout 10,000, far more with a queue
Long file, start to endabout 7,000 MB/s (SATA SSD about 550)
Moving partsnone
What you hearnothing
What wearsflash cells, about 3,000 erases per TLC block
Best atthe boot drive, apps and games

7,200 rpm hard drive

How it reaches dataswing an arm, then wait for the platter
One scattered readabout 13 ms
Scattered reads per secondabout 75
Long file, start to endabout 100-240 MB/s
Moving partsspindle motor, arm and heads
What you heara hum and soft ticks
What wearsbearings, motor and heads, plus knocks while spinning
Best atcheap terabytes for backups and media

When requests jump around, the SSD is about 130 times quicker. For long files read in order the gap shrinks to a few times, and the hard drive still wins on price per terabyte.

One write

Map. Push. Check. Sweep.

Under a millisecond in real life, unless it has to clean up: map, push, check, sweep.

SSD (solid-state drive) in 3D: command
01

Command

map

The computer sends a write over PCIe. The controller looks up its map in DRAM and picks a fresh, empty page, because flash cannot be overwritten in place.

SSD (solid-state drive) in 3D: program
02

Program

push

Voltage pulses rising towards 20 V push electrons through a thin insulator into each cell's charge trap. A cell that reaches its level is locked out of further pulses.

SSD (solid-state drive) in 3D: verify
03

Verify

check

The controller reads the cells back against its reference voltages, and error correction fixes the few bits that came out wrong.

SSD (solid-state drive) in 3D: clean-up
04

Clean-up

sweep

The old copy is marked stale. When space runs short, the valid pages of a worn-out block are copied away and the whole block is erased at once, spreading the wear.

Board to electron

From the gold fingers to one charge trap

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

Exploded view of the parts of a ssd (solid-state drive)
Illustration of the main parts. Find each one moving in the 3D lab.
  1. Key-M connector
  2. Controller (FTL, ECC)
  3. DRAM cache
  4. NAND flash package
  5. Stacked dies
  6. Block
  7. Page
  8. Vertical channel
  9. Bit line
  10. Control gate
  11. Charge trap
  12. Tunnel oxide
Flash, explained

What happens to a file after you press Save

About 8 minutes of reading.

How does an SSD work with no moving parts?

Copy a big folder on an old laptop with a hard drive and you hear a faint ticking as the arm hunts for pieces. An SSD is silent, because nothing moves. An SSD (solid-state drive) is a small board carrying a controller chip, some DRAM and packages of NAND flash, and every bit you save ends up as electrons parked inside a cell.

Each cell is a slice of a vertical silicon tube, the channel, wrapped in a charge-trapping layer, a very thin insulator called the tunnel oxide, and a control gate outside. Raise the gate to about 20 V and electrons are pulled through the insulator into the trap. When the voltage goes they can't easily get back, which is why files survive a power cut. The chip fires short pulses climbing from roughly 15 V towards 20 V, checks after each, and locks out cells that have reached their target. The VOLTS ON THE CELL gauge shows that staircase during Program.

Trapped charge raises the voltage a cell needs before current flows, its threshold voltage, so reading means asking at a few set voltages whether current flows yet. Our model's drive is a 1 TB M.2 stick, 22 × 80 mm (0.87 × 3.15 in), with two flash packages of four stacked dies. Real dies stack 200 or more layers; we drew eight. Cells are written in 16 KB pages, about 131,000 bits together, but erased in blocks of about 6 MB. Most of an SSD's odd habits come from that mismatch.

Why can't an SSD write over old data?

Electrons can only be added to a page. Emptying a cell means erasing its whole block, with about 20 V applied the other way round, which takes around 3 ms against about 50 µs to read a page. So when you save a changed file, the controller writes the new version to a fresh page elsewhere and updates its map, the flash translation layer (FTL), which records which physical page holds each address the computer uses. Ours keeps it in 1 GB of DRAM; DRAM-less drives borrow about 64 MB of the computer's RAM instead (Host Memory Buffer, HMB).

The old copy stays put and is marked stale (brown in DETAIL A). Stale pages pile up. When the controller runs low on empty blocks it chooses the block with the most stale pages, copies the still-valid ones out, and erases it. That's garbage collection, the Clean-up phase in Fig. 23. Our model averages about 1.9 bytes of flash writes per byte from the computer, a write amplification near 2, with a clean-up roughly every fourth write. The controller also spreads new data across blocks so none wears out early, called wear levelling.

What is TRIM, and why do SSDs slow down when full?

Deleting a file only changes the file system's records. The SSD has no clue those pages are now rubbish, so it would keep copying them during clean-up. TRIM fixes that. The operating system tells the drive which addresses are empty, and the controller marks those pages stale at once. Current Windows, macOS and Linux do it automatically for most internal SSDs.

Press Delete a file (TRIM) in the model and a run of pages turns stale. The next clean-up finds blocks that are mostly dead, has little to copy, and the sustained figure in the Write speed readout goes up.

A nearly full drive is the reverse. Few empty blocks remain, so clean-up runs more often with more live data to shuffle. Many TLC and QLC drives also write first into a fast SLC cache (flash run at one bit per cell, left out of our model), and it shrinks as the drive fills. A big copy then starts quick and drops sharply partway. Leave 10-20% of the space free and most of that goes away.

How long does an SSD last in years of normal use?

Every program and every erase drags electrons through the tunnel oxide, and that slowly damages it. After enough cycles a cell leaks or can't hold a clean level. A TLC block is rated for about 3,000 erases, which the box turns into TBW (terabytes written), about 600 for a typical 1 TB TLC drive. Our model takes capacity times erase cycles divided by 5, a rough allowance for write amplification and margin.

Put that in days. A busy home computer might write 20-50 GB a day. At 50 GB a day, 600 TB lasts about 33 years. Estimates, yes, and most drives get replaced for being too small or slow long before the flash runs out. Your own drive keeps a tally in its health data (SMART), which free disk tools display. Warranties end at a set number of years or at the TBW figure, whichever comes first; heavy video editors should mind the second.

TLC vs QLC: what does each extra bit per cell cost?

Drag Bits per cell from SLC to QLC and watch DETAIL C. One bit per cell needs 2 charge levels, two bits need 4, three need 8 and four need 16, all packed into the same voltage range. The same chips then hold more, 333 GB as SLC but 1.33 TB as QLC, at the cost of precision. Charge has to be placed in finer steps, so a QLC page takes about 2,000 µs to program against 600 µs for TLC, and neighbouring levels sit so close that more bits land off target. In the model, ECC (error-correcting code) repairs about 15 bits in a 16 KB TLC page and about 74 in QLC. With targets that narrow, wear shows up sooner, so QLC is rated at around 1,000 erases.

For a home computer, TLC is the sensible middle. QLC suits a large game library or media you write once and read often.

Both are flash; the road to the computer differs. An NVMe drive talks over four PCIe lanes, about 7,000 MB/s at PCIe 4.0, while a SATA SSD sits behind a link built for hard drives that tops out near 550 MB/s (the motherboard page follows both routes). Some M.2 sticks are SATA drives inside, so check the label and what your slot accepts.

Big copies and game installs run many times faster on NVMe. Booting and opening apps lean mostly on small scattered reads, where both kinds answer in roughly a tenth of a millisecond, so those feel much closer than 7,000 against 550 suggests. If your machine has an M.2 slot that takes NVMe, buy NVMe, as prices are usually close. A 2.5 in bay still makes a SATA SSD a great buy.

Is it worth upgrading to an SSD, and can it lose data unplugged?

For the drive your computer starts from, nearly always. A hard drive manages about 75 scattered reads a second; even a modest SSD does around 10,000 one after another, and far more with a queue. An older machine that crawls for minutes after switching on is usually waiting on its disk, and an SSD fixes that better than almost any other upgrade. The hard drive page shows where its 13 ms per read go.

Don't treat an SSD in a drawer as an archive, though. Trapped electrons leak slowly, faster when warm. Drives are rated to keep data for at least 1 year unpowered at 30 °C (86 °F) at the end of their rated life, and much longer when fresh, but that's a floor, not a promise of decades. Press Power off in the model and the write freezes with every page intact, which is right for weeks or months. For years, keep a second copy on another drive or in cloud storage.

Wear maths

From 600 TBW to years of use

How the rating in the Wear readout becomes time, for the default 1 TB TLC drive. Estimates, not promises.

Capacity1 TB
Rated erases per TLC block3,000
Total the flash could absorb1 TB × 3,000 = 3,000 TB
Divide by 5 for write amplification and margin3,000 ÷ 5 = 600 TBW
Heavy home use, 50 GB written a day600,000 ÷ 50 = 12,000 days, about 33 years
Lighter use, 20 GB a day30,000 days, about 82 years
Video editing, 300 GB a day2,000 days, about 5.5 years
Same chips as QLC, 1.33 TB at 270 TBW, 50 GB a day5,400 days, about 15 years

TBW is a warranty figure and many drives go past it. The daily amounts are rough examples; your own drive's health data shows the real total written so far.

SSD folklore

Beliefs about flash that don't hold up

"Defragmenting an SSD speeds it up." There's no arm to move, and the FTL scatters pages on purpose, so a full defrag only adds wear. Leave the system's own TRIM schedule to do its job.

"SSDs wear out in a couple of years." A 600 TBW drive written at 50 GB a day has about 33 years of flash in it by the arithmetic. Heavy video work is the case to watch.

"Deleting a file erases it from the flash right away." The pages are only marked stale and get erased later, a block at a time. With TRIM on, though, the drive soon treats them as empty, so undelete tools rarely get them back.

"An SSD in a drawer keeps its data forever." The rating is at least a year unpowered at 30 °C (86 °F) for a worn drive. Fine for a trip, not for a family photo archive with no other copy.

Bits per cell

SLC, MLC, TLC and QLC on the same chips

The four settings of the Bits per cell slider, with the numbers the model's readouts give.

SLCMLCTLCQLC
Bits in each cell1234
Charge levels to hit24816
Capacity from the same chips333 GB667 GB1 TB1.33 TB
Program one 16 KB page100 µs300 µs600 µs2,000 µs
Read one page25 µs40 µs50 µs80 µs
Write speed before clean-up5,243 MB/s3,495 MB/s2,621 MB/s1,049 MB/s
Erases per block100,00010,0003,0001,000
Rated writes6,670 TBW1,330 TBW600 TBW270 TBW
Bits fixed by ECC per page, typicalabout 0about 4about 15about 74

Write speed here is 8 dies × 4 planes × bits per cell × 16 KB ÷ program time. Real drives add an SLC cache that hides some of the QLC slowness until it fills.

Spec sheet words

Reading an SSD box without guessing

NAND flash
The memory chips in an SSD, made of cells that keep their charge with the power off.
Charge trap
The layer around each cell's channel that holds the electrons standing for its bits.
Page
The smallest unit flash can write, 16 KB in the model.
Block
The smallest unit flash can erase, a few hundred pages or about 6 MB.
FTL
Flash translation layer, the controller's map from the computer's addresses to physical pages.
Garbage collection
Copying valid pages out of a block full of stale ones so the whole block can be erased.
Write amplification
How many bytes the flash really writes for each byte the computer sends, about 2 in the model.
TBW
Terabytes written, the total amount of data a drive is rated to absorb over its life.
ECC
Error-correcting code stored with each page so the controller can repair bits that read back wrong.
Buyer questions

SSD questions with short answers

Short, straight answers. Open one to read it.

How long do SSDs last?

Most last many years. A typical 1 TB TLC drive is rated for about 600 TBW, which at a heavy 50 GB of writes a day works out to roughly 33 years of flash wear. Other parts can fail sooner, so keep backups whatever the rating says.

Is NVMe faster than a SATA SSD?

Yes for large transfers, about 7,000 MB/s on PCIe 4.0 against about 550 MB/s for SATA. For booting and opening apps the gap is much smaller, because both answer a small scattered read in around 0.1 ms.

What is TRIM on an SSD?

TRIM is a command the operating system sends to tell the SSD which pages belong to deleted files. The drive marks them stale, so clean-up doesn't waste time copying them. Leave it switched on; modern systems enable it by default.

Why is my SSD slow when it's almost full?

With few empty blocks left, the drive has to erase more often and copy more valid pages before each erase, and its fast SLC cache shrinks. Keeping 10-20% of the space free avoids most of the slowdown.

Can an SSD lose data if left unpowered?

Yes, slowly. Trapped electrons leak away over time, faster in heat. Drives are rated to hold data for at least a year unpowered at 30 °C (86 °F) near the end of their life, and longer when new, so don't make one your only long-term archive.

Is it worth upgrading from a hard drive to an SSD?

For the boot drive, yes. Scattered reads jump from about 75 a second to about 10,000, so start-up, updates and app launches feel far quicker. The old hard drive can stay on as cheap bulk storage.

Should I defrag an SSD?

No. Fragmentation slows hard drives because the arm has to travel, but an SSD reaches every page equally fast. Windows' Optimize Drives tool sends TRIM to SSDs rather than defragmenting them, which is fine to leave scheduled.

What is the difference between TLC and QLC SSDs?

TLC stores 3 bits per cell in 8 charge levels; QLC stores 4 bits in 16. QLC gives more capacity from the same chips but writes more slowly once its cache fills and is rated for fewer erases, about 1,000 per block against 3,000.

Care tips

Three habits for a healthy SSD

  • Keep about 10-20% of an SSD free; a full drive has to clean up more often and writes slow down.
  • Leave TRIM switched on (most systems do this by default) so the drive knows which pages are free.
  • An SSD left unpowered for years can slowly lose data. Keep backups on a second drive.
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.