Gain margin (GM) is the factor by which the open-loop gain can be increased before instability, measured at the phase crossover frequency ωpc where phase = −180°; it is expressed in dB as GM = −20log|G(jωpc)H(jωpc)|. Phase margin (PM) is the additional phase lag that would bring the system to instability, measured at the gain crossover frequency ωgc as PM = 180° + ∠G(jωgc)H(jωgc). Both margins together quantify robustness: practical design typically requires GM > 6 dB and PM between 30° and 60°. Phase margin is approximately related to closed-loop damping ratio by PM ≈ 100ζ for ζ < 0.7, making it a convenient design handle.
Read gain and phase margins directly from Bode plots and verify consistency with Nyquist encirclement analysis. Observe how increasing the gain K shifts only the magnitude curve downward, simultaneously changing both margins.
From Bode plot analysis, you know how to read the open-loop gain and phase as functions of frequency. From the Nyquist and Routh-Hurwitz criteria, you have tools to determine whether a closed-loop system is stable. Gain and phase margins translate that stability question into two numbers that are easy to read from a Bode plot and immediately interpretable: how much further can the gain increase, or the phase lag grow, before the system loses stability?
The critical frequency to locate first is the phase crossover frequency ω_pc — the frequency where the open-loop phase equals exactly −180°. At ω_pc, the feedback signal is phase-inverted relative to the input. If the open-loop gain at that frequency were also exactly 1 (0 dB), the feedback would sustain oscillation indefinitely: the Barkhausen criterion for oscillation is unity loop gain at 180° phase shift. The gain margin is how far the actual gain is *below* 0 dB at ω_pc, expressed in dB: GM = −20log|G(jω_pc)H(jω_pc)|. A gain margin of 10 dB means the gain could increase by a factor of √10 ≈ 3.16 before crossing into instability. The larger the gain margin, the more tolerant the system is to component variation, modeling error, and aging.
The complementary concept works at a different frequency. The gain crossover frequency ω_gc is where the open-loop magnitude is exactly 0 dB (unity gain). At this frequency, the system is vulnerable to instability if the phase is also near −180°. The phase margin is the additional phase lag that would bring the phase to exactly −180° at ω_gc: PM = 180° + ∠G(jω_gc)H(jω_gc). A 45° phase margin means the phase could lag an additional 45° before instability — a comfortable buffer. The practical design rules GM > 6 dB and PM between 30° and 60° reflect engineering experience: too little margin risks instability under component tolerance; too much margin produces a sluggish, overdamped closed-loop response.
The connection PM ≈ 100ζ (for ζ < 0.7) links phase margin directly to closed-loop transient behavior. A 45° phase margin corresponds to approximately ζ ≈ 0.45 — mild underdamping with moderate overshoot. A 60° phase margin corresponds to ζ ≈ 0.6 — well damped with little overshoot. This mapping lets you translate closed-loop performance specifications (maximum overshoot, settling time) into open-loop Bode plot targets, which you can then achieve by adjusting gain or adding lead-lag compensators. Gain and phase margins are therefore not just stability tests — they are the primary design handles connecting loop-shaping on Bode plots to closed-loop transient performance.