Dead Time and Smith Predictor Calculator

See how much stability margin a Smith Predictor recovers over naive proportional control for a delayed process, from its gain, time constant, and dead time.

⏳ Dead Time and Smith Predictor Calculator
Process gain (K)1
0.110
Time constant (τ)10
s
0.550
Dead time (θ)2
s
020
Proportional gain to test (Kc)4
0.120
Margin improvement
Naive phase margin
Smith Predictor phase margin
Naive ultimate gain Kcu
Naive loop verdict
Dead time ratio θ/τ
Step-by-step working

⏳ What is a Smith Predictor?

A Smith Predictor is a control structure built specifically for processes with significant dead time, the delay between a change at the input and the first visible effect on the measured output. Instead of letting the feedback controller react directly to the raw, delayed measurement, a Smith Predictor keeps an internal model of the process without its dead time, lets the controller react to that delay-free prediction, and separately compares the real delayed output against a delayed copy of the model's prediction to correct for disturbances and any mismatch between the model and the real process. The practical effect is that a controller tuned inside a Smith Predictor can be far more aggressive than one tuned against the raw delayed process, because dead time no longer directly limits how much phase lag the loop accumulates.

Smith Predictors show up wherever transport delay dominates a process's dynamics. A chemical reactor with a long sample-analysis loop, a paper mill with material traveling meters between the actuator and the sensor, a heating system with a thermocouple mounted downstream of the heating element, and a network-controlled remote actuator with communication latency are all classic candidates. In each case, the raw dead time would otherwise force a naive PID loop into sluggish, heavily detuned gains just to stay stable.

A common misconception is that a Smith Predictor removes the dead time itself, it does not. The physical delay between input and output is unchanged, the process still takes theta seconds to respond. What changes is how much of that delay's phase lag counts against the loop's stability margin. With a perfectly matched internal model, the controller effectively sees a delay-free process, so the achievable gain and closed-loop speed are limited by the process's own lag dynamics, not by the dead time riding on top of them.

This calculator quantifies that benefit directly for a first-order-plus-dead-time (FOPDT) process. It computes the naive loop's absolute stability ceiling (the ultimate gain Kcu, the same concept used in Ziegler-Nichols tuning), and compares the phase margin a chosen proportional gain achieves with and without Smith prediction, along with the exact margin improvement and how it grows as the dead-time-to-time-constant ratio increases.

📐 Formula

G(s)  =  K·e−θs / (τs+1)     ΔPM  =  ωgc×θ×(180/π)
K = process gain, τ = process time constant (s), θ = dead time (s)
Gain crossover (shared by both loops, since a pure delay does not change magnitude): ωgc = √((KcK)²−1) / τ, requires KcK > 1
Naive phase margin: PMnaive = 180 − [atan(ωgcτ) + ωgcθ]×(180/π)
Smith-predicted phase margin: PMSP = 180 − atan(ωgcτ)×(180/π)
Naive ultimate gain: Kcu = √(1+(ωτ)²)/K, where ω solves atan(ωτ) + ωθ = π
Example: K=1, τ=10 s, θ=2 s, Kc=4 → PMnaive=60.10°, PMSP=104.48°, improvement=+44.38°

📖 How to Use This Calculator

Steps

1
Enter the process model. Type K (process gain), tau (time constant in seconds), and theta (dead time in seconds) for the first-order-plus-dead-time process.
2
Choose a proportional gain to test. Type Kc, the proportional gain you want to evaluate for both the naive loop and the Smith-Predictor-compensated loop.
3
Read the phase margins and ultimate gain. See the naive and Smith-predicted phase margins at that gain, the exact margin improvement, and the naive loop's absolute ultimate gain ceiling.

💡 Example Calculations

Example 1 — Moderate Dead Time Ratio

K=1, τ=10 s, θ=2 s, Kc=4 (θ/τ = 0.2)

1
Gain crossover: ωgc = √((4×1)²−1)/10 = 0.3873 rad/s
2
PMnaive = 180 − [atan(3.873)+0.7746]×(180/π) = 60.10°; PMSP = 180 − atan(3.873)×(180/π) = 104.48°
3
Margin improvement = 0.3873×2×(180/π) = +44.38°; naive ultimate gain Kcu = 8.5024
Naive PM = 60.10°, Smith Predictor PM = 104.48°, improvement = +44.38°
Try this example →

