Skip to main content
engineering

Lead-Lag Compensator Calculator

Lead and lag compensator design: enter the peak phase φₘ and the frequency ωₘ to get α, T, the zero and pole, gain at ωₘ in dB, Gc(s), and a Bode plot

Reviewed by Christopher FloiedPublished Updated

This free online lead-lag compensator calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Supports both metric (SI) and imperial units with built-in unit selection dropdowns on every input field, so you can work in whatever units your problem provides. Designed for engineering students and professionals working through coursework, design projects, or quick reference calculations.

Lead-Lag Compensator Calculator

Design Gc(s) = Kc·(s + 1/T)/(s + 1/(αT)) from the peak phase shift φₘ and the frequency ωₘ where it is required. Angles in degrees, frequencies in rad/s.

Compensator (pole-zero form)
Gc(s) = 1 · (s + 4.14214) / (s + 24.1421)
Gc(s) = 0.171573 · (0.241421·s + 1) / (0.0414214·s + 1)
Phase lead of +45° at ωₘ = 10 rad/s
α (alpha)
0.171573 (dimensionless)
T
0.241421 s
αT
0.0414214 s
Zero
s = −4.14214 rad/s
Pole
s = −24.1421 rad/s
Boost at ωₘ re. Gc(0)
+7.6555 dB (×2.4142, dimensionless)
Applied gain |Gc(jωₘ)|
-7.6555 dB (×0.41421, dimensionless)
Pole/zero ratio
5.8284 (dimensionless)
DC gain Gc(0)
0.171573 (dimensionless)
HF gain Gc(∞)
1 (dimensionless)
Peak phase φₘ
+45°
ωₘ = √(z·p)
10 rad/s

Compensator Magnitude (dB)

Tip: hover to read values, click to pin a point for export

Compensator Phase (degrees)

Tip: hover to read values, click to pin a point for export

The dashed amber line marks ωₘ = √(zero·pole), where the phase peaks at φₘ and the magnitude sits 7.656 dB above the DC gain Gc(0) = Kc·α = 0.171573. Note that 7.6555 dB is measured relative to Gc(0); the gain the network above actually applies at ωₘ is -7.6555 dB. As written, the pole-zero form has Gc(0) = Kc·α and Gc(∞) = Kc, so set Kc = 1/α = 5.82843if you need to preserve the loop's existing DC gain.

A single lead stage is normally held to about 60–65°, because α below ~0.05 demands an impractical pole/zero spread and amplifies high-frequency noise. Add 5–12° to the phase you actually need: inserting the compensator raises the loop's gain-crossover frequency, where the plant contributes more lag than it did at the old crossover.

Compensator Frequency-Response Data Table

