Fuel Cost Calculator

Work out what a trip costs in fuel, one way or round trip and split between passengers, your MPG from a fill-up, how far a fuel budget goes, and what a year of driving costs, in miles or kilometres.

Calculator Automotive Updated Oct 5, 2026
Learn how this works
How to Use
  1. Pick a mode: Trip cost, My MPG from a fill-up, How far a budget goes, or Yearly cost.
  2. Enter the distance in miles or kilometres; for a trip choose one way or round trip and how many people share the cost.
  3. Enter the vehicle’s fuel economy in any unit (mpg US or UK, L/100 km, km/L or gallons per 100 miles), or for My MPG the fuel the fill-up took.
  4. Enter the fuel price per US gallon, litre or UK gallon, and pick your currency symbol.
  5. Read the cost, fuel needed and cost per mile or kilometre; Show Work has every step.
Input
optional in My MPG
Presets (example prices)
Fuel and Cost
Trip cost
—
Fuel needed
—
Cost per mile
—
Per person
—

Worked Example

A road trip. 300 miles at 28 mpg needs 300 ÷ 28 = 10.71 gallons. At $3.50 a gallon that is 10.71 × 3.50 = $37.50, or 3.50 ÷ 28 = 12.5 cents a mile. The round trip is $75.00.

Mixed units in the UK. 200 miles at 45 mpg (UK gallons) uses 200 ÷ 45 = 4.444 UK gallons. A UK gallon is 4.54609 litres, so that is 20.20 litres, and at £1.40 a litre the trip costs £28.29.

The common mistake: using US gallons for a UK MPG figure. Treat the same 45 mpg as US gallons and the 200 miles use 4.444 × 3.785 = 16.82 litres, £23.55, which understates the cost by £4.73 (17 %). Always pair UK MPG with the UK gallon, 4.54609 L, and US MPG with the US gallon, 3.785411784 L.

Show Work

Enter the distance, economy and price to see the working.

Formulas

Fuel needed
V = distance ÷ economy
miles ÷ mpg; or km × L/100 km ÷ 100
Trip cost
C = V × price
× 2 for a round trip, ÷ people to split
Cost per mile
c = price ÷ mpg
× 100 for cost per 100 miles (fueleconomy.gov)
Your MPG
mpg = miles ÷ gallons
from one full tank to the next
Distance on a budget
d = (money ÷ price) × mpg
fuel bought × economy
Gallons and litres
1 US gal = 3.785411784 L
1 UK gal = 4.54609 L; 1 mile = 1.609344 km

Where the Numbers Come From

The arithmetic is simple; the units are where costs go wrong. The US gallon is 231 cubic inches, exactly 3.785411784 litres (NIST Special Publication 1038), the UK gallon is 4.54609 litres (Weights and Measures Act 1985), and the mile is exactly 1.609344 km (NIST SP 811). This page turns every economy figure into kilometres per litre and every price into a price per litre first, so any mix of units gives the same answer.

The EPA’s fueleconomy.gov uses the same method for its cost figures: cost per 100 miles is the fuel price divided by MPG, times 100, and the annual fuel cost on the new-vehicle label assumes 15,000 miles a year at a projected price. Real-world economy differs from the label: fueleconomy.gov says aggressive driving can lower gas mileage by roughly 15–30 % at highway speeds and 10–40 % in stop-and-go traffic, and that a conventional car’s city economy is roughly 15 % lower at 20 °F than at 77 °F. Use your own fill-up figure in My MPG for the most honest estimate.

About This Calculator

This calculator does four fuel jobs. Trip cost gives the fuel and money for a journey, one way or round trip, and each person’s share. My MPG works out your real economy from a fill-up, in every unit, and the fuel cost per mile and per kilometre. Budget tells you how far a sum of money takes you, and Yearly cost what a year of driving costs, per month too. Distances take miles or kilometres, economy any of five units, and prices per US gallon, litre or UK gallon. Preset prices are examples, not current pump prices.

The results cover fuel only, not tolls, parking, insurance or wear. Everything runs in your browser and nothing you enter is sent anywhere. For more on the units, read Understanding Fuel Economy.

Related calculators: Fuel Economy Converter, Speed, Distance and Time Calculator, and Unit Converter.

Frequently Asked Questions

How do I calculate the fuel cost of a trip?

Divide the distance by the fuel economy to get the fuel needed, then multiply by the price. 300 miles at 28 mpg needs 300 ÷ 28 = 10.71 gallons, and at $3.50 a gallon that is $37.50. A round trip doubles it to $75.00.

How do I work out my MPG?

Fill the tank, reset the trip meter, drive, then fill up again and divide the miles by the gallons the second fill took. 312 miles on 11.4 gallons is 27.37 mpg, or 8.59 L/100 km. Averaging several tankfuls evens out how full the pump left the tank.

What does it cost per mile to drive?

Fuel cost per mile is the price divided by the MPG: $3.50 ÷ 28 mpg = 12.5 cents a mile. fueleconomy.gov uses the same arithmetic for cost per 100 miles: price ÷ MPG × 100, $12.50 here. This is fuel only, not insurance, tyres or wear.

How much fuel will I use in a year?

The EPA’s label assumes 15,000 miles a year. At 25 mpg that is 600 gallons, $2,100 at $3.50 a gallon or $175 a month. At 7 L/100 km, 12,000 km a year uses 840 litres.

How do I use a price per litre with MPG?

Convert one of them: a US gallon is 3.785411784 litres and a UK gallon 4.54609 litres. In the UK, 200 miles at 45 mpg uses 4.44 UK gallons, 20.20 litres, so at £1.40 a litre the trip costs £28.29. This calculator converts for you whatever units you mix.

How do I use the Fuel Cost Calculator?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Do I need to install or sign up for anything?

Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.

Is my information private?

Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.

Common Use Cases

Weekend road trip

300 miles at 28 mpg and $3.50 a gallon: 10.71 gallons, $37.50, 12.5 cents a mile.

Splitting the cost

A 1,200-mile trip at 22 mpg and $3.20 a gallon costs $174.55, $43.64 each for four people.

Driving in Europe

A 450 km round trip at 6.5 L/100 km and €1.80 a litre uses 58.5 L and costs €105.30.

Checking your own economy

520 km on a 38.2 L fill-up is 7.35 L/100 km, 32.02 mpg (US).

Fuel budget

$50 at $3.50 a gallon buys 14.29 gallons, 428.6 miles at 30 mpg.

A year of driving

15,000 miles at 25 mpg and $3.50 a gallon is $2,100 a year, $175 a month.

Last updated: