---
title: Transceiver impairments and EVM
heading: Error vector magnitude, and what noise, phase noise, I/Q imbalance and amplifier compression each contribute
eyebrow: S8 · Lesson 27 · Transceiver impairments and EVM
xp: 50
---

::: hook
A modulation's error-rate curve assumes a perfect transmitter and receiver with only thermal noise between them. Real radios add their own errors: the oscillators wander in phase, the I and Q paths differ slightly in gain and phase, the power amplifier squashes the peaks, and the converters add noise. Designers lump all of these into one figure, the **error vector magnitude**: the rms distance of received constellation points from where they should be, relative to the signal. Each impairment contributes a predictable share, and the shares add as powers.
:::

::: play
- The curve is the rms EVM that additive noise alone produces at a given SNR: $\text{EVM} = 1/\sqrt{\text{SNR}}$, in percent.
- 25 dB of SNR is 5.6% EVM; 64-QAM in Wi-Fi requires about −27 dB (4.5%) and 256-QAM about −32 dB (2.5%).
- Every other impairment eats into the same budget, so a transmitter's EVM must be well below the requirement.
:::

```sim plot
view: graph
x: S = 10..45 dB
y: E = 0.5..30 % log
plot: 100/sqrt(10^(S/10)) | label: EVM from noise
plot: 4.47 + 0*S | dashed | label: 64-QAM limit (−27 dB)
plot: 2.51 + 0*S | dashed | label: 256-QAM limit (−32 dB)
```

::: predict
## A transmitter's oscillator has 1° rms of integrated phase noise. What EVM does that alone cause?

- [ ] 0.1%
- [x] About 1.7% (−35 dB)
- [ ] About 10%
- [ ] None: phase noise doesn't move points radially

::: reveal
A small phase error φ moves a point of radius r sideways by about rφ, so the rms error relative to the rms radius is the rms phase in radians: 1° = 0.0175 rad, 1.75% or −35 dB. That's comfortably inside a 64-QAM budget, but by itself it uses about half the error power a 256-QAM budget allows.
:::
:::

::: nameit
## Error vector magnitude

With ideal points $s_k$ and received points $r_k$, the rms EVM is
$$\text{EVM} = \sqrt{\frac{\sum|r_k - s_k|^2}{\sum|s_k|^2}}$$
in percent or in dB ($20\log_{10}\text{EVM}$). For errors that behave like noise, $\text{EVM} = 1/\sqrt{\text{SNR}}$, so EVM and SNR are two views of one quantity.

## Contributions

- **Noise** (thermal, quantization): $\text{EVM} = 1/\sqrt{\text{SNR}}$.
- **Phase noise** with rms integrated phase $\sigma_\phi$ (radians, lesson 39 of S6): EVM ≈ $\sigma_\phi$.
- **I/Q imbalance**, gain ratio a and phase error φ: an image of each point appears at the relative level $1/\sqrt{\text{IRR}}$ with the image-rejection ratio $\frac{1 + 2a\cos\phi + a^2}{1 - 2a\cos\phi + a^2}$ (lesson 3), and acts like an EVM of that size.
- **Carrier leakage** (DC offset): an EVM equal to the leakage relative to the signal.
- **Compression and clipping** in the power amplifier: grows rapidly as the back-off from compression falls below the signal's peak-to-average ratio.

Independent contributions add in power:
$$\text{EVM}_\text{total} = \sqrt{\sum_i\text{EVM}_i^2}$$

## Requirements

Denser constellations need lower EVM. At their highest code rates, Wi-Fi (802.11ac) requires about −13 dB for QPSK, −19 dB for 16-QAM, −27 dB for 64-QAM and −32 dB for 256-QAM, and 802.11ax −35 dB for 1024-QAM; cellular standards set similar figures.
:::

::: example
## A transmitter has 2.5% EVM from its amplifier, 1.75% from phase noise (1°), 2% from I/Q imbalance and 3% from the DAC and filters. What is its total EVM, and can it send 64-QAM?

::: solution
1. **Add the impairments in power.**
   $$\begin{aligned} \text{EVM}^2 &= 2.5^2 + 1.75^2 \\ &\quad + 2^2 + 3^2 \\ \text{EVM} &= 4.7\% \\ &= -26.5\ \text{dB} \end{aligned}$$
2. **Against 64-QAM.** That misses 64-QAM's −27 dB requirement by half a decibel.
3. **What to fix first.** The largest term, the DAC path at 3%, is the one to improve first, since shaving it to 2% would bring the total to
   $$\begin{aligned} \text{EVM}^2 &= 2.5^2 + 1.75^2 \\ &\quad + 2^2 + 2^2 \\ \text{EVM} &= 4.2\% \\ &= -27.6\ \text{dB} \end{aligned}$$

**Answer:** a total EVM of 4.7% (−26.5 dB), half a decibel short of 64-QAM's −27 dB.
:::
:::

