PID Tuning: Methods, Formulas and Temperature Control Guide

By editor Updated 10 min read
PID control response curve settling on a setpoint

PID tuning means choosing the proportional, integral and derivative settings that make a control loop reach its setpoint quickly and stay there without excessive overshoot or oscillation. For most industrial temperature loops, start with autotune or a step test, use PI control first, and add derivative only when the process is slow and the signal is clean. Good tuning depends on the process, so the right answer for an oven will not suit a flow loop.

If you see thisChange this firstWhy
Slow responseIncrease KcStronger reaction to error
Large overshootReduce Kc or increase TiLess push and slower integral build-up
Steady offsetReduce TiIntegral action removes the remaining error
Slow, rolling oscillationIncrease TiIntegral action is too strong
Fast oscillationReduce KcLoop gain is too high
Noisy, jumping outputReduce Td or filter PVDerivative amplifies noise
Quick tuning guide for the standard (ideal) PID form, where a smaller Ti means stronger integral action.
Reader tip: Check your controller manual before changing numbers. One brand’s “I” can be integral time in seconds, while another uses an integral gain, and the two move in opposite directions.
3 numbers
k, θ and τ from one step test
20.3%
Ziegler-Nichols PI overshoot in our oven simulation
8.3%
SIMC tight overshoot, same oven
0%
SIMC smooth overshoot, same oven

What Does a PID Controller Do?

A PID controller compares a measured value, called the process variable (PV), with the target, called the setpoint (SP). The difference is the error. The controller then adjusts its output, such as heater power, a valve position or a drive speed, to reduce that error.

You will find PID in standalone temperature controllers, PLCs and larger DCS and SCADA systems. It can also trim the speed reference of a variable frequency drive. The measurement matters as much as the math, so start with a suitable, well-placed device from our guide to industrial sensors.

PID temperature control loopA setpoint enters the PID controller, which drives a heater output into the process. A temperature sensor feeds the measured process variable back to the controller.A closed temperature control loopSetpointPID controllerHeater outputProcess (oven)Temperature sensorMeasured PVIndustrialBasicsindustrialbasics.com
Figure 1: The controller acts on the error between setpoint and measured temperature.
Output = Kc × ( e + (1 ÷ Ti) ∫ e dt + Td × de/dt )

Effects of P, I and D

TermLooks atMain benefitToo much causes
Proportional (P)Present errorImmediate responseOvershoot and oscillation
Integral (I)Accumulated past errorRemoves steady-state offsetWindup and slow oscillation
Derivative (D)Rate of changeAdds damping on slow loopsNoise and output chatter
What each PID term contributes.

Proportional gain and proportional band

Many temperature controllers use proportional band instead of gain. It is the part of the measurement span needed to move the output across its full range.

PB% = 100 ÷ Kc

That formula applies when Kc is dimensionless, with PV and output both in percent of span. A narrow band means high gain, and a wide band means gentle control.

Integral action and windup

Integral keeps pushing until error reaches zero. If the output is already at 100%, the integrator can keep accumulating during warm-up, then force the temperature past the setpoint. This is called reset windup. Anti-windup stops or limits that accumulation while the output is saturated.

Derivative action

Derivative reacts to how fast the signal is changing, so it can brake a rising temperature before it reaches setpoint. Practical controllers filter this term, and many calculate it from PV rather than error to avoid a sudden output kick when the setpoint changes.

PID Forms and How to Convert Settings

Copying numbers between controllers often fails because they use different equations. Vendor names for these forms are inconsistent too, so compare the equation in the manual rather than relying on the label.

FormEquationCommon settings
Ideal / standardKc (1 + 1/(Ti s) + Td s)Kc, Ti, Td
Parallel / independentKp + Ki/s + Kd sKp, Ki, Kd
Series / interactingKc′ (1 + 1/(Ti′ s)) (1 + Td′ s)Kc′, Ti′, Td′
The three common PID structures.
Ideal to parallel: Kp = Kc, Ki = Kc ÷ Ti, Kd = Kc × Td
Series to ideal: Kc = Kc′(Ti′ + Td′) ÷ Ti′
Ti = Ti′ + Td′, Td = Ti′Td′ ÷ (Ti′ + Td′)

Example: an ideal controller with Kc = 2.5, Ti = 240 s and Td = 15 s becomes Kp = 2.5, Ki = 2.5 ÷ 240 = 0.0104 per second and Kd = 2.5 × 15 = 37.5 seconds in parallel form.

PID Tuning Methods Compared

