HuntsvilleEngineers mark

Ziegler-Nichols PID Tuning

Turn an ultimate gain and oscillation period into starting P, PI, or PID gains.

InputP: Kp=0.5·Ku , PI: Kp=0.45·Ku Ti=Tu/1.2 , PID: Kp=0.6·Ku Ti=Tu/2 Td=Tu/8 , Ki=Kp/Ti Kd=Kp·Td

Your recent runs (stored only in your browser)

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

The engineering

The Ziegler-Nichols closed-loop method finds a controller's starting gains from a single stability experiment: with integral and derivative off, raise the proportional gain until the loop oscillates with steady amplitude. That gain is the ultimate gain Ku and the oscillation period is Tu. The table here converts those two numbers into P, PI, or PID gains.

This is a starting point, not a finish line. Classic Z-N is tuned for roughly quarter-amplitude decay, which is aggressive — expect 25% or more overshoot and be ready to back Kp down. On a real plant, pushing to sustained oscillation is risky; use it only where a transient limit cycle is safe, or derive Ku and Tu from a model instead.

Where this math comes from

John G. Ziegler and Nathaniel B. Nichols were engineers at Taylor Instrument Companies in Rochester, New York, working on pneumatic process controllers. In their 1942 ASME paper 'Optimum Settings for Automatic Controllers' they gave plant operators something they had never had: a repeatable recipe to set the three knobs without trial-and-error guesswork.

They published two procedures — the closed-loop ultimate-gain method used here, and an open-loop reaction-curve method based on process delay and slope. The rules were empirical, fit to the responses they saw on the bench, and despite decades of refinements (Cohen-Coon, lambda tuning, relay auto-tuning) the Z-N numbers remain the first thing most controls engineers reach for.

  1. 1922Nicolas MinorskyFormulates three-term (PID) control while analyzing ship steering.
  2. 1942J. G. Ziegler & N. B. NicholsPublish the ultimate-gain and reaction-curve tuning rules at Taylor Instrument.
  3. 1953G. H. Cohen & G. A. CoonRefine open-loop tuning for processes with significant dead time.
  4. 1984K. J. Åström & T. HägglundIntroduce relay auto-tuning to find Ku and Tu safely and automatically.

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.