Nyquist Stability Helper
Enter open-loop gain, phase crossover frequency, and gain crossover frequency to compute gain margin, phase margin, and closed-loop stability verdict.
Open-Loop Parameters
Open-loop gain magnitude where phase = −180°. Enter as a linear ratio (e.g. 0.25 means the gain is ¼ at that frequency).
Open-loop phase angle (degrees) where |G(jω)| = 1. Typically a negative value, e.g. −130°.
Optional: Crossover Frequencies
Stability Rule of Thumb
- GM > 6 dB and PM > 30° — robust stable
- GM 0–6 dB or PM 0–30° — stable but low margin
- GM ≤ 0 dB or PM ≤ 0° — unstable
Gain Margin (GM)
—
GM = −20 log₁₀|G(jωpc)|
Phase Margin (PM)
—
PM = 180° + ∠G(jωgc)
Gain Crossover ωgc
—
|G(jω)| = 1 at this frequency
Phase Crossover ωpc
—
∠G(jω) = −180° at this frequency
Calculation Breakdown
Interpretation
Summary
Enter open-loop gain, phase crossover frequency, and gain crossover frequency to compute gain margin, phase margin, and closed-loop stability verdict.
How it works
- Enter the open-loop gain at the phase crossover frequency (|G(jωpc)|).
- Enter the open-loop phase at the gain crossover frequency (∠G(jωgc)) in degrees.
- Optionally adjust the gain crossover and phase crossover frequencies.
- The tool computes gain margin = −20 log₁₀|G(jωpc)| and phase margin = 180° + ∠G(jωgc).
- A stability verdict is shown: stable (both margins positive), marginally stable (either margin ≈ 0), or unstable.
- Adjust parameters to explore how gain changes affect stability margins.
Use cases
- Verify a PID-tuned loop has adequate stability margins before deployment.
- Understand why a controller oscillates and find the minimum gain reduction needed.
- Teach Nyquist/Bode stability theory with an interactive numerical example.
- Quick sanity-check during early design before running full frequency-response simulation.
- Compare stability margins across different controller gains.
- Determine how much additional gain a system can tolerate before going unstable.
Frequently Asked Questions
Last updated: 2026-07-01 ·
Reviewed by Nham Vu