Skip to main content
engineering

Bode Plot Generator

Generate interactive Bode plots (magnitude and phase) from transfer function coefficients with gain margin, phase margin, and crossover frequencies

By Christopher FloiedPublished Updated

Enter transfer function coefficients (highest power first). Frequency range: 0.01–1000 rad/s, widened automatically to include every pole, zero and nearby crossover; a crossover far outside the plotted band is listed below the chart.

Closed loop STABLE

From the roots of D(s) + N(s) (unity negative feedback). This holds for every plant; the margins below are local measures and can look healthy for an unstable loop.

Gain Crossover
N/A
Phase Crossover
N/A
Phase Margin
N/A
Gain Margin
N/A

Magnitude (dB)

Tip: hover to read values, click to pin a point for export

Phase (degrees)

Tip: hover to read values, click to pin a point for export

Gain crossovers (|G| = 0 dB): none in the sweep

Phase crossovers (∠G ≡ −180°): none in the sweep

The cards show the worst case — the smallest |PM| and the smallest |GM|. Plotted ω: 0.01–1000 rad/s.

Frequency-Response Data Table

ω (rad/s)f (Hz)Magnitude (dB)|G(jω)|Phase (°)
1.000e-21.592e-3-6.0215.000e-1-0.859
1.039e-21.654e-3-6.0215.000e-1-0.893
1.080e-21.719e-3-6.0215.000e-1-0.928
1.122e-21.786e-3-6.0215.000e-1-0.965
1.167e-21.857e-3-6.0215.000e-1-1.003
1.212e-21.929e-3-6.0215.000e-1-1.042
1.260e-22.005e-3-6.0215.000e-1-1.083
1.309e-22.084e-3-6.0224.999e-1-1.125
1.361e-22.166e-3-6.0224.999e-1-1.169
1.414e-22.251e-3-6.0224.999e-1-1.215
1.470e-22.339e-3-6.0224.999e-1-1.263
1.527e-22.431e-3-6.0224.999e-1-1.313
1.587e-22.526e-3-6.0224.999e-1-1.364
1.650e-22.625e-3-6.0224.999e-1-1.418
1.714e-22.729e-3-6.0224.999e-1-1.473
1.782e-22.836e-3-6.0224.999e-1-1.531
1.852e-22.947e-3-6.0224.999e-1-1.591
1.924e-23.063e-3-6.0234.999e-1-1.654
2.000e-23.183e-3-6.0234.999e-1-1.719
2.078e-23.308e-3-6.0234.999e-1-1.786
2.160e-23.438e-3-6.0234.999e-1-1.856
2.245e-23.573e-3-6.0234.998e-1-1.929
2.333e-23.713e-3-6.0244.998e-1-2.005
2.424e-23.859e-3-6.0244.998e-1-2.083
2.520e-24.010e-3-6.0244.998e-1-2.165
2.619e-24.168e-3-6.0244.998e-1-2.250
2.721e-24.331e-3-6.0254.998e-1-2.338
2.828e-24.501e-3-6.0254.998e-1-2.430
2.939e-24.678e-3-6.0254.997e-1-2.526
3.055e-24.861e-3-6.0264.997e-1-2.625
3.174e-25.052e-3-6.0264.997e-1-2.728
3.299e-25.251e-3-6.0274.997e-1-2.835
3.429e-25.457e-3-6.0274.996e-1-2.946
3.563e-25.671e-3-6.0274.996e-1-3.061
3.703e-25.894e-3-6.0284.996e-1-3.181
3.848e-26.125e-3-6.0294.995e-1-3.306
4.000e-26.365e-3-6.0294.995e-1-3.436
4.157e-26.615e-3-6.0304.995e-1-3.571
4.320e-26.875e-3-6.0314.994e-1-3.711
4.489e-27.145e-3-6.0324.994e-1-3.856
4.665e-27.425e-3-6.0324.993e-1-4.008
4.849e-27.717e-3-6.0334.993e-1-4.165
5.039e-28.020e-3-6.0344.992e-1-4.328
5.237e-28.335e-3-6.0354.991e-1-4.498
5.442e-28.662e-3-6.0374.991e-1-4.674
5.656e-29.002e-3-6.0384.990e-1-4.857
5.878e-29.355e-3-6.0394.989e-1-5.047
6.109e-29.722e-3-6.0414.988e-1-5.245
6.349e-21.010e-2-6.0424.987e-1-5.451
6.598e-21.050e-2-6.0444.986e-1-5.664
6.857e-21.091e-2-6.0464.985e-1-5.886
7.126e-21.134e-2-6.0484.984e-1-6.117
7.406e-21.179e-2-6.0504.983e-1-6.356
7.696e-21.225e-2-6.0534.982e-1-6.605
7.999e-21.273e-2-6.0554.980e-1-6.863
8.313e-21.323e-2-6.0584.979e-1-7.132
8.639e-21.375e-2-6.0614.977e-1-7.411
8.978e-21.429e-2-6.0644.975e-1-7.701
9.330e-21.485e-2-6.0684.973e-1-8.002
9.697e-21.543e-2-6.0714.971e-1-8.314
1.008e-11.604e-2-6.0754.969e-1-8.639
1.047e-11.667e-2-6.0804.966e-1-8.976
1.088e-11.732e-2-6.0854.963e-1-9.327
1.131e-11.800e-2-6.0904.960e-1-9.690
1.176e-11.871e-2-6.0954.957e-1-10.068
1.222e-11.944e-2-6.1014.954e-1-10.461
1.270e-12.021e-2-6.1084.950e-1-10.868
1.319e-12.100e-2-6.1144.946e-1-11.291
1.371e-12.182e-2-6.1224.942e-1-11.730
1.425e-12.268e-2-6.1304.937e-1-12.186
1.481e-12.357e-2-6.1394.933e-1-12.660
1.539e-12.450e-2-6.1484.927e-1-13.151
1.600e-12.546e-2-6.1584.922e-1-13.661
1.662e-12.646e-2-6.1694.915e-1-14.190
1.728e-12.750e-2-6.1814.909e-1-14.739
1.795e-12.858e-2-6.1934.902e-1-15.309
1.866e-12.970e-2-6.2074.894e-1-15.900
1.939e-13.086e-2-6.2224.886e-1-16.513
2.015e-13.208e-2-6.2374.877e-1-17.149
2.094e-13.333e-2-6.2544.867e-1-17.808
2.177e-13.464e-2-6.2734.857e-1-18.491
2.262e-13.600e-2-6.2934.846e-1-19.200
2.351e-13.742e-2-6.3144.834e-1-19.934
2.443e-13.888e-2-6.3374.821e-1-20.694
2.539e-14.041e-2-6.3614.808e-1-21.482
2.639e-14.200e-2-6.3884.793e-1-22.298
2.742e-14.365e-2-6.4164.777e-1-23.143
2.850e-14.536e-2-6.4474.760e-1-24.018
2.962e-14.714e-2-6.4804.742e-1-24.923
3.078e-14.899e-2-6.5154.723e-1-25.859
3.199e-15.091e-2-6.5534.702e-1-26.827
3.325e-15.291e-2-6.5944.680e-1-27.828
3.455e-15.499e-2-6.6384.657e-1-28.862
3.591e-15.715e-2-6.6854.632e-1-29.930
3.732e-15.939e-2-6.7354.605e-1-31.033
3.878e-16.172e-2-6.7894.576e-1-32.171
4.030e-16.415e-2-6.8474.546e-1-33.345
4.189e-16.666e-2-6.9094.514e-1-34.556
4.353e-16.928e-2-6.9754.480e-1-35.803
4.524e-17.200e-2-7.0464.443e-1-37.087
4.702e-17.483e-2-7.1224.405e-1-38.410
4.886e-17.776e-2-7.2024.364e-1-39.769
5.078e-18.082e-2-7.2884.321e-1-41.167
5.277e-18.399e-2-7.3804.276e-1-42.603
5.484e-18.729e-2-7.4784.228e-1-44.077
5.700e-19.071e-2-7.5814.178e-1-45.589
5.923e-19.427e-2-7.6924.125e-1-47.138
6.156e-19.798e-2-7.8094.069e-1-48.725
6.398e-11.018e-1-7.9344.012e-1-50.348
6.649e-11.058e-1-8.0663.951e-1-52.008
6.910e-11.100e-1-8.2053.888e-1-53.703
7.181e-11.143e-1-8.3533.822e-1-55.433
7.463e-11.188e-1-8.5103.754e-1-57.197
7.756e-11.234e-1-8.6743.684e-1-58.993
8.060e-11.283e-1-8.8483.611e-1-60.820
8.377e-11.333e-1-9.0313.535e-1-62.678
8.706e-11.386e-1-9.2243.458e-1-64.564
9.047e-11.440e-1-9.4263.378e-1-66.477
9.403e-11.496e-1-9.6393.297e-1-68.416
9.772e-11.555e-1-9.8613.213e-1-70.377
1.016e+01.616e-1-10.0943.128e-1-72.361
1.055e+01.680e-1-10.3383.042e-1-74.364
1.097e+01.746e-1-10.5932.954e-1-76.384
1.140e+01.814e-1-10.8582.865e-1-78.420
1.185e+01.885e-1-11.1352.775e-1-80.469
1.231e+01.959e-1-11.4222.685e-1-82.529
1.279e+02.036e-1-11.7222.594e-1-84.597
1.330e+02.116e-1-12.0322.503e-1-86.672
1.382e+02.199e-1-12.3542.412e-1-88.750
1.436e+02.286e-1-12.6872.321e-1-90.830
1.492e+02.375e-1-13.0322.231e-1-92.909
1.551e+02.469e-1-13.3882.141e-1-94.985
1.612e+02.566e-1-13.7562.052e-1-97.055
1.675e+02.666e-1-14.1341.965e-1-99.116
1.741e+02.771e-1-14.5251.878e-1-101.168
1.809e+02.880e-1-14.9261.794e-1-103.206
1.880e+02.993e-1-15.3381.710e-1-105.230
1.954e+03.110e-1-15.7611.629e-1-107.237
2.031e+03.232e-1-16.1951.550e-1-109.224
2.111e+03.359e-1-16.6391.473e-1-111.191
2.193e+03.491e-1-17.0931.397e-1-113.134
2.280e+03.628e-1-17.5581.325e-1-115.052
2.369e+03.771e-1-18.0321.254e-1-116.944
2.462e+03.919e-1-18.5161.186e-1-118.807
2.559e+04.072e-1-19.0091.121e-1-120.641
2.659e+04.232e-1-19.5111.058e-1-122.444
2.764e+04.398e-1-20.0229.974e-2-124.214
2.872e+04.571e-1-20.5429.395e-2-125.951
2.985e+04.750e-1-21.0698.842e-2-127.653
3.102e+04.937e-1-21.6058.313e-2-129.320
3.224e+05.131e-1-22.1487.809e-2-130.951
3.350e+05.332e-1-22.6987.330e-2-132.545
3.482e+05.541e-1-23.2556.875e-2-134.102
3.618e+05.759e-1-23.8196.443e-2-135.621
3.761e+05.985e-1-24.3896.034e-2-137.103
3.908e+06.220e-1-24.9655.646e-2-138.546
4.062e+06.464e-1-25.5465.281e-2-139.952
4.221e+06.718e-1-26.1334.935e-2-141.319
4.387e+06.982e-1-26.7264.610e-2-142.649
4.559e+07.256e-1-27.3234.304e-2-143.941
4.738e+07.541e-1-27.9254.016e-2-145.196
4.924e+07.837e-1-28.5313.745e-2-146.414
5.117e+08.144e-1-29.1413.491e-2-147.595
5.318e+08.464e-1-29.7563.253e-2-148.740
5.527e+08.796e-1-30.3733.029e-2-149.850
5.744e+09.141e-1-30.9952.820e-2-150.925
5.969e+09.500e-1-31.6192.625e-2-151.966
6.204e+09.873e-1-32.2472.442e-2-152.974
6.447e+01.026e+0-32.8772.271e-2-153.948
6.700e+01.066e+0-33.5102.111e-2-154.891
6.963e+01.108e+0-34.1451.962e-2-155.802
7.237e+01.152e+0-34.7831.823e-2-156.683
7.521e+01.197e+0-35.4231.694e-2-157.534
7.816e+01.244e+0-36.0651.573e-2-158.355
8.123e+01.293e+0-36.7091.461e-2-159.149
8.442e+01.344e+0-37.3551.356e-2-159.915
8.773e+01.396e+0-38.0021.259e-2-160.655
9.117e+01.451e+0-38.6511.168e-2-161.368
9.475e+01.508e+0-39.3011.084e-2-162.057
9.847e+01.567e+0-39.9531.005e-2-162.721
1.023e+11.629e+0-40.6059.327e-3-163.361
1.064e+11.693e+0-41.2598.650e-3-163.978
1.105e+11.759e+0-41.9148.022e-3-164.574
1.149e+11.828e+0-42.5717.438e-3-165.148
1.194e+11.900e+0-43.2286.896e-3-165.701
1.241e+11.975e+0-43.8856.393e-3-166.234
1.289e+12.052e+0-44.5445.927e-3-166.748
1.340e+12.133e+0-45.2035.493e-3-167.243
1.393e+12.216e+0-45.8645.091e-3-167.720
1.447e+12.303e+0-46.5244.718e-3-168.179
1.504e+12.394e+0-47.1864.372e-3-168.622
1.563e+12.488e+0-47.8474.052e-3-169.048
1.624e+12.585e+0-48.5103.754e-3-169.458
1.688e+12.687e+0-49.1733.478e-3-169.854
1.754e+12.792e+0-49.8363.223e-3-170.235
1.823e+12.902e+0-50.5002.985e-3-170.601
1.895e+13.016e+0-51.1642.766e-3-170.954
1.969e+13.134e+0-51.8282.562e-3-171.294
2.047e+13.257e+0-52.4932.373e-3-171.621
2.127e+13.385e+0-53.1582.198e-3-171.936
2.210e+13.518e+0-53.8242.036e-3-172.240
2.297e+13.656e+0-54.4891.886e-3-172.532
2.387e+13.800e+0-55.1551.747e-3-172.813
2.481e+13.949e+0-55.8211.618e-3-173.083
2.579e+14.104e+0-56.4871.498e-3-173.344
2.680e+14.265e+0-57.1541.388e-3-173.595
2.785e+14.432e+0-57.8211.285e-3-173.836
2.894e+14.606e+0-58.4871.190e-3-174.068
3.008e+14.787e+0-59.1541.102e-3-174.292
3.126e+14.975e+0-59.8221.021e-3-174.507
3.249e+15.170e+0-60.4899.453e-4-174.714
3.376e+15.373e+0-61.1568.754e-4-174.913
3.509e+15.584e+0-61.8248.106e-4-175.105
3.646e+15.804e+0-62.4917.507e-4-175.290
3.790e+16.031e+0-63.1596.951e-4-175.467
3.938e+16.268e+0-63.8276.437e-4-175.638
4.093e+16.514e+0-64.4955.960e-4-175.803
4.254e+16.770e+0-65.1625.519e-4-175.961
4.421e+17.036e+0-65.8315.111e-4-176.114
4.594e+17.312e+0-66.4994.732e-4-176.260
4.775e+17.599e+0-67.1674.382e-4-176.401
4.962e+17.897e+0-67.8354.057e-4-176.537
5.157e+18.207e+0-68.5033.757e-4-176.668
5.359e+18.529e+0-69.1713.479e-4-176.794
5.570e+18.864e+0-69.8403.221e-4-176.915
5.788e+19.212e+0-70.5082.983e-4-177.031
6.015e+19.574e+0-71.1772.762e-4-177.143
6.252e+19.950e+0-71.8452.557e-4-177.251
6.497e+11.034e+1-72.5142.368e-4-177.355
6.752e+11.075e+1-73.1822.192e-4-177.455
7.017e+11.117e+1-73.8512.030e-4-177.551
7.292e+11.161e+1-74.5191.880e-4-177.643
7.579e+11.206e+1-75.1881.740e-4-177.732
7.876e+11.254e+1-75.8561.611e-4-177.818
8.185e+11.303e+1-76.5251.492e-4-177.900
8.507e+11.354e+1-77.1941.381e-4-177.980
8.841e+11.407e+1-77.8621.279e-4-178.056
9.188e+11.462e+1-78.5311.184e-4-178.129
9.548e+11.520e+1-79.2001.097e-4-178.200
9.923e+11.579e+1-79.8681.015e-4-178.268
1.031e+21.641e+1-80.5379.400e-5-178.333
1.072e+21.706e+1-81.2068.704e-5-178.396
1.114e+21.773e+1-81.8758.059e-5-178.457
1.158e+21.842e+1-82.5437.462e-5-178.515
1.203e+21.915e+1-83.2126.909e-5-178.571
1.250e+21.990e+1-83.8816.397e-5-178.625
1.299e+22.068e+1-84.5505.923e-5-178.677
1.350e+22.149e+1-85.2195.484e-5-178.727
1.403e+22.233e+1-85.8875.077e-5-178.775
1.458e+22.321e+1-86.5564.701e-5-178.821
1.516e+22.412e+1-87.2254.353e-5-178.866
1.575e+22.507e+1-87.8944.030e-5-178.909
1.637e+22.605e+1-88.5633.731e-5-178.950
1.701e+22.708e+1-89.2323.455e-5-178.990
1.768e+22.814e+1-89.9003.199e-5-179.028
1.837e+22.924e+1-90.5692.962e-5-179.065
1.910e+23.039e+1-91.2382.742e-5-179.100
1.985e+23.158e+1-91.9072.539e-5-179.134
2.062e+23.282e+1-92.5762.351e-5-179.167
2.143e+23.411e+1-93.2452.177e-5-179.198
2.228e+23.545e+1-93.9132.015e-5-179.228
2.315e+23.684e+1-94.5821.866e-5-179.258
2.406e+23.829e+1-95.2511.728e-5-179.286
2.500e+23.979e+1-95.9201.600e-5-179.313
2.598e+24.136e+1-96.5891.481e-5-179.339
2.700e+24.298e+1-97.2581.371e-5-179.363
2.806e+24.467e+1-97.9271.270e-5-179.388
2.917e+24.642e+1-98.5961.175e-5-179.411
3.031e+24.824e+1-99.2641.088e-5-179.433
3.150e+25.014e+1-99.9331.008e-5-179.454
3.274e+25.210e+1-100.6029.330e-6-179.475
3.402e+25.415e+1-101.2718.639e-6-179.495
3.536e+25.627e+1-101.9407.998e-6-179.514
3.675e+25.848e+1-102.6097.406e-6-179.532
3.819e+26.078e+1-103.2786.857e-6-179.550
3.969e+26.317e+1-103.9476.348e-6-179.567
4.125e+26.565e+1-104.6165.878e-6-179.583
4.287e+26.822e+1-105.2845.442e-6-179.599
4.455e+27.090e+1-105.9535.039e-6-179.614
4.630e+27.368e+1-106.6224.665e-6-179.629
4.811e+27.658e+1-107.2914.320e-6-179.643
5.000e+27.958e+1-107.9603.999e-6-179.656
5.197e+28.271e+1-108.6293.703e-6-179.669
5.401e+28.595e+1-109.2983.429e-6-179.682
5.613e+28.933e+1-109.9673.174e-6-179.694
5.833e+29.283e+1-110.6362.939e-6-179.705
6.062e+29.648e+1-111.3042.721e-6-179.716
6.300e+21.003e+2-111.9732.520e-6-179.727
6.547e+21.042e+2-112.6422.333e-6-179.737
6.804e+21.083e+2-113.3112.160e-6-179.747
7.071e+21.125e+2-113.9802.000e-6-179.757
7.349e+21.170e+2-114.6491.852e-6-179.766
7.637e+21.216e+2-115.3181.714e-6-179.775
7.937e+21.263e+2-115.9871.587e-6-179.783
8.249e+21.313e+2-116.6561.470e-6-179.792
8.573e+21.364e+2-117.3241.361e-6-179.799
8.909e+21.418e+2-117.9931.260e-6-179.807
9.259e+21.474e+2-118.6621.167e-6-179.814
9.622e+21.531e+2-119.3311.080e-6-179.821
1.000e+31.592e+2-120.0001.000e-6-179.828

