Control SystemsPreliminary engineering
Ziegler–Nichols PID Tuning
Both classic Ziegler–Nichols methods: closed-loop ultimate gain (Ku, Pu) and open-loop reaction curve (FOPDT), with the tuned gains in both controller forms and a response preview.
About this calculator
The 1942 Ziegler–Nichols rules are where practical PID tuning began, and both of their experiments are here. The CLOSED-LOOP (ultimate-gain) method: with integral and derivative off, raise the proportional gain until the loop oscillates steadily; that gain is Ku and the oscillation period is Pu, and the table scales them into controller settings. The OPEN-LOOP (reaction-curve) method: with the loop open, step the actuator and fit the S-shaped response with a first-order-plus-dead-time model — process gain K, time constant T, dead time L — and a second table converts the fit.
Both tables target roughly quarter-amplitude decay, which is deliberately aggressive: each overshoot peak is about a quarter of the previous one, meaning visible ringing and modest margins. That aggressiveness is the point of the method (disturbance rejection) and its notorious limitation (setpoint overshoot) — the interpretation panel says which you are getting, and the IMC/lambda tool is the modern alternative when you want to dial robustness explicitly.
Gains are reported in BOTH controller forms — standard/ISA (Kp, Ti, Td), which is how the original tables are written, and parallel (Kp, Ki, Kd) via Ki = Kp/Ti, Kd = Kp·Td — because applying an ISA table to a parallel-form controller without converting is the single most common tuning error in the field.
For the reaction-curve method the closed-loop step-response preview and the open-loop margins are computed on the fitted FOPDT plant, with the dead time represented by a first-order Padé approximation (stated on the chart). For the ultimate-gain method the plant itself is unknown — take the gains to the PID Controller Analyzer with your plant model for the full four-panel picture.
Design notes & common mistakes
- Run the ultimate-gain experiment with I and D OFF — a sustained oscillation with integral action active gives a different (wrong) Ku.
- The reaction-curve fit must come from an OPEN-loop step; fitting a closed-loop response gives an FOPDT model of the loop, not the process.
- ZN assumes the process tolerates oscillation during the test — many industrial processes don't; relay autotuning (a planned enhancement) extracts Ku/Pu with a bounded oscillation instead.
- Quarter-amplitude decay corresponds to ζ ≈ 0.2 — if the loop drives anything mechanical, that much ringing is usually unacceptable and a detune is expected.
Assumptions
- The process is adequately described by the experiment used: a sustained-oscillation test (Ku, Pu) or an FOPDT reaction-curve fit (K, T, L).
- Tables give the classical Ziegler–Nichols values targeting ≈ quarter-amplitude decay.
- Preview responses approximate e^(−Ls) by a first-order Padé term — stated on the chart.
- Ideal derivative; real implementations filter it (see design notes on the analyzer).
When to use this calculator
Appropriate for
- Getting a first-cut PID setting from either Ziegler–Nichols experiment (ultimate gain or reaction curve)
- A starting point to detune from, with both controller forms shown
- Teaching the classic ZN method and its quarter-amplitude-decay character
Not suitable for
- Processes that cannot tolerate the sustained oscillation or open-loop step the experiments require
- Applications needing gentle, robust response — ZN is deliberately aggressive; consider IMC/lambda instead
- Final loop settings without detuning and validation on the real process under supervision
What this calculator does not cover
- The ultimate-gain mode outputs gains only — the plant is unknown to it, so response previews and margins for that mode belong in the PID Controller Analyzer with your plant model.
- FOPDT is a one-pole-plus-delay caricature: strongly underdamped, integrating, or inverse-response processes are outside the reaction-curve method's fit and its table.
- The Padé(1) preview underestimates the phase loss of long dead times (L ≳ T) — the true loop is somewhat worse than shown.
- No detuning factors, setpoint weighting, or anti-windup — the tables are reported as published.
- As with every calculator on this site: results are preliminary and educational, are not verified for any specific installation, and must be reviewed against the applicable code edition and stamped by a licensed Professional Engineer before real-world use.
Frequently asked questions
Which Ziegler–Nichols method should I use?
Use the reaction-curve method when you can safely step the process open-loop and fit K, T, L. Use the ultimate-gain method when the process must stay in closed loop and can tolerate a brief sustained oscillation. They generally give similar (similarly aggressive) settings.
Why does my ZN-tuned loop overshoot so much?
By design: the tables target quarter-amplitude decay, which prioritizes disturbance rejection over setpoint response and corresponds to light damping (ζ ≈ 0.2). Standard practice treats ZN as a first cut and detunes — reduce Kp 20–50% or switch to IMC/lambda tuning for an explicit robustness dial.
My controller uses Kp, Ki, Kd — can I type the table values straight in?
No — the tables are in ISA form (Kp, Ti, Td). Convert first: Ki = Kp/Ti and Kd = Kp·Td. This tool always reports both forms because skipping that conversion is the most common way a good tune goes wrong in the field.
What exactly are Ku and Pu?
With integral and derivative action off, increase the proportional gain until the loop oscillates with constant amplitude. That gain is the ultimate gain Ku, and the oscillation period is the ultimate period Pu. They are the process's own measure of where instability begins — for example, G = 1/(s+1)³ reaches it at exactly Ku = 8, Pu = 2π/√3 s.
References
- Ziegler, J. G. & Nichols, N. B., 'Optimum Settings for Automatic Controllers', Trans. ASME 64 (1942)
- Ogata, K., Modern Control Engineering, 5th ed., Ch. 8 (Ziegler–Nichols rules, both methods)
- Åström, K. J. & Hägglund, T., PID Controllers: Theory, Design, and Tuning, 2nd ed. (assessment of ZN aggressiveness)
Related calculators
PID Controller Analyzer
Tune Kp, Ki, Kd live against your plant: closed-loop step response with metrics, control effort, closed-loop poles, and open-loop margins — all recomputing as you drag.
Cohen–Coon PID Tuning
Cohen–Coon open-loop tuning from an FOPDT fit (K, T, L) — designed for dead-time-dominant processes — with gains in both forms and a closed-loop preview.
IMC / Lambda PID Tuning
Internal-Model-Control tuning from an FOPDT fit: you choose the closed-loop time constant λ, and the speed-versus-robustness trade-off becomes an explicit engineering decision.
P vs PI vs PID Comparison
One plant, one gain set, three controller structures side by side: what integral action buys (and costs), what derivative action repairs — one chart, one metrics table.
Get the ComputeVerse.ai quick reference
A free engineering quick-reference PDF, plus a note when new calculators launch across the library — one or two emails a month, nothing else.