Calculates on this device. File exports run online.
Bode Plot Generator
Type a transfer function as N(s) ÷ D(s) (coefficients or an expression such as 100 ÷ (s(s + 1)(s + 10))), or its poles and zeros, or paste measured points. You get the magnitude and phase plots with the straight-line approximation, the break frequencies, the gain and phase margins and the bandwidth.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use the Bode plot generator
- Choose A transfer function and type the numerator and the denominator in s, for example 100 and s(s + 1)(s + 10). Or choose Poles, zeros and gain, or Measured frequency response to paste frequency, gain and phase.
- Under More options add a dead time, a frequency range, or the closed loop with unity feedback.
- Press Calculate. The tables give the magnitude and phase at many frequencies and the break frequencies with their damping.
- The box under the result works out the margins again on the server and adds Nyquist and step-response plots.
Reading a Bode plot
- Each real pole bends the magnitude down by 20 dB per decade from its break frequency |p| and adds up to −90° of phase; each real zero does the opposite. A complex pair bends by 40 dB per decade and may peak.
- Gain margin: how far the magnitude is below 0 dB where the phase is −180°. Phase margin: how far the phase is above −180° where the magnitude is 0 dB. Positive margins mean a stable closed loop (for an open loop with no unstable poles).
- A dead time θ adds a phase lag of θ ω (in radians) and changes no magnitude: it lowers the phase margin.
Worked example
L(s) = 100 ÷ (s (s + 1)(s + 10)) crosses 0 dB at 3.01 rad/s, where the phase is −178.4°: the phase margin is only 1.6°. The phase reaches −180° at √10 = 3.16 rad/s, where the gain is 0.83 dB below 0 dB: the gain margin.
Limits you should know
- Linear, time-invariant models only. Margins are read from the first crossings within the frequency range.
- Margins alone do not prove stability for an open loop with unstable poles: use the Nyquist plot from the box below.