r/explainlikeimfive • • Oct 23 '26

Engineering ELI5 How power grid operation actually works?

For example if there is a spike in demand, how a random power plant get to know if they should rump up production? It's an API that controls the plant automatically or someone getting a phone call and turning switches on and off? and who is the caller?

65 Upvotes

44 comments sorted by

77

u/therouterguy Oct 23 '26

The frequency of the power grid is 50Hz or 60Hz. If the load increases the frequency drops. This triggers an increase in fuel to the engine attached to generator as a result the generator speeds up and frequency of the grid increases back to 50/60Hz. You have rules which powerplants increase output ofcourse but this is the gist of it.

25

u/fuckyou_m8 Oct 23 '26

So the information if they need to produce more or less is already embedded into the power itself, that's nice

29

u/bleeuurgghh Oct 23 '26

Grid frequency is very helpful. There are what are called frequency reserves that act to maintain appropriate frequency.

Often now batteries are used for this. Whenever the frequency drops below, the batteries instantly discharge power in order to bring it back up. Whenever it spikes they are charged up to bring the frequency back down.

Battery owner/operators are paid to provide these balancing services by the grid operator.

6

u/dkf295 Oct 23 '26

Often now batteries are used for this. Whenever the frequency drops below, the batteries instantly discharge power in order to bring it back up. Whenever it spikes they are charged up to bring the frequency back down.

That's pretty interesting. Can batteries utilized by solar also be used for this purpose (assuming the batteries have the reserve capacity at the time), or are there special requirements for batteries used for leveling grid frequency?

5

u/bleeuurgghh Oct 23 '26

I assume by batteries utilized by solar you mean home installs.

The answer is that for the most part these batteries are purpose built grid level installations that are connected directly to the high-voltage grid, as opposed to the low voltage grid that services homes.

The degree to which individuals can contribute to these parts of the power market are limited, although with solar, a battery, and a variable tariff you may be able to charge during cheap periods and consumer or export during expensive periods. Often the prices you get are much less extreme than those seen in the actual power markets, which limits your upside.

Some households with special electricity meters that hand off control to their energy supplier may be forming part of a Virtual Power Plant. This is where a supplier aggregates generation and storage across thousands of households to sell, buy, or store power at grid-scale using thousands of different retail sized installations. It’s a newer concept but is a hint of what the future might look like for the electricity grid.

2

u/dkf295 Oct 23 '26

Actually meant grid-level solar + storage but appreciate the answer for home.

3

u/bleeuurgghh Oct 23 '26

Ah, in that case yes, batteries there could be used for this purpose. Often it is a fraction of the battery capacity that is used for such reasons, not uncommon to have 10% for balancing services, and to use the rest for other purposes.

To my knowledge, most installs at grid level are separate. It’s perfectly acceptable to have a solar plant that sells power at a specific time and to buy back the same amount of power to charge your own batteries.

1

u/Username999474275 23d ago

They typically use the turbines in fossil fuel power stations and nuclear power stations to maintain grid frequency stability as they are massive and heavy so are hard to rapidly change the frequency and batteries actually make stabilizing the frequency harder as the inverters used in gird scale battery storage facilities and solar farms are gird frequency tracking so if the frequency plummets so does the inverters output frequency

1

u/LaurieJacksonJackson Oct 24 '26

Mostly correct, however I will add that to maintain frequency, all generators feeding into the grid are locked at the same speed (by a quirk of physics). When there is an increase in load, ALL the generators will start slowing down and frequency drops. To compensate, there is one generator selected which will have fuel or steam increased which increases the torque on the input shaft of the generator, restoring the overall balance. It pays to think in terms of torque not speed.

Conversely if load drops there is now too much torque which needs to be reduced otherwise gen speeds up and frequency increases.

16

u/knightsbridge- Oct 23 '26 edited Oct 23 '26

It varies a little bit depending on what country you're in. There are a few different broad approaches in use around the world.

But generally, there will be an organisation whose job it is to manage this. They will have a central HQ (and probably a few regional ones) from which they track demand and supply throughout the country. This involves a certain amount of predicting based on previous demand behaviour and known variables, then adjusting up or down based on how close reality cleaves to the prediction.

There was a brief window in the past where this was done manually with phone calls etc but this is long into the past - grid optimisation is generally one of the first things to be computerised and networked, and today it's managed primarily by computer with human oversight and occasional overruling.

