Random Quote Board

Understanding IQ Signals

Gary Schafer, 15 November 2026

The genesis of this post was a question from a student years ago. While discussing complex signals and samples and I and Q and all that those terms entail, he asked the question, "Why can't we just process signals in real-only form?" He expanded on his question by stating he thought that real-only processing would be easier than complex processing.

First, we do process signals in real-only form. These signals are (typically) the ones that we obtain after we've demodulated some RF signal. The output of the demodulation circuit is almost always a real-only signal. So, again, we do process signals in real-only format.

The basic answer is that it makes the processing not necessarily easy, but it does make it easiER.

It's primarily modulated signals, whether in transmission (modulation) or reception (demodulation) where we're dealing with complex signals. That's because we tend to think of modulation as the process of varying some parameter of a sinusoid in order to convey information from one point to another. When dealing with the parameters of sinusoids, complex is easier, even if it is not necessarily easy. We need to discuss a few things to understand why this is.

What is IQ?

First, we need to talk about IQ signals. What is IQ? We're not talking about the now-debunked concept of "intelligence quotient". We're talking about "in-phase" (I) and "quadrature" (Q). Those are the terms used to describe the real and imaginary signals, respectively, that, together, create complex signals. "IQ signals" is synonymous with "complex signals". And once digitized, they become complex samples. It's complex samples that come out of pretty-much every SDR in existence. These are the samples that represent whatever portion of the spectrum we've chosen.

Why represent and process signals this way? Here's why. As stated, modulation talks about how we vary one of the parameters of a sinusoid. A sinusoid has three parameters that we're interested in here. These parameters are:

A graph showing a sinewave along the top with arrows showing the amplitude vertically and the period horizontally. Two sinewaves are in the bottom graph, with the sinewaves being slightly shifted horizontally from each other. An arrow identifies this as the phase.
Sinewaves have three parameters, amplitude, frequency (inverse of the period) and phase. Phase is measured differently from amplitude and frequency because phase requires a second sinewave as a reference.

Measuring amplitude and frequency (again, inverse of the period) are straightforward. Measuring amplitude is something you could do with just a multimeter.

If you had a multimeter that could measure a signal millions of times a second.

And if you could write down the results that fast.

Frequency is somewhat similar, except you're measuring time, not amplitude. Find the point where the waveform repeats, and measure the time difference. This is the period. The inverse of this is the frequency. A common method for measuring frequency is the zero crossing method. I've even used this for demodulating FM signals. But its rather coarse. The zero crossing demodulator required operating at a much higher sample rate than is needed with other methods, such as the polar discriminator. What would be better is if we could measure frequency literally on a sample-by-sample basis.

Hold that thought.

What if we used the phase? Frequency and phase are related. Frequency is the change of phase over time, which mathematically looks like:

\( \LARGE f = {\Delta \theta \over {\Delta t}} \)

The only issue is that we need some way to measure the phase. If we can measure the phase, we can use the equation above to calculate the frequency. Plus measuring the phase would be useful in its own right. But how do we measure the phase?

How to Measure Phase

If we wanted to measure the phase of a sinewave, we'd need another sinewave to use as a reference. That's what makes measuring phase different from measuring the amplitude or frequency. Let's assume we have two sinewaves. Let's assume each sinewave is the same amplitude and frequency as the other. In other words, two, identical sinewaves. Let's assume that one of these sinewaves represents our signal-of-interest. The other represents our reference, and is generated in our receiver. It's one of the local oscillators. If we multiply these two sinewaves together, we wind up with yet another signal. That signal will also be a sinewave, but with twice the frequency of the original sinewaves, plus it will have a DC offset.

A graph of a sinusoid showing 4 cycles. The sinewave is shifted so that its amplitudes extend from 0 to 1.
When multiplying two identical sinewaves together, you'll wind up with a sinewave that is twice the frequency of the original sinewaves, plus that sinewave will have an offset.

If we create a phase shift between the two sinewaves before multiplying them together, we still wind up with a sinewave that is 2x the original frequency. The only difference is that the DC offset isn't as high. And as the phase shift increases, this DC offset changes.