Continue your calculation

Use the same transfer function in each view: inspect pole movement, check frequency margins, then compare transient response. Stability alone does not guarantee acceptable settling or overshoot.

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Bode Plot Generator. Follow the units and input format printed next to each field. Where a unit selector is available, choose the units that match your data.

2

Review your inputs

Double-check that all values are correct and match the units or format shown for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Bode Plot Generator computes the output in your browser and displays the results, with units clearly labeled, as soon as they are ready — no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Transfer Function Evaluated at s = jω

G(s) = N(s) / D(s) | N(s) = Σ a_i · s^(m−i) (i = 0…m) | D(s) = Σ b_i · s^(n−i) (i = 0…n) | s = jω | (jω)^p = ω^p · [ cos(p·π/2) + j · sin(p·π/2) ]

Variables: G = transfer function (dimensionless gain ratio), s = Laplace variable (rad/s), ω = angular frequency (rad/s), a_i = numerator coefficient multiplying s^(m−i), entered highest power first (units of the numerator's common unit × (rad/s)^(i−m), so every term shares one unit), b_i = denominator coefficient multiplying s^(n−i), entered highest power first (units of the denominator's common unit × (rad/s)^(i−n)), m = numerator order (dimensionless integer), n = denominator order (dimensionless integer), p = power of jω in a term (dimensionless integer), j = imaginary unit (dimensionless). Source: Ogata, Modern Control Engineering, 5th ed., Ch. 7 (Control Systems Analysis and Design by the Frequency-Response Method), sinusoidal transfer function G(jω)