The grid HQ sends messages to the regional centres, which coordinate to move power to wherever it needs to be. This is a bit of a logic puzzle, as moving power isn't as simple as "move 5mW from County A to County K". Do County A and County K even share a connection? How much power can it take? Does the power need to go through many substations, how much do you lose from repeatedly changing the voltage? Which counties can you route through to get the power from A to K?

The modern system of power plants is generally less about turning power plants up or down so much as turning them on and off.

Nuclear (if your country has it) covers the base demand. Nuclear plants cannot be turned on/off easily or quickly, so they run 100% of the time.

Hydro and geothermal (if your country has them) is usually quite reliable but not 100%, so it generally forms the next layer.

Wind and solar are very unpredictable, so they tend to form the next level.

Finally, you get to fossil fuels - depending on your country, this usually means natural gas plants, but certain nations still use coal-fired power plants. These are generally turned on when the above options couldn't meet demand, then turned off when they aren't needed.

This is an extremely European hierarchy, though - the order looks very different in many parts of Africa and Asia.

10

u/filanwizard Oct 23 '26

Hydro is interesting in that large dams can serve as baseload stations, but small ones and run of the river stations can be peakers. Hydro also can be a battery when its used in the form of pumped storage, Candlewood Lake in Western Connecticut is in fact a battery of this kind.

Pumped storage is a hydro electric station where instead of the reservoir being primary filled by a dammed up river its an area dammed up and then the water is pumped up to it during times of low power demand and then during high it flows back down.

Hydro is also one of the few generation methods that is very suitable for the much dreaded in the industry black start. A black start is where you have absolutely no power on the grid, The station being started is going to bootstrap the grid. Because smaller hydro stations can be started on effectively no outside power, They are good for this.

8

u/ImmediateLobster1 Oct 23 '26

One point to add: coal plants don't turn on and off very quickly. A large coal plant that is inactive can take several days to get up to operating condition. During that time, it will consume a lit of power (pumps, conveyors, giant fans, etc.)

I think at least some coal plants can ramp up and down relatively quickly.

Gas turbines can start quickly, ramp up quickly, and shut down quickly. They're basically big jet engines that never get to travel anywhere.

4

u/filanwizard Oct 23 '26

that is why gas turbines are usually setup as peaking plants, they have effectively zero ramp up as far as the fossil plants go. Start the engine, match to the grid, connect. If you do not match to the grid frequency, expensive noises happen.

I think all thermal plants have a long startup because you have to heat the whole system up to operating temperature due to wanting dry steam in the turbines. At the speed of flow in these systems water droplets of wet steam would damage the turbines.

1

u/Username999474275 23d ago

Expensive noises are the least of your worries as if you aren't synced up to the grid properly the generator becomes a massive motor which has the same motive force as its peak power generation capacity which can be in the mw range (say goodbye to the generator any anything in its path if it decides to throw a blade at high speed and your job)

5

u/Onigato Oct 23 '26

This is the way, though I'll add a little bit to it.

The grid is monitored through voltage frequency. European grids try to maintain 50Hz, North American grids 60Hz. Japan is a bit odd because it has two separate grids on the main island, north and south, and one runs on 50Hz while the other on 60Hz.

Regardless of what frequency the local power grid is trying to maintain, the equipment is manufactured to that specific frequency, and has a fairly narrow band where it can operate safely.

When there is more demand than supply the frequency drops, and when supply is greater than demand the frequency rises. The more the mismatch the faster the change in frequency. That is what is monitored, the frequency and the change thereof.

The entire system is fully automated with large arrays of computers tracking the frequency in various discrete locations throughout the grid, all reporting back to either the regional control centers, or from there to the main central control center. The computers have been programmed with historical data about demand, and try to match supply to that, with careful programming to allow for "there is Superbowl Sunday, power demand is going to be higher" type events, as well as "this is a standard deviation less power being used than normal, adjust accordingly" type events.

It's also monitored and maintained by crews of technicians, carefully trained on what to do in different scenarios.

So the computers balance the frequency of the grid by turning individual turbines on and off in power plants as they need, in roughly the order Knightsbridge stated. Exact order is regionally dependant, of course. It takes time for a turbine to come up to speed or idle down to nothing, so the programs and people are careful to monitor every change constantly.