A graph showing a black-colored sinewave whose amplitude extends from just below 0 to just below 1. A red line extends from the vertical center on the left edge of the display to roughly 1/2 vertically on the right edge.
The product of two sinusoids that are just out of phase (π/8) will still be a sinewave that is 2x the original frequency, plus a DC offset that is not quite as high as when the sinewaves were in perfect phase (phase = 0).
A graph showing a black-colored sinewave whose amplitude extends from just below 0 to just below 1. A red line extends from the vertical center on the left edge of the display to roughly 1/2 vertically on the right edge.
The product of two sinusoids that are out of phase (π/4) will still be a sinewave that is 2x the original frequency, plus a DC offset that is slightly less than when the phase offset was only π/8.
A graph showing a black-colored sinewave whose amplitude extends from just below 0 to just below 1. A red line extends from the vertical center on the left edge of the display to roughly 1/2 vertically on the right edge.
The product of two sinusoids that are just out of phase (π/2) will still be a sinewave that is 2x the original frequency, but without a DC offset. The two sinewaves are said to be orthogonal.
A graph showing a black-colored sinewave whose amplitude extends from just below 0 to just below 1. A red line extends from the vertical center on the left edge of the display to roughly 1/2 vertically on the right edge.
The product of two sinusoids that are out of phase (3π/4) will still be a sinewave that is 2x the original frequency, plus a DC offset that is negative.

This leads to the two insights. The first is that, when the phase difference between our sinusoids is π/2 radians (90 degrees), the DC offset value is zero. That's because two sinewaves that are offset in phase by 90 degrees are said to be orthogonal. Orthogonal refers to when you multiply two signals together, sum up the products, and the sum is zero[2]. The cosine and sine functions create sinusoids that are 90 degrees (π/2 radians) apart. This will become important in a moment.

The second insight is that the phase difference causes a DC offset. Which means we can use the DC offset to determine the phase difference. It turns out that the amplitude of this DC offset is equal to the cosine of the phase difference. This explains why its maximum at a phase difference of 0, and 0 at a phase difference of π/2 radians (90 degrees). Now we need a method to separate the sinewave and DC offset. If we look at the spectrum of the multiplied sinewaves, we get this:

Graph showing a vertical axis extending from 0 to 1, and a horizontal axis extending from 0 to 5. A black line extends vertically from 0 to 0.5 at the horizontal point of 0, while a similar line extends at the horizontal point of roughly 0.35.
The spectrum of the multiplied sinewaves shows the 2x frequency tone, as well as a DC signal.

Which leads to the solution. If we use a lowpass filter to filter out the 2x tone, we're left with the DC offset. The amplitude of this DC offset is a measure of the phase difference.

Block diagram running from left to right. On the left is the abbreviation RF followed by an arrow pointing to a circle with a large X in it. This circle with an X in it is captioned as a mixer. Below the mixer is another circle with a curved up/down line in it. Next to this is an abbreviation LO. An arrow points from this circle up to the mixer. An arrow leads off to the right of the mixer pointing to a rectangle. Inside the rectangle is a line that starts high while running horizontally, then slows down to a lower level. An arrow leads from this rectangle to a small caption that says DC offset.
A circuit that can be used to measure the phase offset between an incoming signal and a locally-generated reference (the LO or local oscillator). The mixer multiplies the two signals, with the output passing through a lowpass filter to remove the 2x frequency component. The remainder is the DC offset.

Phase can be drawn on a polar plot, with the positive x-axis as the reference (0 radians). Plotting the phase difference this way, we have the horizontal side of a triangle displaying the DC offset. Again, this tracks with the DC offset being equal to the cosine of the phase difference.

But this leads to the next problem. The DC offset from our circuit will be the same whether our phase shift is positive or negative. Phase is typically measured from -π to +π. This circuit we've shown above will only show us the phase difference for half of this. We can only measure from 0 to either +π or from 0 to -π. The offsets will be the same either way. But we have no way to determine if we're on the positive or negative side.

Diagram showing a large circle. The circle is divided into four quadrants using a line running through its center both horizontally and vertically. Two triangles are set up on the right side, with the hypotenuse running from the center to a point just above the center line on the right side. A similar triangle extends below the center line on the right side. A red line extends along the length of the adjacent side on the horizontal axis. An arrow points to this line. This arrow has the caption of DC offset. Starting from right side and going clockwise, there are captions stating 0, -pi over 2, pi and pi over 2.
Measuring the phase difference as a DC offset will allow us to determine this difference as either 0 to -π, or 0 to +π. We can look at the DC offset as telling us the angle of a triangle, but it doesn't tell us whether that angle is positive or negative.

How do we tell the difference between these two regions? The answer is: We use a second sinewave that is offset from the first by 90 degrees (π/2 radians). In other words, we use two sinewaves that are orthogonal from each other. Another way to state this is that we use two sinewaves that are in quadrature from each other. If we look at the first sinewave as allowing us to measure the DC offset on the horizontal axis, we can look at the second sinewave as allowing us to measure another DC offset on the vertical axis. To do this, we set up a separate circuit similar to the first one. The only difference is the 90 degree (π/2 radian) phase shift between the two sinewaves generated as part of our local oscillators. Because we're using two oscillators that are in quadrature, and due to the fact that each circuit is similar to an amplitude demodulator, this type of circuit goes by the term quadrature demodulator.