Magnitude in Decibels and Frequency Conversion

|G(jω)| = √( Re[G(jω)]² + Im[G(jω)]² ) = |N(jω)| / |D(jω)| | |G(jω)|_dB = 20 · log₁₀ |G(jω)| | |G(jω)| = 10^(|G(jω)|_dB / 20) | f = ω / (2π)

Variables: |G(jω)| = linear magnitude of the frequency response (dimensionless gain ratio), Re[G(jω)], Im[G(jω)] = real and imaginary parts of G(jω) (dimensionless), |N(jω)|, |D(jω)| = magnitudes of the numerator and denominator evaluated at s = jω (units of the respective polynomials; their ratio is dimensionless), |G(jω)|_dB = magnitude in decibels (dB), ω = angular frequency (rad/s), f = cyclic frequency (Hz). Source: Ogata, Modern Control Engineering, 5th ed., Ch. 7 (Control Systems Analysis and Design by the Frequency-Response Method), logarithmic (Bode) plots

Phase Angle (Unwrapped, Anchored at Low Frequency)

φ(ω) = ∠G(jω), continuous in ω | φ(0⁺) = 90° · (z₀ − p₀) − (180° if the DC gain is negative) | atan2( Im[G(jω)], Re[G(jω)] ) fixes φ only modulo 360°

