Skip to content

Fuel Cost per Mile Calculator

What fuel costs you per mile and per year from how far you drive…

What fuel costs you per mile and per year from how far you drive, for a gas car and an electric one side by side, and what the gap adds up to over five years.

km
L/100 km
£

UK unleaded: GOV.UK, Department for Energy Security and Net Zero average, Nov 9, 2026. Change it to yours.

Electric car to compare

kWh/100 km

From the window sticker or a review: EPA sticker figures are measured at the wall, charging losses included.

£

UK price cap: Ofgem average, 1 October to 31 December 2026. Change it to yours.

More optionsCharging losses
%

Leave at 0 for a sticker figure. Add your own losses only if the efficiency came from the car’s display, which counts energy into the battery.

Example15,000 km a year

£1,664.42a year in gas

11.1p a km. The electric car would cost £710.64, £953.78 less: £4,768.91 over five years.

Enter yours to see your result.

  • Gas car£1,664.42

    11.1p a km

  • Electric£710.64

    2,700 kWh, 4.7p a km

Prices as of Oct 1, 2026; check the provider for current rates. Home charging at one price; public chargers set their own prices, often higher than at home. Terms

How this works: 7 sources,

How this works

Method

Yearly fuel = distance a year × fuel per mile (or km) × price. Cost per mile is the same sum for one mile: price per gallon ÷ MPG, or price per kWh × kWh per mile. Full method

Sources

How it’s tested

2 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Limits

Prices as of Oct 1, 2026; check the provider for current rates. Home charging at one price; public chargers set their own prices, often higher than at home.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: trip fuel cost with dated US and UK prices, fill-ups and the split, plus MPG, fuel economy converter, EV charging and cost per mile pages.

Every change on What’s new

How we make toolsReport a mistake

Worked example: 10,000 miles a year in the UK

A 45 MPG (UK) petrol car uses 10,000 ÷ 45 = 222 gallons, 1,010 litres; at 170.7p a litre that is £1,724.58 a year, 17.2p a mile.

An electric car at 3.5 miles per kWh uses 2,857 kWh; at the 26.32p price cap, £752.00, £972.58 less a year.

How the yearly cost is worked out

Yearly fuel = distance a year × fuel per mile (or km) × price. Cost per mile is the same sum for one mile: price per gallon ÷ MPG, or price per kWh × kWh per mile.

Prices move every week, so the five-year figure is today’s prices held flat: a way to compare two cars on equal terms, not a forecast.

Fuel is only part of what a car costs. Insurance, servicing, tyres, depreciation and finance often add up to more; the buy or lease calculator covers the purchase side.

per mile = price per gallon ÷ MPG · yearly = per mile × miles a year

Yearly fuel cost by miles and MPG (US average price)

Dollars a year at $3.995 a gallon.

Yearly fuel cost by miles and MPG (US average price)
Miles a year20 MPG25 MPG30 MPG40 MPG50 MPG
5,000$999$799$666$499$400
7,500$1,498$1,199$999$749$599
10,000$1,998$1,598$1,332$999$799
12,000$2,397$1,918$1,598$1,199$959
13,500$2,697$2,157$1,798$1,348$1,079
15,000$2,996$2,397$1,998$1,498$1,199
18,000$3,596$2,876$2,397$1,798$1,438
20,000$3,995$3,196$2,663$1,998$1,598
25,000$4,994$3,995$3,329$2,497$1,998
30,000$5,993$4,794$3,995$2,996$2,397

Sources

Common questions

How much does the average driver spend on gas a year?

At 12,000 miles and 25 MPG, 480 gallons: about $1,918 a year at the US average price.

How do I find my fuel cost per mile?

Divide the price per gallon by your MPG: $4.00 at 32 MPG is 12.5¢ a mile. Per km: price per litre × L/100 km ÷ 100.

Does an electric car always cost less to fuel?

Charged at home at average prices, usually, as the bars show for your numbers. Mostly public rapid charging can cost as much as gas.