ω (rad/s)f (Hz)|Gc| (dB)|Gc| (ratio)∠Gc (°)
4.142e-16.592e-2-15.2691.724e-14.728
4.254e-16.770e-2-15.2671.724e-14.854
4.369e-16.953e-2-15.2641.725e-14.984
4.487e-17.141e-2-15.2621.725e-15.118
4.608e-17.334e-2-15.2591.726e-15.254
4.732e-17.532e-2-15.2561.727e-15.395
4.860e-17.735e-2-15.2531.727e-15.539
4.991e-17.944e-2-15.2501.728e-15.687
5.126e-18.159e-2-15.2471.728e-15.838
5.265e-18.379e-2-15.2431.729e-15.994
5.407e-18.605e-2-15.2401.730e-16.154
5.553e-18.837e-2-15.2361.731e-16.318
5.703e-19.076e-2-15.2321.731e-16.486
5.857e-19.321e-2-15.2281.732e-16.658
6.015e-19.573e-2-15.2231.733e-16.835
6.177e-19.831e-2-15.2181.734e-17.016
6.344e-11.010e-1-15.2131.735e-17.202
6.515e-11.037e-1-15.2081.736e-17.393
6.691e-11.065e-1-15.2021.737e-17.589
6.872e-11.094e-1-15.1971.738e-17.789
7.058e-11.123e-1-15.1901.740e-17.995
7.248e-11.154e-1-15.1841.741e-18.206
7.444e-11.185e-1-15.1771.742e-18.422
7.645e-11.217e-1-15.1701.744e-18.643
7.851e-11.250e-1-15.1621.745e-18.870
8.063e-11.283e-1-15.1541.747e-19.103
8.281e-11.318e-1-15.1461.749e-19.341
8.505e-11.354e-1-15.1371.750e-19.585
8.734e-11.390e-1-15.1281.752e-19.835
8.970e-11.428e-1-15.1181.754e-110.091
9.212e-11.466e-1-15.1081.756e-110.353
9.461e-11.506e-1-15.0971.759e-110.622
9.716e-11.546e-1-15.0851.761e-110.897
9.979e-11.588e-1-15.0731.763e-111.178
1.025e+01.631e-1-15.0611.766e-111.466
1.052e+01.675e-1-15.0481.769e-111.761
1.081e+01.720e-1-15.0341.771e-112.062
1.110e+01.767e-1-15.0191.774e-112.370
1.140e+01.814e-1-15.0041.778e-112.685
1.171e+01.863e-1-14.9871.781e-113.007
1.202e+01.914e-1-14.9701.784e-113.337
1.235e+01.965e-1-14.9531.788e-113.673
1.268e+02.019e-1-14.9341.792e-114.017
1.303e+02.073e-1-14.9141.796e-114.368
1.338e+02.129e-1-14.8931.800e-114.726
1.374e+02.187e-1-14.8721.805e-115.092
1.411e+02.246e-1-14.8491.809e-115.466
1.449e+02.306e-1-14.8251.814e-115.846
1.488e+02.368e-1-14.8001.820e-116.235
1.528e+02.432e-1-14.7741.825e-116.630
1.570e+02.498e-1-14.7471.831e-117.034
1.612e+02.566e-1-14.7181.837e-117.444
1.656e+02.635e-1-14.6881.843e-117.863
1.700e+02.706e-1-14.6561.850e-118.288
1.746e+02.779e-1-14.6231.857e-118.721
1.793e+02.854e-1-14.5891.864e-119.161
1.842e+02.931e-1-14.5531.872e-119.609
1.891e+03.010e-1-14.5151.880e-120.063
1.943e+03.092e-1-14.4761.889e-120.525
1.995e+03.175e-1-14.4351.898e-120.993
2.049e+03.261e-1-14.3921.907e-121.468
2.104e+03.349e-1-14.3471.917e-121.949
2.161e+03.439e-1-14.3001.927e-122.436
2.219e+03.532e-1-14.2521.938e-122.930
2.279e+03.628e-1-14.2011.950e-123.429
2.341e+03.725e-1-14.1481.962e-123.933
2.404e+03.826e-1-14.0931.974e-124.443
2.469e+03.929e-1-14.0361.987e-124.958
2.536e+04.035e-1-13.9772.001e-125.477
2.604e+04.144e-1-13.9152.015e-126.000
2.674e+04.256e-1-13.8512.030e-126.527
2.747e+04.371e-1-13.7842.045e-127.057
2.821e+04.489e-1-13.7152.062e-127.590
2.897e+04.611e-1-13.6442.079e-128.125
2.975e+04.735e-1-13.5702.097e-128.663
3.055e+04.863e-1-13.4932.115e-129.201
3.138e+04.994e-1-13.4142.135e-129.741
3.223e+05.129e-1-13.3322.155e-130.280
3.310e+05.268e-1-13.2482.176e-130.820
3.399e+05.410e-1-13.1602.198e-131.358
3.491e+05.556e-1-13.0702.221e-131.895
3.585e+05.706e-1-12.9782.245e-132.430
3.682e+05.860e-1-12.8822.269e-132.962
3.781e+06.018e-1-12.7842.295e-133.491
3.883e+06.181e-1-12.6832.322e-134.016
3.988e+06.348e-1-12.5792.350e-134.535
4.096e+06.519e-1-12.4722.379e-135.050
4.207e+06.695e-1-12.3632.409e-135.558
4.320e+06.876e-1-12.2512.440e-136.060
4.437e+07.061e-1-12.1362.473e-136.554
4.557e+07.252e-1-12.0192.506e-137.040
4.680e+07.448e-1-11.8992.541e-137.517
4.806e+07.649e-1-11.7762.577e-137.984
4.936e+07.856e-1-11.6512.615e-138.442
5.069e+08.068e-1-11.5232.654e-138.888
5.206e+08.286e-1-11.3932.694e-139.324
5.347e+08.509e-1-11.2602.735e-139.747
5.491e+08.739e-1-11.1252.778e-140.157
5.639e+08.975e-1-10.9882.822e-140.554
5.791e+09.217e-1-10.8492.868e-140.937
5.948e+09.466e-1-10.7072.915e-141.306
6.108e+09.722e-1-10.5632.964e-141.660
6.273e+09.984e-1-10.4183.014e-141.998
6.443e+01.025e+0-10.2703.065e-142.320
6.617e+01.053e+0-10.1213.118e-142.626
6.795e+01.082e+0-9.9703.173e-142.915
6.979e+01.111e+0-9.8183.229e-143.187
7.167e+01.141e+0-9.6643.287e-143.440
7.361e+01.172e+0-9.5083.346e-143.676
7.560e+01.203e+0-9.3523.407e-143.894
7.764e+01.236e+0-9.1943.470e-144.092
7.973e+01.269e+0-9.0353.534e-144.272
8.189e+01.303e+0-8.8753.600e-144.432
8.410e+01.338e+0-8.7143.667e-144.573
8.637e+01.375e+0-8.5523.736e-144.694
8.870e+01.412e+0-8.3903.806e-144.795
9.110e+01.450e+0-8.2273.878e-144.876
9.356e+01.489e+0-8.0643.952e-144.936
9.608e+01.529e+0-7.9014.027e-144.977
9.868e+01.570e+0-7.7374.103e-144.997
1.013e+11.613e+0-7.5744.181e-144.997
1.041e+11.656e+0-7.4104.261e-144.977
1.069e+11.701e+0-7.2474.342e-144.936
1.098e+11.747e+0-7.0844.424e-144.876
1.127e+11.794e+0-6.9214.508e-144.795
1.158e+11.843e+0-6.7594.593e-144.694
1.189e+11.892e+0-6.5974.679e-144.573
1.221e+11.944e+0-6.4364.766e-144.432
1.254e+11.996e+0-6.2764.855e-144.272
1.288e+12.050e+0-6.1174.945e-144.092
1.323e+12.105e+0-5.9595.035e-143.894
1.359e+12.162e+0-5.8035.127e-143.676
1.395e+12.221e+0-5.6475.220e-143.440
1.433e+12.281e+0-5.4935.313e-143.187
1.472e+12.342e+0-5.3415.407e-142.915
1.511e+12.405e+0-5.1905.502e-142.626
1.552e+12.470e+0-5.0415.597e-142.320
1.594e+12.537e+0-4.8935.693e-141.998
1.637e+12.605e+0-4.7485.789e-141.660
1.681e+12.676e+0-4.6045.886e-141.306
1.727e+12.748e+0-4.4625.982e-140.937
1.773e+12.822e+0-4.3236.079e-140.554
1.821e+12.899e+0-4.1866.176e-140.157
1.870e+12.977e+0-4.0516.273e-139.747
1.921e+13.057e+0-3.9186.369e-139.324
1.973e+13.140e+0-3.7886.465e-138.888
2.026e+13.224e+0-3.6606.561e-138.442
2.081e+13.312e+0-3.5356.657e-137.984
2.137e+13.401e+0-3.4126.751e-137.517
2.195e+13.493e+0-3.2926.845e-137.040
2.254e+13.587e+0-3.1756.938e-136.554
2.315e+13.684e+0-3.0607.031e-136.060
2.377e+13.783e+0-2.9487.122e-135.558
2.441e+13.886e+0-2.8397.212e-135.050
2.507e+13.991e+0-2.7327.301e-134.535
2.575e+14.098e+0-2.6287.389e-134.016
2.645e+14.209e+0-2.5277.475e-133.491
2.716e+14.323e+0-2.4297.560e-132.962
2.789e+14.439e+0-2.3337.644e-132.430
2.865e+14.559e+0-2.2417.726e-131.895
2.942e+14.682e+0-2.1517.807e-131.358
3.021e+14.809e+0-2.0637.885e-130.820
3.103e+14.939e+0-1.9797.963e-130.280
3.187e+15.072e+0-1.8978.038e-129.741
3.273e+15.209e+0-1.8188.112e-129.201
3.361e+15.350e+0-1.7418.183e-128.663
3.452e+15.494e+0-1.6678.254e-128.125
3.545e+15.642e+0-1.5968.322e-127.590
3.641e+15.795e+0-1.5278.388e-127.057
3.739e+15.951e+0-1.4608.453e-126.527
3.840e+16.112e+0-1.3968.515e-126.000
3.944e+16.277e+0-1.3348.576e-125.477
4.050e+16.446e+0-1.2758.635e-124.958
4.160e+16.620e+0-1.2188.692e-124.443
4.272e+16.799e+0-1.1638.747e-123.933
4.387e+16.983e+0-1.1108.800e-123.429
4.506e+17.171e+0-1.0598.852e-122.930
4.628e+17.365e+0-1.0118.901e-122.436
4.753e+17.564e+0-0.9648.949e-121.949
4.881e+17.768e+0-0.9198.996e-121.468
5.013e+17.978e+0-0.8769.040e-120.993
5.148e+18.193e+0-0.8359.083e-120.525
5.287e+18.415e+0-0.7969.124e-120.063
5.430e+18.642e+0-0.7589.164e-119.609
5.576e+18.875e+0-0.7229.202e-119.161
5.727e+19.115e+0-0.6889.239e-118.721
5.882e+19.361e+0-0.6559.274e-118.288
6.040e+19.614e+0-0.6239.308e-117.863
6.204e+19.873e+0-0.5939.340e-117.444
6.371e+11.014e+1-0.5649.371e-117.034
6.543e+11.041e+1-0.5379.401e-116.630
6.720e+11.069e+1-0.5119.429e-116.235
6.901e+11.098e+1-0.4869.456e-115.846
7.088e+11.128e+1-0.4629.482e-115.466
7.279e+11.158e+1-0.4399.507e-115.092
7.475e+11.190e+1-0.4189.531e-114.726
7.677e+11.222e+1-0.3979.553e-114.368
7.885e+11.255e+1-0.3779.575e-114.017
8.097e+11.289e+1-0.3589.596e-113.673
8.316e+11.324e+1-0.3419.615e-113.337
8.541e+11.359e+1-0.3249.634e-113.007
8.771e+11.396e+1-0.3079.652e-112.685
9.008e+11.434e+1-0.2929.669e-112.370
9.251e+11.472e+1-0.2779.686e-112.062
9.501e+11.512e+1-0.2639.701e-111.761
9.758e+11.553e+1-0.2509.716e-111.466
1.002e+21.595e+1-0.2389.730e-111.178
1.029e+21.638e+1-0.2269.744e-110.897
1.057e+21.682e+1-0.2149.756e-110.622
1.086e+21.728e+1-0.2039.769e-110.353
1.115e+21.774e+1-0.1939.780e-110.091
1.145e+21.822e+1-0.1839.791e-19.835
1.176e+21.871e+1-0.1749.802e-19.585
1.208e+21.922e+1-0.1659.812e-19.341
1.240e+21.974e+1-0.1579.821e-19.103
1.274e+22.027e+1-0.1499.830e-18.870
1.308e+22.082e+1-0.1419.839e-18.643
1.343e+22.138e+1-0.1349.847e-18.422
1.380e+22.196e+1-0.1279.855e-18.206
1.417e+22.255e+1-0.1219.862e-17.995
1.455e+22.316e+1-0.1149.869e-17.789
1.494e+22.379e+1-0.1099.876e-17.589
1.535e+22.443e+1-0.1039.882e-17.393
1.576e+22.509e+1-0.0989.888e-17.202
1.619e+22.576e+1-0.0939.894e-17.016
1.663e+22.646e+1-0.0889.899e-16.835
1.707e+22.717e+1-0.0839.904e-16.658
1.754e+22.791e+1-0.0799.909e-16.486
1.801e+22.866e+1-0.0759.914e-16.318
1.850e+22.944e+1-0.0719.918e-16.154
1.899e+23.023e+1-0.0689.923e-15.994
1.951e+23.105e+1-0.0649.927e-15.838
2.003e+23.189e+1-0.0619.930e-15.687
2.058e+23.275e+1-0.0589.934e-15.539
2.113e+23.363e+1-0.0559.937e-15.395
2.170e+23.454e+1-0.0529.941e-15.254
2.229e+23.547e+1-0.0499.944e-15.118
2.289e+23.643e+1-0.0479.946e-14.984
2.351e+23.741e+1-0.0449.949e-14.854
2.414e+23.842e+1-0.0429.952e-14.728

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Lead-Lag Compensator Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Lead-Lag Compensator Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Compensator Transfer Function (pole-zero and time-constant forms)