Block diagram running from left to right. On the left is the abbreviation IF followed by two arrows pointing to circles, one on a row above and one on a row below, each with a large X in it. These circles with an X in them is captioned as a mixer. Between the mixers is another circle with a curved up/down line in it. Next to this is an abbreviation LO. An arrow points from this circle up to the mixer. Another arrow leads down from this LO to a box with the term 90 degrees in it. Yet another arrow points down from this box to the lower mixer. An arrow leads off to the right of each mixer pointing to a rectangle. Inside the rectangle is a line that starts high while running horizontally, then slows down to a lower level. An arrow leads from this rectangle to a small caption that says I on the upper row, and Q on the lower row.
Expanding on the earlier circuit, we have two circuits to independently measure the DC offset when multiplying our incoming signal with a sinewave. Each sinewave is in quadrature (orthogonal) from the other, and we can use this to measure the phase completely from -π to +π. Because this is a quadrature circuit, this is (typically) called a "quadrature demodulator". By convention, the horizontal axis is called the "in-phase" or "I" component, and the vertical axis is called the "quadrature" or "Q" component.

Plotting these two DC offsets as an XY plot, we get something similar to this. If we have a sinusoid that is the same frequency as our two reference signals, but with a 45 degree (π/4 radians) phase difference, we'll wind up with a diagram such as is shown below.

A XY plot with a large dot in the upper, right quadrant. The vertical axis is labeled quadrature; the horizontal axis is labeled in-phase.
This is a basic XY plot showing the DC offsets for the horizontal and vertical axes. If the input signal is just an unmodulated sinusoid with a phase offset (but no frequency offset), it will show up as a simple dot. This shows a slight positive phase shift.

We can implement a quadrature demodulator in Gnu Radio Companion to demonstrate the concept.

A block diagram in roughly three rows. The top row shows a set of blocks to create a RF signal. The center row creates two orthogonal local oscillators. The bottom row creates a time domain view comparing the RF and LO signals. On the righthand side is a set of blocks that multiply the LO and RF signals together, followed by filtering them. The outputs are sent to a constellation sink and a time domain display.
This is a Gnu Radio Companion flowgraph that demonstrates the concepts of the quadrature demodulator. The top Signal Source block is our ostensible input (RF) signal. The lower Signal Source block creates our two, orthogonal sinusoids. Each of these sinusoids is multiplied and filtered with the input signal. The output is sent to a constellation sink (which is really nothing more than an XY display) as well as a time domain display to show the DC offsets individually.
A set of three displays. Along the top is a slider showing the phase difference between the two signals. On the top left is a display showing a set of two sinusoids slightly offset horizontally from each other. Along the bottom left is a display showing a blue and red horizontal line, each offset vertically from each other. The right half of the screen is a display showing a XY graph with a dot in the upper, right quadrant.
This shows three graphs at the output of the quadrature demodulator. The top left is a comparison of the in-phase (I) oscillator with the input signal, while the bottom left shows the DC offsets for the I and Q individually. The right half of the screen is a constellation plot, also called an Argand diagram, which plots the I and Q on the horizontal and vertical axes, respectively. With the addition of the second, orthogonal oscillator, we have the means to measure the phase fully from -π to +π.

We've taken our original signal and turned it into two signals. Each one was created using orthogonal signals. You know what type of math uses two orthogonal values? Complex math. What we've just created is a complex signal. Note that "complex signals" does not mean "digital signals". Complex signal processing has been around for over seven decades. Color television required phase modulation (and demodulation), and the demodulator circuit in televisions had something similar to this.

Block diagram with annotations explaining a quadrature demodulator. A horizontal line centered vertically runs starting on the left side. It splits to extend vertically up and down at about the 1/3 from the left edge. Each extension then runs into a rectangle. The top rectangle is captioned I demodulator. The bottom rectangle is captioned Q demodulator. The output of each rectangle extends to the right into a circuit consisting of an inductor and a pair of capacitors. A caption at the top states these are lowpass filters. The output of the two filter is labeled E sub I, while the bottom is labeled E sub q. The bottom of this image is labeled Fig. 4-37 Quadrature demodulation.
This is a diagram of color television quadrature demodulation circuit. Color television in the United States was approved in the early 1950s. The boxes marked "I demodulator" and "Q demodulator" are nothing more than mixers (multipliers). Image source: "Television Engineering Handbook (Featuring HDTV Systems)", K. Blair Benson, revised by Jerry Whitaker, McGraw-Hill, Inc, 1992.

