PID tuning calculator

Classical tuning rules turn three numbers from a step test — gain, dead time and time constant — into PID settings.

Change in output divided by change in input, both as a fraction of span.

s
s
Proportional gain, Ziegler-Nichols
4.8000
= Exact PID tuning
Integral time
10.000 s
Derivative time
2.500 s
Integral gain
0.480 00
Derivative gain
12.0000
Proportional gain, Cohen-Coon
5.5389
Proportional gain, lambda tuning
0.4722
Integral time, lambda tuning
42.500 s
Dead time to time constant ratio
0.1250 Easy to control
Show the working
  1. Process gain = 2
  2. Dead time = 5
  3. Time constant = 40
  4. Controller type = 3
  5. ratio = 5 / 40 = 0.125
  6. Proportional gain, Ziegler-Nichols = 3 == 1 ? 40/(2*5) : 3 == 2 ? 0.9*40/(2*5) : 1.2*40/(2*5) = 4.8
  7. Integral time = 3 == 2 ? 3.33*5 : 3 == 3 ? 2*5 : 0 = 10
  8. Derivative time = 3 == 3 ? 0.5*5 : 0 = 2.5
  9. Proportional gain, Cohen-Coon = 3 == 3 ? (1.35/2)*(0.125^(-1))*(1 + 0.18*0.125/(1-0.125)) : (0.9/2)*(0.125^(-1))*(1 + 0.125/11) = 5.538 86
  10. Proportional gain, lambda tuning = (2*40 + 5) / (2 * 2 * (40 + 5)) = 0.472 222
  11. Integral time, lambda tuning = 40 + 5/2 = 42.5
  12. Dead time to time constant ratio = 0.125 = 0.125
  13. Integral gain = 10 > 0 ? 4.8/10 : 0 = 0.48
  14. Derivative gain = 4.8 * 2.5 = 12

Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.

Scenarios & local history

Compare a saved scenario

Recent calculations

    The formula

    • Ziegler-Nichols PID: Kp = 1.2 T / (K L), Ti = 2 L, Td = 0.5 L
    • lambda tuning gives a slower, more robust loop with less overshoot

    Ziegler-Nichols is deliberately aggressive and gives about 25% overshoot. It is a starting point, not a finished tune.

    A process with dead time longer than its time constant is genuinely hard to control by PID alone.

    Related calculators

    Settings

    Theme

    System follows your operating system and changes with it.

    Text size
    High contrast

    Maximises text and border contrast and removes the grid background.

    Graph-paper background

    Round to
    Notation
    Thousands separators
    Decimal mark
    Nearest fraction

    Shows the result as the nearest tape-measure fraction, with the error it costs.


    Accessibility & interaction
    Reduce motion Stops interface animations even when the operating system does not.
    Underline links Keeps links visually distinct without relying on colour.
    Larger touch targets Makes buttons and form controls easier to tap.
    Shorter reading lines Limits article width for easier scanning.
    Monochrome display Removes colour as an information cue.
    Always-visible focus Makes the keyboard focus ring persistent and stronger.
    Verbose screen-reader results Announces the complete conversion equation.
    Sticky action bars Keeps converter and calculator actions within reach.
    Select values on focus Replaces a value immediately when you start typing.
    Left-handed mobile layout Moves key mobile actions toward the left thumb.

    Your data

    Settings, recent conversions and favourites live in this browser only. Nothing is sent anywhere.

    Offline library