Variables: φ = phase of the frequency response (degrees), NOT confined to (−180°, +180°]: it is unwrapped along ω, so it can run to −270° or below; z₀ = number of zeros at s = 0 (dimensionless count); p₀ = number of poles at s = 0 (dimensionless count); DC gain = ratio of the lowest-order non-zero coefficients of N(s) and D(s) (dimensionless); atan2 = two-argument arctangent, whose principal value on (−π, +π] gives the phase only modulo 360°, so the calculator fixes the branch by matching the exact low-frequency limit φ(0⁺) — e.g. −270° for G = 1/s³, where the principal value would read +90°. A pole exactly on the jω axis steps the phase by −180° and a zero by +180°. Source: Ogata, Modern Control Engineering, 5th ed., Ch. 7 (logarithmic plots: phase of integral and derivative factors); Nise, Control Systems Engineering, 7th ed., Ch. 10 (Frequency Response Techniques)

Gain and Phase Stability Margins

at every gain crossover: |G(jω_gc)| = 1 (0 dB) | PM = 180° + φ(ω_gc), wrapped to (−180°, +180°] | at every phase crossover: φ(ω_pc) ≡ −180° (mod 360°) | GM_dB = −20 · log₁₀ |G(jω_pc)| | reported: the smallest |PM| and the smallest |GM_dB|