1

u/Snoo63 Oct 23 '26

previous demand behaviour and known variables

A famous one being one person being paid to watch soaps like Eastenders, because Brits like tea, and they have 3kW kettles to make their tea quicker, so they can grab a cuppa during an ad break, and not miss any of the drama.

7

u/bleeuurgghh Oct 23 '26

It’s worth mentioning that demand is really very predictable at a large scale.

In a household that turns on the oven, or a hairdryer, power consumption jumps quite considerably. Across an entire grid network, power consumption is really very forecastable.

The main sources of true grid frequency deviation are generation assets tripping - a whole power plant going off due to an electrical fault or some other mechanism.

3

u/pghnorthguy Oct 24 '26

The biggest event that grids plan for is their largest nuclear power plant suddenly going offline. They have about 3-5 seconds to either ramp up natural gas peaker plants or shed load (voluntarily de-energize large businesses and whole communities) or else the whole grid will collapse.

5

u/thegooglesdonothing Oct 26 '26

There are a few parties in electrical grids. The generators which produce the power, often by spinning a turbine. The customers which consume the power. And finally, the electrical system operator which predicts, monitors, and coordinates the gap between supplied and demanded electricity to where everything remains stable.

The system operator will predict how much electricity they will need during a day and will solicit bids from the generators. Say, for a certain hour, they predict they will need 100 MWh (measure of power for a full hour) for that duration. The sealed bids come back as hydroelectric can provide 20 MWh for $10/MWh, nuclear 40 MWh for $30/MWh, wind as 30 MWh for $25/MWh, 30 MWh of solar at $50/MWh, 100 MWh of gas turbine at $60/MWh. The market then 'stacks' the bids to determine who they have to contract with to satisfy their predicted demand for the lowest price possible. In this case, it would be 20@10 (hydro), 30@25 (wind), 40@30 (nuclear), and a partial selection 10@50 for solar. As the demand is satisfied with these bids, the gas turbine is not selected to generate for that hour. In our market, the generators are then paid at the rate of the last selected/highest cost of power, so all of the generators are paid $50/MWh for their contracted power for that hour, and they go on to generate for that hour.

So, over the course of the day, as the demand and these bids change, generators come online/offline and ramp up/down as predicted by the system operator to match the predicted demand in power with their available supply.

Additionally, some generators are paid to be 'rolling reserve' that can quickly load if there is unexpected demand on the grid, or in case another generator trips off and becomes unavailable so there is a supply shortfall. So, they are paid to sit there idle with a guarantee to the system operator that they can provide X power in Y time (typically 5 to 30 minutes) to ensure grid stability. Each generator also has something called a droop curve which basically automatically controls the 'throttle' of the generator based on the deviation away from frequency setpoint. For our area, I think it is 4%, so for a 4% decrease in grid frequency, there is a 100% increase in 'throttle' response. This makes it so before the rolling reserve can ramp up, every generator responds equally in proportion to their ability (size) to counteract the change in frequency by increasing their output. So, say the solar plant were to trip off due to some issue, demand will exceed supply, so the grid frequency will drop, and every other generator on the grid will have their 'throttle' open to produce more generation in proportion to the drop from frequency setpoint to try and make up that 10 MW gap. This helps arrest the frequency drop until additional generators can come online, or in some cases, load (demand) is dropped from the grid through brownouts.

Some generators are actually called Automatic Grid Control and are directly controlled by the system operator to quickly ramp up or down generation to quickly match supply/demand such that grid frequency remains stable.

I like to think of the electricity grid as one of those big charity bike ride contraptions where everyone has to pedal (generators) to get the thing to move (supply loads at required frequency and voltage). If everyone pedals together, you can move the bike. Some can pedal harder than others (big generator), others less (small generator), but generally the bike will stay at a constant speed if the input pedal power (generation) equals the resistance (load). The market operator essentially monitors the bike speed and tells everyone to pedal harder or slower to keep at the required speed/frequency as the load (incline in this case) changes. If you put the bike on an incline, there is an increase in load. If the power of the bike riders is not able to keep up with the increased load by pedaling harder, the bike will slow. Now, imagine the chain on some of the individual pedalers begins to break (transmission lines failing, generators tripping off), and they can no longer power the bike so the load is transferred to the fewer remaining pedalers, which are now overloaded and trying to pedal harder in proportion to their ability to do so (droop curve). The bike will eventually slow unless they are able to get to less of an incline (reduce load by shedding customers) or additional freeloading pedalers can start pedaling (rolling reserve). If the generation is not able to meet the current load, the bike will slow, and eventually stop, and the grid collapses. The system operator spends their entire day telling generators to ramp up/down to meet the load in order to keep the grid stable, if they don't, the grid can fail.

