Phase Margin Calculator

Enter your open-loop transfer function parameters to calculate phase margin and determine closed-loop stability.

Transfer Function Parameters

Model: G(s) = K · s-n / [(1+sT1)(1+sT2)(1+sT3)]


Real Poles (time constants, seconds)

Leave 0 to omit that pole.

Bode Plot Preview

Gain (top) and Phase (bottom) vs. frequency. Red dashed line marks the gain crossover.

Summary

Enter your open-loop transfer function parameters to calculate phase margin and determine closed-loop stability.

How it works

  1. Enter the DC gain (K) and the time constants or pole/zero frequencies of your open-loop transfer function.
  2. The calculator sweeps frequency to find the gain crossover frequency where |G(jω)| = 1 (0 dB).
  3. At that frequency, it computes the phase angle of G(jω) from each pole and zero contribution.
  4. Phase margin = 180° + ∠G(jω_gc). A positive value means the system is stable.
  5. The Bode-style gain and phase curves are plotted so you can visualize the crossover region.

Use cases

  • Verify that a compensated control loop meets a 45° phase margin design target.
  • Diagnose oscillatory closed-loop behavior by checking if phase margin is too low.
  • Compare phase margins before and after adding a lead compensator.
  • Teach or study classical control theory without needing MATLAB.
  • Quick sanity-check for motor drive, power-supply, or servo-loop designs.
  • Estimate stability before running expensive hardware-in-the-loop simulations.

Frequently Asked Questions

Last updated: 2026-07-01 · Reviewed by Nham Vu