Variables: PM = phase margin (degrees), GM_dB = gain margin (dB), ω_gc = a gain-crossover frequency where the magnitude passes through 0 dB in either direction (rad/s), ω_pc = a phase-crossover frequency where the unwrapped phase passes through −180° + k·360° (rad/s; ω = 0 counts when the DC gain is negative), φ(ω_gc) = open-loop phase there (degrees), |G(jω_pc)| = linear open-loop magnitude there (dimensionless). Every crossover is located by bisection on the exact response, not read off the plotted grid, and all of them are listed; the cards show the worst case, following MATLAB margin and python-control stability_margins. Margins alone decide stability only for an open-loop-stable, minimum-phase loop, so the calculator also states closed-loop stability from the roots of D(s) + N(s). Source: Ogata, Modern Control Engineering, 5th ed., Ch. 7 (Control Systems Analysis and Design by the Frequency-Response Method), gain margin and phase margin definitions

When to Use This Calculator

  • •Use the Bode Plot Generator to check your hand calculations on homework or exam problems — comparing its result with your own working helps identify arithmetic errors before they propagate.
  • •Use it during the early design phase to rapidly iterate on parameters and narrow down feasible configurations before committing time to detailed finite element simulations or full design packages.
  • •Use it when reviewing a colleague's calculation or checking a vendor's data sheet for plausibility — a quick sanity check can prevent costly downstream errors.
  • •Use it to generate reference data for a technical report or presentation without manual computation, ensuring consistent, reproducible numbers throughout the document.
  • •Use it in the field when a quick estimate is needed and a full engineering software package is not available.

