How does the electricity grid stay balanced second by second?
By matching generation to demand continuously, because electricity is consumed at the instant it is produced and the grid stores essentially none of it. The balance is visible in a single number: frequency.
Why frequency is the signal. Large generators are physically spinning, synchronised to the grid at 50 or 60Hz depending on the country. If demand exceeds supply, that spinning mass is dragged down and the frequency falls; if supply exceeds demand, it rises. Frequency is therefore a real-time readout of the balance, measured everywhere at once, and holding it within a narrow band — typically a fraction of a hertz — is the operator's central task.
The layered response:
Inertia. The physical momentum of spinning machines resists change for the first seconds, buying time. This is why the shift away from large rotating generators is a genuine engineering problem — inverter-connected wind and solar provide no inherent inertia, though synthetic inertia and grid-forming inverters increasingly substitute.
Frequency response, automatic and contracted in advance, where generators and — increasingly — batteries adjust output within seconds. Batteries are exceptionally good at this, which is where much grid-scale storage earns its money.
Reserve, spinning or standing plant brought up over minutes.
The balancing market, where the operator instructs plants to increase or reduce in near real time, at a price.
Demand-side response, paying large consumers to reduce, and increasingly using domestic devices.
Why forecasting matters so much. Operators forecast demand and renewable output hours and days ahead and schedule accordingly; balancing handles only the error. Demand is remarkably predictable, including famous synchronised surges at the end of televised events.
What a failure looks like. If frequency falls too far, automatic load shedding disconnects areas to save the rest — a deliberate, designed response, and preferable to the alternative, which is generators disconnecting to protect themselves and cascading into a blackout that takes days to restore.
Interconnectors with neighbouring systems smooth all of this considerably.