---
title: Phase and group delay
heading: How long a filter makes a signal wait, and why it matters for shape
eyebrow: C4 · Lesson 3 · Phase and group delay
xp: 40
---

::: hook
A Bode plot's magnitude says how much each frequency is passed; its phase says something just as important: how long each frequency is delayed. If every frequency in a pulse is delayed by the same time, the pulse comes out intact, just later. If some frequencies are held back longer than others, the pulse smears and rings, even when the magnitude response is perfectly flat. That's why audio engineers, video designers and data-link designers all watch the **group delay**, the slope of the phase.
:::

::: play
- The group delay of a second-order low-pass against frequency (log scale), in units of $1/\omega_0$, for quality factor Q. The dashed line is a first-order low-pass with the same corner.
- With low Q the delay is nearly constant across the passband. Raise Q: the delay piles up near the corner, which is where pulses start to ring.
- The readouts give the delay at DC and at the corner frequency.
:::
:::

```sim plot
view: graph
x: r = 0.05..20 log
y: tg = 0..12
slider: Q = 0.5..5 step 0.05 = 0.71
plot: (1/Q)*(1 + r^2)/((1 - r^2)^2 + (r/Q)^2) | label: second order | samples: 600
plot: 1/(1 + r^2) | label: first order | dashed | color: ch2 | samples: 600
readout: delay at DC, × 1/ω₀ = 1/Q | digits: 3
readout: delay at the corner, × 1/ω₀ = 2*Q | digits: 3
```

::: predict
## An RC low-pass has τ = 1 ms. How long does it delay a slow signal, far below its corner?

- [ ] Not at all: low frequencies pass unchanged
- [x] About 1 ms
- [ ] About 0.16 ms
- [ ] 2.2 ms, its rise time

::: reveal
About 1 ms. Far below the corner, the phase is $-\tan^{-1}\omega\tau \approx -\omega\tau$, exactly the phase of a pure delay of τ. A slowly varying signal comes out of an RC low-pass as a copy of itself, delayed by RC. At the corner the delay halves to 0.5 ms.
:::
:::

::: nameit
## Two delays

For a transfer function with phase $\varphi(\omega)$:

- **Phase delay** $\tau_p = -\frac{\varphi(\omega)}{\omega}$: how long a single sinusoid at ω is delayed.
- **Group delay** $\tau_g = -\frac{d\varphi}{d\omega}$: how long the *envelope* of a narrow band of frequencies around ω is delayed. It's what a pulse or a modulated signal experiences.

A pure delay of $T$ has $\varphi = -\omega T$, so both equal $T$ at every frequency: a straight-line phase plot (on a linear frequency axis) means no distortion of shape.

## First and second order

For an RC low-pass, $\varphi = -\tan^{-1}\omega\tau$ and

$$\tau_g = \frac{\tau}{1 + (\omega\tau)^2}$$

falling from τ at DC to τ/2 at the corner. For a second-order low-pass with resonant frequency $\omega_0$ and quality factor Q, the group delay is $\frac{1}{Q\omega_0}$ at DC but $\frac{2Q}{\omega_0}$ at $\omega_0$: a high-Q filter holds frequencies near its corner far longer than the rest.

## Why it matters

When group delay varies across a signal's band, its frequency components arrive out of step: edges smear and pulses overshoot and ring, even if every frequency's amplitude is passed. Filters for pulses and data aim for constant group delay; the **Bessel** response (lesson 7) is designed for exactly that, at the cost of a slower roll-off. **All-pass** networks (lesson 15) add delay to some frequencies to even it out.
:::

::: example
## An RC low-pass has τ = 1 ms. What are its group delays at DC and at its corner, and its phase delay at the corner?

::: solution
1. **Group delay at DC.** At DC the group delay is τ:
   $$\tau_g = 1\ \text{ms}$$
2. **Corner frequency.**
   $$\begin{aligned} f_c &= \frac{1}{2\pi\tau} \\ &= 159\ \text{Hz} \end{aligned}$$
3. **Group delay at the corner.**
   $$\begin{aligned} \tau_g &= \frac{\tau}{2} \\ &= 0.5\ \text{ms} \end{aligned}$$
