HuntsvilleEngineers mark

Lead / Lag Compensator Design

Place the zero and pole of a lead or lag compensator to hit a target phase or gain at your crossover frequency.

InputLead: α = (1−sinφₘ)/(1+sinφₘ), ωz = ωc√α, ωp = ωc/√α , Lag: ωz = ωc/10, ωp = ωz/α

Your recent runs (stored only in your browser)

No calculations yet — results land here so you can compare runs.

The engineering

A lead compensator adds phase near crossover to buy back phase margin — its maximum phase φₘ occurs at the geometric mean of the zero and pole, so you center that mean on your target crossover frequency ωc. The pole/zero spacing α sets how much phase you get; a single lead section tops out near 60–65° before the pole spread gets impractical, so split into two stages beyond that.

A lag compensator does the opposite job: it raises low-frequency gain (better steady-state error and disturbance rejection) without disturbing the phase near crossover. Place its zero about a decade below ωc so the residual phase lag at crossover stays under ~5°. The gotcha with lead is the magnitude boost of 1/√α at ωc — it pushes crossover higher, so re-check where the loop actually crosses 0 dB after you insert it.

Where this math comes from

Frequency-response compensator design came out of Bode and Nyquist's work at Bell Labs in the 1930s, but the recipe engineers still use — pick φₘ, back out α, center the peak on crossover — was codified for a generation of students by Gene Franklin, David Powell, and Abbas Emami-Naeini in Feedback Control of Dynamic Systems, first published in 1986.

Their textbook turned lead/lag design from an art into a checklist: read the plant Bode plot, decide how much phase you need, compute the pole-zero pair, and verify. The α = (1−sinφₘ)/(1+sinφₘ) relation this card evaluates is the closed-form heart of that procedure and appears in essentially every controls course that followed.

  1. 1932Harry NyquistStability criterion that made frequency-domain loop shaping possible.
  2. 1945Hendrik BodeGain/phase relations underpinning lead-lag magnitude and phase tradeoffs.
  3. 1986Franklin, Powell & Emami-NaeiniFeedback Control of Dynamic Systems codifies the modern lead/lag design recipe.

See the full timeline of the math behind every calculator →

Runs entirely in your browser — nothing you enter leaves this page. Your recent runs are stored only on your device.