Gc(s) = Kc · (s + 1/T) / (s + 1/(α·T)) | equivalently | Gc(s) = Kc·α · (T·s + 1) / (α·T·s + 1) | lead: α < 1 | lag: α > 1 | zero at s = −1/T | pole at s = −1/(α·T)

Variables: Gc = compensator transfer function (dimensionless gain ratio), s = Laplace variable (rad/s), Kc = compensator gain, the high-frequency gain Gc(∞) (dimensionless), T = compensator time constant (s), α = the lead/lag ratio, alpha (dimensionless) — α < 1 for a phase-LEAD network, α > 1 for a phase-LAG network, α·T = time constant of the second corner (s), 1/T = zero corner frequency (rad/s), 1/(α·T) = pole corner frequency (rad/s). The two forms are algebraically identical: Kc·α·(Ts+1)/(αTs+1) = Kc·(s+1/T)/(s+1/(αT)). In the pole-zero form the DC gain is Gc(0) = Kc·α and the high-frequency gain is Gc(∞) = Kc, so a lead network written this way ATTENUATES at DC unless Kc·α is set to the loop gain you want to keep. For lead the zero is nearer the origin than the pole (1/T < 1/(αT)); for lag the order reverses. Source: Ogata, Modern Control Engineering, 5th ed., Ch. 6 (Control Systems Design by the Root-Locus Method) and Ch. 7 (Design by the Frequency-Response Method) — lead, lag, and lag-lead compensation techniques

