Hard drive and SSD in 3D

A standing comparison board listing hard drive features like spinning platters next to SSD features like NAND flash.Drag to turn

A hard disk drive stores data magnetically on spinning platters read by a moving head. A solid-state drive stores data as electrical charge in flash memory chips with no moving parts. Both keep data when power is off.

How a hard drive stores data on spinning platters

A hard disk drive, or HDD, holds one or more rigid platters coated with magnetic material. The platters spin at a fixed speed, often 5,400 or 7,200 revolutions per minute. A head on a moving arm floats just above the surface and senses or changes the magnetic direction of tiny regions, which represent bits.

Data sits in circular tracks split into sectors. The arm must first move to the right track, called seek time. Then it waits for the sector to rotate under the head, called rotational latency.

How an SSD stores data in flash cells

A solid-state drive, or SSD, stores bits in NAND flash cells. Each cell traps electrical charge in an insulated layer, and the amount of charge sets the stored value. A controller chip maps the addresses the computer uses to physical locations in the flash.

Flash is read and written in small units called pages but erased in larger blocks. Each cell survives only a limited number of erase cycles. The controller therefore spreads writes across the chips, a method called wear leveling.

Worked example: access time for one random read

Take a 7,200 rpm HDD. One revolution takes 60 / 7,200 = 0.00833 seconds, or 8.33 ms. On average the sector is half a turn away, so rotational latency is 8.33 / 2 = 4.17 ms.

Assume a typical average seek time of 9 ms. Total access time is 9 + 4.17 = 13.17 ms. If an SSD responds in about 0.1 ms, it is roughly 13.17 / 0.1 = 132 times quicker for one random read.

Common misconceptions

Some people think SSDs wear out almost at once. Flash cells do have a write limit, but normal use usually stays well below it. Others think SSDs are better in every way, yet HDDs usually cost less per terabyte. Defragmenting also does not help an SSD, because no head travels, and the extra writes only use up cell life.

Where each type is used

Most current laptops and phones use flash storage because it is quiet, light and resistant to shocks. Data centers use both: SSDs for databases needing fast random access and HDDs for bulk storage. Desktops often pair a small SSD for the operating system with a large HDD for files.

Key terms

Platter
A rigid disk coated with magnetic material inside a hard drive.
Seek time
The time the arm takes to move the head to the correct track.
Rotational latency
The wait for the target sector to rotate under the head.
NAND flash
Memory made of cells that hold data as trapped electrical charge and keep it without power.
Controller
The chip in an SSD that maps addresses, manages writes and spreads wear.
Wear leveling
Spreading writes across flash cells so none reaches its erase limit early.

Common questions

Why is a fragmented file slow on a hard drive?

The arm must seek to several separate tracks to gather one file. Each seek adds milliseconds.

Does an SSD keep data without power?

Usually yes for a long period, because charge stays trapped in the cells. Retention shortens as cells wear and at high temperatures, so an SSD is not ideal for unpowered storage over many years.

Why do HDDs usually cost less per terabyte?

Magnetic platters are cheap to make in large capacities, while flash chips cost more per bit. Prices change over time, so the gap varies.

Learn this with a tutor

Sidechair's AI tutor will teach this topic in 3D. Join the waitlist for early access.

We'll only email you about Sidechair. Read our privacy policy.