ExxonMobil and Chevron reported sharply higher third-quarter profits on Friday as rising oil prices during the US–Iran war increased fuel costs for American households, farmers and businesses.

ExxonMobil earned $15.4 billion, slightly more than twice its profit a year earlier. Chevron’s adjusted earnings rose 186% to $10.4 billion. Analysts forecast that both companies could report record profits for the full year, although those results remain uncertain.

The gains coincide with the highest average US petrol price on record for the third quarter. Figures from the American Automobile Association put the national average at $4.12 a gallon, 96 cents above the same period a year earlier.

The figures show how higher oil prices are benefiting producers while increasing costs for fuel users. They do not, by themselves, establish how much of the rise in pump prices is attributable to either company’s decisions. The earnings measures also differ: Chevron’s figure is adjusted, while ExxonMobil’s is reported as profit.

For the Trump administration, expensive fuel presents a political difficulty as the midterm election approaches, with many voters angry about pump prices. Farmers are struggling to afford diesel for harvesting equipment, while some homeowners face record heating-oil costs.

Moody’s Analytics estimates that US households have paid an average of $1,184 more since the war began because of higher petrol, diesel and jet-fuel costs. That cumulative burden extends beyond the petrol forecourt, even as the higher oil price strengthens producers’ earnings.