Skip to content

What I/Q actually is

Simulated Every waterfall, spectrum and scope on this page is a simulated training display generated in your browser from synthetic signals. Nothing here is received off air.

Every SDR, spectrum analyser and recording tool talks about I/Q. It sounds abstract, but the idea is simple: at every instant a radio signal has an amplitude and a phase, and I and Q are just those two facts written as a pair of numbers. Once that clicks, negative frequencies, constellations and most demodulators make sense.

A signal is a rotating arrow

Picture a radio wave as an arrow (a phasor) spinning around a circle. Its length is the signal's amplitude, its angle is the phase, and how fast it spins is the frequency. A real-world voltage on a wire is only the arrow's shadow on the horizontal axis: a cosine wave going up and down.

  • I (in-phase) is the arrow's horizontal position: amplitude × cos(phase).
  • Q (quadrature) is its vertical position: amplitude × sin(phase). "Quadrature" means 90° apart.
  • Together, I and Q tell you exactly where the arrow is. Written as a complex number, the sample is I + jQ.

Why two numbers? Negative frequencies

With only the I value (the shadow) you cannot tell which way the arrow is turning: an arrow turning anticlockwise and one turning clockwise cast exactly the same shadow. In radio terms you cannot tell a signal 100 kHz above the frequency you are tuned to from one 100 kHz below it. Adding Q (the vertical shadow) removes the ambiguity: anticlockwise is a positive frequency offset, clockwise is negative.

That is why a real-only signal always has a mirror-image spectrum, and why an SDR sampling I and Q at 2.4 million samples per second shows a full 2.4 MHz of spectrum, from −1.2 to +1.2 MHz around the centre. Tick "real signal only" in the figure above to see the mirror image appear.

How a receiver produces I and Q

A radio does not measure the arrow directly. It multiplies the incoming RF signal by a local oscillator (LO) tuned to the centre frequency, in two copies 90° apart: cosine for I and minus sine for Q. Each multiplication produces the difference frequency (what we want) plus a sum frequency at about twice the RF, which a low-pass filter removes. What is left is the signal's arrow, slowed down to the offset from the LO. This is called quadrature mixing, or a direct-conversion (zero-IF) receiver, and it is how almost every SDR works.

Top: the RF input (fast). Middle: the I branch (RF × cos LO) and bottom: the Q branch (RF × −sin LO). With the filter off you see the fast "sum" ripple riding on the slow wanted signal; with it on, only the slow I and Q remain. Their relationship (Q leading or lagging I) gives the sign of the offset. Frequencies are scaled down so the waves are visible.

What modulation looks like in I/Q

Every type of modulation is just a particular way of moving the arrow. Plot the arrow's tip on the I/Q plane over time and each type draws its own picture.

To recover……compute from I and QUsed for
Amplitude (envelope)√(I² + Q²)AM, OOK, signal strength
Phaseatan2(Q, I)PSK and QAM symbol decisions
FrequencyThe change of phase from one sample to the next, divided by the time stepFM, FSK
Upper or lower sidebandKeep only positive or only negative frequencies (possible only because of Q)SSB

I/Q recordings

An SDR recording is simply a long list of I/Q pairs. Saving I/Q instead of audio keeps everything: you can retune within the recorded bandwidth, demodulate in a different mode, or analyse a burst sample by sample later.

  • Formats differ only in how each number is stored: .cu8 (unsigned 8-bit, RTL-SDR native), .cs8 (signed 8-bit, HackRF), .cs16 (signed 16-bit) and .cf32 (32-bit float). Interleaved as I, Q, I, Q…
  • You must know the sample rate and centre frequency to make sense of a raw file. The SigMF standard stores these in a small metadata file alongside the data.
  • Size: 2.4 MS/s at 8 bits is 4.8 MB every second; 20 MS/s at 16 bits is 80 MB/s.
  • Tools such as Inspectrum, Universal Radio Hacker and rtl_433 work directly on I/Q files.

Next: SDR fundamentals (sampling, aliasing, images and the DC spike), and the simulator, whose time plot and constellation show I/Q of real modulations.

Sources

  1. R. Lyons, "Quadrature Signals: Complex, But Not Complicated" [PRACTITIONER].
  2. M. Lichtman, PySDR, "IQ Sampling" [ACADEMIC / OPEN TEXT].
  3. SigMF: the Signal Metadata Format [OPEN SOURCE].

References, standards and the open-source software used to generate and verify the signals on this page are listed on Sources & credits.

Cite this resource

Harvard (UK) and BibTeX citations for this page are generated here when JavaScript is enabled.