Formula & Calculator

Gain Margin

Indicates how much the loop gain can increase before a feedback control system becomes unstable.

Control SystemsStability

Gain Margin Calculator Control Systems · GM = 1 / |G(jωpc)|

GM = 1 / |G(jωpc)|
GM = gain margin (dimensionless)  ·  |G(jωpc)| = magnitude at phase crossover  ·  ωpc = phase crossover frequency (rad/s)
⟹ Solve GM, GMdB, |G(jωpc)|
dB
rad/s
Informational — not used in calculation
Please fix the errors above.
Solve for:
Presets:
Gain Margin (GM)
GM (ratio): GM (dB): |G(jωpc)|: ωpc:
✓ Copied!
Gain Margin Gauge
Unstable (GM < 1) Marginal (GM = 1) Stable (GM > 1)
GM = 1 / |G(jωpc)|  ·  GMdB = 20·log₁₀(GM)  ·  GM > 1 (positive dB) → stable system

Interpretation

Gain margin GM = 1 / |G(jω_pc)|, where ω_pc is the phase crossover frequency (where phase = −180°).
It is a measure of how much the gain can be increased before the system becomes unstable.
Example: If |G(jω_pc)| = 0.5, then GM = 2 (or 6 dB), indicating moderate stability.

GM = 1 / |G(jω_pc)|
Gain Margin

Variables

SymbolQuantityUnit
GMGain margindimensionless
G(jω_pc)Open-loop transfer function at phase crossover frequencydimensionless
ω_pcPhase crossover frequencyrad/s

What it means

Gain margin (GM) is the amount by which the gain of a control system can be increased before it becomes unstable. It is defined as GM = 1 / |G(jω_pc)|, where ω_pc is the phase crossover frequency (where the phase is −180°). A positive gain margin (in dB) indicates stability. A gain margin of 6 dB is typically considered acceptable. Gain margin is measured from the Bode plot. Example: If at the phase crossover frequency, the magnitude is 0.5 (i.e., −6 dB), then GM = 1/0.5 = 2 (or 6 dB). This means the gain can be doubled before the system becomes unstable. A higher gain margin provides more robustness.

Worked example

Gain Margin – Practical Example

Real‑World
Scenario: At the phase crossover frequency, the magnitude of the open‑loop transfer function is |G(jω)| = 0.5. Find the gain margin.
ParameterValue
|G(jωpc)|0.5
FormulaGM = 1 / |G(jωpc)|
1GM = 1 / 0.5 = 2
2In dB: GMdB = 20·log₁₀(2) ≈ 6 dB
Final Design GM = 2 (6 dB) ✓ Stable
Why: Gain margin tells how much gain can be increased before instability – positive dB means stable.

Common mistakes

Watch unit consistency and the assumptions behind the formula; misapplying it outside its valid conditions is the most frequent error.

Applications

Gain margin GM = 1/|G(jω_pc)| is the amount of gain increase before instability, based on the phase crossover frequency. It is used in frequency‑domain stability analysis, along with phase margin. Engineers use it to ensure robust stability in the presence of uncertainties. This is a key metric in control system design.

  • Control system stability and robustness assessment
  • Loop gain design and compensation
  • Frequency response analysis (Bode, Nyquist)
  • System performance and tolerance analysis
  • Educational understanding of gain margin

Frequently Asked Questions

Q01What is gain margin and how is it defined?
A01

Gain margin is the amount by which the loop gain can be increased before the closed‑loop system becomes unstable. It is GM = 1 / |G(jω_pc)|, where ω_pc is the phase crossover frequency (where the phase is −180°).

Q02What is the gain margin in decibels?
A02

GM_dB = −20·log₁₀|G(jω_pc)|. A positive gain margin (in dB) indicates stability.

Q03What are typical gain margin values?
A03

A gain margin of 6‑10 dB is considered good.

Q04What is the phase crossover frequency?
A04

The frequency at which the phase of the open‑loop transfer function is −180°.

Q05What are common mistakes when using gain margin?
A05

Common errors: 1) confusing with phase margin, 2) using the wrong frequency, 3) applying to non‑minimum phase systems, 4) using the wrong units (linear vs dB).

Q06What are practical applications?
A06

Control system stability analysis, compensator design.

Q07How does gain margin relate to stability?
A07

A positive gain margin (in dB) indicates that the system is stable. A negative gain margin means instability.

Q08What is the difference between gain margin and phase margin?
A08

Gain margin measures how much gain can be increased before instability; phase margin measures how much phase lag can be added before instability.