Bills are set to rise for millions of households, after Ofgem announced that the energy price cap will rise by 26% in January.
The main reason for the increase is international gas prices, Ofgem says, but UK energy prices - particularly for electricity - have been high for some time.
The price energy suppliers pay for electricity is often determined by a bidding process, with each generating company saying what it would be willing to accept to produce one unit of electricity.
Once built, the cost of generating power from renewables like wind and solar is relatively low, so these typically come in with the cheapest bid. Nuclear might come next.
Gas generators often have high costs because they have to buy fuel to generate electricity as well as paying a "carbon price" - a charge for emissions.
The wholesale market price is set by the most expensive unit of electricity needed to meet demand.
This means that even if gas only generates a small proportion of electricity at a given time it can set the overall market price.
So when gas costs spike - as has happened following the wars in Ukraine and Iran - electricity prices do too.
Not all electricity generation is directly priced in this way.