31.5 Hz peaking eq
Boosts or cuts a band around f0 and leaves both ends of the spectrum at unity. Solved at 8 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 (31.5 Hz)
+6.00 dB
exact at every sample rate — the bilinear transform maps this value, not just the frequency
Pole radius at 48 kHz
0.9985415
conjugate pair at ±0.22°, 0.00146 from the circle
−3 dB point
19.4 Hz
0.617× f0 at Q = 1.0000
16-bit fixed point
diverges
largest pole 1.0000000 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 31.5 Hz are absent because the filter does not exist there — equivalently, the f₀/Nyquist column never reaches 100%. That is why this table is 8 rows and a 20 Hz page is 8.
| Sample rate | b0 | b1 | b2 | a1 | a2 | Pole r | f₀/Nyquist |
|---|---|---|---|---|---|---|---|
| 8 kHz | 1.008639 | -1.982032 | 0.974000 | -1.982032 | 0.982639 | 0.991282 | 0.8% |
| 16 kHz | 1.004339 | -1.991129 | 0.986942 | -1.991129 | 0.991281 | 0.995631 | 0.4% |
| 22.1 kHz | 1.003152 | -1.993585 | 0.990514 | -1.993585 | 0.993666 | 0.996828 | 0.3% |
| 32 kHz | 1.002174 | -1.995593 | 0.993457 | -1.995593 | 0.995631 | 0.997813 | 0.2% |
| 44.1 kHz | 1.001579 | -1.996808 | 0.995249 | -1.996808 | 0.996828 | 0.998413 | 0.1% |
| 48 kHz | 1.001451 | -1.997068 | 0.995635 | -1.997068 | 0.997085 | 0.998542 | 0.1% |
| 96 kHz | 1.000726 | -1.998537 | 0.997816 | -1.998537 | 0.998542 | 0.999270 | 0.1% |
| 192 kHz | 1.000363 | -1.999269 | 0.998907 | -1.999269 | 0.999270 | 0.999635 | 0.0% |
const float b0 = 1.00145051f, b1 = -1.99706818f, b2 = 0.99563465f;
const float a1 = -1.99706818f, a2 = 0.99708516f; // 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.9985415 | 0.9985415 | yes | reference |
| float32 | — | 0.9985415 | 0.9985415 | yes | 0.0263 dB |
| 32-bit fixed | Q1.30 | 0.9985415 | 0.9985415 | yes | 0.0004 dB |
| 24-bit fixed | Q1.22 | 0.9985415 | 0.9985415 | yes | 0.0152 dB |
| 16-bit fixed | Q1.14 | 1.0000000 (real) | 0.9985341 | no | n/a — diverges |
Read the two pole columns against each other on the 16-bit row.√|a₂| reports 0.9985341 — well inside the unit circle — while the larger real pole is actually at 1.0000000. The shortcut is the geometric mean of the two poles and is exact only while they are a conjugate pair. Evaluated rather than inferred, the quantised filter has +6 dB of gain near DC in that format — a filter that diverges, not one that is merely inaccurate.
What Q does at 31.5 Hz
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 | +6.00 dB @ 31 Hz | 76.2 Hz | 0.997085 | 3.559 ms |
| 0.7071 | +6.00 dB | +6.00 dB @ 31 Hz | 61.0 Hz | 0.997938 | 5.032 ms |
| 1 | +6.00 dB | +6.00 dB @ 31 Hz | 51.1 Hz | 0.998542 | 7.113 ms |
| 2 | +6.00 dB | +5.99 dB @ 31 Hz | 40.4 Hz | 0.999270 | 14.175 ms |
| 4 | +6.00 dB | +5.98 dB @ 31 Hz | 35.7 Hz | 0.999635 | 27.959 ms |
| 10 | +6.00 dB | +5.85 dB @ 31 Hz | 33.2 Hz | 0.999854 | 63.818 ms |
What gain does at 31.5 Hz
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.996932 | -1.991790 | 0.991807 | 0.995895 |
| -6 dB | −6.00 dB | 0.998552 | -1.994176 | 0.994193 | 0.997092 |
| -3 dB | −3.00 dB | 0.999286 | -1.995094 | 0.995111 | 0.997553 |
| +3 dB | +3.00 dB | 1.000714 | -1.996520 | 0.996537 | 0.998267 |
| +6 dB | +6.00 dB | 1.001451 | -1.997068 | 0.997085 | 0.998542 |
| +12 dB | +12.00 dB | 1.003077 | -1.997919 | 0.997936 | 0.998967 |
Questions this filter answers
What are the biquad coefficients for a 31.5 Hz peaking EQ filter at 48 kHz?
b0 = 1.001451, b1 = -1.997068, b2 = 0.995635, a1 = -1.997068, a2 = 0.997085, 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 31.5 Hz peaking EQ filter stable in 16-bit fixed point?
No. Rounding the five coefficients to a shared 1.14 scale pushes the poles onto the real axis and the larger one out to 1.0000000 — at or outside the unit circle, which is a filter that diverges rather than one that is merely inaccurate. Note that √|a2| still reads 0.9985341 here, comfortably inside the circle: the shortcut is the geometric mean of the two real poles and it does not see this. Use 24-bit (largest pole 0.9985415) or float32.
Where is the real −3 dB point of a 31.5 Hz peaking EQ filter?
19.4 Hz, which is 0.617× the 31.5 Hz 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 76.2 Hz to 33.2 Hz across the sweep while f0 never moves.
How close to the unit circle are the poles of a 31.5 Hz peaking EQ filter?
0.9985415 at 48 kHz, as a conjugate pair at ±0.22°. Pole radius rises toward 1 as the corner frequency falls relative to the sample rate — the same filter at 192 kHz sits at 0.9996352 and at 8 kHz at 0.9912816. 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 31.5 Hz corner as every other filter type.
- Low-pass31.5 Hz
- High-pass31.5 Hz
- Band-pass31.5 Hz
- Notch31.5 Hz
- All-pass31.5 Hz
- Low shelf31.5 Hz
- High shelf31.5 Hz
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 31.5 Hz 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.