Skip to main content
engineering

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

Reviewed by Christopher FloiedPublished Updated

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

G(s)=K1s3+6s2+5sG(s) = K \cdot \frac{1}{s^{3} + 6s^{2} + 5s}

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

STABLE at K = 5.000

Closed-loop poles at K = 5.000

Pole (s)ω_nζStable
-5.22645.2261.000
-0.3868 + 0.8984j0.9780.395
-0.3868 − 0.8984j0.9780.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

1

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.

2

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.

3

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.

4

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).

Step 1:Polynomial form: N(s) = 1 (m = 0 zeros), D(s) = s³ + 6s² + 5s (n = 3 poles). Plant order n = 3, n − m = 3.
Step 2:Number of asymptotes = n − m = 3. (Three branches go to infinity as K → ∞.)
Step 3:Asymptote angles: θ_k = (2k+1) · 180°/(n − m) for k = 0, 1, 2 → 60°, 180°, −60° (or equivalently 300°).
Step 4:Centroid: σ_a = (Σ poles − Σ zeros)/(n − m) = ((0 + (−1) + (−5)) − 0)/3 = −6/3 = −2. The three asymptotes intersect the real axis at s = −2.
Step 5:Routh-Hurwitz array for the closed-loop characteristic equation s³ + 6s² + 5s + K = 0:
Step 6: s³ row: 1 5
Step 7: s² row: 6 K
Step 8: s¹ row: (30 − K)/6
Step 9: s⁰ row: K
Step 10:Stability requires all entries in the first column positive: 6 > 0 ✓, (30 − K)/6 > 0 ⇒ K < 30, K > 0. So K_ult = 30.
Step 11:At K = K_ult = 30, the s¹ entry is zero — auxiliary equation: 6s² + 30 = 0 → s² = −5 → ω_x = √5 ≈ 2.236 rad/s.

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.

Step 1:Closed-loop characteristic equation: 1 + K/(s(s+5)) = 0 ⇒ s² + 5s + K = 0.
Step 2:Standard 2nd-order form: s² + 2ζω_n·s + ω_n² = 0. Match coefficients: 2ζω_n = 5 (so ζ·ω_n = 2.5), ω_n² = K.
Step 3:Apply target ζ = 0.7: ω_n = 2.5/ζ = 2.5/0.7 = 3.571 rad/s.
Step 4:Compute K from ω_n²: K = (3.571)² = 12.755.
Step 5:Verify the closed-loop poles: s = −ζω_n ± jω_n·√(1−ζ²) = −2.5 ± j(3.571)(√0.51) = −2.5 ± j2.551.
Step 6:Verify ζ from poles: ω_n = √(2.5² + 2.551²) = √(6.25 + 6.508) = 3.572 ✓; ζ = 2.5/3.572 = 0.700 ✓.

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.

Step 1:Without lead (G_p only): n − m = 2 asymptotes at ±90°, centroid σ = −3. K_ult is finite (locus eventually crosses jω at high K).
Step 2:With lead (G full): n = 3 OL poles {−1, −5, −10}, m = 1 OL zero {−2}. n − m = 2 asymptotes at ±90°, centroid σ_new = ((−1 − 5 − 10) − (−2))/(3 − 1) = −14/2 = −7.
Step 3:Centroid moved from σ = −3 (without lead) to σ_new = −7 (with lead). The asymptotes are now anchored further into the LHP — branches stay further from the imaginary axis as K grows.
Step 4:The lead zero at s = −2 attracts a branch that would otherwise go to infinity. One CL pole rapidly settles near s = −2 instead of moving toward the jω axis.
Step 5:Net effect: K_ult with lead is much higher (or infinite — system is unconditionally stable) compared to plain G_p. Try this in the calculator: set N = '1 2', D = '1 16 65 50' (which is (s+1)(s+5)(s+10) with the lead zero numerator), and observe the asymptote centroid jumping to σ = −7.

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

Related Calculators

References & Further Reading

Wikipedia

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).