There's one aspect to this that we skipped over. We were focusing on the phase. But the amplitude of the two multiplied signals also affects the amplitude of the DC offset. Thus, if we have an input signal whose phase is not changing, but whose amplitude is, then we would see this as a variation of the magnitude, as opposed to a variation of the phase.

Creating Complex Samples

But we're aiming to create digital signals that a computer, of some form, can process. This requires some form of an analog-to-digital converter (ADC). This can occur before or after the quadrature demodulation. Most of the low-cost SDRs, such as the HackRF One and HackRF Pro, Airspy R2, SDRplay RSP1A, and Ettus Research USRP B200 mini, perform quadrature demodulation first. All of these SDRs perform the real-to-complex conversion using analog signals. Then they have dual ADCs (one each for the I and Q) following the quadrature demodulator. The rest, such as the RTL-SDR and Signal Hound's BB60C, perform ADC on a low frequency IF, then digitally perform the quadrature demodulation[3].

Again, complex signals does not mean digital. These are two, separate things. That's why these two things occur in two, different circuits in the SDR.

Block diagram showing how input RF signals pass through a RF front end, which filters, amplifies and frequency translates the incoming signals, followed by a quadrature demodulator, followed by an analog-to-digital converter or ADC.
The most common method for SDRs is to start with an RF front end. This section amplifies, filters and frequency translates the input signal. This is followed by the quadrature demodulator to create the complex signals, followed by dual analog-to-digital converters (ADC) to create the complex samples. This is the method used by many popular SDRs, such as the HackRF One and HackRF Pro, the Airspy R2, the SDRplay RSP1A, and the Ettus Research USRP B200 mini.
Block diagram showing a signal passing from a RF front end through an analog to digital converter, followed by a digital quadrature demodulator.
The other method for SDRs still starts with the RF front end, which again is used for amplifying, filtering, and frequency translating the RF signal. This is followed by an analog-to-digital converter. The final circuit is a digital circuit to perform quadrature demodulation. This is the method used by RTL-SDRs and the Signal Hound BB60C.

Regardless, at the output of these two circuits, the quadrature demodulator and the ADC, you wind up with complex samples. It doesn't matter which comes first, quadrature demodulation or ADC. You wind up with the same complex samples either way. It's these complex samples, which are nothing more than numbers representing the amplitudes of the real (in-phase) and imaginary (quadrature) components of those DC offsets, that are what come off of whatever SDR you're working with. We tend to call these samples "IQ samples" or sometimes just "the IQ".

Measuring the Parameters

We're now at the part where we can talk about how using complex signals makes the processing easier, even if it is not necessarily easy. The fact that these signals are in digital format, meaning they're complex samples, makes it even easier. We started this discussion by creating a circuit to measure phase. Unlike our original sine wave, where it was straightforward to measure amplitude and period (the inverse of frequency), but more difficult to measure phase, we now have a circuit that makes it easier to measure amplitude and phase, and frequency is one, extra step. Amplitude and phase can be calculated directly from each sample as follows:

\( \Large A = \sqrt { I^2 + Q^2 } \)

\( \Large \theta = atan ( Q / I ) \)

where:

A XY plot with a dot in the upper, right quadrant. A line from the center of the graph to the dot is captioned magnitude. An equation in the lower left states that magnitude equals the square root of the I squared plus the Q squared.
The magnitude of each complex sample can be calculated as the Cartesian distance from the center to the point.
A XY plot with a dot in the upper right quadrant. A line extends from the center of the graph to the dot. A curved arrow extends from the horizontal axis to this line, and is captioned phase. An equation in the lower right corner states that phase is equal to the arctangent of Q divided by I.
The phase of each complex sample can be calculated as the arctangent (also called the "argument" or "arg") of the ratio of Q amplitude to the I amplitude.

This leaves the last parameter, frequency. As stated, frequency is the change of phase over the change in time. We can do this by calculating the phase of two, consecutive samples, finding the phase difference between them, then dividing by the time difference[4].

\( \LARGE f = \frac { \theta_2 - \theta_1 }{ \Delta t } \)

A XY plot with two dots located equidistant from the center in the upper, right quadrant. Lines extend from the center to each point. A curved arrow extends from the centers of each line to the other. This curved arrow is captioned frequency. An equation in the lower, right corner states that frequency is equal to theta sub 2 minus theta sub 1, all over delta T.
Once we know the phase, we can calculate the frequency as the phase difference divided by the time difference.

