20 kHz peaking eq
Boosts or cuts a band around f0 and leaves both ends of the spectrum at unity. Solved at 4 sample rates, with the poles, the real −3 dB point and the word length it stops working at.
Magnitude response at 48 kHz
Every vertex is 20·log₁₀|H(ejω)| evaluated on the unit circle — not a sketch of the filter's shape. The faint traces behind it are the same corner at every Q in the sweep below.
Gain at f0 (20 kHz)
+6.00 dB
exact at every sample rate — the bilinear transform maps this value, not just the frequency
Pole radius at 48 kHz
0.8362146
conjugate pair at ±151.63°, 0.164 from the circle
−3 dB point
17642.1 Hz
0.882× f0 at Q = 1.0000
16-bit fixed point
holds
largest pole 0.8362295 in Q1.14
Coefficients, at every sample rate
The cookbook computes w₀ = 2πf₀/Fs, so the same filter is a different set of numbers at every rate. Rates whose Nyquist limit is at or below 20 kHz are absent because the filter does not exist there — equivalently, the f₀/Nyquist column never reaches 100%. That is why this table is 4 rows and a 20 Hz page is 8.
| Sample rate | b0 | b1 | b2 | a1 | a2 | Pole r | f₀/Nyquist |
|---|---|---|---|---|---|---|---|
| 44.1 kHz | 1.092057 | 1.738140 | 0.722951 | 1.738140 | 0.815009 | 0.902778 | 90.7% |
| 48 kHz | 1.149660 | 1.471598 | 0.549595 | 1.471598 | 0.699255 | 0.836215 | 83.3% |
| 96 kHz | 1.253587 | -0.385747 | 0.236824 | -0.385747 | 0.490411 | 0.700294 | 41.7% |
| 192 kHz | 1.176443 | -1.305410 | 0.468990 | -1.305410 | 0.645434 | 0.803389 | 20.8% |
const float b0 = 1.14966013f, b1 = 1.47159792f, b2 = 0.54959479f;
const float a1 = 1.47159792f, a2 = 0.69925491f; // a0 == 1What word length this filter survives
The fixed-point rows round all five coefficients to one shared scale, which is what a q15/q31 biquad section does with its post-shift.Pole radius is solved from the quadratic, not taken as √|a₂| — once rounding pushes the poles onto the real axis those two disagree, and the convenient one reports a comfortable margin on a filter that has already left the unit circle. Error is the worst deviation from float64 across frequencies where the response is within 40 dB of its own peak; below that it is measuring the −200 dB floor.
| Word format | Q format | Largest pole | √|a₂| says | Stable | Worst error in band |
|---|---|---|---|---|---|
| float64 | — | 0.8362146 | 0.8362146 | yes | reference |
| float32 | — | 0.8362146 | 0.8362146 | yes | 0.0000 dB |
| 32-bit fixed | Q1.30 | 0.8362146 | 0.8362146 | yes | 0.0000 dB |
| 24-bit fixed | Q1.22 | 0.8362147 | 0.8362147 | yes | 0.0000 dB |
| 16-bit fixed | Q1.14 | 0.8362295 | 0.8362295 | yes | 0.0003 dB |
What Q does at 20 kHz
f₀ does not move with Q — the −3 dB point does. They are the same frequency only at Q = 1/√2, which is why a Butterworth corner is the one people quote and why every other Q surprises somebody.
| Q | At f₀ | Peak | −3 dB | Pole r | Group delay at f₀ |
|---|---|---|---|---|---|
| 0.5 | +6.00 dB | +5.97 dB @ 19.74 kHz | 22327 Hz | 0.690749 | 0.029 ms |
| 0.7071 | +6.00 dB | +5.94 dB @ 19.74 kHz | 21922 Hz | 0.774352 | 0.042 ms |
| 1 | +6.00 dB | +5.89 dB @ 19.74 kHz | 21539 Hz | 0.836215 | 0.059 ms |
| 2 | +6.00 dB | +5.58 dB @ 19.74 kHz | 20966 Hz | 0.915097 | 0.117 ms |
| 4 | +6.00 dB | +4.64 dB @ 19.74 kHz | 20722 Hz | 0.956690 | 0.234 ms |
| 10 | +6.00 dB | +2.21 dB @ 19.74 kHz | — | 0.982455 | 0.580 ms |
What gain does at 20 kHz
A peaking filter puts its full gain at f₀ and returns to unity at both ends of the spectrum.
| Gain | At f₀ | b0 | a1 | a2 | Pole r |
|---|---|---|---|---|---|
| -12 dB | −12.00 dB | 0.750791 | 1.155613 | 0.334387 | 0.578262 |
| -6 dB | −6.00 dB | 0.869822 | 1.280029 | 0.478050 | 0.691411 |
| -3 dB | −3.00 dB | 0.933101 | 1.335299 | 0.541871 | 0.736119 |
| +3 dB | +3.00 dB | 1.071696 | 1.431034 | 0.652416 | 0.807723 |
| +6 dB | +6.00 dB | 1.149660 | 1.471598 | 0.699255 | 0.836215 |
| +12 dB | +12.00 dB | 1.331929 | 1.539195 | 0.777309 | 0.881651 |
Questions this filter answers
What are the biquad coefficients for a 20 kHz peaking EQ filter at 48 kHz?
b0 = 1.149660, b1 = 1.471598, b2 = 0.549595, a1 = 1.471598, a2 = 0.699255, with a0 normalised to 1 — the RBJ Audio EQ Cookbook form at Q = 1.0000 and +6 dB of gain. Every other sample rate in the table above gives different numbers for the same filter, because w0 = 2πf0/Fs and every cosine and sine downstream of it moves.
Is a 20 kHz peaking EQ filter stable in 16-bit fixed point?
Yes. Rounding the five coefficients to a shared 1.14 scale leaves the largest pole at 0.8362295, against 0.8362146 exact, and the response drifts by at most 0.000 dB inside the band. 24-bit takes that to 0.0000 dB.
Where is the real −3 dB point of a 20 kHz peaking EQ filter?
17642.1 Hz, which is 0.882× the 20 kHz corner. f0 and the −3 dB point are the same frequency only at Q = 1/√2; this page is designed at Q = 1.0000, and the Q sweep above shows the point moving from 22326.9 Hz to — across the sweep while f0 never moves.
How close to the unit circle are the poles of a 20 kHz peaking EQ filter?
0.8362146 at 48 kHz, as a conjugate pair at ±151.63°. Pole radius rises toward 1 as the corner frequency falls relative to the sample rate — the same filter at 192 kHz sits at 0.8033889 and at 8 kHz it is above Nyquist. That distance is the whole story of the fixed-point table: a pole a few parts in 10⁵ from the circle has nowhere to be rounded to.
The neighbouring corners
One third-octave either side, and the same 20 kHz corner as every other filter type.
- Low-pass20 kHz
- High-pass20 kHz
- Band-pass20 kHz
- Notch20 kHz
- All-pass20 kHz
- Low shelf20 kHz
- High shelf20 kHz
Method and limits. Coefficients follow the RBJ Audio EQ Cookbook, the bilinear transform of the analog prototype prewarped so the corner lands exactly on f0 — which is why +6.00 dB at 20 kHz holds at every sample rate in the table rather than only at low f0/Fs. Shelves fix the slope at S = 1, matching Web Audio's BiquadFilterNode, so Q is not read for those two types. Pole and zero radii are the roots of the quadratic, not sqrt(|a2|). The fixed-point rows model a single shared coefficient scale and no other quantisation: they say nothing about signal-path headroom, limit cycles or the accumulator width your implementation uses, all of which can make a filter that passes this table still misbehave. Nothing on this page is fetched or estimated — it is solved from the type and the frequency in the URL.