Contents

Control Systems
Introduction
Time Domain Analysis
Stability Analysis
Frequency Response
Compensators
State Space
Digital Control
Other Topics
Other Subjects
Section Progress42%

5 of 12 articles

Gain Margin

dB above 0 at phase crossover frequency.

Darshan N
Updated: 19 March 2026
12 min read

In frequency-domain analysis of control systems, knowing how much gain a system can tolerate before becoming unstable is essential for robust design. The gain margin quantifies exactly this tolerance and is one of the two most important stability metrics alongside phase margin. It is directly readable from a Bode plot and gives a clear dB value that separates a stable system from an unstable one.

Gain Margin on Bode PlotMagnitude (dB)0 dB-GMPhase crossover freqwpcGM = |G| at wpcPhase (deg)-180Phase = -180 here
Figure 1: Gain margin is the negative of the magnitude (dB) at the phase crossover frequency where phase equals -180 degrees.

Core Concept Explanation

The gain margin is defined as the amount by which the open-loop gain can be increased before the closed-loop system reaches the boundary of instability. Mathematically, it is evaluated at the phase crossover frequency (wpc), which is the frequency at which the open-loop phase angle equals exactly -180 degrees.

At wpc, the Nyquist criterion tells us that if the magnitude of G(jw)H(jw) equals 1 (0 dB), the system is marginally stable. If the magnitude is less than 1 (negative dB), the system is stable and the gain margin is the difference between 0 dB and the actual magnitude value at that frequency. A positive gain margin in dB means the system is stable.

For a minimum-phase system, the gain margin is expressed as GM = -20 log|G(jwpc)H(jwpc)| in dB. A larger positive GM implies greater stability robustness. Systems with GM less than 6 dB are generally considered to have poor stability margins in practical design.

Mathematical Expression

The gain margin formula follows directly from the definition. First, find wpc by solving angle(G(jwpc)H(jwpc)) = -180 degrees. Then compute the magnitude at that frequency.

Gain margin in dB is given by:

GM (dB) = 0 - 20 log10 |G(jwpc)H(jwpc)|

Equivalently, if the magnitude ratio is M = |G(jwpc)H(jwpc)|, then GM = 1/M as a ratio, or GM = -20 log10(M) in dB. If M is less than 1, GM is positive and the system is stable. If M exceeds 1 at the phase crossover, GM becomes negative indicating an unstable closed-loop system.

Practical Understanding

In real control systems, gain margin is important because system parameters such as actuator gains and sensor sensitivities can drift over time due to temperature, aging, or load changes. A healthy gain margin ensures the system remains stable even when the loop gain increases beyond its nominal design value.

Typically, practical control designs aim for a gain margin of at least 6 dB. This means the actual loop gain can double from its nominal value before instability occurs. Systems with very high gain margins are overly conservative and may have slow transient response. The goal is to balance stability margin with acceptable dynamic performance.

Example
Given:
Open-loop transfer function G(s) = K / [s(s+1)(s+2)], K = 1

Why this formula applies:
Find wpc where phase = -180 deg, then compute GM from |G(jwpc)|

Formula:
GM (dB) = -20 log10 |G(jwpc)|

Substitution:
Phase of G(jw) = -90 - arctan(w) - arctan(w/2)
Set total phase = -180:
-90 - arctan(w) - arctan(w/2) = -180
arctan(w) + arctan(w/2) = 90
Solving numerically: wpc = sqrt(2) = 1.414 rad/s

Magnitude at wpc:
|G(j1.414)| = 1 / [1.414 * sqrt(1+2) * sqrt(1+1)]
= 1 / [1.414 * 1.732 * 1.414]
= 1 / [3.464] = 0.2887

Calculation:
GM = -20 log10(0.2887) = -20 * (-0.5396) = +10.79 dB

Final Answer:
Gain Margin = 10.79 dB (system is stable)
Exam Tip: For GATE, if you see a type-2 or higher system where the phase plot never crosses -180 degrees, the gain margin is defined as infinity. Always check if wpc exists before computing GM.

Gain Margin and System Stability Connection

The following key points explain how gain margin connects directly to stability analysis.

  • Positive GM in dB always means the closed-loop system is stable for minimum-phase open-loop systems.
  • Negative GM means the system is already unstable even at the nominal gain setting.
  • GM = infinity occurs when the phase never reaches -180 degrees, common in first and second order systems.
  • For non-minimum-phase systems, a positive gain margin does not guarantee stability. The Nyquist criterion must be applied carefully.
  • On a Bode magnitude plot, GM is read as the vertical distance from the magnitude curve to the 0 dB line, measured at wpc.

Quick Revision

  • Gain margin is the dB gain that can be added before instability, measured at the phase crossover frequency (phase = -180 deg).
  • Formula: GM = -20 log10 |G(jwpc)H(jwpc)| in dB.
  • Positive GM means stable, negative GM means unstable for minimum-phase systems.
  • If the phase never crosses -180 degrees, GM is infinite (first or second order systems).
  • Practical design guideline: GM should be at least 6 dB for robust stability.
  • GATE trap: GM is defined at wpc not at the gain crossover frequency; phase margin is defined at the gain crossover frequency.

Gain Margin Quiz

Test your understanding of gain margin and its role in assessing closed-loop stability from open-loop frequency response.

Question 1 of 3

Q1.For a unity feedback system with open-loop transfer function G(s) = 10 / [s(s+1)(s+2)], the phase crossover frequency is approximately 1.41 rad/s. What is the gain margin?