Fuel cost calculator

Trip fuel cost = distance ÷ fuel economy × price. Enter your own numbers in miles or kilometers.

$37.50
Fuel for 300 miles (482.8 km)
10.71US gallons
40.56Liters
$0.13Per mile
$0.08Per km

Formula

cost = miles ÷ mpg × price per gallon

Metric: cost = km × L/100 km ÷ 100 × price per liter.

Worked example

A 300-mile drive in a car that gets 28 mpg uses 300 ÷ 28 = 10.71 gallons. At $3.50 a gallon that is $37.50, or $75.00 for the round trip.

Cost per 100 miles

At $3.50 per gallon (replace with your local price):

Fuel economyGallons per 100 miCost per 100 miCost per 1,000 mi
15 mpg6.67$23.33$233.33
20 mpg5.00$17.50$175.00
25 mpg4.00$14.00$140.00
30 mpg3.33$11.67$116.67
35 mpg2.86$10.00$100.00
40 mpg2.50$8.75$87.50
50 mpg2.00$7.00$70.00

Real consumption depends on speed, load, traffic, terrain and weather. Highway trips often beat the combined rating; city driving and heavy loads use more.

Frequently asked questions

How do I calculate gas money for a trip?
Divide the distance by your mpg to get gallons, then multiply by the price per gallon. Double it for a round trip.
How do I split fuel cost with passengers?
Divide the total trip cost by the number of people sharing it.