Maximum Phase Shift and Alpha

sin(φₘ) = (1 − α) / (1 + α) | → | α = (1 − sin φₘ) / (1 + sin φₘ) = tan²(45° − φₘ/2) | 0° < |φₘ| < 90°

Variables: φₘ = maximum (peak) phase shift contributed by the compensator (degrees) — POSITIVE for lead, NEGATIVE for lag; α = lead/lag ratio (dimensionless); sin/tan take their arguments in degrees here (convert with rad = deg·π/180 before calling a radian-based library). The tan²(45° − φₘ/2) form is the exact algebraic inverse and gives the standard hand-checkable values: φₘ = 30° → α = 1/3; φₘ = 45° → α = 0.171573; φₘ = 60° → α = 0.071797; α = 0.1 → φₘ = 54.90°. The relation is singular at |φₘ| = 90° (α → 0 or ∞), so ONE stage cannot deliver ±90°; about 60–65° is the practical single-stage ceiling and α below roughly 0.05 is not physically realizable with a passive network. In frequency-response design, add 5–12° to the phase you actually need, because inserting the lead network raises the gain-crossover frequency where the plant contributes more phase lag. Source: Ogata, Modern Control Engineering, 5th ed., Ch. 7 (Design by the Frequency-Response Method), lead compensation design procedure; Nise, Control Systems Engineering, 7th ed., Ch. 11 (Design via Frequency Response)