MethodTest neededBest forWatch out for
AutotuneController runs a testMost temperature loopsCan disturb the process
SIMCOpen-loop step testPredictable, adjustable tuningNeeds a reasonable model
Ziegler-NicholsSustained oscillationQuick benchmarkAggressive; takes loop to stability limit
Tyreus-LuybenSustained oscillationLess aggressive closed-loop tuningStill needs an oscillation test
Cohen-CoonOpen-loop step testFirst-order processes with delayCan be aggressive
ManualTrial and adjustmentSimple, safe-to-test loopsSlow and depends on experience
Choosing a tuning method.

Ziegler-Nichols and Tyreus-Luyben formulas

Both methods use the same closed-loop test. With P-only control, raise the gain until the loop holds a steady oscillation. Record that ultimate gain (Ku) and ultimate period (Pu).

ControllerRuleKcTiTd
PZiegler-NicholsKu ÷ 2n/an/a
PIZiegler-NicholsKu ÷ 2.2Pu ÷ 1.2n/a
PIDZiegler-NicholsKu ÷ 1.7Pu ÷ 2Pu ÷ 8
PITyreus-LuybenKu ÷ 3.22.2 Pun/a
PIDTyreus-LuybenKu ÷ 2.22.2 PuPu ÷ 6.3
Closed-loop tuning rules, from Michigan Technological University course notes.
Safety note: Do not run a sustained-oscillation test on a loop where temperature, pressure or product quality could become unsafe. Use a step test or vendor autotune with limits in place.

SIMC model-based tuning

SIMC, developed by Sigurd Skogestad, uses a simple process model and one main tuning choice: the desired closed-loop time constant, τc. A smaller τc is tighter, and a larger τc is smoother. Skogestad recommends τc = θ for tight control.

Kc = (1 ÷ k) × τ ÷ (τc + θ)
Ti = min( τ, 4(τc + θ) )

Step-Test Tuning Example: An Electric Oven

Here is a complete worked example. With the oven stable at 100°C and the controller in manual, the output is stepped from 35% to 45%.

Open-loop step responseAfter a 10 percent output step at time zero, temperature stays at 100 degrees for 30 seconds, then rises toward 120 degrees, reaching 63.2 percent of the change at 330 seconds.Reading k, dead time and time constant from a step test100°C110°C120°C0 s500 s1000 s1500 s63.2% at 330 s, so τ = 330 − 30 = 300 sθ = 30 s+20°C for +10% output, so k = 2°C/%IndustrialBasicsindustrialbasics.com
Figure 2: A single step test gives the three numbers needed for model-based tuning.
  1. Process gain: temperature rises 20°C for a 10% output change, so k = 20 ÷ 10 = 2°C/%.
  2. Dead time: the temperature starts moving after θ = 30 s.
  3. Time constant: it reaches 63.2% of the rise (112.6°C) at 330 s, so τ = 330 − 30 = 300 s.
  4. Choose τc: for tight control, τc = θ = 30 s.
  5. Calculate gain: Kc = (1 ÷ 2) × 300 ÷ (30 + 30) = 2.5 %/°C.
  6. Calculate integral time: Ti = min(300, 4 × 60) = 240 s.

If this controller has a 0 to 400°C span, then 1°C is 0.25% of span. The dimensionless gain is 2.5 ÷ 0.25 = 10, so the proportional band is 100 ÷ 10 = 10%, or 40°C.

How the Tuning Methods Compare

We simulated that same oven with a +20°C setpoint change, output limits of 0 to 100% and anti-windup. The closed-loop test values were Ku = 8.18 %/°C and Pu = 115.5 s.

Simulated PID step responsesZiegler-Nichols PI overshoots by 20.3 percent, SIMC tight by 8.3 percent, and SIMC smooth does not overshoot.Same oven, three tunings: response to a +20°C setpoint100°C110°C120°C0 s250 s500 s750 s1000 sZiegler-Nichols PI: 20.3% overshoot, settles in 258 sZiegler-Nichols PI: 20.3% overshootSIMC tight: 8.3% overshoot, settles in 299 sSIMC tight: 8.3% overshootSIMC smooth: -0.0% overshoot, settles in 365 sSIMC smooth: 0% overshootIndustrialBasicsindustrialbasics.com
Figure 3: IndustrialBasics simulation of a first-order-plus-dead-time oven (k = 2°C/%, τ = 300 s, θ = 30 s).
TuningKc (%/°C)Ti (s)OvershootSettling time (±2%)
Ziegler-Nichols PI3.729620.3%258 s
SIMC tight2.502408.3%299 s
SIMC smooth1.253000%365 s
Results from the IndustrialBasics simulation. A real process will differ.

