Gain Margin Calculator
Calculate gain margin in dB from open-loop gain at the phase crossover frequency, with stability assessment.
System Parameters
Absolute magnitude (e.g. 0.25 means the gain is 25% of 1 at -180° phase).
If your Bode plot shows the gain in dB at ωpc, enter it here (negative = below 0 dB).
Enter for reference; does not affect the gain margin calculation.
Formula Reference
GM = 1 / |G(jωpc)|
GMdB = 20 × log₁₀(GM)
Stable: GMdB > 0 dB (GM > 1)
ωpc is the phase crossover frequency where ∠G(jω) = -180°.
Common Examples
| |G(jωpc)| | GM (ratio) | GM (dB) |
|---|---|---|
| 0.125 | 8.00 | +18.06 dB |
| 0.25 | 4.00 | +12.04 dB |
| 0.5 | 2.00 | +6.02 dB |
| 1.0 | 1.00 | 0.00 dB |
| 2.0 | 0.50 | -6.02 dB |
Click a row to load the example.
Copied!
Summary
Calculate gain margin in dB from open-loop gain at the phase crossover frequency, with stability assessment.
How it works
- Find the phase crossover frequency from your Bode plot — the frequency where phase equals -180 degrees.
- Read the open-loop gain magnitude at that frequency (as an absolute value, e.g. 0.25 or 2.0).
- Enter the gain value into the calculator.
- The gain margin is computed as GM = 1 / |G(jω_pc)| and converted to dB as 20 × log₁₀(GM).
- The stability assessment shows whether the system is stable (GM > 1, i.e. GM_dB > 0 dB).
Use cases
- Verify the stability margin of a PID-controlled plant before deployment.
- Design a compensator with a target gain margin of at least 6 dB.
- Cross-check gain margin readings from a Bode plot analysis tool.
- Determine how much extra gain can be added before a stable system goes unstable.
- Analyze robustness of a feedback amplifier circuit.
- Quickly convert a gain ratio to decibels for a control system report.
Frequently Asked Questions
Last updated: 2026-07-01 ·
Reviewed by Nham Vu