P, PI and PID: what each term does

Proportional, integral and derivative action: what changes with Kc, Ti and Td, where the offset of a P controller comes from and why D is not always needed.

In short. P reacts to the present error, I to the accumulated error, D to its rate of change. Most process loops need only PI; D is added when the process is slow and the signal is clean. Useful to know which knob to turn and what to expect.

Section conventions: e = SP − PV, ideal form, time in seconds (details).

Equation

u(t) = u0 + Kc · [ e(t) + (1/Ti)·∫e dt + Td · de/dt ]
         └ P ┘   └──── I ────┘   └── D ──┘
SymbolMeaningUnits
ucontroller output% (or actuator units)
u0bias (output at zero error; with PI the integrator "builds" it)%
Kccontroller gain% output per PV unit (or %/% when normalised)
Tiintegral time (time per repeat)s
Tdderivative times

Proportional action (P)

The output is proportional to the error: with Kc = 2 %/°C an error of 3 °C adds 6 % to the output.

  • Larger Kc — faster response, smaller offset, but more oscillation. With dead time, oscillation starts already at moderate Kc.
  • Offset. A P controller needs a non-zero error to keep the output away from u0. For a self-regulating process, after a set-point step ΔSP an error of ΔSP/(1 + Kc·K) remains.

Example. Process K = 1.8 °C/%, τ = 45 s, θ = 12 s; P controller Kc = 1.04 %/°C. Set point +1 °C → PV stops at 0.652 °C; error 1/(1 + 1.04·1.8) = 0.348 °C. The simulator with an empty Ti gives the same.

Integral action (I)

The integrator accumulates the error and moves the output until the error is zero. This is why PI removes the offset.

  • Ti is the time in which, at constant error, the I term adds as much to the output as the P term gives ("one repeat"). Smaller Ti — stronger integral action.
  • Ti too small — slow oscillation and overshoot: the integrator "overpumps" the output.
  • Ti too large — PV creeps to the set point for a long time.
  • When the output hits a limit the integrator keeps growing — windup protection is needed.

Derivative action (D)

D reacts to the rate of change and brakes the output in advance, reducing overshoot on slow processes.

  • Td is how many seconds D "looks ahead" when the error grows linearly.
  • D amplifies noise: without a filter a 0.1 % step of the measurement in one 0.1 s sample becomes a rate of 1 %/s. Filtering and "D on measurement" are covered in D, noise and derivative kick.

Comparison on one process

00.51050100150200250300time, sPVSPP, Kc 1.04PI, Kc 1.04, Ti 45 sPID, Kc 1.82, Ti 51 s, Td 5.3 s
Set-point step 0 → 1 on the model K = 1.8, τ = 45 s, θ = 12 s. P alone stops at 0.652: offset 1/(1 + Kc·K) = 0.348. PI removes the offset; PID (IMC, aggressive) is faster.
ControllerSettingsOvershootSettling (±2 %)
PKc 1.04— (offset 0.348)never reaches SP
PI (SIMC)Kc 1.04, Ti 45 s5.5 %74 s
PID (IMC, aggressive)Kc 1.82, Ti 51 s, Td 5.3 s11.9 %110 s

Here PID rises faster (11.1 s against 22.0 s) but does not settle faster: the setting is aggressive and D adds noise sensitivity. This is why PID is not "always better".

When D is needed and when not

SituationD
Flow, pipe pressure (fast, noisy)usually not needed
Levelusually not needed; P or PI is often enough
Temperature of a massive object (slow, several capacities)useful, with a filter
Dead time large compared with τhelps little; the model and moderate tuning matter more

What changes with the parameters (PI/PID, all else equal)

Parameter ↑SpeedOvershootOffsetOutput noise
Kc↑↑↓ (for P)↑
Ti↓↓— (always 0 with PI)—
Td↑ slightly↓ up to a point, then ↑—↑↑

Typical mistakes

  • Mixing up Ti and Ki. Ti is a time (s or min), Ki = Kc/Ti is a gain (1/s). Increasing Ti weakens, increasing Ki strengthens the integral action. See Kp, Ki, Kd, Ti, Td and PB.
  • Adding Td to a noisy signal without a filter — the output jitters and the valve wears out.
  • Copying settings from another loop without considering K, τ, θ and units.

Limits

The description refers to the ideal form. A particular PLC block may compute the terms differently (parallel form, P and D on measurement, set-point weighting) — check the block documentation. NI states plainly that there is no industry-wide standard PID algorithm.

Loading the map…

Sources

  1. Åström & Murray — Feedback Systems, 2nd ed. (2020), ch. 11 «PID Control», §11.1 — Caltech / Lund University
  2. APMonitor — Proportional Integral Derivative (PID) Control — Brigham Young University (J. Hedengren)
  3. NI — How To Convert PID Parameters From Gain to Time (updated 2023-10-27) — NI (Emerson)

Updated 2026-10-12