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.
Results
Gain crossover freq.
—
Phase at crossover
—
Phase Margin
—
Stability verdict
—
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
- Enter the DC gain (K) and the time constants or pole/zero frequencies of your open-loop transfer function.
- The calculator sweeps frequency to find the gain crossover frequency where |G(jω)| = 1 (0 dB).
- At that frequency, it computes the phase angle of G(jω) from each pole and zero contribution.
- Phase margin = 180° + ∠G(jω_gc). A positive value means the system is stable.
- 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