Example 2 — Naive Loop Unstable at This Gain

K=1, τ=5 s, θ=5 s, Kc=3 (θ/τ = 1)

1
Naive ultimate gain Kcu = 2.2618, below the chosen Kc=3, so the naive loop is already unstable at this gain
2
Gain crossover: ωgc = √((3×1)²−1)/5 = 0.5657 rad/s
3
PMnaive = −52.59° (negative → unstable); PMSP = 109.47° (stable, unaffected by Kcu)
Naive loop is UNSTABLE (PM = −52.59°), Smith Predictor loop remains stable at PM = 109.47°, improvement = +162.06°
Try this example →

Example 3 — Mild Dead Time Ratio

K=2, τ=8 s, θ=1 s, Kc=3 (θ/τ = 0.125)

1
Gain crossover: ωgc = √((3×2)²−1)/8 = 0.7395 rad/s
2
PMnaive = 57.22°; PMSP = 99.59°
3
Margin improvement = +42.37°; naive ultimate gain Kcu = 6.6052
Naive PM = 57.22°, Smith Predictor PM = 99.59°, improvement = +42.37°
Try this example →

❓ Frequently Asked Questions

What is a Smith Predictor and why is it used?+
A Smith Predictor is a control structure that uses an internal process model without the dead time to let the feedback controller react to a delay-free prediction of the output, instead of the actual delayed measurement. It compares the real delayed output against a delayed copy of the model's prediction to correct for disturbances and model error, letting the controller be tuned as if the process had no dead time at all.
What is dead time in a control system?+
Dead time (also called transport delay or theta) is the time between a change in a process's input and the first sign of its effect on the measured output, common in processes with pipe flow, conveyor transport, or sensor sampling delay. It contributes phase lag that grows without bound as frequency increases, which is what eventually limits the maximum stable proportional gain in a naive feedback loop.
How do you calculate the naive ultimate gain Kcu for a process with dead time?+
Kcu is the proportional gain at which the loop's phase first reaches -180 degrees, found by solving atan(omega*tau) + omega*theta = pi for the ultimate frequency omega, then Kcu = sqrt(1+(omega*tau)^2)/K. This is the same ultimate-gain concept used in the classic Ziegler-Nichols closed-loop tuning test.
Why does a Smith Predictor remove the ultimate gain limit entirely?+
Because the controller in a Smith Predictor structure only ever sees the delay-free internal model K/(tau*s+1), and a bare first-order lag can contribute at most 90 degrees of phase lag at any frequency, it can never reach the 180 degrees of lag needed for the loop to go unstable under proportional control. With a perfectly matched model, the proportional gain can be increased without a theoretical upper limit.
Why do the naive and Smith-predicted loops share the same gain crossover frequency?+
A pure time delay e^(-theta*s) has a magnitude of exactly 1 at every frequency, it is an all-pass filter that only shifts phase, never gain. Since the gain crossover frequency is defined purely by where the loop magnitude equals 1, removing the delay via Smith prediction cannot move that frequency, it only changes the phase measured there.
What is the formula for the phase margin improvement from Smith prediction?+
The improvement is exactly the phase the dead time would have cost at the shared gain crossover frequency: delta PM = omega_gc times theta, converted from radians to degrees by multiplying by 180/pi. This is an exact result, not an approximation, because the two loops differ only by that one delay term.
What does it mean if the calculator shows 'no crossover'?+
It means Kc times K is 1 or less, so the loop's magnitude never reaches 1 at any frequency and both the naive and Smith-predicted loops are already stable everywhere. There is no meaningful gain crossover frequency to compare phase margins at until Kc or K is increased enough to push Kc*K above 1.
Does a Smith Predictor eliminate the dead time itself?+
No. The physical dead time in the process is unchanged, the output still takes theta seconds to respond to a change at the input. What the Smith Predictor changes is how much of that delay's phase lag counts against the closed-loop stability margin, letting the controller be tuned more aggressively than the raw delayed process would otherwise allow.
What happens to a Smith Predictor when the internal model does not exactly match the real process?+
The stability guarantee weakens. This calculator's unconditional-stability result assumes a perfectly matched model (same K, tau, and theta as the real process), in practice, model mismatch reintroduces some dead-time-like phase lag into the loop the controller effectively sees, so real implementations still need a finite, well-tuned gain rather than an arbitrarily large one.
How is this different from the IMC or Cohen-Coon PID tuning calculators on this site?+
The IMC and Cohen-Coon calculators convert a first-order-plus-dead-time process directly into ready-to-use PID gains for ordinary feedback control. This calculator instead quantifies the specific benefit a Smith Predictor structure adds on top of feedback control, the phase margin and ultimate-gain improvement that comes purely from removing dead time from the loop the controller reacts to.

