Root Locus Plotter
Plot how closed-loop poles move as gain K varies; interactive K slider shows closed-loop poles, open-loop poles, and zeros
This free online root locus plotter provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Supports both metric (SI) and imperial units with built-in unit selection dropdowns on every input field, so you can work in whatever units your problem provides. Designed for engineering students and professionals working through coursework, design projects, or quick reference calculations.
Root Locus Plotter
Plot how closed-loop poles move as gain K varies. Standard form: 1 + K · G(s) = 0. Includes asymptotes, breakaway points, jω crossings, ζ/ω_n design overlays, and stability indicator.
Open-loop transfer function
N(s) = 1, D(s) = s³ + 6s² + 5s
e.g. 1 0 -4 means s² − 4
e.g. 1 3 2 means s² + 3s + 2
× open-loop poles · ○ open-loop zeros · ★ current closed-loop poles · ▲ jω crossings (K_ult) · branches in distinct colors track each closed-loop pole as K varies from 0 to K_max
Closed-loop poles at K = 5.000
| Pole (s) | ω_n | ζ | Stable |
|---|---|---|---|
| -5.2264 | 5.226 | 1.000 | ✓ |
| -0.3868 + 0.8984j | 0.978 | 0.395 | ✓ |
| -0.3868 − 0.8984j | 0.978 | 0.395 | ✓ |
Critical K values
K_ult (instability boundary)
30.000
ω_x = 2.236 rad/s
K @ ζ = 0.7 (textbook target)
2.100
ζ = 0.701
K at first breakaway
1.128
s = -0.472
Plot overlays
System diagnostics
- Order: n = 3, m = 0, asymptotes = 3
- System type: Type 1
- Asymptote angles: 60°, 180°, -60° (centroid σ = -2.000)
- Real-axis breakaway: s = -0.472
How to Use This Calculator
Enter your input values
Fill in all required input fields for the Root Locus Plotter. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.
Review your inputs
Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The Root Locus Plotter instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
Formula Reference
Root Locus Plotter Formula
See calculator inputs for the governing equation
Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.
When to Use This Calculator
- •Use the Root Locus Plotter when solving homework or exam problems that require quick numerical verification of your hand calculations — instant feedback helps identify arithmetic errors before they propagate.
- •Use it during the early design phase to rapidly iterate on parameters and narrow down feasible configurations before committing time to detailed finite element simulations or full design packages.
- •Use it when reviewing a colleague's calculation or checking a vendor's data sheet for plausibility — a quick sanity check can prevent costly downstream errors.
- •Use it to generate reference data for a technical report or presentation without manual computation, ensuring consistent, reproducible numbers throughout the document.
- •Use it in the field when a quick estimate is needed and a full engineering software package is not available.
About This Calculator
The Root Locus Plotter is a precision engineering calculation tool designed for students, engineers, and technical professionals. Plot how closed-loop poles move as gain K varies; interactive K slider shows closed-loop poles, open-loop poles, and zeros All calculations are performed using established engineering formulas from the relevant scientific literature and standards. Inputs support both metric (SI) and imperial unit systems, with unit conversion handled automatically — simply select your preferred unit from the dropdown next to each field. Results are computed instantly in the browser without sending data to a server, ensuring both speed and privacy. This calculator is intended as a supplementary tool for learning and design exploration; always verify results against authoritative references for safety-critical applications.
The Theory Behind It
A root locus plot shows how the poles of a closed-loop system move in the complex plane as a parameter (typically the loop gain K) varies from 0 to infinity. The root locus is constructed for a characteristic equation 1 + K·G(s)·H(s) = 0. At K = 0, the closed-loop poles equal the open-loop poles. As K increases, the poles migrate along paths toward either open-loop zeros or infinity. Key construction rules: (1) the locus starts at open-loop poles (K = 0) and ends at open-loop zeros (K = ∞); (2) the number of branches equals the system order; (3) branches on the real axis exist where the number of poles+zeros to the right is odd; (4) asymptotes at ±180°/m for branches going to infinity, where m = n_poles − n_zeros; (5) breakaway points occur where d(G(s)·H(s))/ds = 0. The root locus shows the closed-loop pole locations at any gain value, enabling visual design of feedback controllers. A designer can see the maximum gain for stability, the effect of adding poles or zeros (compensator design), and the relationship between gain and damping. The calculator plots root locus interactively as gain K varies and marks dominant closed-loop pole locations.
Real-World Applications
- •Proportional gain tuning: determine the maximum gain K_max that keeps the closed-loop system stable, and choose operating gain well below this for robustness.
- •Lead-lag compensator design: evaluate the effect of adding zeros (lead) or poles (lag) on the root locus shape, and position them to achieve desired closed-loop performance.
- •Robustness analysis: see how closely the operating point is to the stability boundary (jω axis) to assess robustness to parameter variations.
- •PID controller design: interpret PID gains (P, I, D) in terms of their effect on the root locus and closed-loop pole locations.
- •Educational visualization: root locus is a powerful visual tool for understanding feedback control concepts and is taught in all undergraduate control courses.
Frequently Asked Questions
What is a root locus?
A root locus plot shows the trajectories of closed-loop poles in the complex plane as the loop gain K varies. Each branch starts at an open-loop pole (K = 0) and ends at either an open-loop zero or infinity (K = ∞). The plot reveals how closed-loop stability and transient response change with gain, enabling visual controller design.
Why is the root locus useful?
It provides visual insight into how feedback gain affects closed-loop pole locations, which determine stability and transient response. You can quickly see: maximum gain for stability, damping ratio at any given gain, effect of adding compensator zeros/poles, and how closely the operating point is to the jω-axis (stability boundary). This intuition is valuable for iterative controller design.
What's a breakaway point?
A breakaway point is where two root locus branches meet on the real axis and then split off into complex conjugate paths. It occurs where d(G·H)/ds = 0 on a valid portion of the real axis locus. Below the breakaway gain, poles are real (overdamped); above, they become complex (underdamped). Breakaway points are marked on root locus plots to help locate the transition.
How do I choose K from a root locus?
Select the gain that places closed-loop poles at a desired location (based on target damping ratio, settling time, or overshoot). Use the magnitude condition |K·G·H| = 1 to compute K at the chosen point. Alternatively, use the phase condition ∠(G·H) = ±180° to verify the point is on the locus and measure the distance from poles and zeros to compute K graphically.
What's the stability limit on a root locus?
The gain at which a closed-loop pole crosses the jω axis (imaginary axis) from left to right. Below this gain, all poles are in the left half plane (stable). Above this gain, at least one pole is in the right half plane (unstable). The crossing gain and frequency can be found using the Routh-Hurwitz method or by graphical estimation.
Worked Examples
Example 1: Ogata Ex 6-1: 3rd-order type-1 plant — find K_ult and asymptotes
G(s) = 1 / (s(s+1)(s+5)) — open-loop poles at s = 0, −1, −5; no zeros. Find: number of asymptotes, asymptote angles, centroid, and K_ult (the gain at which the closed loop just becomes unstable).
n = 3 asymptotes at ±60° and 180° intersecting at σ_a = −2. K_ult = 30 with crossing frequency ω_x = √5 rad/s. Picking the default plant in this calculator and pushing K past 30 will visually confirm the locus crossing the jω axis at ±j2.236.
Example 2: Type-1 plant: find K for a target ζ = 0.7
G(s) = 1 / (s(s+5)) — proportional control with a target damping ratio ζ = 0.7 for the dominant complex pole pair. Determine the required K and the resulting natural frequency ω_n.
K ≈ 12.76 places the dominant pole pair at s = −2.5 ± j2.551, achieving ζ = 0.7. Settling time t_s ≈ 4/(ζω_n) = 4/2.5 = 1.6 s. The 'K @ ζ = 0.7' card in this calculator's readout displays this value automatically for any plant.
Example 3: Lead compensator: improve stability margin
Plant G_p(s) = 1/((s+1)(s+5)) is well damped but slow. A lead compensator C(s) = (s + 2)/(s + 10) is added in series so the open-loop becomes G(s) = (s + 2)/((s+1)(s+5)(s+10)). Show how the lead zero pulls the locus toward more negative real parts and improves stability margin compared to plain proportional control.
Adding the lead zero shifts the asymptote centroid from −3 to −7, moves branches further into the LHP, and dramatically extends the stable K range. This is the signature behavior of lead compensation — improved stability + faster response from the same proportional gain.
Common Mistakes & Tips
- !Forgetting that n − m branches go to infinity (along the asymptotes); novices often draw only the bounded portion and miss the K → ∞ behavior.
- !Computing the centroid as (Σ poles)/(n − m) without subtracting Σ zeros. The correct formula is σ_a = (Σ poles − Σ zeros)/(n − m), and zero contributions are critical for compensator design.
- !Confusing breakaway points (locus leaves the real axis as K increases) with break-in points (locus returns to the real axis). Both satisfy d K/d s = 0 but have opposite local trends in K.
- !Treating open-loop poles as if they were closed-loop poles. The OL poles are only the K = 0 starting points — closed-loop pole locations move as K varies and are what determines stability.
- !Misreading asymptote angles when n − m is even. For n − m = 2, the angles are ±90° (purely vertical), which means the asymptotes never close back; the centroid is the only finite reference point.
- !Skipping the magnitude condition K = 1/|G(s)| when designing for a specific pole location. The phase condition tells you whether a point is on the locus; the magnitude condition tells you what K puts it there.
Related Concepts
Transfer Function Calculator
Compute poles, zeros, DC gain, and stability of any G(s) — useful for verifying the open-loop you're feeding into the root locus.
Second-Order System Calculator
Once K places your dominant CL pole pair, this calculator gives the time-domain specs (overshoot, settling time, rise time) for that ω_n and ζ.
Bode Plot Generator
Frequency-domain companion. Phase margin near 60° corresponds to ζ ≈ 0.6 — a quick frequency-domain check on your damping target.
Nyquist Stability Calculator
Computes gain and phase margins from G(s) — complements the K_ult value the root locus gives you.
PID Controller Tuner
Pick PID gains (K_p, K_i, K_d) using Ziegler-Nichols / Cohen-Coon and verify the resulting closed-loop on the root locus.
Related Calculators
Transfer Function Calculator
Analyze transfer functions: compute poles, zeros, DC gain, system order, system type, and stability from numerator/denominator coefficients
Bode Plot Generator
Generate interactive Bode plots (magnitude and phase) from transfer function coefficients with gain margin, phase margin, and crossover frequencies
Step Response Calculator
Compute and plot unit step response for 1st and 2nd order systems with rise time, settling time, overshoot, and peak time metrics
PID Controller Tuner
Automatic PID tuning using Ziegler-Nichols (open-loop and closed-loop) and Cohen-Coon methods with step response comparison chart
Routh-Hurwitz Stability Calculator
Build the full Routh array for any-order polynomial, determine stability, and count right-half-plane poles from the characteristic equation
Nyquist Stability Calculator
Compute gain margin (dB), phase margin (degrees), gain crossover frequency, and phase crossover frequency from open-loop transfer function
References & Further Reading
Academic Resources
Industry References
Textbooks
- Ogata, K.. Modern Control Engineering, 5th ed., 2010. Pearson.ISBN 978-0136156734
Chapter 6 is the standard reference for root-locus method including the construction rules (asymptotes, breakaway, jω crossings) implemented in this calculator. Example 6-1 — G(s) = 1/(s(s+1)(s+5)) — is the default plant on first load and produces K_ult = 30, ω_x = √5.
- Nise, N. S.. Control Systems Engineering, 8th ed., 2019. Wiley.ISBN 978-1119474227
Chapter 8 covers root-locus design with extensive worked examples. The undergraduate go-to text for the magnitude and phase conditions used to interpret root-locus plots.
- Franklin, G. F., Powell, J. D., Emami-Naeini, A.. Feedback Control of Dynamic Systems, 8th ed., 2019. Pearson.ISBN 978-0134685717
Chapter 5 connects root-locus to compensator design (lead, lag, lead-lag). Useful when designing a compensator C(s) to reshape the locus around an existing plant G_p(s).