About This Calculator

The Bode Plot Generator is a precision engineering calculation tool designed for students, engineers, and technical professionals. Generate interactive Bode plots (magnitude and phase) from transfer function coefficients with gain margin, phase margin, and crossover frequencies All calculations are performed using established engineering formulas from the relevant scientific literature and standards. Follow the units printed beside each field. Where a unit selector is provided, the selected unit is converted internally. Results are computed in your browser without sending data to a server, which keeps your inputs private. This calculator is intended as a supplementary tool for learning and design exploration; always verify results against authoritative references for safety-critical applications.

The Theory Behind It

A Bode plot displays the frequency response of a transfer function G(jω) as two graphs: magnitude |G(jω)| in decibels vs frequency (log scale), and phase ∠G(jω) in degrees vs frequency (log scale). Bode plots reveal how the system responds to sinusoidal inputs at different frequencies and are the foundation of frequency-domain controller design. Key features visible on Bode plots: DC gain (magnitude at ω → 0), corner frequencies (where magnitude slope changes), high-frequency rolloff rate (−20 dB/decade per pole, +20 dB/decade per zero), phase shift progression, and bandwidth (typically defined as the frequency where magnitude drops 3 dB below DC). Performance metrics from Bode plots include gain margin (additional gain before instability, measured at the −180° phase crossing) and phase margin (how close the −180° phase is at the unity-gain crossover, typically desired > 45° for good transient response). Loop shaping designs controllers by directly manipulating the open-loop Bode plot to achieve desired bandwidth and robustness. Bode plots can be hand-drawn using asymptotic approximations: each pole adds −20 dB/decade rolloff at its corner frequency and subtracts 90° of phase spread over a decade; each zero adds +20 dB/decade and adds 90°. Modern tools plot Bode responses numerically for any transfer function.