4. **Phase delay at the corner.** The phase there is −45°, so
   $$\begin{aligned} \tau_p &= \frac{\pi/4}{\omega} \\ &= \frac{\pi}{4}\tau \\ &= 0.79\ \text{ms} \end{aligned}$$

**Answer:** the group delay is 1 ms at DC and 0.5 ms at the 159 Hz corner, and the phase delay at the corner is 0.79 ms.
:::
:::

::: example
## A second-order low-pass has $f_0$ = 1 kHz and Q = 5. Compare its group delay at DC and at $f_0$.

::: solution
1. **Natural frequency in rad/s.**
   $$\omega_0 = 6283\ \text{rad/s}$$
2. **Group delay at DC.**
   $$\begin{aligned} \tau_g &= \frac{1}{Q\omega_0} \\ &= \frac{1}{5 \times 6283}\ \text{s} \\ &= 32\ \mu\text{s} \end{aligned}$$
3. **Group delay at $f_0$.**
   $$\begin{aligned} \tau_g &= \frac{2Q}{\omega_0} \\ &= \frac{2 \times 5}{6283}\ \text{s} \\ &= 1.6\ \text{ms} \end{aligned}$$
   fifty times more.
4. **What it means.** A pulse through it rings near 1 kHz for a millisecond or two.

**Answer:** the group delay is 32 µs at DC and 1.6 ms at $f_0$, fifty times more.
:::
:::

::: example
## A first-order all-pass, $H = \frac{1 - j\omega\tau}{1 + j\omega\tau}$, has τ = 1 ms. What are its gain and group delay at DC and at ω = 1/τ?

::: solution
1. **Gain.** The numerator and denominator have equal magnitudes, so |H| = 1 at every frequency.
2. **Phase.**
   $$\phi = -2\arctan\omega\tau$$
3. **Group delay.** Differentiating the phase gives
   $$\tau_g = \frac{2\tau}{1 + (\omega\tau)^2}$$
4. **Evaluate it.** That's 2 ms at DC and 1 ms at ω = 1/τ (159 Hz).
5. **Why all-passes are used.** An all-pass changes only timing, which is why all-pass sections are added to filters to flatten their group delay without touching the magnitude.

**Answer:** the gain is 1 at every frequency; the group delay is 2 ms at DC and 1 ms at ω = 1/τ.
:::
:::

::: check
given: R = 1 | 10 | 47; C = 10 | 100
answer: R*C
unit: µs
tolerance: 0.5%

## An RC low-pass has R = {R} kΩ and C = {C} nF. What is its group delay at low frequencies?

::: right
Right. $\tau_g(0) = RC$ = {answer}.
:::

::: misses
- [2.2*R*C] That's the rise time; the low-frequency delay is RC.
- [any] Not yet. $\tau_g = \tau/(1 + (\omega\tau)^2)$ at ω = 0.
:::
:::

::: check
given: tau = 0.5 | 2; f = 100 | 500
answer: tau/(1 + (2*pi*f*tau/1000)^2)
unit: ms
tolerance: 0.5%

## An RC low-pass with τ = {tau} ms carries a narrow-band signal at {f} Hz. What group delay does the signal see?

::: right
Right. $\frac{\tau}{1 + (\omega\tau)^2}$ = {answer}.
:::

::: misses
- [tau] The delay falls at higher frequencies.
- [any] Not yet. $\tau_g = \tau/(1 + (\omega\tau)^2)$.
:::
:::

::: check
given: tau = 0.5 | 2; f = 100 | 500
answer: atan(2*pi*f*tau/1000)/(2*pi*f)*1000
unit: ms
tolerance: 0.5%

## For the same filter (τ = {tau} ms), what is the phase delay of a {f} Hz sinusoid?

::: right
Right. $\frac{\tan^{-1}\omega\tau}{\omega}$ = {answer}.
:::

::: misses
- [tau/(1 + (2*pi*f*tau/1000)^2)] That's the group delay; phase delay is $-\varphi/\omega$.
- [any] Not yet. $\tau_p = -\varphi/\omega$.
:::
:::