Frequency of Maximum Phase and the Corner Frequencies

ωₘ = 1 / (T·√α) | → | T = 1 / (ωₘ·√α) | zero: 1/T = ωₘ·√α | pole: 1/(α·T) = ωₘ/√α | ωₘ = √( (1/T) · (1/(α·T)) ) | log ωₘ = ½·[ log(1/T) + log(1/(α·T)) ]

Variables: ωₘ = frequency at which the phase shift peaks at φₘ (rad/s) — the design input, i.e. the frequency where the extra phase is needed (normally the intended gain-crossover frequency of the compensated loop); T = compensator time constant (s); α = lead/lag ratio (dimensionless); 1/T = zero corner frequency (rad/s); 1/(α·T) = pole corner frequency (rad/s). ωₘ is the GEOMETRIC mean of the two corners, i.e. the arithmetic midpoint on a logarithmic (Bode) frequency axis — this is why the phase bump is symmetric on a Bode plot. Worked check: φₘ = 45° at ωₘ = 10 rad/s gives √α = 0.414214, T = 0.241421 s, α·T = 0.041421 s, zero at s = −4.142136 rad/s, pole at s = −24.142136 rad/s, and (4.142136)(24.142136) = 100 = ωₘ². Convert to Hz with f = ω/(2π). Source: Ogata, Modern Control Engineering, 5th ed., Ch. 7 (Design by the Frequency-Response Method) — the maximum phase-lead angle occurs at the geometric mean of the two corner frequencies