Real-World Applications

  • •Feedback control design: analyze open-loop Bode plot to compute gain margin and phase margin, then design a compensator to achieve target robustness and bandwidth.
  • •Filter design verification: plot the frequency response of an analog filter design to verify cutoff frequency, passband ripple, and stopband attenuation meet specifications.
  • •System identification: measured frequency response from a physical system can be compared with theoretical models to identify parameters or detect modeling errors.
  • •Audio and RF circuit analysis: amplifier and filter circuits are characterized by their Bode plots, which directly show gain vs frequency and phase delay.
  • •Vibration analysis: mechanical systems' frequency response functions (displacement per unit force) are displayed as Bode plots to identify resonances and mode shapes.

Frequently Asked Questions

What is a Bode plot?

A Bode plot is a two-part graph showing magnitude and phase of a transfer function vs frequency. The x-axis is frequency on a log scale (decades). The magnitude is plotted in decibels (20·log₁₀|G|) vs log frequency; the phase is in degrees vs log frequency. Bode plots reveal system bandwidth, resonances, stability margins, and other key characteristics at a glance.

What's a gain margin?

Gain margin (GM) is the factor by which the open-loop gain can increase before the closed-loop system becomes unstable. Measured at the frequency where the phase crosses −180°: GM = 1/|G(jω_180)| or equivalently GM_dB = −20·log₁₀|G(jω_180)|. A gain margin of 10 dB means you could double the open-loop gain (20·log₁₀(2) ≈ 6 dB) and still have 4 dB of margin before instability. Typical design targets are > 6 dB.

What's a phase margin?

Phase margin (PM) is the additional phase lag that would cause the closed-loop system to be marginally stable. Measured at the frequency where the open-loop gain crosses unity (0 dB): PM = 180° + ∠G(jω_c). A phase margin of 45° is typically sufficient for adequate transient response without excessive overshoot. Less than 30° gives underdamped response with significant overshoot; more than 70° gives sluggish response.

What is the bandwidth of a system?

Bandwidth is the frequency at which the closed-loop magnitude drops 3 dB below the DC gain (a factor of 0.707 in amplitude). Higher bandwidth means the system can track faster input changes and reject higher-frequency disturbances. However, high bandwidth also amplifies measurement noise. Design trades bandwidth for noise rejection and robustness.

How does a pole appear on a Bode plot?

A pole at corner frequency ω_p adds a −20 dB/decade rolloff to the magnitude asymptote beginning at ω_p. The phase starts to decrease at about 0.1·ω_p, reaches −45° at ω_p, and approaches −90° at 10·ω_p. A zero has the opposite effect: +20 dB/decade slope and +90° phase contribution. Complex pole pairs show resonance peaks at ω_n = √(k/m) for underdamped systems.

Worked Examples

Example 1: Third-order loop K/(s(s+1)(s+2)) at K = 2: read both margins

A unity-feedback loop with open-loop transfer function G(s) = 2/(s(s + 1)(s + 2)). Find the phase and gain crossover frequencies and the gain and phase margins.

