Simuveliq

Control systems calculator

Draw a block diagram with transfer functions and get the closed-loop transfer function with step-by-step reduction. Check stability with the Routh–Hurwitz criterion and the stable range of K, the steady-state error, the step response, the root locus with its rules, the Bode and Nyquist plots with gain and phase margins, and design controllers.

What you can do

Frequently asked questions

How do I know if a control system is stable?

All closed-loop poles must have a negative real part. Routh's criterion checks it without computing the roots.

What is the root locus?

The paths of the closed-loop poles as a gain K goes from 0 to infinity.

How is a PID tuned?

A classic way is Ziegler–Nichols: find the ultimate gain Ku and period Pu, then Kp = 0.6Ku, Ti = Pu/2 and Td = Pu/8.

Guide: control system analysis step by step

A feedback control system compares the output with the reference and corrects the error. Analyzing it means answering three questions: is it stable? How does it respond over time (overshoot, settling time)? And what error remains at steady state? This guide explains the tools to answer them and works a complete example.

Closed-loop transfer function

With a plant G(s) and unity negative feedback,

T(s) = C(s)/R(s) = G(s) / (1 + G(s))

The poles of T(s), the roots of the characteristic equation 1 + G(s) = 0, determine the whole behavior. More complex block diagrams are reduced step by step: blocks in series multiply, blocks in parallel add, and a feedback loop is closed with the formula above.

Stability

The system is stable if every closed-loop pole has a negative real part. The Routh–Hurwitz criterion decides this without computing the roots: build the Routh array from the coefficients of the characteristic equation, and the number of sign changes in the first column is the number of poles in the right half-plane.

Response of a second-order system

Many systems behave like the standard second-order system ωn²/(s² + 2ζωns + ωn²), with natural frequency ωn and damping ratio ζ. For 0 < ζ < 1, under a step input:

Steady-state error

It depends on the system type (the number of integrators, poles at s = 0, in G) and on the input. With the constants Kp = lim G, Kv = lim s·G and Ka = lim s²·G as s → 0: for a step ess = 1/(1 + Kp), for a ramp ess = 1/Kv and for a parabola ess = 1/Ka.

Worked example

G(s) = 10 / (s(s + 2)) with unity feedback.

  1. Closed loop: T(s) = 10/(s² + 2s + 10). Comparing with the standard form: ωn = √10 ≈ 3.162 rad/s and 2ζωn = 2, so ζ ≈ 0.316. The poles are −1 ± 3j.
  2. Stability: the first Routh column is 1, 2, 10, with no sign changes: stable.
  3. Step: Mp = exp(−0.316π/0.949) ≈ 35.1 %; tp = π/3 ≈ 1.05 s; the estimate ts ≈ 4/1 = 4 s.
  4. Error: the system is type 1 (one integrator). For a step, ess = 0. For a ramp, Kv = lim s·10/(s(s + 2)) = 5, so ess = 1/5 = 0.2.

The tool gives Mp = 35.09 %, tp = 1.045 s and the same errors. For the settling time it gives 3.54 s, measured on the simulated response: the 4/(ζωn) formula is only an approximate bound. It also computes the phase margin, about 34.9° at 2.86 rad/s.

Root locus, Bode and design

The root locus shows how the closed-loop poles move as a gain K varies, and lets you choose K for a desired ζ. Bode and Nyquist plots analyze the frequency response and give the gain and phase margins, a measure of how far the system is from becoming unstable. With them, lead or lag compensators are designed and PID controllers are tuned.

How to use the tool

  1. Draw the block diagram (input, summing junctions, blocks with their transfer function, output) or load an example.
  2. Read the step-by-step reduction to T(s), the stability with the Routh array, the type and errors, and the step response with its poles.
  3. Explore the root locus, Bode and Nyquist, and use the design tabs: specifications, PID tuning, lead/lag, state space and digital control.

Common mistakes

Further reading

K. Ogata, Modern Control Engineering (Pearson); N. S. Nise, Control Systems Engineering (Wiley). Simuveliq is not affiliated with these authors or publishers.

More tools

Versión en español

© 2026 Simuveliq. All rights reserved.