It’s 12:33 on a sunny Monday in Madrid, and everything stops at once. The lift stops between floors. The metro stops in its tunnel, and the train stops between stations. The traffic lights go dark at every junction. In hospitals, the backup generators start. At home, the fridge goes quiet and the wifi drops. Your phone still has battery, but within a few hours, the mast it talks to won’t.
That was 28 April 2025 in Spain and Portugal. In a few seconds, 31 GW of demand, everything the two countries were using, disappeared. About 35,000 passengers had to be rescued from trains and the metro. Spain’s main employers’ group put the cost at €1.6 billion (Wikipedia). Portugal’s main grid was back by half past midnight, Spain’s by 4 am (ENTSO-E).
Spain’s blackout lasted an afternoon and a night. A longer one gets worse by the hour, because most backups are built to last hours, not days (TAB).
- Trains, metro, traffic lights Stop at once. Shops can’t take cards, and cash machines stop.
- Phones and internet Home routers die at once. Masts and local exchanges overload, then drop out when their batteries run out, after minutes to a few hours. Datacenters keep running, out of reach.
- Running water Tanks and backup generators cover a few hours. Higher floors and higher ground go dry first.
- Hospitals Generators cover essential systems only, 5 to 10% of normal demand, on fuel for one or two days.
- Petrol, care homes, dialysis After about a day, petrol stations are out, and care homes and dialysis centres have to be partly evacuated.
- Food and cash Within a few days, supermarket shelves are empty, banks close and cash runs out.
- Medical care By the end of the first week, medical care largely collapses.
So grid operators go to great lengths to keep the grid on. On 28 April, solar panels were making more than half of Spain’s electricity (Wikipedia), and some political parties were quick to blame them. The investigation, published in March 2026, blamed Spain’s rules for controlling voltage instead, the kind of technical detail that few politicians, and even fewer of the rest of us, know exists. Those rules decide what every power station does in the seconds that matter, and Spain’s were written for a grid of spinning machines. You need a bit of physics to see why that matters.
A power grid can’t store anything in its wires. Every second, the power stations have to make exactly as much electricity as everyone is using, and the grid’s frequency (50 Hz in most of the world, 60 Hz in North America) is how they know whether they’re keeping up. That balance has to hold over every stretch of time: the first milliseconds after a power station trips (switches itself off the grid), every evening when the sun goes down, and a winter with too little rain to fill hydro lakes, or weeks without wind. The longer the gap, the harder it is to store enough energy to cover it. There’s a second balance too: voltage, held up or pulled down locally at every substation.
Diagram of a power grid. Hydro, gas and nuclear stations (spinning machines) and wind farms, solar farms and batteries (inverters) feed the high-voltage transmission grid. Heavy industry and a DC link to another grid connect to it directly. A substation steps the voltage down to the local network, where factories and small solar and wind farms connect. A street transformer steps it down again to 230 V for homes, some with electric cars, some with rooftop solar and batteries, which at midday push power back up the street. The control room sees everything down to the street transformer, but not what each roof is doing.
A machine the size of a continent
Most electricity still comes from generators: a big magnet (the rotor) spinning inside coils of copper. A turbine turns it, driven by steam, gas or falling water, and each turn makes the current in the coils swing forward and back: alternating current (AC). In a 50 Hz grid it swings 50 times a second, so the generator in a steam plant turns exactly 3,000 times a minute. Every one of them, from Lisbon to Istanbul, turns in step with all the others: they’re magnetically locked to the same grid, like cyclists on a tandem.
Each rotor is in a tug of war. The turbine pushes it forward, and the electricity we use pulls it back, through the magnetic field: switch on a kettle and every generator in the grid feels a tiny bit more drag. When push equals pull, the speed holds. When we use more than the turbines supply, the difference comes out of the rotors’ momentum, and they slow down. When the turbines push harder than we pull, they speed up.
BalancedTurbines: 100, Demand: 100, 50.00 Hz.Push equals pull, the speed holds.
A power station tripsTurbines: 60, Demand: 100, 49.80 Hz.Demand wins, the missing power comes out of the rotors, which slow down.
A smelter tripsTurbines: 100, Demand: 60, 50.20 Hz.A big industrial user, like an aluminium smelter, drops off. The turbines win, the extra power speeds the rotors up.
So the frequency is the score. It’s the same everywhere in a synchronous grid (one where all the generators turn in step), and every power station can read it on its own terminals, without waiting for anyone to tell it what’s going on.
It’s also a clock. In early 2018, a dispute between Serbia and Kosovo left Continental Europe running slightly slow for about seven weeks, and the clocks in ovens and radios that count the grid’s cycles ended up close to six minutes late (ENTSO-E).
The first seconds
When a big power station trips, nothing replaces its output straight away. Turbines can’t open their valves in a millisecond, and nobody has noticed yet. For the first second or two, the missing power comes from the only place it can: the momentum of every rotor still spinning in the grid. They all slow down together, and the frequency falls.
How fast it falls depends on how much spinning mass there is, which engineers call inertia. A large steam turbine and its generator weigh hundreds of tonnes, and at 3,000 turns a minute they hold enough energy to supply their full output for about two to nine seconds on momentum alone. Add up every machine online and you know how much time the grid has. Half the inertia, and the frequency falls twice as fast.
- Lots of spinning mass
- A third of the spinning mass
| 0 | 3 | 5 | 5.5 | 10 | 15 | 20 | 25 | 30 | |
|---|---|---|---|---|---|---|---|---|---|
| Lots of spinning mass | 50.00 | 49.71 | 49.63 | 49.63 | 49.73 | 49.84 | 49.83 | 49.79 | 49.79 |
| A third of the spinning mass | 50.00 | 49.46 | 49.62 | 49.68 | 49.88 | 49.77 | 49.81 | 49.80 | 49.80 |
The speed of the fall matters because the grid’s last line of defence is a tripwire on frequency. If it drops too far (49 Hz in Continental Europe), automatic switches in distribution substations (where the high-voltage grid steps down to the local network for a town or a few villages) start cutting off whole neighbourhoods on purpose, a slice at a time, to save the rest. Engineers call it load shedding. If the fall is too fast, even that can’t keep up. In South Australia in 2016, after storms brought down transmission towers and nine wind farms cut 456 MW in under seven seconds, the state’s link to the rest of Australia tripped, and the frequency fell at about 6 Hz per second. Load shedding is designed for falls up to about 3 Hz per second, so it never had a chance, and 850,000 customers lost power (AEMO).
Who catches the fall
Inertia slows the fall, and reserves stop it. They come in layers, each slower and bigger than the one before, and each one frees the layer under it for the next accident.
- Inertia The rotors give up their momentum, from the very first instant. Nobody decides anything.
- Containment reserve Every participating plant and battery reads the frequency on its own and pushes harder in proportion to the drop. Fully on within 30 seconds, held for at least 15 minutes.
- Automatic restoration The grid operator's computers send output targets to chosen plants, to bring the frequency back to 50.00 Hz. Fully on within 5 minutes.
- Manual restoration Operators call up more plants by hand, within 12.5 to 15 minutes, to replace the automatic layers for as long as needed.
The first real layer is the frequency containment reserve. Across Continental Europe, 3,000 MW of it is on standby at all times, the output of the two largest power plants in the area (Next Kraftwerke). Every plant or battery that provides it measures the frequency at its own connection and responds in proportion: no central computer, no messages, just physics read locally (ENTSO-E). A battery in the Netherlands helps catch the fall when a power station trips in Italy, without knowing it happened.
Containment stops the fall but leaves the frequency a bit low. The automatic restoration reserve then brings it back to 50.00 Hz, and the manual one takes over if the plant stays out for hours.
Some falls are on the TV schedule. In Britain, when a popular programme ends, millions of people put the kettle on at once, and the grid operator plans for it. The record is the end of the penalty shootout in the England v West Germany World Cup semi-final in 1990: demand jumped by about 2,800 MW, the equivalent of 1.12 million kettles (NBC News, Wikipedia). For jumps like that, operators line up pumped hydro: Dinorwig, inside a mountain in Snowdonia, goes from standby to more than 1,700 MW in about 16 seconds (Wikipedia).
When the layers aren’t enough, it ends with load shedding. Great Britain found out on 9 August 2019. Lightning hit a line north of London, and an offshore wind farm and a gas plant dropped out. Then about 500 MW of small generators on the local networks disconnected themselves, because their protection read the disturbance as a sign they’d been cut off. That was about 1,500 MW lost, against the 1,000 MW the system operator (the company that runs the grid minute to minute) was covering. Automatic load shedding cut off 1.15 million customers (Ofgem).
9 August 2019, second by second
The lightning hit a 400 kV line. Protection relays, the devices that watch each line, switched it off in 80 milliseconds, which is routine, but then the Hornsea 1 offshore wind farm’s voltage control went unstable and it dropped from 799 MW to 62 MW. Within a second the steam turbine at Little Barford gas plant shut down on a faulty speed reading, and the small generators tripped. The reserves held the frequency at 49.1 Hz, until Little Barford’s gas turbines tripped too and it fell below 48.8 Hz. Automatic load shedding cut 892 MW, customers were without power for up to 45 minutes, and 29 trains stopped when the frequency went under 49 Hz and needed a technician on board to restart.
None of the plants that tripped broke. They disconnected because their settings told them to. That’s a pattern in almost every big blackout.
Solar panels don’t spin
Solar panels make direct current (DC), a steady push in one direction. So do batteries. Modern wind turbines spin at whatever speed the wind gives them and send their power through converters too. To reach an AC grid, all of them go through an inverter, a box of electronic switches (transistors) that turns the DC on and off thousands of times a second. Switching fast, with wide pulses at the top of the wave and narrow ones near zero, and a filter to smooth the result, gives a sine wave.
The wave looks the same as a generator’s. What’s behind it isn’t. An inverter has no rotor, so it gives up no momentum when the frequency drops: whatever it does is what its software tells it to do. Most inverters installed so far are grid-following: they measure the voltage wave at their connection, lock onto its rhythm, and push current in step with it. They need a strong beat to follow, and in most grids, that beat comes from the spinning machines. Where the grid is weak (few machines nearby, long lines), the inverters’ own current changes the voltage they’re measuring, and their control software can start chasing each other into oscillations or trips.
The other kind is grid-forming. A grid-forming inverter makes its own voltage wave, the way a generator does, and lets the power flow follow. When the grid’s frequency moves, it responds within the same swing of the wave, before any measurement is complete, and it can be programmed to behave like a machine with inertia. South Australia’s Hornsdale battery was upgraded to do this in 2022, and supplies around 15% of the inertia the state needs (Wikipedia). The catch is headroom: to push extra power when the frequency drops, it needs energy in reserve, so in practice that means batteries, or solar and wind held below their maximum.
Short-circuit current is how the grid finds faults. When a line touches a tree, current takes a shortcut through the tree to the ground instead of going through the things using power. Almost nothing holds it back on that shortcut, and generators pour several times their normal maximum current into it. No normal demand asks for that much, so the surge is unmistakable: protection relays spot it and open the breakers (the grid’s big switches) at each end of the faulty line, and only those.
An inverter can’t do the same. Its electronic switches would burn, so its software caps the current at barely above normal (1 to 1.5 times). In a grid with few machines left, a fault then looks like heavy demand. A relay set for machines can miss it and leave the fault in place. Another relay further away can also trip instead and cut off a bigger area than it needed to.
So the services that came free with spinning machines have to be asked for, paid for and tested.
Voltage is local
Frequency is one number for a whole synchronous grid. Voltage is different at every substation, and it’s held up or pulled down locally by something called reactive power.
In an AC grid, not all the current does useful work. Part of it just sloshes back and forth fifty times a second, filling and emptying the magnetic fields around wires and motors and the electric fields between conductors. It carries no energy on average, but it pushes the voltage around: devices that absorb it pull the local voltage down, and devices that supply it push it up. And it doesn’t travel well, so it has to be handled close to where it’s needed.
Power lines do both. A heavily loaded line acts like a coil, absorbs reactive power, and the voltage sags at the far end. A lightly loaded one acts like a capacitor (two conductors with air between them), supplies reactive power, and the voltage rises at the far end. Engineers call the rise the Ferranti effect, after Sebastian de Ferranti, who ran into it on his cables from Deptford into London around 1890.
- Voltage rise at the open end
| 0 | 100 | 200 | 300 | 400 | 500 | 600 | |
|---|---|---|---|---|---|---|---|
| Voltage rise at the open end | 0.0% | 0.6% | 2.2% | 5.1% | 9.5% | 15.5% | 23.6% |
To keep voltage in its band, operators install shunt reactors (big coils) at substations at the ends of long lines, where the voltage rises when the lines are lightly loaded. The reactors soak up reactive power. Near towns and factories, where the voltage tends to sag, they install capacitors, which supply it. Power station generators can do both: strengthen the magnet and they supply reactive power, weaken it and they absorb it.
At some substations, a synchronous condenser does the same job without making any power: it’s a generator with no turbine, spinning freely on the grid. It adds inertia and short-circuit current too. From 2012 to 2018, the generator of Germany’s retired Biblis nuclear plant served as one (RWE, in German).
Big grids, island grids and DC links
The bigger the synchronous grid, the smaller any single accident is next to it. Continental Europe’s serves more than 400 million customers, from Portugal to Turkey and from Morocco to the Baltic states, and has about 1,250 GW of power stations (Wikipedia). Losing a 1,300 MW reactor barely moves it. And neighbours can help each other back up after a blackout.
The flip side is that a big grid can fail big. On 4 November 2006, a German operator switched off a 380 kV line over the river Ems so a cruise ship from the shipyard upstream could pass under it. The load shifted to other lines, they tripped, and within seconds the European grid split into three islands; more than 15 million households in the one short of power lost electricity for up to two hours (Wikipedia).
- Continental Europe's synchronous grid (Denmark's western half is in it too)
- Nordic grid (with eastern Denmark)
- British grid (Northern Ireland is on the Irish grid)
- Irish grid
- Russian and Belarusian grid, which the Baltic states left in 2025
- Direct-current links between grids (the main ones)
- 1
- Spain and Portugal, 28 April 2025: blackout
- 2
- The Ems, 4 November 2006: a line switched off for a ship splits Europe in three
- 3
- Kosovo and Serbia, 2018: the grid runs slow for seven weeks
- 4
- Baltic states, 9 February 2025: leave the Russian grid and join this one
- 5
- Great Britain, 9 August 2019: load shedding
The Baltic states joined the Continental European grid on 9 February 2025, the day after they disconnected from the grid they’d shared with Russia and Belarus since Soviet times. They installed nine synchronous condensers first, to bring their own inertia and voltage control (Wikipedia), as South Australia did with four of them after its 2016 blackout (AEMO).
Over long distances, AC runs out of road. Cables under the sea or underground have the Ferranti problem much worse: their conductors sit millimetres apart, so an AC cable fills up with its own charging current, and past a hundred-odd kilometres there’s little room left for useful power. High-voltage direct current (HVDC) has no charging current and no Ferranti effect, and it loses less on the way. The cost is a converter station at each end, to turn AC into DC and back, so it only pays over distance. Transpower, New Zealand’s grid operator, puts the point where DC wins at about 300 km for overhead lines, and DC is the usual choice wherever a long cable is needed: for offshore wind farms, from about 50 km out (Transpower).
A DC link also joins two grids without making them one. Each side keeps its own frequency, so they don’t share inertia, and a swing on one side doesn’t pass to the other. That’s how Great Britain, Ireland and the Nordic countries trade power with their neighbours while running their own synchronous grids.
Smaller grids have less margin. Texas runs its own, mostly to stay out of federal regulation, so it can borrow little from its neighbours. During a freeze in February 2021, frozen plants left it four minutes and 37 seconds from a complete collapse, according to its operator. In all, 4.5 million homes and businesses lost power, some for several days, and 246 people died, about two-thirds of them from hypothermia (Wikipedia).
Odd things about grids
The grid’s wobbles leave a fingerprint. Most recordings pick up the hum of mains electricity, too faint to hear, and the hum follows the grid’s frequency. Since about 2005, the Metropolitan Police’s forensic lab in London has logged that frequency around the clock. Because it’s the same across the grid, one log covers all of Britain, and matching a recording’s hum against it gives a date and time stamp and shows whether it was edited (BBC).
Long lines are exposed to space weather. On 13 March 1989, a solar storm shook the Earth’s magnetic field and pushed currents along Hydro-Québec’s very long transmission lines, which the rock under Quebec wouldn’t carry away. The grid’s protection tripped, Quebec went dark in less than a minute, and it stayed dark for more than nine hours (Hydro-Québec).
Japan has two grids at two frequencies. Tokyo bought German generators in 1895 and Osaka American ones in 1896, so eastern Japan runs at 50 Hz and the west at 60 Hz, joined only by converter stations. They’re a bottleneck: after the 2011 earthquake, the west couldn’t send enough power east through them, and parts of the east had blackouts. Japan is raising their capacity from 1.2 GW to 3 GW (Wikipedia).
Some grids aren’t for homes at all. Railways in Germany, Austria and Switzerland run their own, at 16.7 Hz, about a third of 50 Hz, because the electric motors of the early 1900s worked better at a low frequency. Some railway power stations make it directly, and converters swap power with the public grid (Wikipedia).
The last street
From the transmission grid, power steps down through substations to the local network, then through the transformer at the end of your street to 230 V. These networks were built for power flowing one way, downhill. The transformer sends the voltage out a bit high, so that the last house on the street still gets enough at the evening peak, after every kettle and heat pump on the way has taken its share.
Rooftop solar runs the street backwards. At midday, houses export, and because street cables have a lot of resistance for their size, pushing power back up them raises the voltage, most of all at the far end. When the voltage at a solar inverter goes over its limit, the inverter disconnects to protect itself, so the owner loses their exports on the sunniest days. How much room there is depends on the legal range. Europe has allowed 230 V ±10% since 2009, up from +6% before (Wikipedia).
- Midday, solar exporting
- Evening peak
| 0 | 100 | 200 | 300 | 400 | 500 | 600 | |
|---|---|---|---|---|---|---|---|
| Midday, solar exporting | 240 | 243 | 246 | 248 | 249 | 250 | 250 |
| Evening peak | 240 | 235 | 232 | 229 | 227 | 225 | 225 |
None of this is visible from the control room. Network companies know how much power goes into each street, not what each roof is doing, which mattered a lot in Spain.
Spain, 28 April 2025
The investigation was run by a panel of 49 experts from European grid operators and energy regulators. Its final report runs to more than 400 pages (ENTSO-E final report), and everything in this section comes from it.
The morning was a typical spring day: lots of sun, modest demand, low prices, and Spain exporting up to 5 GW to its neighbours. The south-west was making far more than it used, so power flowed long distances north and east. Spain also allows its 400 kV grid to run up to 435 kV, where Portugal and most of Europe stop at 420 kV, which left very little margin between the highest allowed voltage and the voltage at which generators are allowed to disconnect.
Just after noon, the grid started to swing, with power sloshing back and forth between regions, and each step operators took to calm it pushed the voltage up. At 12:32, it began to climb, and nothing pushed it back down: solar and wind plants weren’t allowed to help, and the big plants that were meant to did less than expected. Rooftop solar the control room couldn’t see was among the first to trip on overvoltage, then big plants, some of them while the voltage was still within the rules. Each one that left pushed the voltage higher and tripped the next, and 84 seconds after the climb started, everything stopped.
- Diffuse losses, poorly measured: rooftop solar and a few farms
- Identified power station trips
| 0 | 15 | 30 | 45 | 57.1 | 60 | 75 | 76.5 | 78 | 84 | |
|---|---|---|---|---|---|---|---|---|---|---|
| Diffuse losses, poorly measured: rooftop solar and a few farms | 0 | |||||||||
| Identified power station trips | 880 | 1,607 | 2,535 | 2,535 |
The 84 seconds, in detail
The morning
- 10:30Voltages start to swing more than usual
- 12:03The grid starts to oscillateA swing of 0.63 Hz, traced to the area of a plant in the south-west.
- 12:19A second swing, the whole continentEast against west, at 0.2 Hz. Operators calm both by cutting exports and rerouting power, and each step pushes the voltage up.
The last 84 seconds
- 12:32:00The voltage starts to climbNothing pushes it back down.
- 12:32:57A transformer near Granada trips355 MW of solar, wind and solar thermal lost.
- 12:33:16727 MW trips near Badajoz
- 12:33:18Another 928 MW across five provincesEach trip pushes the voltage higher, and trips the next.
- 12:33:19Spain and Portugal fall out of step with EuropeLoad shedding starts, too late to matter.
- 12:33:20The links to Morocco, then France, tripThat keeps the disturbance out of France.
- 12:33:24Everything stops
Getting the lights back
- 12:44France has a line to Spain live again
- 00:22Portugal’s transmission grid is back
- 04:00Spain’s transmission grid is backAnd Portugal’s last local networks.
- 07:00Spain’s last local networks are back
The first swing was around a plant in the south-west, the second across the whole continent, east against west, a known swing that some large Spanish plants weren’t built or tuned to calm. Operators calmed both by cutting exports to France and rerouting power. It worked, but each of those steps raised the voltage. Some shunt reactors, the coils that would have pulled it back down, had been switched off earlier because voltages were low during the oscillations, and switching them back on was done by hand.
Rooftop systems were among the first to go: they tripped on overvoltage on the local networks. Together with appliances drawing a little more as the voltage rose, the control room saw that as about 300 MW of extra demand. Then a transformer near Granada, connecting 355 MW of solar, wind and solar thermal (mirrors that heat steam), tripped on overvoltage. It had been absorbing reactive power, so losing it pushed the voltage up another step. Twenty seconds later, 727 MW tripped near Badajoz, and in the next two seconds another 928 MW across five provinces. It was Britain’s pattern again: nothing broke, the plants followed their settings.
A second later, Spain and Portugal were falling out of step with the rest of Europe. Load shedding started and worked as designed, but too late to matter. The links to Morocco and France tripped, and within seconds, everything stopped.
The report is clear on inertia: even with a lot more spinning mass, Spain would still have fallen out of step, because the cascade itself destroyed what held the system together. The problem was voltage control, and its simulations show more reactive power margin could have prevented the collapse. Damián Cortinas, who chairs ENTSO-E, the association of Europe’s grid operators, put it in one line: “The problem is not renewable energy, but voltage control, regardless of the type of generation” (Science Media Centre Spain).
Restarting a grid from nothing
Going dark took less than a minute and a half. Getting the power back took the rest of the day and the night, which the investigators say is in line with blackouts of the same size elsewhere.
Restarting is slow because almost every power station needs electricity to start. A gas or coal plant has to run its pumps, fans and controls before it makes a single watt. A nuclear plant that has shut down needs outside power to keep cooling its reactor, and diesel generators do the job until it gets it. So a restart begins with the few plants that can start on their own, called black-start plants. They’re mostly hydro stations, which only need a diesel generator or a small turbine of their own to get going. Spain’s plan has at least two in each of its seven areas, one as a backup for the other.
The quicker way is to borrow the voltage of a working grid next door. France had a line into the Basque Country live ten minutes after the collapse and a second into Catalonia an hour later, and Morocco sent up to 100 MW through one of its cables under the Strait of Gibraltar. Those areas came back most smoothly, because a big, healthy grid holds the frequency and voltage steady while operators add customers.
Everywhere else, operators build islands. A black-start plant powers one line, then a substation, then a block of customers, and grows from there. Each step is the tug of war again, in a grid with almost no inertia: one hydro plant holding 50 Hz on its own against whatever operators connect. Connect too much at once and the frequency drops until the plant’s protection trips it. Connect too little and the plant can’t run steadily at such a low output. Long empty lines push the voltage up (the Ferranti effect again), so restoration plans power them below their normal voltage. Once an island is steady, it powers the pumps and fans of nearby gas plants so they can start too. Then islands have to be joined, which only works if their frequency, voltage and timing match at the moment the breaker closes.
- The plan
- What went wrong in Spain
- The plan: A hydro plant starts on its own diesel or small turbineWhat went wrong in Spain: Andalucía: wouldn’t start, backup out of service
- The plan: It powers one line, at reduced voltageWhat went wrong in Spain: Levante: tripped on high voltage, twice
- The plan: Customers come back block by blockWhat went wrong in Spain: Toledo: new load slowed it until it tripped
- The plan: It runs the pumps and fans of gas plantsWhat went wrong in Spain: Some gas plants unreachable by phone
- The plan: Match frequency and timing, close the breakerWhat went wrong in Spain: Duero: two islands never matched frequency
Spain tried black-start plants in twelve places. In seven, the plant wouldn’t start or its island collapsed, some of them several times. Small generators coming back on their own upset the balance of the new islands, and the whole restart ran on phone calls, over networks that were running out of battery.
What slowed Spain's restart
In Extremadura, a second hydro plant joined an island, but its minimum output was more than the island’s customers were using, and the local network company couldn’t add customers fast enough, probably because small generators had reconnected on their own. The surplus flowed back into the first plant, which tripped to protect itself, and the island was lost. To keep that from happening everywhere, Spain told every renewable, cogeneration (heat and power together) and waste plant over 5 MW to produce nothing for the first twelve hours. Local network companies switched off every local line before starting, then switched them back on one at a time, picking lines and city areas with little small generation first. Generators under 1 MW don’t report to them in real time, so they can’t see what those are doing.
A restart runs on phone calls (start this plant, close that breaker, add that block of customers), and the public networks were failing as the backup power at masts and exchanges ran out. Red Eléctrica, Spain’s grid operator, couldn’t reach one local network company until 17:48, more than five hours in. In Andalucía, restoring customers stopped twice in the night because nobody could reach the control centre in Seville, until they got through at 00:02 on cloud calling software. Other companies lost remote control of their substations and had to send staff out to them, and one in Portugal fell back on satellite phones. In the regions without a backup line, customers came back significantly later.
That’s why so much of this post is about the first seconds. Inertia, reserves, load shedding and the rules for staying connected are all there so that a fault costs one neighbourhood a few minutes. Once the whole grid is down, getting it back depends on a handful of plants doing something they rarely do for real, coordinated over phones that run out of battery. Among the investigators’ recommendations: regular live black-start tests involving everyone, and phone lines that survive a blackout.
Rules written for spinning machines
To connect to the grid, every power station has to follow a rulebook called a grid code. It says how far the frequency and voltage can move before the plant is allowed to disconnect, what it has to do to hold the voltage, and how fast. Grid operators write it and energy regulators approve it. In the EU, each country’s code sits on a common base, a 2016 regulation called Requirements for Generators. A plant mostly keeps the rules from the year it connected, so the rules a grid runs on trail the machines on it by years.
Germany found that out with solar. Its early rules told small solar inverters to switch off as soon as the frequency reached 50.2 Hz, which made sense with a few panels on a few roofs. With several gigawatts of them, a small rise in frequency would have switched them all off at once, and turned it into a big fall (DNV). From 2012, Germany required new frequency settings for all solar systems, which meant reprogramming at least 315,000 existing ones, at an estimated €65 million to €170 million (IEEE Spectrum).
Britain’s regulator, Ofgem, made the plants pay. The owners of the wind farm and the gas plant paid £4.5 million each for not staying connected after the lightning strike. The network company for London and the south-east paid £1.5 million for reconnecting customers before the system operator asked, which could have put the recovery at risk (Ofgem).
Spain’s rules were the problem on 28 April. They told solar and wind plants to run at a fixed power factor: absorb reactive power in proportion to their output, whatever the voltage was doing. So when their output dipped, they absorbed less, and the voltage rose further. Inverters can regulate voltage faster than any generator, and the rules told them to stay out of it. The large conventional plants had a target for reactive power, but nothing on how fast to reach it and no penalty for missing it. Several hit it less than 75% of the time. Some plants had their overvoltage protection set below the limits the rules required. The rules trusted the machines without checking.
The problem was known. Spain’s energy regulator said at the end of 2019 that the rules needed updating, and Portugal had required renewables to control voltage since March 2020 (elDiario.es). Spain approved the change in June 2025, two months after the blackout, and in July 2026 changed the rules again to get more renewables to take part (CNMC).
The next rules are being written now. ENTSO-E has proposed that new batteries and renewable plants over 1 MW be able to run grid-forming, setting the beat instead of following it (ESS News). The European Commission put its draft of the revised Requirements for Generators out for consultation in July 2026, with adoption planned by the end of the year (LexisNexis). Like the old rules, it will apply to new plants, so it’ll take years to reach most of the grid.
Ireland took a blunter route. Its grid operator, EirGrid, limits wind and solar to 75% of what’s on the system at any moment, and keeps enough machines running to supply the rest (EirGrid). It works, but every hour the cap bites, cheap wind and solar are turned down so that machines can keep running.
Nobody gets these rules right the first time: grids learn from what goes wrong. What costs money is the time it takes for a lesson to reach the rules, and then the plants already connected. Germany’s took years and up to €170 million of reprogramming. Spain’s regulator asked for voltage control from renewables in 2019, Portugal had it in 2020, and Spain approved it two months after a blackout that cost €1.6 billion.
New Zealand: two islands, one cable
New Zealand’s grid is actually two. The North and South Islands each run their own AC system, with their own 50 Hz. The only thing joining them is a DC link: 534 km of overhead line from the Benmore hydro station in the Waitaki valley to Fighting Bay in the Marlborough Sounds, 40 km of cable under Cook Strait, then the last stretch to Haywards in Lower Hutt. It runs at ±350 kV and carries up to 1,200 MW, mostly north, because most of the hydro is in the south and three quarters of the people are in the north (Wikipedia). It’s DC for the distance, about 610 km in all, and it does more than carry power. Since an upgrade in 1991, when a big plant trips in one island, the link instantly sends more power from the other. Since 2013 that works at any moment, even when little is flowing, and the two islands share the job of holding 50 Hz too (Transpower).
- DC link, Benmore to Haywards, 610 km
- 1
- Benmore, the southern end, in the Waitaki hydro scheme
- 2
- Cook Strait, 40 km of cable
- 3
- Haywards, the northern end
- 4
- Manapōuri hydro station
- 5
- Tiwai Point smelter, the biggest single user (up to 640 MW)
- 6
- Huntly, gas and coal
- 7
- Taupō geothermal fields
- 8
- Ruakākā, the first big battery
Each island is still a small grid, and the biggest single risk is often the link itself. In the south, the Tiwai Point aluminium smelter draws up to 640 MW on its own, the kind of big user that sends the frequency up if it drops off. Transpower owns the grid and also runs it as system operator. Every half hour, it buys reserves to cover the link, delivered within 6 to 60 seconds, from spinning plants, industrial loads that agree to be cut and, now, batteries (Transpower). When they aren’t enough, load shedding takes over. In November 2013, a software bug during a test cut the link’s northbound power from 1,000 MW to 140 MW, and thousands of North Island customers lost power (Wikipedia).
Physically, New Zealand has it easy. Renewables made 88.5% of its electricity in 2025, the highest share since 1981 (MBIE), and most of it spins: hydro and geothermal turbines are generators like any other, with plenty of inertia and voltage control. Solar is growing fast (830 MW at the end of 2025, up from 545 MW a year earlier, pv magazine), but it’s still a small share. To make room for it on the streets, New Zealand widened the legal range for household voltage from 230 V ±6%, the tighter limit in the street chart above, to ±10% on 13 November 2025 (EEA).
New Zealand’s hard problem comes later, over the next few months. The hydro lakes hold about 4.5 TWh (MBIE), roughly five weeks of the country’s electricity, and they’re filled by rain and snowmelt. In a dry year, the gap is 3 to 5 TWh, which gas and the coal at Huntly have to fill. In August 2024, the lakes fell to a six-year low while gas was short. Wholesale prices (what retailers pay generators) went from about NZ$300 to over NZ$800 per MWh, until Methanex, which makes methanol from gas, shut its plants and sold its gas to the generators instead (Electricity Authority). The big fix on the table was a pumped hydro scheme at Lake Onslow in Central Otago, which could have stored up to nearly twice what the existing lakes hold. It was scrapped in December 2023, after its estimated cost reached NZ$15.7 billion (MBIE).
Shortfalls happen at short notice too. On 9 August 2021, one of the coldest nights of the year, wind farms produced less than they’d offered, and about 34,000 customers were cut off without warning (Electricity Authority). Batteries help with that kind of evening. The power company Meridian opened a 100 MW battery at Ruakākā in May 2025 (pv magazine), and Genesis one of the same size at Huntly in October 2026 (Energy-Storage.news).
Storage, from seconds to seasons
Storage is what lets supply and demand happen at different times, and the right kind depends on the gap it has to cover.
- Spinning mass Every rotor on the grid, giving up its momentum in the first seconds.
- Lithium batteries Usually 1 to 4 hours, and they react in a fraction of a second, so they also sell fast reserves.
- Pumped hydro Pump water uphill when power is cheap, run it down through turbines when it isn’t. Typically about 10 hours, up to days.
- Hydro lakes Weeks to months of demand in countries that run on hydro, filled by rain and snow rather than pumps.
- Hydrogen in salt caverns Make hydrogen from surplus power, store it underground, and burn it or turn it back into electricity in a long calm winter.
The trade-off is efficiency against the cost of storing a lot. A lithium battery gives back about 80% of what goes in, and pumped hydro 75 to 80%. Hydrogen gives back about 41%: you lose more than half on the way, between electrolysis (splitting water to make the hydrogen), compression and turning it back into electricity. For a store used every day, those losses add up and the battery wins. For one used once a year, what matters is the cost of each stored kilowatt-hour, and a salt cavern holds terawatt-hours for a fraction of the price of cells. The UK’s Royal Society found that covering Britain’s multi-week wind lulls takes tens of terawatt-hours, more than a thousand times its 30 GWh of pumped hydro, and that hydrogen caverns are the cheapest way to hold it (Royal Society).
That’s why grids with a lot of solar, like Spain’s or California’s, build batteries first: their gap is the evening, every evening. Grids that lean on hydro or wind face a longer gap: a dry winter or weeks without wind, which no battery covers.
Making the grid work with inverters
A grid that runs on inverters has to ask for what used to come free with the generators: inertia, a beat to follow, short-circuit current and voltage control. Like any grid, it also needs restarts that work and storage for every gap. In practice:
- Grid-forming inverters, starting with batteries, so some of the inverters set the beat instead of following it.
- Synchronous condensers, new or converted from retired plants, for inertia, short-circuit current and voltage, the way South Australia and the Baltic states did.
- Rules that put inverters to work, and that change quickly once a grid shows a gap: voltage control instead of a fixed power factor, settings that keep plants connected through a disturbance instead of tripping, and checks that plants do what they’re paid for. It’s the cheapest item on the list.
- Visibility of the small stuff. In both Britain in 2019 and Spain in 2025, nobody could see rooftop solar and small generators trip in real time. Spain’s investigators had to ask inverter manufacturers for data.
- Restarts that are practised: black-start plants tested for real, and phone lines for the people restarting the grid that don’t depend on the public networks.
- Storage for each gap, from batteries for the evening to seasonal stores for dry years and windless weeks, the hardest gap to fill.
See the machines
Most of this hardware sits behind a fence. Here’s what it looks like, mostly on Wikipedia and Wikimedia Commons:
- Turbo generators, the steam-driven kind that spins at 3,000 rpm, with a cross-section.
- Manapōuri: the machine hall dug into the rock under the lake, and one of its turbines being replaced.
- Wairakei, near Taupō: geothermal steam piped across the valley to the turbines.
- A synchronous clock motor with its cover off, the kind that counts the grid’s cycles in an oven clock.
- Protective relays, what decides when a plant or a neighbourhood disconnects, from old spinning-disc relays to a hydro station’s relay panel.
- Solar inverters: the box on the garage wall, and the microinverters that sit behind each panel.
- Grid batteries, from the outside and the inside.
- Synchronous condensers at Templestowe in Melbourne, and the one at Moneypoint in Ireland, with a flywheel for extra inertia.
- Substations: the fenced yards of transformers and switches where the voltage steps down.
- Pole-mounted transformers, the grey drum at the end of many streets, and one cut open.
- The Inter-Island link: the 1965 valves and a modern one (the giant switches that turn AC into DC), a cross-section of the Cook Strait cable and Haywards substation.
Sources
- ENTSO-E Expert Panel, Grid incident in Spain and Portugal on 28 April 2025: final report, 20 March 2026, and the investigation page
- European grid rules: IEEE Spectrum, Has Germany’s energy transition stalled?, May 2015; DNV, The German 50.2 Hz problem; ESS News, Europe moves to mandate grid-forming capability for new storage over 1 MW, November 2025; LexisNexis, Commission seeks views on revision of network code on requirements for grid connection of generators, 8 July 2026
- Science Media Centre Spain, Final blackout report by European operators confirms event was caused by multiple factors, 20 March 2026
- Office of Technology Assessment at the German Bundestag (TAB), Gefährdung und Verletzbarkeit moderner Gesellschaften – am Beispiel eines großräumigen und langandauernden Ausfalls der Stromversorgung (in German), Bundestag printed paper 17/5672, 27 April 2011
- elDiario.es, Portugal implantó en 2020 el control de tensión eléctrica con renovables que España todavía no ha podido aplicar (in Spanish), October 2025
- CNMC, press release on operating procedure 7.4, voltage control (in Spanish), 10 July 2026
- Red Eléctrica, The Spanish electricity system in 2025, March 2026
- ENTSO-E, Continuing frequency deviation in the Continental European power system, 6 March 2018
- ENTSO-E, Frequency containment reserves, and Next Kraftwerke, What is frequency containment reserve?
- Electricity Engineers’ Association, Voltage change guidance, on the November 2025 change to New Zealand’s voltage limits
- NBC News, Britain’s electric grid girds for World Cup tea surge, 30 May 2014
- BBC News, The hum that helps to fight crime, 12 December 2012
- Hydro-Québec, In March 1989, Québec experienced a blackout caused by a solar storm
- Ofgem, Companies pay £10.5 million over 9 August power cut, 3 January 2020
- Ofgem, 9 August 2019 power outage report, January 2020
- AEMO, Black system South Australia 28 September 2016: integrated final report, March 2017
- AEMO, Grid-forming and grid-following inverter fault current contribution, 2025
- AEMO, Operation of Davenport and Robertstown synchronous condensers
- EirGrid, March a record month for solar power in Ireland, April 2025
- Transpower, Examining the purpose and future role of our HVDC link, March 2024
- Transpower, About ancillary services
- Electricity Authority, 9 August 2021 demand management event: phase 2 report, April 2022
- Electricity Authority, Review of winter 2024
- MBIE, Energy in New Zealand 2026: electricity
- MBIE, NZ Battery Project: update on hydro and other technologies, August 2021, and the Lake Onslow option
- pv magazine, New Zealand gentailer completes 100 MW battery energy storage system, May 2025
- pv magazine, Utility-scale projects drive New Zealand’s solar rollout, August 2026
- Energy-Storage.news, Genesis opens 200MWh battery storage system at New Zealand’s largest power station, October 2026
- The Royal Society, Large-scale electricity storage, 2023
- Wikipedia: 2025 Iberian Peninsula blackout, HVDC Inter-Island, Hornsdale Power Reserve, Continental Europe Synchronous Area, 2006 European blackout, Baltic states synchronization, 2021 Texas power crisis, Electricity sector in Japan, Mains electricity, TV pickup, Dinorwig Power Station, 15 kV AC railway electrification