Hardware

How Does a CD Work? Pits, Lands and the Laser That Reads Them

A CD works by storing data as a spiral track of microscopic pits and flat areas called lands in a plastic disc, then reading it with a laser. The player aims a 780 nm infrared beam at the track, and the changing brightness of the reflected light is turned back into bits.

The rest of this page follows the data from the plastic to your speakers or your computer: what the disc is made of, how the pits are laid out, how the laser reads them, and how errors from scratches are repaired.

What is a CD made of?

A pressed CD has three layers, according to the Library of Congress: a polycarbonate substrate, a metal reflective layer, and a protective top coating. The top coating is often printed with the contents of the disc. The Library notes that the exact chemistry of these layers varies with when and where the disc was made.

The data itself is not written on the label. For a commercially pressed audio CD or CD-ROM, the data is molded into the disc at manufacture and cannot be changed. The Library describes the polycarbonate as stamped with data from a master.

A standard disc is 120 mm across and 1.2 mm thick, with a 15 mm hole in the middle. ECMA-130, the standard for 120 mm read-only discs, covers the mechanical and dimensional characteristics, the recording format, the error-detecting and error-correcting coding, and the optical read characteristics. In other words, it defines both the plastic and the way data is laid out on it.

How does a CD store data?

The data is a single spiral track of tiny bumps and flat stretches. Seen from the reading side, the bumps are called pits and the flat parts between them are lands. The track starts near the centre of the disc and spirals outward to the edge.

The dimensions are very small. One commonly cited set of values puts the pits at about 100 nm deep and 500 nm wide, with lengths from about 850 nm to 3.5 µm. Published sources do not agree exactly on these figures (another gives 830 nm to 3,000 nm long and 150 nm deep), so treat them as approximate. The spacing between neighbouring turns of the spiral, the track pitch, is 1.6 µm measured centre to centre. At that pitch, 1,000 turns of the spiral span only 1.6 mm (1,000 x 1.6 µm).

The pit is not a zero and the land is not a one

This is the part most explanations get wrong. The pit and land are not read as individual bits. What carries information is the change between them: a transition from land to pit or pit to land marks a 1, and a stretch with no transition marks a 0. The length of each pit or land therefore decides how many zeros sit between two ones.

Before bytes are written to the disc, they are also translated by a channel code called eight-to-fourteen modulation (EFM), which turns each 8-bit byte into a 14-bit pattern. The point of the code is practical. It limits how many zeros can run in a row, so the pits and lands are never too long or too short for the player to follow the track reliably.

How does a CD player read the disc?

The player focuses a near-infrared semiconductor laser with a wavelength of 780 nm through the bottom of the polycarbonate layer, and a photodiode measures how much light comes back. Light that hits a land comes back at a different intensity from light that hits a pit, so the photodiode sees the pit and land pattern as a stream of changes in brightness. Electronics then decode those changes into the bit stream.

The laser enters from the shiny underside, through the clear polycarbonate, and the pit and land pattern is on the far side of that plastic, next to the metal reflective layer. The label side carries the protective top coating, so the laser never passes through it.

Why the speed changes while it plays

A CD is read at a constant linear velocity, 1.2 to 1.4 m/s, meaning the same length of track passes the laser each second wherever the laser is. A turn of the spiral near the edge is much longer than one near the centre, so the motor has to slow down as the laser moves outward. The disc spins at roughly 500 RPM at the inner edge and roughly 200 RPM at the outer edge. This is different from a hard disk, which spins at a fixed speed.

How does a CD recover from scratches?

Dust and scratches will block some of the light, so the data is stored with error-correcting codes. Audio CDs use cross-interleaved Reed-Solomon coding (CIRC). The "cross-interleaved" part means data that belongs together is spread across different places on the disc, so one damaged spot costs only a little of many pieces. The Reed-Solomon code can then work out the missing values from the rest.

ECMA-130 includes error-detecting and error-correcting coding as part of the format for CD-ROM. Correction has limits: a deep or long scratch, particularly one running along the track, can exceed what the code can rebuild. At that point an audio player may skip, and a computer drive reports a read error.

How does an audio CD sound come from the data?

Audio CDs store two-channel 16-bit PCM audio sampled at 44.1 kHz per channel. The player decodes the bits, corrects errors, and sends the samples to a digital-to-analogue converter that produces the analogue signal for headphones or speakers. A standard disc holds up to 74 minutes of audio in the original format, later extended to 80 minutes.

For data discs, the same physical disc carries computer files instead of audio samples. The capacity there is about 650 MiB, later extended to 700 MiB. Audio CDs and CD-ROMs share the physical design but use different logical formats, which is why an audio player cannot open a data disc as files.

How does a CD-R work?

A recordable CD, or CD-R, has the same size and the same reading method but a different data layer. The Library of Congress says recordable media use a photosensitive organic dye as the data layer, instead of stamping the polycarbonate. A writing laser changes the dye in chosen spots, and those altered spots reflect less light than the untouched dye. To the reading laser they behave like pits.

The Library classes these discs as write-once, read-many (WORM). Once a spot is changed, it cannot be changed back, so you cannot erase a CD-R. That differs from a rewritable CD-RW, which this page does not cover.

Quick reference: CD numbers

PropertyValue
Diameter120 mm
Thickness1.2 mm
Centre hole15 mm
Track pitch1.6 µm
Read laser780 nm, near infrared
Track directionInside to outside
Linear velocity1.2 to 1.4 m/s
Rotation speedAbout 500 RPM (inside) to about 200 RPM (outside)
Channel codeEFM, 8 bits to 14 bits
Audio format16-bit PCM, 44.1 kHz, two channels

Values as listed in the sources below. Pit dimensions vary between published sources, so they are given as approximate in the text rather than in this table.

Frequently asked questions

Why do CDs spin at different speeds?
A CD is read at a roughly constant linear velocity of 1.2 to 1.4 metres per second along the track. Because the track is longer per turn near the edge, the disc has to spin faster near the centre (about 500 RPM) and slower near the rim (about 200 RPM) to keep the same amount of track passing the laser each second.
Is the data on a CD stored on the label side or the shiny side?
The data is molded into the polycarbonate and covered by a metal reflective layer and a protective top coating, which is often printed with the disc contents. The laser reads it through the clear plastic from the shiny underside.
How is a CD-R different from a pressed CD?
A pressed CD has its data stamped into the plastic at the factory. A CD-R has a photosensitive organic dye layer instead, and a writing laser alters the dye to make marks that the reader sees like pits. A CD-R is write-once: marks made in the dye cannot be erased.
Can a CD player read a CD-ROM data disc?
Not as data. Audio CDs and CD-ROMs share the same physical disc and spiral layout, but they use different logical formats. An audio player plays audio tracks, while a computer drive can read the data format defined for CD-ROM in ECMA-130.

Sources