E•ENGINEERING
DESK TOOLS

Engineering tools

42 tools · instant results

INSTRUMENTATION

PID Tuning Calculator – Ziegler–Nichols Method

Calculate starting P, PI or PID controller settings from the ultimate gain and ultimate period.

READY FOR YOUR DATA

Enter your values, then select Calculate.

Formula & assumptions

P: Kp = 0.5 Ku. PI: Kp = 0.45 Ku, Ti = Pu / 1.2. PID: Kp = 0.6 Ku, Ti = Pu / 2, Td = Pu / 8. Ki = Kp / Ti and Kd = Kp × Td.

These are the classic closed-loop Ziegler–Nichols starting values. They often give an aggressive response with overshoot, so treat them as a starting point and tune down. Finding Ku and Pu means driving the loop to sustained oscillation, which is not safe or acceptable on every process. Gain may be expressed as proportional band in some controllers, and time units differ between vendors.

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

Classic Ziegler–Nichols closed-loop rules. Ki = Kp ÷ Ti and Kd = Kp × Td.
ControllerKpTiTd
P0.5 Ku––
PI0.45 KuPu ÷ 1.2–
PID0.6 KuPu ÷ 2Pu ÷ 8

How to find Ku and Pu

  1. Put the controller in automatic with integral and derivative turned off (P only).
  2. Raise the gain in small steps, making a small set-point change after each step.
  3. Stop when the loop oscillates with steady, constant amplitude. That gain is Ku.
  4. 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:

Starting values only. Tune on the live loop and record the final settings.
MethodKpTiTd
Ziegler–Nichols PID0.6 Ku0.5 Pu0.125 Pu
"Some overshoot" PID0.33 Ku0.5 Pu0.33 Pu
"No overshoot" PID0.2 Ku0.5 Pu0.33 Pu
Tyreus–Luyben PIKu ÷ 3.22.2 Pu–
Tyreus–Luyben PIDKu ÷ 2.22.2 PuPu ÷ 6.3

Controller units to check

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.