KKwikfig.

Fuel Cost Calculator

Price any road trip from distance, fuel economy and the price at the pump — total fuel, total cost, cost per mile or kilometre, and split per passenger. Runs entirely in your browser — your numbers never leave this device.

Distance unit
Economy unit
Total fuel cost
36
10 gal for 300 miles
Fuel used
10 gal
Cost per passenger
18
Cost per mile
0.12

The price is whatever you type — pump prices change daily and differ by station, so nothing is stored or fetched. Costs are in the same currency as the price you entered.

How it works

Fuel used = distance ÷ MPG (US), or distance × L/100 km ÷ 100 | Total cost = fuel used × price per unit | Cost per passenger = total cost ÷ passengers | Cost per distance unit = total cost ÷ distance
Fuel cost per mile at a price of 3.60 per US gallon, by economy
Economy (MPG, US)Fuel cost per mile
200.180
250.144
300.120
400.090
500.072

A trip's fuel cost is two multiplications deep. First the economy figure turns distance into fuel: miles divided by MPG gives US gallons, while kilometres multiplied by L/100 km and divided by 100 gives litres. Then the price you type in turns fuel into money. Everything else on the page is that total divided two useful ways — by the number of passengers splitting it, and by the distance itself, because cost per mile (or per kilometre) is the figure that lets you compare a car, a route or a driving style against the alternatives.

Distance and economy can be mixed across unit systems: enter the trip in kilometres with an economy quoted in MPG and the distance is converted internally at the exact rate, 1 mile = 1.609344 km, before the division. The price must match the economy's fuel unit — per US gallon for MPG, per litre for L/100 km — because the price is applied to the fuel quantity the economy produced. No price is built in: pump prices move daily and differ by station and country, so the one number only you can know is the one you supply, and the answer comes back in that same currency.

Use the per-passenger split for shared trips and the per-mile figure for budgeting. A car that costs 0.12 per mile in fuel over a 450-mile trip is a 54.00 fuel bill however it is split; the split changes who pays, never what the trip costs. Tolls, parking and wear are outside this arithmetic — it prices fuel only, and says so.

Worked examples

A 250-mile trip at 25 MPG

Input
Distance = 250 miles, Economy = 25 MPG (US), Price = 3.80 per gallon
Working
Fuel = 250 ÷ 25 = 10 gallons. Cost = 10 × 3.80 = 38.00. Per mile: 38.00 ÷ 250 = 0.152.
Result
Fuel = 10 gal · Total cost = 38.00 · 0.152 per mile

A 400 km trip at 7.0 L/100 km

Input
Distance = 400 km, Economy = 7.0 L/100 km, Price = 1.80 per litre
Working
Fuel = 400 × 7.0 ÷ 100 = 28 litres. Cost = 28 × 1.80 = 50.40. Per kilometre: 50.40 ÷ 400 = 0.126.
Result
Fuel = 28 L · Total cost = 50.40 · 0.126 per km

Splitting a 450-mile trip three ways

Input
Distance = 450 miles, Economy = 30 MPG (US), Price = 3.60 per gallon, Passengers = 3
Working
Fuel = 450 ÷ 30 = 15 gallons. Total = 15 × 3.60 = 54.00. Each passenger's share: 54.00 ÷ 3 = 18.00.
Result
Total cost = 54.00 · Cost per passenger = 18.00

Frequently asked questions

Can I mix units — distance in km but economy in MPG?

Yes. The distance is converted at 1 mile = 1.609344 km before the economy is applied, so a 100 km trip in a 50 MPG car correctly uses 100 ÷ 1.609344 ÷ 50 = 1.24 US gallons. Just keep the price in the economy's fuel unit: per gallon for MPG, per litre for L/100 km.

Why is no fuel price pre-filled from live data?

Because there is no single true price: it differs by station, city, fuel grade and day, and a fetched average would silently price your trip at a figure you never paid. You type the price on your receipt or your local pump, and the result is in that currency.

Does the per-passenger split change the trip cost?

No — it only divides it. The total is set by distance, economy and price; three passengers splitting a 54.00 trip pay 18.00 each, and the car still burns the same 15 gallons. The split is a fairness tool, not a discount.

What does cost per mile tell me that the total doesn't?

Comparability. Totals change with every trip length, but cost per mile is a property of the car, the price and your driving: at 3.60 per gallon it runs from 0.180 per mile at 20 MPG down to 0.072 at 50 MPG, so you can price any future distance instantly and compare cars honestly.

What's not included in this cost?

Fuel only. Tolls, parking, tyres, servicing and depreciation are real trip costs but they are not fuel, and folding in invented rates for them would make the figure uncheckable. If you need the fuel for a fill-to-fill economy check instead, the MPG Calculator works the same numbers the other way round.

Related tools

More in Automotive Calculators · Browse all tools