Step 1:Expand the denominator: s(s + 1)(s + 2) = s³ + 3s² + 2s. Enter numerator 2 and denominator 1 3 2 0 (highest power first; the trailing 0 is the free integrator s).
Step 2:Phase crossover: ∠G(jω) = −90° − arctan ω − arctan(ω/2), which reaches −180° when arctan ω + arctan(ω/2) = 90°, that is when ω · ω/2 = 1. So ω_pc = √2 = 1.414 rad/s.
Step 3:Gain margin: |G(j√2)| = 2/(√2 · √3 · √6) = 2/6 = 1/3, so GM = 20·log₁₀ 3 = 9.54 dB. The gain could rise by a factor of 3, to K = 6, before the closed loop oscillates.
Step 4:Gain crossover: |G(jω)| = 1 where ω · √(ω² + 1) · √(ω² + 4) = 2. That has no simple closed form; solving it numerically gives ω_gc = 0.749 rad/s.
Step 5:Phase margin: ∠G(j0.749) = −147.4°, so PM = 180° − 147.4° = 32.6°.

GM = 9.54 dB at ω_pc = 1.414 rad/s and PM = 32.6° at ω_gc = 0.749 rad/s. The calculator's cards read Gain Crossover 0.749 rad/s, Phase Crossover 1.414 rad/s, Phase Margin 32.6° and Gain Margin 9.5 dB, with a stable closed loop. A 32.6° margin is below the common 45° target, so expect a noticeably underdamped step response.

Example 2: Same loop at K = 10: negative margins mean an unstable loop

Raise the gain of the same loop to K = 10: G(s) = 10/(s(s + 1)(s + 2)). What do the margins say?

Step 1:Enter numerator 10 and denominator 1 3 2 0.
Step 2:The phase does not depend on K, so it still crosses −180° at ω_pc = √2 = 1.414 rad/s. There |G| = 10/6, so GM = −20·log₁₀(10/6) = −4.44 dB.
Step 3:The gain crossover moves up to ω_gc = 1.802 rad/s, beyond the phase crossover. There ∠G(jω_gc) = −193.0°, so PM = 180° − 193.0° = −13.0°.
Step 4:Both margins are negative because K = 10 is above K = 6, the gain at which the closed loop would sit on the stability boundary.

GM = −4.44 dB at 1.414 rad/s and PM = −13.0° at 1.802 rad/s. The calculator shows both margins in red and reports "Closed loop UNSTABLE — 2 right-half-plane poles": the Routh array of s³ + 3s² + 2s + 10 has first column 1, 3, −4/3, 10, with two sign changes.

Example 3: Lead compensation: K_v = 20 s⁻¹ with about 50° of phase margin

The plant G(s) = 4/(s(s + 2)) has velocity error constant K_v = lim(s→0) s·G(s) = 4/2 = 2 s⁻¹. The design asks for K_v = 20 s⁻¹ and a phase margin near 50°. Compare raising the gain alone with adding the lead compensator C(s) = 41.7(s + 4.41)/(s + 18.4).

Step 1:Plant alone (numerator 4, denominator 1 2 0): PM = 51.8° at ω_gc = 1.572 rad/s. The phase only approaches −180°, so there is no phase crossover and the gain margin is infinite; the Phase Crossover and Gain Margin cards show N/A.
Step 2:Gain alone, scaled to K_v = 20 s⁻¹ (numerator 40, denominator 1 2 0): PM falls to 18.0° at ω_gc = 6.168 rad/s, far below the target.
Step 3:With the lead: C(s)·G(s) = 41.7 · 4 · (s + 4.41)/(s(s + 2)(s + 18.4)) = (166.8s + 735.588)/(s³ + 20.4s² + 36.8s). Enter numerator 166.8 735.588 and denominator 1 20.4 36.8 0.
Step 4:K_v = 735.588/36.8 = 19.99 s⁻¹: the required 20 s⁻¹, to the rounding of the compensator's coefficients.
Step 5:The lead adds phase near the new crossover: PM = 50.5° at ω_gc = 8.890 rad/s. The phase still never reaches −180°, so the gain margin stays infinite.

The lead compensator meets K_v ≈ 20 s⁻¹ with PM = 50.5°, where the gain alone would leave 18.0°. The calculator's cards read Gain Crossover 8.890 rad/s and Phase Margin 50.5°, with N/A for Phase Crossover and Gain Margin because the phase never crosses −180°.

Related Concepts

Related Calculators

References & Further Reading

Add the live Bode Plot Generator to your site. Free to embed, with a link back to MegaCalc.