::: example
## An I/Q modulator has 0.2 dB of gain imbalance and 2° of phase error. What EVM does that cause?

::: solution
1. **Image rejection.** With a = 1.023 and φ = 2°:
   $$\begin{aligned} \text{IRR} &= \frac{1 + 2a\cos\phi + a^2}{1 - 2a\cos\phi + a^2} \\ &= 33.6\ \text{dB} \end{aligned}$$
2. **Image level.** The image sits at
   $$10^{-33.6/20} = 2.1\%$$
   of the signal: an EVM of 2.1%.
3. **After calibration.** Trimming the imbalance to 0.05 dB and 0.5° pushes it below 0.6%.

**Answer:** an EVM of 2.1%.
:::
:::

::: example
## A receiver's EVM must not exceed −32 dB for 256-QAM, and its own impairments already contribute −36 dB. What SNR must the channel deliver?

::: solution
1. **Convert to power.** −32 dB and −36 dB are
   $$\begin{aligned} 10^{-3.2} &= 6.31 \times 10^{-4} \\ 10^{-3.6} &= 2.51 \times 10^{-4} \end{aligned}$$
2. **The channel's share.** It may contribute the difference:
   $$\begin{aligned} \text{EVM}^2 &= 6.31 \times 10^{-4} \\ &\quad - 2.51 \times 10^{-4} \\ &= 3.80 \times 10^{-4} \\ &= -34.2\ \text{dB} \end{aligned}$$
3. **Required SNR.** That's an SNR of 34.2 dB.
4. **Impairments at the limit.** A receiver whose own impairments sat at −32 dB could never reach 256-QAM, however strong the signal.

**Answer:** the channel must deliver an SNR of 34.2 dB.
:::
:::

::: check
kind: parts
given: S = 15 | 25 | 35

## A link's only impairment is noise, at {S} dB SNR.

::: part
answer: 100/sqrt(10^(S/10))
unit: %
tolerance: 0.5%

### What EVM does it show?

::: misses
- [100/10^(S/10)] EVM is an amplitude ratio: $1/\sqrt{\text{SNR}}$.
- [any] $1/\sqrt{\text{SNR}}$.
:::
:::

::: part
answer: -S
unit: dB
tolerance: 0.5%

### What is that in dB?

::: misses
- [any] $20\log_{10}\text{EVM} = -\text{SNR}_\text{dB}$.
:::
:::
:::

::: check
kind: parts
given: p = 0.5 | 1 | 3

## An oscillator has {p}° rms of integrated phase noise.

::: part
answer: p*pi/180*100
unit: %
tolerance: 0.5%

### What EVM does it cause?

::: misses
- [any] The rms phase in radians.
:::
:::

::: part
answer: 20*log(p*pi/180)
unit: dB
tolerance: 0.5%

### In dB?

::: misses
- [any] $20\log_{10}\sigma_\phi$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2.5; b = 1.5 | 3; c = 2 | 4

## Three independent impairments contribute {a}%, {b}% and {c}% EVM.

::: part
answer: sqrt(a^2 + b^2 + c^2)
unit: %
tolerance: 0.5%

### What is the total EVM?

::: misses
- [a + b + c] Independent errors add in power, not amplitude.
- [any] $\sqrt{\sum\text{EVM}_i^2}$.
:::
:::

::: part
answer: 20*log(sqrt(a^2 + b^2 + c^2)/100)
unit: dB
tolerance: 0.5%

### In dB?

::: misses
- [any] $20\log_{10}$ of the total.
:::
:::
:::

::: check
kind: parts
given: e = 0.05 | 0.2 | 0.5; p = 0.5 | 2 | 5

## An I/Q modulator has {e} dB of gain imbalance and {p}° of phase error.

::: part
answer: 10*log((1 + 2*10^(e/20)*cos(p*pi/180) + 10^(e/10))/(1 - 2*10^(e/20)*cos(p*pi/180) + 10^(e/10)))
unit: dB
tolerance: 0.5%

### What is its image-rejection ratio?

::: misses
- [any] $\frac{1 + 2a\cos\phi + a^2}{1 - 2a\cos\phi + a^2}$.
:::
:::

::: part
answer: 100/sqrt((1 + 2*10^(e/20)*cos(p*pi/180) + 10^(e/10))/(1 - 2*10^(e/20)*cos(p*pi/180) + 10^(e/10)))
unit: %
tolerance: 0.5%

### What EVM does the image cause?

::: misses
- [any] $1/\sqrt{\text{IRR}}$.
:::
:::
:::

::: check
kind: parts
given: R = -22 | -27 | -32; d = 3 | 6; let I = R - d

## A receiver must meet {R} dB EVM; its own impairments contribute {I} dB.

::: part
answer: -10*log(10^(R/10) - 10^(I/10))
unit: dB
tolerance: 0.5%

### What SNR must the channel deliver?

