State-Variable Filter (KHN) Calculator

Design a 3-op-amp state-variable filter providing simultaneous low-pass, band-pass, and high-pass outputs. Tunable Q and f₀; classic Kerwin-Huelsman-Newcomb topology.

Calculator Electronics Updated Oct 16, 2026
How to Use
  1. Enter the centre (or corner) frequency f₀.
  2. Enter the Q: 0.707 for a Butterworth low-pass or high-pass, higher for a narrow band-pass. This circuit needs Q of at least 1/3.
  3. Enter the capacitor value C used in both integrators.
  4. Read the integrator resistor R, the Q resistor Rq and the bandwidth; Show Work lists the assumed circuit, the output gains and the op-amp bandwidth needed.
Input
Hz (kHz OK)
F (nF, uF OK)
Presets
LP / BP / HP
Integrator R
—
Q Resistor Rq
—
Bandwidth
—
Op-Amps
3

Worked Example

A 1 kHz filter with Q = 5, using 10 nF capacitors. Each integrator resistor is R = 1 ÷ (2π × 1,000 × 10 nF) = 15.92 kΩ. With R_g = R, the Q resistor is R_q = 15.92 kΩ × (3 × 5 − 1) = 222.8 kΩ. The band-pass output is 200 Hz wide, from about 905 Hz to 1,105 Hz, with a gain of 5 (14.0 dB) at 1 kHz.

For a Butterworth low-pass or high-pass set Q = 0.707: R_q = 15.92 kΩ × 1.121 = 17.84 kΩ, and the band-pass output is then 0.707 (−3 dB) at f₀. To move f₀, change both integrator resistors together; Q stays the same.

The common mistake: forgetting the gain at f₀. All three outputs reach Q times the input at f₀. With Q = 50, a 0.1 V input gives 5 V at the outputs, so a larger signal clips the op-amps.

Show Work

Enter values.

Formulas

Integrator R
R = 1 / (2π·f₀·C)
Two matched integrators.
Q Resistor
R_q = R_g · (3Q − 1)
BP → R_q → summer (+) input, R_g = R to ground; Q = (R_q + R_g)/(3R_g).
Bandwidth
BW = f₀ / Q
-3 dB BP.
LP Output
V_LP at 2nd integrator
Gain 1 at DC, rolls off above f₀.
BP Output
V_BP at 1st integrator
Peak Q at f₀.
HP Output
V_HP at summing amp
Gain −1 at high frequencies; HP + LP = notch.

History

William J. Kerwin, Lawrence P. Huelsman and Robert W. Newcomb published the state-variable filter in 1967. Instead of shaping one response with a resistor-capacitor network, it solves the differential equation of a second-order system with a summing amplifier and two integrators. The outputs of those three stages are the state variables of the system, and at the same time the high-pass, band-pass and low-pass responses.

Because f₀ and Q are set by separate components, the circuit became a favourite for tunable filters in test instruments and analog synthesizers. The Oberheim SEM’s multimode filter is a state-variable design; Moog synthesizers used a different circuit, the transistor ladder filter, patented by Robert Moog in 1969.

Other two-integrator loops, such as the Tow-Thomas biquad, and integrated universal active filters build on the same idea, and digital state-variable filters use the same structure in software. The three-op-amp circuit remains a standard teaching example of active filter design.

About This Calculator

Enter f₀, Q and the integrator capacitor C. The tool computes the two integrator resistors R = 1/(2π·f₀·C) and the Q resistor R_q = R_g·(3Q − 1). It assumes the common circuit in which the band-pass output reaches the summer’s non-inverting input through R_q, with R_g = R from that input to ground, and the summer’s input, low-pass feedback and feedback resistors are all equal.

All three outputs are available at once: the summer gives high-pass, the first integrator band-pass and the second low-pass. Add low-pass and high-pass for a notch at f₀. Use 1 % metal-film resistors and C0G or film capacitors, and tune by changing both integrator resistors together. Everything runs in your browser.

Frequently Asked Questions

What does KHN stand for?

Kerwin, Huelsman and Newcomb, who published the circuit in 1967. A summing amplifier drives two integrators in a loop: feeding the low-pass output back sets f₀, and feeding the band-pass output back sets the damping, and so the Q.

Why use three op-amps?

One summer and two integrators give high-pass, band-pass and low-pass outputs at the same time. f₀ depends only on the two integrator resistors and capacitors, and Q only on Rq and Rg, so the filter can be tuned by changing both integrator resistors together without changing its Q.

What range of Q can it reach?

In this circuit the minimum is 1/3, where Rq is zero. A Butterworth response (Q = 0.707) needs Rq = 1.121 × R. High Q is possible, but at Q = 50 the result depends strongly on resistor matching and op-amp bandwidth; with 10 nF at 1 kHz it needs Rq = 2.37 MΩ.

Why is the band-pass output louder than the input?

In this circuit the band-pass gain at f₀ equals Q: 5 (14.0 dB) for Q = 5. The low-pass and high-pass outputs also reach Q times the input at f₀, so leave headroom or attenuate the input for high Q.

How do I get a notch?

Add the low-pass and high-pass outputs with a fourth op-amp. Both have a gain of −1 away from f₀, and at f₀ they are equal and opposite, so they cancel. The depth of the notch depends on how well the parts are matched.

How do I use the State-Variable Filter (KHN) Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Is it free? Does it work without internet?

Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.

Where does my data go?

Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.

Common Use Cases

Synthesizer Filters

Multimode synthesizer filters, such as the one in the Oberheim SEM, use the state-variable circuit to offer low-pass, band-pass and high-pass from one filter.

Parametric Equalizers

f₀ and Q are set independently: a 100 Hz band with Q = 2 and 100 nF capacitors needs R = 15.92 kΩ and Rq = 79.6 kΩ.

Distortion Analysers

Summing the low-pass and high-pass outputs gives a tunable notch that removes the test tone so the harmonics left over can be measured.

Ultrasonic Receivers

A 40 kHz filter with Q = 10 and 1 nF needs R = 3.98 kΩ and Rq = 115.4 kΩ; by the 100·Q·f₀ rule of thumb the op-amps need about 40 MHz of gain-bandwidth.

Last updated: