Contents

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

7 of 12 articles

Gain and Phase Margin from Bode

Reading margins from Bode plot, stability.

Darshan N
Updated: 19 March 2026
12 min read

Reading stability margins from a Bode plot is one of the most practical and frequently tested skills in control systems. Once a Bode plot is drawn, both gain margin and phase margin can be directly extracted without any additional calculation. Understanding this graphical reading process builds intuition about how gain and phase interact to determine closed-loop stability.

Reading GM and PM from Bode PlotMagnitude (dB)0-GMwgcwpcGMPhase (deg)-180phaseat wgcPM
Figure 1: GM is read on the magnitude plot at wpc; PM is read on the phase plot at wgc. Both critical frequencies are linked by vertical reference lines.

Core Concept Explanation

A Bode plot consists of two separate graphs plotted against log frequency: the magnitude in dB on top and the phase in degrees below. The gain and phase margins are read by locating two special frequencies on these plots and measuring specific distances.

The gain crossover frequency (wgc) is where the magnitude curve crosses the 0 dB horizontal line. The phase crossover frequency (wpc) is where the phase curve crosses the -180 degree horizontal line. These two frequencies are at the center of margin reading.

To read gain margin: locate wpc on the frequency axis from the phase plot. Draw a vertical line up to the magnitude plot. Read the magnitude value at that point. The gain margin in dB is the negative of that value (or the distance from that point down to 0 dB if the magnitude is already below 0 dB at wpc).

To read phase margin: locate wgc on the frequency axis from the magnitude plot. Draw a vertical line down to the phase plot. Read the phase angle at that point. The phase margin equals that phase value minus (-180 degrees), which is the same as 180 plus the phase angle.

Mathematical Expression

The formulas for extracting margins from a Bode plot are identical to their analytical counterparts, but here the values are read graphically.

GM (dB) = -[Magnitude at wpc] = 0 - magnitude plot reading at wpc

PM (degrees) = 180 + [Phase at wgc] = phase plot reading at wgc minus (-180)

If the magnitude plot at wpc is below 0 dB by X dB, then GM = +X dB and the system is stable. If the phase plot at wgc shows a phase angle of -Y degrees, then PM = 180 - Y degrees.

Practical Understanding

When reading from a Bode plot, it is critical to identify whether both wpc and wgc actually exist. For a first-order or second-order system with no zeros in the right half plane, the phase never reaches -180 degrees, so wpc does not exist and gain margin is infinite. For such systems only the phase margin can be read.

A common practical scenario is when the magnitude plot crosses 0 dB at a frequency where the phase is already below -180 degrees. This means PM is negative even though the plot may visually appear to have a large crossing. Always check the sign of PM and GM before concluding stability.

Example
Given:
Bode plot reading for G(s) = 100 / [s(s+2)(s+10)]

Why this formula applies:
Direct graphical reading procedure is verified analytically here

Formula:
GM = -20 log10|G(jwpc)|, PM = 180 + angle(G(jwgc))

Substitution:
Find wpc: angle = -90 - arctan(w/2) - arctan(w/10) = -180
arctan(w/2) + arctan(w/10) = 90 => w = sqrt(2*10) = sqrt(20) = 4.47 rad/s

|G(j4.47)| = 100 / [4.47 * sqrt(4+20) * sqrt(100+20)]
= 100 / [4.47 * 4.899 * 10.95] = 100 / 239.8 = 0.417
GM = -20 log10(0.417) = 7.6 dB

Find wgc: |G(jw)| = 1 (solve numerically) => wgc approximately 3.1 rad/s
Phase at 3.1: -90 - arctan(1.55) - arctan(0.31) = -90 - 57.2 - 17.2 = -164.4 deg

Calculation:
PM = 180 + (-164.4) = 15.6 degrees

Final Answer:
GM = 7.6 dB, PM = 15.6 degrees (stable but low phase margin)
Exam Tip: In GATE numerical problems, if the Bode plot is given and you are asked for stability, always check BOTH margins. A system can have positive GM but negative PM, making it unstable. Neither margin alone is sufficient for a complete stability conclusion.

Margin Reading Step by Step

  • Step 1: On the phase plot, find the frequency where the phase curve crosses -180 degrees. This is wpc.
  • Step 2: Go to the magnitude plot at the same wpc frequency and read the magnitude in dB. GM = -(that value).
  • Step 3: On the magnitude plot, find the frequency where the curve crosses 0 dB. This is wgc.
  • Step 4: Go to the phase plot at wgc and read the phase in degrees. PM = 180 + (that phase value).
  • Step 5: Check signs: positive GM and positive PM both confirm stability for minimum-phase systems.

Quick Revision

  • wgc is where magnitude = 0 dB; wpc is where phase = -180 degrees.
  • GM = -(magnitude at wpc) in dB; read from top Bode plot.
  • PM = 180 + (phase at wgc) in degrees; read from bottom Bode plot.
  • A stable system has both positive GM (dB) and positive PM (degrees).
  • If phase never reaches -180 deg, GM = infinity (common in 1st and 2nd order systems).
  • GATE trap: wpc and wgc are different frequencies; mixing them up gives wrong margins entirely.

Bode Margins Quiz

Test your ability to extract gain and phase margins directly from Bode magnitude and phase plots.

Question 1 of 3

Q1.From a Bode plot, the magnitude plot crosses 0 dB at 10 rad/s and the phase at 10 rad/s is -150 degrees. The phase plot crosses -180 degrees at 50 rad/s and the magnitude at 50 rad/s is -20 dB. What are the gain margin and phase margin?