Skip to content

Sample Rate and Nyquist

Every flowgraph has one number that rules it: the sample rate, how many samples per second flow through the chain, written fs and measured in samples per second. This chapter states the one law that ties sample rate to what a flowgraph can hear, shows the law breaking with arithmetic you can check, and gives the working rule this guide uses everywhere else.

The law, in one sentence

To capture a signal, sample at more than twice its highest frequency. The boundary — half the sample rate — is called the Nyquist rate (for real samples) after Harry Nyquist, who worked out why. Sample a 1,000 samples- per-second stream and it can hold signals up to 500 cycles per second (500 Hz). Anything higher does not vanish politely. It does something worse: it lies.

Aliasing: the lie, worked in numbers

Sample a 900 Hz tone at 1,000 samples per second. One cycle of the tone lasts 1/900 of a second; your sampler looks every 1/1000. Each look, the wave has advanced 0.9 of a cycle — which is the same position as having gone backwards 0.1 of a cycle. The samples march steadily backwards through the wave, completing one false cycle every 10 samples: the list is indistinguishable from a 100 Hz tone. The 900 Hz signal has folded around the 500 Hz boundary and reappeared at 500 − (900 − 500) = 100 Hz. This folding is aliasing, and no later block can undo it, because the samples genuinely no longer remember which tone made them.

This is why receivers filter before they slow down, and why chapter 9 makes such a fuss about the order of operations. Aliasing is not noise added to your signal; it is other signals, moved into your signal's seat, wearing its clothes.

Complex samples double the room

Chapter 2's pairs buy something concrete here. A complex stream at fs samples per second holds a band fs wide, not fs/2: from fs/2 below the tuning point to fs/2 above it. The mirror-image ambiguity is gone, so the whole width is usable. This is why SDR hardware quotes rates like 2.4 million samples per second and means a 2.4 MHz-wide slice of radio spectrum — wide enough to hold an entire FM broadcast band segment, dozens of amateur channels, or one wide digital signal, all at once.

It also sets the price. Every block in the chain must keep up with the rate, sample by sample, forever. Double the rate and you roughly double the computer's work. Chapter 15 returns to that bill; for now, hold the shape of the trade: sample rate is both your window width and your workload.

The working rules

  • Leave margin. Twice the highest frequency is a cliff edge, not a target. Filters need room to work; this guide samples at several times the bare minimum wherever the lab chooses the numbers.
  • Filter first, then slow down. Before any step that reduces the rate, a filter must remove everything above the new Nyquist boundary, or it folds in as aliases (chapter 9 shows both the right order and the wreckage of the wrong one).
  • Rates are stated, always. Every block in a flowgraph either carries the stream's rate or changes it by a stated factor. When a flowgraph misbehaves, "what rate is it here?" is the first diagnostic question — chapter 16 builds on that.

Check your understanding: a complex stream at 240,000 samples per second shows you a band 240 kHz wide, 120 kHz either side of the tuning point. A real stream at the same rate shows 120 kHz. A 750 Hz tone sampled (real) at 1,000 samples per second folds to 250 Hz. If those three answers feel obvious now, the law is yours, and the rest of the guide is application.