
The swing equation is an energy budget
In a 50 Hz interconnected AC network, a mismatch between mechanical power and electrical load is absorbed first by the kinetic energy of the spinning synchronous rotors. Before primary governors act, which takes seconds, the frequency changes at a rate set by that mismatch and by the stored energy [1][2].
For an aggregated system, the swing equation gives the initial rate of change of frequency after a sudden loss of generation ΔP:
Here f₀ is the nominal frequency, S the rated apparent power of the machines in service, and H the inertia constant: the kinetic energy at rated speed divided by S, in seconds. The magnitude of the right-hand side is the RoCoF. A lower H, or a larger loss ΔP, gives a steeper start.
Two consequences follow directly from the formula:
- For a fixed loss, halving H doubles the initial RoCoF.
- The result does not depend on how fast the governors are. It describes the first instants only.
Illustrative numbers, with S = 100 000 MVA and ΔP = 1 000 MW: H = 4 s gives 0.0625 Hz/s, and H = 2 s gives 0.125 Hz/s. These are worked examples of the formula, not measurements of any real system.

Explore the model
The chart below integrates the equation above with a first-order primary frequency response. Change H and ΔP and compare the initial slope with the full trace. The model is a teaching tool: it uses one equivalent machine, a fixed droop and no load damping. The assumptions are listed under the chart.
Loading interactive frequency chart…
The same model is available as a runnable notebook, using only NumPy and Matplotlib: grid-inertia-frequency.ipynb.
# Core of the model (see the notebook for plots)
def simulate(H, dP, S=100_000, f0=50.0, R=0.05, Tg=5.0, dt=0.01, t_end=30.0):
x, pg, trace = 0.0, 0.0, []
for _ in range(int(t_end / dt) + 1):
trace.append(f0 + x)
dx = f0 / (2 * H * S) * (pg - dP)
dpg = (-x * S / (f0 * R) - pg) / Tg
x, pg = x + dx * dt, pg + dpg * dt
return traceGrid-forming converters need energy behind them
When converter-interfaced wind, solar and battery plants replace synchronous units under grid-following control, the steady-state power balance can be unchanged while the rotational inertia falls. After a generator trip or a network split the RoCoF is then steeper, which shortens the time before under-frequency load shedding or RoCoF-sensitive protection acts. Operators and regulators treat this explicitly: see the ENTSO-E work on frequency stability criteria for the Continental Europe synchronous area [3] and on RoCoF withstand capability [4].
Virtual synchronous machine and droop-based grid-forming controls create an internal voltage phasor with chosen inertia and damping constants. Such synthetic inertia is only as useful as the energy available on the DC side: batteries, supercapacitors or deloaded PV, sized for the power pulse without reaching the converter current limits.
Regional and rail interfaces
Inertia is not uniform across a network. Regions with a high converter share and large industrial or railway converter loads call for locational indicators such as short-circuit ratio, in addition to system-wide inertia estimates. Putting swing-equation and impedance constraints into network models turns stability limits into quantities that can be monitored during operation.
References
- P. Kundur, Power System Stability and Control, McGraw-Hill, 1994.
- J. Machowski, J. W. Bialek, J. R. Bumby, Power System Dynamics: Stability and Control, 2nd ed., Wiley, 2008.
- ENTSO-E, Frequency Stability Evaluation Criteria for the Synchronous Zone of Continental Europe: Requirements and impacting factors, RG-CE System Protection and Dynamics Sub Group, 2016.
- ENTSO-E, Rate of Change of Frequency (RoCoF) withstand capability, guidance document for national implementation of the network codes on grid connection, 2018.