What is a Smith Predictor and why is it used?

A Smith Predictor is a control structure that uses an internal process model without the dead time to let the feedback controller react to a delay-free prediction of the output, instead of the actual delayed measurement. It compares the real delayed output against a delayed copy of the model's prediction to correct for disturbances and model error, letting the controller be tuned as if the process had no dead time at all.

What is dead time in a control system?

Dead time (also called transport delay or theta) is the time between a change in a process's input and the first sign of its effect on the measured output, common in processes with pipe flow, conveyor transport, or sensor sampling delay. It contributes phase lag that grows without bound as frequency increases, which is what eventually limits the maximum stable proportional gain in a naive feedback loop.

How do you calculate the naive ultimate gain Kcu for a process with dead time?

Kcu is the proportional gain at which the loop's phase first reaches -180 degrees, found by solving atan(omega*tau) + omega*theta = pi for the ultimate frequency omega, then Kcu = sqrt(1+(omega*tau)^2)/K. This is the same ultimate-gain concept used in the classic Ziegler-Nichols closed-loop tuning test.

Why does a Smith Predictor remove the ultimate gain limit entirely?

Because the controller in a Smith Predictor structure only ever sees the delay-free internal model K/(tau*s+1), and a bare first-order lag can contribute at most 90 degrees of phase lag at any frequency, it can never reach the 180 degrees of lag needed for the loop to go unstable under proportional control. With a perfectly matched model, the proportional gain can be increased without a theoretical upper limit.

Why do the naive and Smith-predicted loops share the same gain crossover frequency?

A pure time delay e^(-theta*s) has a magnitude of exactly 1 at every frequency, it is an all-pass filter that only shifts phase, never gain. Since the gain crossover frequency is defined purely by where the loop magnitude equals 1, removing the delay via Smith prediction cannot move that frequency, it only changes the phase measured there.

What is the formula for the phase margin improvement from Smith prediction?

The improvement is exactly the phase the dead time would have cost at the shared gain crossover frequency: delta PM = omega_gc times theta, converted from radians to degrees by multiplying by 180/pi. This is an exact result, not an approximation, because the two loops differ only by that one delay term.

What does it mean if the calculator shows 'no crossover'?

It means Kc times K is 1 or less, so the loop's magnitude never reaches 1 at any frequency and both the naive and Smith-predicted loops are already stable everywhere. There is no meaningful gain crossover frequency to compare phase margins at until Kc or K is increased enough to push Kc*K above 1.

Does a Smith Predictor eliminate the dead time itself?

No. The physical dead time in the process is unchanged, the output still takes theta seconds to respond to a change at the input. What the Smith Predictor changes is how much of that delay's phase lag counts against the closed-loop stability margin, letting the controller be tuned more aggressively than the raw delayed process would otherwise allow.

What happens to a Smith Predictor when the internal model does not exactly match the real process?

The stability guarantee weakens. This calculator's unconditional-stability result assumes a perfectly matched model (same K, tau, and theta as the real process); in practice, model mismatch reintroduces some dead-time-like phase lag into the loop the controller effectively sees, so real implementations still need a finite, well-tuned gain rather than an arbitrarily large one.

How is this different from the IMC or Cohen-Coon PID tuning calculators on this site?

The IMC and Cohen-Coon calculators convert a first-order-plus-dead-time process directly into ready-to-use PID gains for ordinary feedback control. This calculator instead quantifies the specific benefit a Smith Predictor structure adds on top of feedback control, the phase margin and ultimate-gain improvement that comes purely from removing dead time from the loop the controller reacts to.