Magnitude at ωₘ (dB) and the Frequency Response

|Gc(jω)| = Kc · √(ω² + (1/T)²) / √(ω² + (1/(α·T))²) | |Gc(jω)|_dB = 20 · log₁₀ |Gc(jω)| | at ω = ωₘ: | |Gc(jωₘ)| / Gc(0) = 1/√α | boost_dB = 20 · log₁₀(1/√α) = −10 · log₁₀(α) | |Gc(jωₘ)| = Kc·√α | ∠Gc(jω) = [ arctan(ω·T) − arctan(ω·α·T) ] · 180/π

Variables: |Gc(jω)| = compensator magnitude, an amplitude (not power) ratio, so decibels are 20·log₁₀, NEVER 10·log₁₀ (dimensionless before conversion, dB after); ω = angular frequency (rad/s); Kc = compensator gain (dimensionless); T, α·T = the two time constants (s); Gc(0) = Kc·α = DC gain (dimensionless); 1/√α = the gain at ωₘ RELATIVE to the DC gain (dimensionless) — this is the quantity textbooks quote, e.g. φₘ = 45° → α = 0.171573 → 1/√α = 2.414214 = 7.6555 dB, φₘ = 30° → √3 = 4.7712 dB, φₘ = 60° → 2+√3 = 11.4390 dB, α = 0.1 → √10 = exactly 10.00 dB; boost_dB = that same figure in decibels, positive for lead and negative (attenuation) for lag; ∠Gc = compensator phase (degrees) — a difference of two principal-branch arctangents with strictly positive arguments, so it is inherently continuous and confined to (−90°, +90°): there is no atan2 branch cut and nothing to unwrap, and the peak is exactly φₘ at ω = ωₘ. In frequency-response lead design the 1/√α boost is precisely what shifts the loop's 0 dB crossing to ωₘ, which is why the required φₘ must include the 5–12° allowance noted above. Source: Ogata, Modern Control Engineering, 5th ed., Ch. 7 (Design by the Frequency-Response Method) — magnitude of the lead network at ωₘ is 1/√α; Nise, Control Systems Engineering, 7th ed., Ch. 11 (Design via Frequency Response)

When to Use This Calculator

  • Use the Lead-Lag Compensator Calculator when solving homework or exam problems that require quick numerical verification of your hand calculations — instant feedback helps identify arithmetic errors before they propagate.
  • Use it during the early design phase to rapidly iterate on parameters and narrow down feasible configurations before committing time to detailed finite element simulations or full design packages.
  • Use it when reviewing a colleague's calculation or checking a vendor's data sheet for plausibility — a quick sanity check can prevent costly downstream errors.
  • Use it to generate reference data for a technical report or presentation without manual computation, ensuring consistent, reproducible numbers throughout the document.
  • Use it in the field when a quick estimate is needed and a full engineering software package is not available.

About This Calculator

The Lead-Lag Compensator Calculator is a precision engineering calculation tool designed for students, engineers, and technical professionals. Lead and lag compensator design: enter the peak phase φₘ and the frequency ωₘ to get α, T, the zero and pole, gain at ωₘ in dB, Gc(s), and a Bode plot All calculations are performed using established engineering formulas from the relevant scientific literature and standards. Inputs support both metric (SI) and imperial unit systems, with unit conversion handled automatically — simply select your preferred unit from the dropdown next to each field. Results are computed instantly in the browser without sending data to a server, ensuring both speed and privacy. This calculator is intended as a supplementary tool for learning and design exploration; always verify results against authoritative references for safety-critical applications.

The Theory Behind It