Thus, with complex samples and basic math, we can calculate all three parameters. Not only that, but we can do so on a sample-by-sample basis.

That "Negative Frequency" Concept

Let's talk about another area that causes confusion. Now that we (hopefully) have some understanding of how we create complex samples and the constellation diagram, we can add the concept of "negative frequency". To be clear, we're not talking "negative frequency as in the inverse of negative time". No. This concept applies when we're looking at a constellation diagram and the IQ samples plotted on it. If the incoming signal and oscillators are perfectly in phase and at the exact, same frequency, then the plotted points will not move. But if the frequency is different between them? Then the points will circle the center of the diagram. Whether the frequency is positive or negative is dependent on whether the plotted points circle clockwise (negative frequency) or counter-clockwise (positive frequency). The frequency itself is the same either way.

Display showing two square graphs side by side. The graphs show XY axes with a small black dot in one of the quadrants. The title over the left graph says Positive Frequency. The title over the right graph says Negative Frequency. The horizontal axis for each is labeled in-phase, while the vertical axis is labeled quadrature.
Click on the image to see the motion. This is an active GIF image showing how a frequency difference will show up on a constellation display (Argand diagram). This is a frequency difference of roughly 1/3 Hz. A positive frequency difference means that the resulting phase difference will circle counter-clockwise, while a negative frequency difference means it will circle clockwise.

Again, when we're talking "positive frequency" and "negative frequency" here, we're simply talking about whether that phasor is spinning clockwise or counterclockwise.

How Can the Sample Rate Match the Bandwidth?

Just as the frequency is the same whether its positive or negative, this also applies to the Nyquist limit. Sampling and the Nyquist limit only cares about the absolute value of the frequency. Whether it's "positive" or "negative" is irrelevant. Further, because the positive and negative frequencies of a complex signal can be unique, we can literally center the bandwidth of our signal at 0 Hz. For example, if we have a signal with a bandwidth of 1 MHz centered at 0 Hz, the maximum frequency, positive or negative, will be 1/2 of 1 MHz, or 500 kHz. The minimum sampling rate for 500 kHz is 2 x 500 kHz = 1 MHz. Thus, with complex signals, our sample rate can equal our bandwidth.

Note that we've not violated Nyquist. Our sample rate still must be twice the maximum frequency. It's just that, thanks to complex math, we can fit more signal into the same sample rate. This is also why, when you look at a spectral display on one of your favorite programs, the span will typically be the the sample rate centered on whatever center frequency your SDR is tuned to.

Screenshot showing a spectral trace on the top right and a spectrogram below this. A narrow column of controls takes up the right side of the screen.
This is a screenshot of GQRX tuned to 93 MHz using a 2.4 MHz sample rate. Note that the span extends from 91.8 MHz to 94.2 MHz. The span extends above and below the center frequency by half of the sample rate, which is still the Nyquist limit.

Summary

I realize this is a lot of information. Let me try to summarize why processing samples in complex form is a better way to go.

  1. Lower sample rate. Because of the unique nature of the positive and negative frequencies, we can use the lowest, possible sample rate. This means we can use a sample rate roughly equivalent to our signal bandwidth. If we used real-only processing, our sample rate would have to be at least 2x as high.
  2. Covers all parameters. We arrived at complex signals by explaining how to measure phase. What we wound up with was a way to measure all three basic parameters on a sample-by-sample basis.
  3. Easier frequency shift. If we want to frequency shift a signal, even if it is real-only, doing so with a complex sinusoid requires far less processing than does a real-only frequency shift. Real-only requires careful mixing to ensure no overlaps between mixing products. Complex mixing does not require this careful attention.

In my next post, I'm going to go into IQ file formats. See you then!

Footnotes

[1]: You may be wondering, "If you can calculate the frequency from the phase, why can't you calculate the phase from the frequency?" Good question. The answer is that, frequency is the derivative of phase. Which means phase is the integral of frequency. When you integrate, you need a constant. That constant is unknown in this instance. Regardless, this would still be a coarse method and there's a better way to do it anyway.

[2]: B.P. Lathi, "Modern Digital and Analog Communication Systems (Third Edition)", Oxford University Press, 1998, p. 33.

[3]: When performed digitally, the quadrature demodulator can be combined with a downsampler (decimator). Together, this circuit is called a "digital downconverter" or "DDC".

[4]: The actual method by which frequency is measured typically involves multiplying consecutive samples together before the actual phase is calculated. This is the basis of the frequency discriminator known as the polar discriminator.

Here's a Random Fact...