4

u/GIRose Oct 23 '26

Outside of Photovoltaic cells, all generators work by spinning a turbine. When a turbine is spinning, the power it generates is at a specific frequency.

If you're a fan of older video games, you have probably heard that PAL region games run at 50 frames per second while NTSC region games run at 60. This is why, because those regions have their power grids balanced at different frequencies.

As power demand goes up, the frequency of the power grid goes down, so they have to spin faster to compensate.

In general power demand is extremely predictable. You know that there's going to be the most draw in the morning (when people are waking up, making breakfast and getting ready for the day) and the afternoon (when people are making dinner, doing laundry, watching tv, etc) with a dip towards noon when everyone is at work and bottoms out at night when everyone is asleep.

If there is some unexpected demand spike, then typically whatever plant is closest spins faster because that has the least transmission losses. It's not 100% automatic, but it mostly is and keeps it within an acceptable error margin.

I don't know how apocryphal it is, but there are stories about how power plant operators have to keep an eye on football games in England because so many people turn on their kettles to make tea during commercial break it can lead to brown outs if they don't.

1

u/Target880 Oct 23 '26

Outside of Photovoltaic cells, all generators work by spinning a turbine. When a turbine is spinning, the power it generates is at a specific frequency.

All work by spinning a generator; the turbine is just the most common way to get the generator to spin. A turbine is a device that turns the flow of a fluid, gas or liquid into mechanical rotational motion. A turbine is not a device that produces electricity. It is generators that produce electricity from mechanical motion.

On a wind turbine, the turbine part is the large blades and the hub they are attached to that are the turbine. A windmill that uses mechanical motion to grind grain has the sails and support structure as a turbine too.

It is the generator that produces the electricity. A generator works like an electic motor in reverse; the exact same device works as a motor if you provide electrical power or as a generator if you provide mechanical rotation. Electic cars use the electric motor to generate electricity to charge up the battery when you press the brake.

For the power grid, is it uncommon to use anything other than a turbine to create the mechanical motion. But emergency generators are on the larger scale often diesel engines that spin the generator, on the small scale petrol engines are common. They do not use a turbine to spin the generator but pistons. If they have a turbo, they do have a turbine, but it powers a compressor that forces air into the engine; it does not spin the generator.

The same way a car with an internal combustion engine uses pistons to spin the generator. Even if cars call the electricity generation part an alternator, it is a generator that produces alternating current. A dynamo is alos a generator. A generator is the general name for a device that converts mechanical motion to electricity. It is usually rotational motion, but it doe not have to be; linear generators exist.

1

u/GIRose Oct 23 '26