::: misses
- [-R] The receiver's own error uses part of the budget.
- [any] Subtract the powers: $-10\log_{10}(10^{R/10} - 10^{I/10})$.
:::
:::
:::

::: check
kind: parts
given: P = 1.2 | 1.8 | 2.4; N = 20 | 30

## A transmitter has {P}% EVM from its amplifier and a {N} dB SNR from its DAC and filters.

::: part
answer: sqrt(P^2 + (100/sqrt(10^(N/10)))^2)
unit: %
tolerance: 0.5%

### What is its total EVM?

::: misses
- [any] Convert the SNR to EVM and add in power.
:::
:::
:::

::: check
kind: choice

## A 256-QAM transmitter shows a constellation whose outer points are pulled inward and smeared, while inner points look clean. Which impairment is most likely?

- [ ] Phase noise
- [x] Power-amplifier compression: only the highest-amplitude points approach saturation, so they're squashed toward the center and distorted
- [ ] I/Q gain imbalance
- [ ] Thermal noise

::: misses
- [1] Phase noise smears every point along an arc, more for outer points but without pulling them inward.
- [3] Gain imbalance stretches the constellation along one axis.
- [4] Noise blurs every point equally.
:::
:::

::: check
kind: derivation
vars: S = 1..100000, p = 0..0.2, a = 0.8..1.25, q = 0..0.1

## A link has SNR S (linear), rms phase noise p (rad), and I/Q gain ratio a with phase error q (rad).

::: step
answer: 1/sqrt(S)

### What EVM does the noise cause?
:::

::: step
answer: sqrt((1 - 2*a*cos(q) + a^2)/(1 + 2*a*cos(q) + a^2))

### What EVM does the I/Q imbalance cause?
:::

::: step
answer: sqrt(1/S + p^2 + (1 - 2*a*cos(q) + a^2)/(1 + 2*a*cos(q) + a^2))

### What is the total?
:::

::: right
Right. Because they add in power, the largest contributor dominates and is the one worth fixing.
:::
:::

::: check
kind: python

## Write `evm(received, ideal)`: the rms EVM of lists of complex points, and `simulate_phase_noise(points, sigma, seed)`: rotate each point by a Gaussian random angle of standard deviation sigma (from `random.Random(seed)`) and return the result.

```python starter
def evm(received, ideal):
    return 0.0

def simulate_phase_noise(points, sigma, seed):
    return list(points)
```

```python solution
import cmath, math, random

def evm(received, ideal):
    num = sum(abs(r - s) ** 2 for r, s in zip(received, ideal))
    den = sum(abs(s) ** 2 for s in ideal)
    return math.sqrt(num / den)

def simulate_phase_noise(points, sigma, seed):
    r = random.Random(seed)
    return [p * cmath.exp(1j * r.gauss(0, sigma)) for p in points]
```

```python tests
import math, random
r = random.Random(4)
qam = [complex(x, y) for x in (-3, -1, 1, 3) for y in (-3, -1, 1, 3)]
pts = [r.choice(qam) for _ in range(20000)]
rx = simulate_phase_noise(pts, math.radians(1), 9)
assert abs(evm(rx, pts) - math.radians(1)) < 0.001, "1° rms of phase noise: about 1.75% EVM."
assert evm(pts, pts) == 0, "No impairment, no error."
```

::: right
Right. The small-angle result holds for any constellation, since every point's displacement scales with its own radius.
:::
:::

::: explain
## Why do denser constellations need much lower EVM, and why is a transmitter's own EVM so important?

::: model
In a denser constellation the points are closer together relative to the average signal power, so a smaller error vector is enough to push a point across a decision boundary. Going from 64-QAM to 256-QAM halves the spacing at the same average power, which requires about 6 dB lower EVM. A transmitter's own impairments, oscillator phase noise, I/Q imbalance, amplifier compression and converter noise, set a floor that the received signal can never be better than, however strong it is. If that floor is above what a constellation needs, no amount of signal strength makes the link work, so the transmitter's EVM must sit comfortably below the requirement to leave room for the channel's noise.
:::
:::

::: practice
::: check
given: S = 15 | 20 | 25 | 28 | 32 | 40
answer: 100/sqrt(10^(S/10))
unit: %
tolerance: 0.5%

## EVM at {S} dB SNR?

::: misses
- [any] $1/\sqrt{\text{SNR}}$.
:::
:::

::: check
given: a = 1.5 | 3; b = 2 | 2.5
answer: sqrt(a^2 + b^2)
unit: %
tolerance: 0.5%

## Total of {a}% and {b}% EVM?

::: misses
- [any] Root-sum-square.
:::
:::

::: check
given: p = 0.5 | 0.8 | 1 | 1.5 | 2 | 3
answer: p*pi/180*100
unit: %
tolerance: 0.5%

## EVM from {p}° rms phase noise?

::: misses
- [any] The rms phase in radians.
:::
:::
:::
