HomeArticlesPower Systems

Smart Grid Frequency Control: The Swing Equation and Vanishing Inertia

Every generator on a grid spins in lockstep at 50 or 60 Hz — droop control and AGC are what keep it that way as loads and renewables constantly shift.

mysimulator teamUpdated June 2026≈ 9 min read▶ Open the simulation

Frequency is a proxy for kinetic energy

Every large synchronous generator on an AC power grid — coal, gas, nuclear, hydro — is a massive spinning rotor locked to the grid's electrical frequency, 50 Hz in most of the world, 60 Hz in North America. All of them turn in exact lockstep, because they're electromagnetically coupled through the same shared grid: speed one up relative to the rest and it starts exporting more power, which brakes it back into sync. This means grid frequency isn't just a number on a dial — it's a direct readout of the total kinetic energy stored in every spinning rotor on the interconnection at once.

live demo · frequency dipping and recovering after a load step● LIVE

The swing equation

Treat the whole interconnected grid as one giant equivalent rotating mass, and its frequency deviation from nominal obeys the swing equation — essentially Newton's second law for rotational motion, written in terms of power instead of force:

M * d(delta_f)/dt = P_mech - P_elec - D * delta_f

M       = system inertia constant (proportional to total spinning kinetic energy)
P_mech  = mechanical power fed in by turbines/generators
P_elec  = electrical power drawn out by the load
D       = damping coefficient (frequency-sensitive loads, e.g. motors slow down too)
delta_f = frequency deviation from nominal (50 or 60 Hz)

Suddenly connect a large load — a factory startup, an industrial furnace — and P_elec jumps before P_mech can respond, so the right-hand side goes negative and frequency starts falling immediately, drawing down the kinetic energy of every spinning generator on the grid simultaneously to make up the shortfall. The bigger M is, the slower and gentler that initial dip; the smaller M is, the faster and deeper it plunges before anything can react.

Primary control: droop, fast and local

Within seconds, every generator's governor responds automatically through droop control: a simple proportional rule that opens the throttle (more steam, more water, more gas) in direct proportion to how far frequency has fallen below nominal, without needing any communication with a central controller. It's fast and inherently stable because every generator reacts the same way at once, but it leaves a small permanent frequency error, since a purely proportional controller can only reduce an error, never fully eliminate it — the classic droop curve trades off exact regulation for guaranteed stability and speed.

Secondary control: AGC drives the error to zero

Automatic Generation Control (AGC) is the slower, centrally coordinated layer that finishes the job droop control starts: a system operator's control center continuously measures the residual frequency error (and inter-area power flow deviations, in a multi-area grid) and sends adjusted setpoints to selected generators every few seconds, using integral control to push the error all the way back to exactly zero over the following tens of seconds to a few minutes. Where droop is instinctive and local, AGC is deliberate and centralized — the two layers work together, primary control catching the immediate fall and secondary control cleaning up what's left.

The inertia problem renewables create

Solar panels have no rotating mass at all, and most modern wind turbines are connected to the grid through power electronics that decouple the blade's mechanical speed from grid frequency — so as these sources displace conventional spinning generation, the total inertia constant M in the swing equation shrinks. A smaller M means the same load step now causes a faster, deeper frequency dip in the critical window before governors and AGC can even react, which is exactly why "grid-forming" inverters and synthetic/virtual inertia — power electronics deliberately programmed to mimic the instantaneous inertial response of a spinning generator — have become an active area of grid engineering as renewable penetration climbs.

Frequently asked questions

Why does grid frequency drop the instant a large load comes online?

Grid frequency is a direct proxy for the rotational speed of every synchronized generator. Adding load without an instantaneous matching increase in mechanical power draws kinetic energy out of those spinning rotors, slowing them down, which by the swing equation shows up immediately as a drop in frequency across the entire interconnected grid.

What is the difference between droop control and AGC?

Droop (primary) control is a fast, local, proportional response built into each generator's governor, reacting within seconds but leaving a small permanent frequency error. AGC (secondary control / automatic generation control) is a slower, centrally coordinated integral controller that drives the residual error back to exactly zero over tens of seconds to minutes.

Why is renewable energy a challenge for frequency stability?

Solar panels and most wind turbines are connected through power electronics rather than a directly coupled spinning shaft, so they contribute little or no natural rotational inertia to the grid. As they displace conventional spinning generation, the effective inertia constant M falls, and the same size load step now causes a faster, larger frequency swing before control action can respond.

Try it live

Everything above runs in your browser — open Smart Grid Frequency Control and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Smart Grid Frequency Control simulation

What did you find?

Add reproduction steps (optional)