::: check
given: T = 10 | 100; f = 1 | 3
answer: 360*f*1000*T*1e-6
unit: °
tolerance: 0.5%

## A pure delay of {T} µs acts on a {f} kHz sinusoid. How many degrees of phase lag is that?

::: right
Right. $\omega T$ in degrees, $360fT$ = {answer}.
:::

::: misses
- [any] Not yet. One period of delay is 360°.
:::
:::

::: check
given: Q = 0.5 | 2 | 10; f0 = 1 | 10
answer: 2*Q/(2*pi*f0*1000)*1e6
unit: µs
tolerance: 0.5%

## A second-order low-pass has Q = {Q} and $f_0$ = {f0} kHz. What is its group delay at $f_0$?

::: right
Right. $\frac{2Q}{\omega_0}$ = {answer}.
:::

::: misses
- [1/(Q*2*pi*f0*1000)*1e6] That's the delay at DC.
- [any] Not yet. $\tau_g(\omega_0) = 2Q/\omega_0$.
:::
:::

::: check
given: phi = 30 | 90 | 180; f = 1 | 50
answer: phi/(360*f*1000)*1e6
unit: µs
tolerance: 0.5%

## A {f} kHz sinusoid comes out {phi}° behind. What phase delay is that?

::: right
Right. $\frac{\varphi}{360f}$ = {answer}.
:::

::: misses
- [any] Not yet. Divide the phase by the phase per unit time.
:::
:::

::: check
kind: parts
given: t = 0.1 | 1 | 10; f = 10 | 100 | 1000

## A first-order all-pass has τ = {t} ms.

::: part
answer: 2*t/(1 + (2*pi*f*t*1e-3)^2)
unit: ms
tolerance: 0.5%

### What's its group delay at {f} Hz?

::: misses
- [t/(1 + (2*pi*f*t*1e-3)^2)] An all-pass's phase is $-2\arctan\omega\tau$, twice a pole's.
- [any] $\frac{2\tau}{1 + (\omega\tau)^2}$.
:::
:::

::: part
answer: -2*atan(2*pi*f*t*1e-3)*180/pi
unit: °
tolerance: 0.5%

### What's its phase there?

::: misses
- [any] $-2\arctan\omega\tau$.
:::
:::
:::

::: check
kind: derivation
vars: t = 0.00001..0.1, w = 1..100000

## A first-order all-pass with time constant t, at angular frequency w.

::: step
answer: -2*atan(w*t)

### What's its phase?
:::

::: step
answer: 2*t/(1 + (w*t)^2)

### What's its group delay?
:::

::: step
answer: 2*atan(w*t)/w

### What's its phase delay?
:::

::: right
Right. At low frequency both delays are 2τ; at high frequency the group delay falls away.
:::
:::

::: explain
## Why can a filter with a perfectly flat magnitude response still distort a pulse?

::: model
A pulse is a sum of many frequencies, lined up so that their peaks coincide at the pulse's center. A flat magnitude response keeps each frequency's amplitude, but if the filter delays some frequencies longer than others, their peaks no longer line up at the output. The components arrive out of step, so the pulse spreads, its edges smear and ripples appear before or after it. Only a filter whose group delay is the same at every frequency in the pulse preserves its shape.
:::
:::

::: practice

::: check
given: R = 1 | 10; C = 10 | 100
answer: 1/(2*pi*R*1000*C*1e-9)
unit: Hz
tolerance: 0.5%

## Where is the corner of R = {R} kΩ, C = {C} nF?

::: misses
- [any] $1/(2\pi RC)$.
:::
:::

::: check
given: tau = 0.1 | 0.25 | 0.5 | 1 | 2 | 5 | 10
answer: tau/2
unit: ms
tolerance: 0.5%

## What is an RC low-pass's group delay at its corner, if τ = {tau} ms?

::: misses
- [any] Half of τ.
:::
:::

::: check
given: T = 1 | 5; f = 100 | 1000
answer: -360*f*T/1000
unit: °
tolerance: 0.5%

## What phase does a {T} ms delay give a {f} Hz signal?

::: misses
- [any] $-360fT$.
:::
:::
:::