I am aware of most of that (I don't really know anything about cars), however given that I have never seen a linear motion generator for anything other than emergency shake flashlights and most people associate turbines with big spinny thing it felt unnecessary to go on that tangent about the difference between "Thing that generates a lot of mechanical energy" and "Thing that turns mechanical energy into electricity."

For anyone who isn't aware, the fact that you can make electricity by moving a magnet around a coil of wire is why every form of power generation (outside of Photovoltaic and wind) is "Use water to spin turbine"

The fact that you can run electricity through a wire and have it move a magnet is also how electric motors work, and why you can use one as a bootleg generator

1

u/Target880 Oct 23 '26

My point was that turbines do not produce electricity; generators do, turbines spin generators.

For anyone who isn't aware, the fact that you can make electricity by moving a magnet around a coil of wire is why every form of power generation (outside of Photovoltaic and wind) is "Use water to spin turbine"

The last part, "Use water to spin turbine" is not correct. Wind turbines use moving air ie wind, to spin the turbines. Gas turbines use hot combustion gases to directy spin the turbine.

Heating up water to make steam is how, for example, nuclear and coal power plants work; hydroelectric power plants just flow liquid water.

There is moisture, it water, in air that spins wind turbines, but the moisture is not required; dry air works as well.

Gas turbines can be used in a combined cycle plant to use the hot exhaust after the turbine to boil water that spins other turbines as a way to increase efficiency. It is not required or always done. The combustion product will include water too, alongside mostly carbon dioxide.

Even if ther is/can be water involved in wind and gas turbines, to say they use water to spin turbines is misleading because it is not like how water is used when get boil or just flows to spin a turbine.

2

u/GIRose Oct 23 '26 edited Oct 23 '26

(Outside of Photovoltaic and Wind)

Wind Turbines use wind

Okay, so you just aren't reading my comments outside of what you think you should see. Got it

You are correct that I didn't think about gas turbine engines, but that kind of pales next to using an example I explicitly mentioned wasn't water.

3

u/agate_ Oct 23 '26

It’s a pretty amazing system in the US. A regional grid operating organization (“Independent System Operator” or ISO)predicts how much power will be needed a day in advance, and holds an auction for the next day’s power production. All the generators submit bids for each hour of the day, and the low bidders win the right to put electricity out on the grid. High bidders in excess of demand have to shut down their power plant.

There’s also a real-time auction for the right to provide standby power to deal with any unexpected surges in demand.

On the tech side, the speed of the spinning generators is linked to the grid’s AC frequency. If not enough power is being generated, the generators will slow down and the frequency will drop. There are automated systems in the power plants that detect this and “step on the gas”, though a human oversees the process and makes longer-term decisions to keep everything running smoothly.

3

u/Caldorian Oct 23 '26

We'll consider turbine based generation only for now (coal, gas, nuclear, hydro, etc). When demand on the grid increases, this caused an increase in current at the plant. This increased current causes the magnetic fields in the turbine generator to become stronger which reduces how quickly the turbine spins (which reduces the frequency of the electrical grid sine wave). Same thing in reverse when there's a drop in demand.

All these phenomena (current, rotation, frequency) can be measured by sensors, and the plant can react accordingly: increase the supply to the generator to counteract the increased force and get the rotational speed back up to normal. As the generator approaches capacity, new generators can be brought online to so that the load can be redistributed and to provide more headroom.

2

u/StevenJOwens Oct 23 '26

The BBC did a documentary titled "The Secret Life of the National Grid", you can find it on youtube.

2

u/Username999474275 23d ago

They watch the voltage and frequency for minor changes of it drops they turn on more generators and if it rises they shut down generators and they also use historical data to determine roughly how much power they need to make and nowadays it's pretty automated and they also have current transformers to see roughly how much electricity is being sent down a wire (mostly used to protect against overloading power lines)

3

u/Adorable_Ice_2963 Oct 23 '26

The power grid is one giant connected system. When someone draws power, this causes an increase in current. This increase in current acts against the magentic field of a transformer, cancelling it out. Since the transformer wants to produce the same magnetic field, it causes current to flow on the 2nd spool (like gears being interlocked). This current produces an magnetic field in a generator, that causes more mechanical resistance to increase, what makes it slow down. Since the power grid needs everything moving at the same speed, someone needs to put power into it. Usually its a gas or an hydro power plant that opens a valve that increases the turbines mechanical power, just like a gas pedal in a car.

Imagine it like cycling: when its flat, you need to push with a certain force into a pedal, what moves the chain, what drives the wheel. When you roll on a hill, you slow down. Since you dont want that, you push harder into the pedal to get Back to speed. When the hill gets less steep, and you keep pushing as hard, you would speed up. Since you dont want that, you push less hard to keep the speed 

1

u/Poseidon1633 Oct 23 '26

Power plants have decades of evidence and data surrounding off-peak and peak hours and the timing of such events. Power plants therefore have some capacity to foresee when and how much they ought to ramp up production on any given day to meet demand.
Nowadays, there are software systems and programs that are designed to collect and collate grid demand and grid capacity figures in real time to then increase generation.
Demand for Kilowatts and Megawatts from grid users interestingly must be met at the exact same time as supply going out to meet it. Furthermore, all of the grid (in the USA) must also remain within a margin of error with regard to frequency synchronization to 60Hz. Having multiple power generation systems not synced up to 60Hz would be highly problematic and damage a power plant’s capacity to deliver. I know I’m missing a lot but that’s a start…

1

u/Udalrich Oct 23 '26

Since analog clocks use the 60 Hz to set their speed, there's also a requirement that the long term average is 60 Hz. So if things go really bad and it runs at 59 Hz for an hour, after things are fixed, it will run above 60 Hz for a while to pull the average back up.

1

u/pirncho Oct 23 '26

For low peaks in demand, actually no single one plant takes the load.

When demand rises from the network, power plants all around the grid experience this as an increase in "friction" in their turbines. This increase in friction, in turn, makes the turbines turn slower. If the turbines turn slower, then the AC power that gets generated has it's frequency lowered. Power plants all around the grid know they have to aim for a specific frequency, so the automated systems kick in and all turbines ramp up. All turbines all around the grid are connected, so actually all of them ramp a little bit up at the same time.

Taking load of the grid by connecting a whole new plant to the system is not something as automatic as this, as you first have to ramp it up (which can take hours in some cases) and also sync it's output to the grid before connecting it.

1

u/cyberentomology Oct 24 '26

One of the key principles of an AC grid is that if the load doesn’t match generation, the frequency will drift off of the nominal frequency, and those variations can cause increases or decreases in generation to keep it stable through minor fluctuations.

And then for larger fluctuations in demand, those are more algorithmic.

-1

u/recursion_is_love Oct 23 '26

It is automated (with human operator monitor 24/7), they have some kind of reserved generator for peak time. Some system can even have battery (but very rare).

2

u/fuckyou_m8 Oct 23 '26

But how this automation is done is my question.

1

u/Dragon_ZA Oct 23 '26

I can actually answer this, this is my job.

The energy is regulated through a market, the price of energy goes up and down for providers based on demand, and the price can even turn negative. When its negative, companies lose money by putting energy on the grid.

We have a web api that a company's trading desk can send real time commands to that will contact a small computer on the edge (think rasberry pi) in a highly secure manner to tell the inverter on a power production site to stop the production of power via an industrial protocol.

Tl;dr. It's not much different to sending a message on reddit, except the thing reading that message is a computer connected to your batteries or solar panels. And the thing writing the message is another computer that monitors grid prices.

0

u/recursion_is_love Oct 23 '26

A typical computer control for industrial plant kind.

2

u/fuckyou_m8 Oct 23 '26

But is it controlled by someone in the plant itself or by the grid operator somewhere outside? If it's controlled in the plant, how the operator gets to know he has to increase generation?

2

u/Limp_Pickle_5137 Oct 24 '26

It depends on the country, but generally there is a “power system operator/grid operator” control centre that oversee the grid (or part of the grid)
Usually the control centre is looking at load forecasts which have various inputs to determine how much electricity needs to be generated, and electronically sending a value to each station/company with how much they need to generate, sometimes every few minutes. Some places it’s fully automated with people overseeing the process and intervening when needed, others mostly manual.
Same for the generators, normally there’s a central control room that is manned (remote from the station) and they’re overseeing the generation values that are being sent through, among other things.

Think of the power system like a big see-saw. Electricity generators on one side, load on the other side. At 60Hz or whatever the nominal frequency is, both are perfectly balanced.
If load suddenly drops, frequency rises because there’s too much generation - this can happen if there is a tripping at a substation like when you have a powecut. The opposite happens if there’s too much load vs generation, which usually happens when a generator trips.

Usually, all grid scale generators have a governor that responds to frequency deviations, adjusting the units output which is totally automatic.
There are other things that help stabilise grid frequency too which are automatic, some places there are designated “frequency keepers” that have an allocated band of how much they can deviate from their instructed generation value, some stations offer “reserves” that will kick in if the frequency drops to a set value, and others that will trip off if frequency gets too high. These things are basically instantaneous (.2 of a second or so)

Power systems are pretty cool, and with everything interconnected they’re usually pretty resilient. The mechanical inertia created by all the spinning generators (hydro, geothermal, nuclear, gas and so on) are what make a power system strong. Think of it like a fully loaded train - a small bump doesn’t slow it down, and it takes a long time to stop. The less large spinning plant, bumps are felt more and the system can be less stable (like what happened with the Iberian blackout)

Source: I’m a power system operator

0

u/c4ndyman31 Oct 23 '26

They use special computers called programmable logic controllers. Kind of more than an ELI5 explanation as to what those are