Calculation reviewed: 14 October 2026 · Engineering Desk Tools · How we check calculations
This PID tuning calculator gives starting values for a P, PI or PID controller with the classic Ziegler–Nichols closed-loop (ultimate gain) method. You need two numbers from a test on the loop: the ultimate gain Ku and the ultimate period Pu.
Ziegler–Nichols tuning rules
How to find Ku and Pu
- Put the controller in automatic with integral and derivative turned off (P only).
- Raise the gain in small steps, making a small set-point change after each step.
- Stop when the loop oscillates with steady, constant amplitude. That gain is Ku.
- Measure the time of one full oscillation cycle. That is Pu.
Only do this where a sustained oscillation is safe for the process and the equipment. On many loops, a step test or the controller auto-tune is the better choice.
Worked example
A flow loop oscillates steadily at Ku = 2.0 with a period Pu = 12 s. PID settings: Kp = 0.6 × 2.0 = 1.2, Ti = 12 ÷ 2 = 6 s, Td = 12 ÷ 8 = 1.5 s. For a PI controller: Kp = 0.9, Ti = 10 s.
Softer tuning options
Ziegler–Nichols settings are aggressive and usually give overshoot. These variations, from the same Ku and Pu, give a calmer response:
Controller units to check
- Some controllers use proportional band instead of gain: PB (%) = 100 ÷ Kp.
- Integral may be set as Ti in seconds or minutes per repeat, or as repeats per minute (1 ÷ Ti).
- Check whether the controller uses the ideal, series or parallel PID form; the numbers are not always interchangeable.
How to use the PID tuning calculator
Choose P, PI or PID, enter the ultimate gain Ku and the ultimate period Pu in seconds, then select Calculate. Convert the results to the units your controller uses before entering them.
Frequently asked questions
What is the Ziegler–Nichols method?
It is a tuning method that finds the gain at which a P-only loop oscillates steadily (Ku) and the oscillation period (Pu), then uses simple rules to set Kp, Ti and Td.
What are the Ziegler–Nichols PID values?
Kp = 0.6 Ku, Ti = Pu/2 and Td = Pu/8.
Why does Ziegler–Nichols tuning overshoot?
The rules aim for a quarter-amplitude decay, which is fast but oscillatory. Reduce Kp or use the "no overshoot" or Tyreus–Luyben rules for a calmer response.
How do I convert gain to proportional band?
Proportional band (%) = 100 ÷ gain. A gain of 2 is a proportional band of 50 %.
Is PI or PID better?
Most flow and pressure loops work well with PI. Derivative helps slow loops such as temperature but amplifies measurement noise, so it is often left off fast or noisy loops.
Related tools and records
Use related calculations with consistent units, periods and equipment scope.
Embed this calculator
Copy this code into your website. The calculator stays free, with a visible attribution link. Visitors can use it without signing up.