Gain and Phase Crossover Frequency Calculator
Find the gain crossover and phase crossover frequencies of a classic single-integrator, two-real-pole open-loop system, and see how each shifts with the DC gain K.
📶 What is Gain and Phase Crossover Frequency?
The gain crossover frequency and phase crossover frequency are the two reference frequencies used to define the classic stability margins of a feedback control loop. The gain crossover frequency, omega_gc, is where the open-loop magnitude |G(jw)| equals exactly 1 (0 dB). The phase crossover frequency, omega_pc, is where the open-loop phase angle equals exactly -180 degrees. Phase margin is measured at the gain crossover frequency, and gain margin is measured at the phase crossover frequency, so finding these two frequencies is the necessary first step before either margin can be computed.
Control engineers locate these crossover frequencies constantly when tuning a feedback loop. A servo engineer checks the gain crossover frequency because it roughly sets the closed-loop bandwidth and response speed of the system. A process control engineer checks the phase crossover frequency to know how much extra gain the loop can tolerate before instability sets in. Anyone comparing two candidate controller gains for the same plant reads off both crossover frequencies to see how each choice shifts the tradeoff between speed and stability margin.
A common point of confusion is assuming both crossover frequencies move together as the loop gain K changes. They do not: for the standard structure G(s) = K/(s(1+sT1)(1+sT2)), the phase crossover frequency depends only on the two time constants T1 and T2, never on K, because a positive real gain contributes zero phase shift at any frequency. Only the gain crossover frequency shifts when K changes, since K directly scales the magnitude curve up or down. Increasing K therefore pushes the gain crossover frequency toward the fixed phase crossover frequency, which is exactly why raising loop gain erodes both margins simultaneously.
This calculator takes the DC gain K and the two pole time constants T1 and T2 for this standard open-loop family, locates both crossover frequencies with a numeric bisection search (since neither generally has a simple closed-form solution once K is involved), reports the phase at the gain crossover and the magnitude at the phase crossover, derives the phase margin and gain margin from them, and plots how both crossover frequencies shift as K is varied.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 — Standard Type-1 Loop (Matches the Bode Plot Calculator Default)
K = 10, T1 = 0.5 s, T2 = 0.1 s
Example 2 — Slower Loop, Same Margins
K = 5, T1 = 1 s, T2 = 0.2 s
Example 3 — Fast, High-Gain Loop with Larger Margins
K = 50, T1 = 0.05 s, T2 = 0.01 s
❓ Frequently Asked Questions
🔗 Related Calculators
What is the gain crossover frequency?
The gain crossover frequency, written omega_gc, is the frequency at which the open-loop magnitude |G(jw)| equals exactly 1 (0 dB). It is the frequency used to measure phase margin, since phase margin is defined as 180 degrees plus the open-loop phase evaluated at this specific frequency.
What is the phase crossover frequency?
The phase crossover frequency, written omega_pc, is the frequency at which the open-loop phase angle equals exactly -180 degrees. It is the frequency used to measure gain margin, since gain margin is defined from the open-loop magnitude evaluated at this specific frequency.
How is the gain crossover frequency calculated when there is no algebraic formula?
For most open-loop transfer functions there is no closed-form solution for the frequency where |G(jw)| = 1, so this calculator uses a numeric bisection search: it repeatedly narrows a bracket in log-frequency space, checking whether the magnitude is above or below 1 at the midpoint, until the bracket converges to the crossover frequency to high precision.
Why does the phase crossover frequency not depend on the gain K?
A real, positive gain constant K contributes exactly zero phase shift at every frequency, since multiplying a complex number by a positive real number only scales its magnitude, never its angle. Because the phase curve of G(jw) = K/(jw(1+jwT1)(1+jwT2)) comes entirely from the integrator and the two real poles, none of which involve K, the phase crossover frequency depends only on T1 and T2.
What happens to the crossover frequencies if K is increased?
Increasing K shifts the entire magnitude curve upward (in dB, by 20*log10 of the ratio) without moving the phase curve at all. This pushes the gain crossover frequency to a higher value, closer to the fixed phase crossover frequency, which is why raising K generally shrinks both the phase margin and the gain margin.
What if the gain crossover frequency does not exist for my inputs?
If K is very small, the open-loop magnitude can stay below 1 (0 dB) at every frequency in the search range, meaning there is no gain crossover frequency to find within that range. This calculator detects that condition and reports it explicitly instead of returning a misleading number.
How do gain crossover and phase crossover relate to gain margin and phase margin?
Phase margin is 180 degrees plus the open-loop phase measured at the gain crossover frequency. Gain margin is minus 20*log10 of the open-loop magnitude measured at the phase crossover frequency. Both stability margins are only meaningful once their corresponding crossover frequency has been located.
Is there a closed-form formula for the phase crossover frequency in this transfer function family?
Yes, for the specific structure K/(s(1+sT1)(1+sT2)), the phase reaches exactly -180 degrees when omega equals 1/sqrt(T1*T2). This calculator uses numeric bisection rather than this closed form so the same code generalizes to other open-loop structures, but the closed form is a useful independent check for this particular family.
Why does this calculator use the same K/(s(1+sT1)(1+sT2)) structure as the Bode Plot calculator?
Both calculators analyze the identical open-loop transfer function family, a single integrator plus two real poles, which is the standard textbook Type-1 system used to teach gain and phase margin. Using the same structure lets the same default example (K=10, T1=0.5 s, T2=0.1 s) produce matching crossover frequencies and margins across both tools.
How does the gain crossover frequency change if the DC gain K is doubled?
Doubling K raises the magnitude curve by 20*log10(2) is approximately 6.02 dB at every frequency, which pushes the gain crossover frequency higher (the magnitude now stays above 1 for longer before falling to 0 dB). The exact new value depends on T1 and T2 as well, so this calculator solves it numerically rather than by a simple ratio, since the magnitude curve is not a straight line on a log-log plot for a two-pole system.