The result shows the real trade-off. Ziegler-Nichols settled first in this test, but it overshot by 20.3%, or about 4°C. SIMC smooth took longer but did not overshoot at all. If overshoot can scrap a batch or damage a product, the slower tune is the better tune.

How to Tune a PID Loop Manually

  1. Check the basics first. Confirm the sensor reading, output direction, limits and alarms.
  2. Record the current settings. You need a way back if the loop gets worse.
  3. Start with PI. Set derivative to zero and use a long integral time.
  4. Raise Kc gradually. Make a small setpoint change after each adjustment and watch the trend.
  5. Back off if it oscillates. Reduce Kc until the response is stable.
  6. Shorten Ti. Reduce it until offset clears at an acceptable speed without slow oscillation.
  7. Add derivative only if needed. Use small values and confirm the output does not become noisy.
  8. Test real conditions. Check setpoint changes and load disturbances, such as opening a door or adding product.

As rough starting ranges for temperature loops, one university process-control text gives Kc of 2 to 10, Ti of 2 to 10 minutes and Td of 0 to 5 minutes. Treat these as a starting point, because scaling and controller form change the numbers.

Tuning PID for Temperature Control

Temperature loops are usually slow, and many can only add heat. If the temperature overshoots, the controller may have to wait for natural cooling. That makes overshoot prevention more important than raw speed.

  • Tune at the working temperature. Heat loss and process gain change across the temperature range.
  • Tune with the real heater voltage and load. A tune done empty may not suit a loaded oven.
  • Confirm autotune changed the values. If the settings are the same before and after, the tune may have failed.
  • Check the output cycle time. On relay or SSR outputs, a poor cycle time can look like bad tuning.
  • Place the sensor carefully. A sensor far from the heater adds dead time and makes the loop harder to control.
  • Use setpoint ramps. Ramping reduces saturation and overshoot during warm-up.
  • Tune heating and cooling separately. The two actions often have very different process gains.
Reader tip: Contactors wear quickly when asked to switch heaters on a short cycle. For fast time-proportioning, compare switching options in our guide to contactors and relays and check the heater and SSR ratings.

PID Troubleshooting Guide

SymptomLikely causeWhat to try
Overshoot on startupIntegral windupEnable anti-windup, ramp setpoint, increase Ti
Slow rolling oscillationTi too shortIncrease Ti
Fast oscillationKc too highReduce Kc
Output chatterNoise with derivativeReduce Td, filter PV, check wiring
Never reaches setpointOutput at limit or undersized heaterCheck output, power and heat loss
Runs away from setpointWrong control directionStop and correct direct/reverse action
Good one day, poor the nextProcess or supply changedCheck load and power quality, then retune
Common PID faults and first actions.
Safety note: Keep independent over-temperature protection on heating equipment. A PID controller is not a safety device, and a failed sensor or stuck output can cause overheating.

Motion axes use PID differently, in nested loops: see our guide to the closed loop servo system for position, velocity and current loop tuning.

Frequently Asked Questions

What is PID tuning?

PID tuning is the process of setting the proportional, integral and derivative values so a control loop reaches and holds its setpoint quickly, with acceptable overshoot and stable output.

What is the best PID tuning method?

For most temperature loops, controller autotune or a model-based method such as SIMC is a better starting point than classic Ziegler-Nichols, because you can choose how aggressive the response should be.

How do you tune a PID controller manually?

Set integral and derivative to minimum effect, raise proportional gain until the response is quick but stable, add integral until offset clears without oscillation, then add a small amount of derivative only if needed.

What does Kp, Ki and Kd do?

Kp reacts to the present error, Ki removes accumulated past error, and Kd reacts to the rate of change. Their exact meaning depends on the controller equation.

How do I reduce PID overshoot?

Reduce proportional gain, increase integral time, confirm anti-windup is active, and consider setpoint ramping. Derivative can help on slow temperature loops if the sensor signal is clean.

Do temperature loops need derivative?

Many work well with PI. Derivative can reduce overshoot on slow thermal processes, but it amplifies sensor noise, so add it only when PI cannot meet the requirement.

What is proportional band in PID?

Proportional band is the error range, as a percentage of span, that moves the output from 0 to 100%. For a dimensionless gain, PB% = 100 ÷ Kc, so a larger band means a gentler controller.

Why does my PID loop oscillate after autotune?

Common causes are the wrong output cycle time, a process that changed since the tune, poor sensor placement, valve or heater limits, or an autotune that did not finish properly.

Sources and Further Reading

About the author

editor

Leave a Comment