A lead or lag compensator is a first-order network Gc(s) = Kc·(s + 1/T)/(s + 1/(αT)) used to reshape a loop's frequency response. The single parameter α decides which it is. When α < 1 the zero sits closer to the origin than the pole and the network adds phase — a LEAD compensator, used to increase phase margin and speed up the transient response. When α > 1 the pole leads and the network attenuates at high frequency — a LAG compensator, used to raise low-frequency gain (and so reduce steady-state error) without disturbing the crossover region. The design relationship is exact: the maximum phase shift φₘ satisfies sin(φₘ) = (1 − α)/(1 + α), and it occurs at the geometric mean of the corner frequencies, ωₘ = 1/(T·√α). At that frequency the network's magnitude is exactly 1/√α relative to its DC gain — equivalently a boost of −20·log10(√α) dB. Those three equations are the whole design procedure: choose the phase you need and the frequency you need it at, and α, T and the boost follow. Two practical limits follow from the same algebra. A single stage cannot deliver ±90°, because α → 0 as φₘ → 90°; in practice one stage is kept below about 60° and larger shifts are obtained by cascading. And because a lead network boosts high-frequency gain, it also amplifies sensor noise, which is why lead design is usually paired with a check on the resulting noise bandwidth.

Real-World Applications

  • Recovering phase margin after a gain increase: raising loop gain to meet a bandwidth target usually costs phase margin, and a lead stage placed at the new crossover restores it.
  • Reducing steady-state error without changing crossover: a lag stage raises low-frequency gain while leaving the crossover region essentially untouched, so error improves without a stability penalty.
  • Speeding up a sluggish servo: adding phase near crossover allows a higher gain crossover frequency and therefore a faster closed-loop response.
  • Compensating a mechanical resonance: placing the zero below and the pole above a lightly damped mode reshapes the phase through the resonance.
  • Retrofit control on legacy hardware: a passive RC lead or lag network is often the cheapest way to improve an existing analogue loop without redesigning the controller.

Frequently Asked Questions

When should I use lead versus lag?

Use LEAD when the problem is transient — not enough phase margin, too slow a response, too much overshoot. Lead adds phase near crossover and permits a higher bandwidth. Use LAG when the problem is steady-state — error too large under a step or ramp input. Lag raises low-frequency gain and deliberately leaves the crossover region alone. When both problems exist, cascade a lag and a lead stage.

Why can't one stage give me 90 degrees of phase lead?

Because sin(φₘ) = (1 − α)/(1 + α) forces α towards zero as φₘ approaches 90°, and α = 0 means the pole has gone to infinity — no longer a realisable first-order network. The practical ceiling for one stage is around 55–65°; beyond that the pole-zero separation becomes extreme and high-frequency gain (and noise) grows rapidly. Cascade two stages instead.

What is alpha and what is a typical value?

α is the ratio of the zero's corner frequency to the pole's. For a lead network α < 1, and the smaller it is the more phase you get: α = 0.1 gives about 55°, α = 0.17 gives 45°, α = 0.5 gives about 19°. Values below roughly 0.05 are rarely used because the high-frequency gain boost (1/α) amplifies noise excessively.

Why does the calculator show two different dB values?

They are different quantities. The BOOST is the rise at ωₘ relative to the network's own DC gain, −20·log10(√α) — always positive for a lead stage. The GAIN AT ωₘ is the absolute magnitude including Kc, which for Kc = 1 is negative because a lead network attenuates at DC by a factor α. With φₘ = 45° and Kc = 1 the two read +7.66 dB and −7.66 dB, and they differ by exactly 20·log10(Kc·α) = −15.31 dB.

How do I choose the frequency to place the compensator at?

Put ωₘ at the gain crossover frequency you WANT after compensation, not the one you have now. Adding a lead network raises the magnitude curve, which pushes crossover higher, so designing at the old crossover leaves the phase peak below the new one. A common procedure is to estimate the new crossover, place ωₘ there, then verify on a Bode or Nichols plot and iterate once.

Common Mistakes & Tips

  • !Designing the phase peak at the CURRENT crossover frequency rather than the intended one, so the added phase lands below the new crossover.
  • !Requesting more than about 60° from a single stage instead of cascading two.
  • !Ignoring the high-frequency gain boost of a lead network, which amplifies sensor noise by 1/α.
  • !Confusing the boost relative to DC gain with the absolute magnitude at ωₘ; the two differ by 20·log10(Kc·α).
  • !Using a lag network to fix a transient problem, or a lead network to fix a steady-state error — each addresses the other end of the frequency range.

Related Concepts

Related Calculators

Embed this calculator on your site

Paste this snippet into your blog, course page, or documentation to drop a live, interactive Lead-Lag Compensator Calculator into your page.

Free to embed — includes a link back to MegaCalc.