BP reported a sharp increase in third-quarter profit on Friday, as the conflict in the Middle East pushed up oil and gas prices and delivered what the company described as significantly stronger trading results.

Underlying replacement cost profit, the London-based energy major’s preferred measure of earnings, reached $8.46 billion in the quarter, compared with $2.2 billion a year earlier. Analysts had been expecting about $7.33 billion, making the result a clear beat.

The company attributed the gain mainly to much wider realized refining margins and a substantially better gas and marketing trading performance. Refining has become the industry’s richest business this year: crude prices have stayed below the records set during the 2022 energy crisis, but wholesale prices for diesel and other fuels have climbed to all-time highs in Britain, Europe and the United States after severe disruption to refineries in the Gulf region and across Russia.

“These are dynamic times with volatility and disruption to trade flows continuing to define energy markets,” said Meg O’Neill, BP’s chief executive. “Refineries have been running close to capacity to make up for shortfalls, shipping has been taking different and longer routes, and releases from strategic and commercial reserves are helping to bridge supply gaps.”

BP’s result follows similarly strong numbers from peers. Shell and France’s TotalEnergies both posted their best quarterly profits since 2022, driven largely by the same refining windfall.

CompanyQ3 refining/chemicals profitMultiple of year-earlier figureBP$8.46 billion (group underlying replacement cost profit)About 3.8xShell$3.9 billion (chemicals and products)About 7xTotalEnergies$3.6 billion (refining and chemicals)About 5x

Note: BP’s figure is the group-wide earnings measure; Shell and TotalEnergies figures cover their refining and chemicals divisions.

Shell’s average refining margin rose 75% year on year, according to the Dutch broadcaster NOS. The squeeze has been compounded by the near-closure of the Strait of Hormuz, which has hampered exports of refined products such as diesel and gasoline from the Gulf, and by damage to refineries in the region from attacks. Ukrainian strikes on Russian refineries have removed further capacity, and Moscow imposed a partial diesel export ban earlier this year.

With cash piling up, attention is turning to how the majors will spend it. BP said it would use the excess cash flow to clear the remaining liabilities from the 2010 Deepwater Horizon oil spill in full. Payables and provisions related to the disaster stood at $5.94 billion, according to company data.

Shell plans up to $5 billion of share buybacks by the end of the year, a figure energy analyst Jilles van den Beukel of the Hague Centre for Strategic Studies called exceptionally high. TotalEnergies is repurchasing $2.5 billion of stock over the next three months, with a further $2.5 billion scheduled for the first quarter of next year. The French group also capped prices at its domestic filling stations, a measure that had cost it about 500 million euros by mid-October, chief executive Patrick Pouyanne said.

The profit surge has drawn criticism from climate advocates. “As millions of households brace themselves for a cold winter huddling under blankets and clutching hot-water bottles as they struggle to pay their bills, BP is raking in huge profits while doubling down on gas and oil production and slashing investment in renewables,” said Danny Gross of Friends of the Earth.

Van den Beukel suggested the buyback emphasis reflects uncertainty about long-term demand as the energy transition unfolds, with companies trimming investment in long-dated projects and returning spare cash to shareholders instead. Some policymakers in Europe have floated windfall taxes on the sector, though no such levy appears imminent.

For investors, the quarter underscores how war-driven supply dislocations, rather than crude benchmarks, are now the main swing factor in Big Oil earnings. Refining spreads remain the key variable to watch: any easing of Gulf exports or a recovery in Russian processing capacity would compress the margins that drove these results.