Time & Pay

Fuel Cost Calculator

Estimate gas or diesel for a trip you know the distance of. Use your vehicle’s fuel economy and pump price, then compare a second vehicle if you’re deciding which one to drive.

Created by BiznToolsFounder: Syed TalhaMethod checked

Trip details

Distance and units
Switching units clears the numbers so you can enter values that match.
Use the distance from your map app or odometer.

Enter the one-way distance to double it. Leave this off if you entered the whole trip.

Vehicle A

Estimated fuel cost

Enter trip distance, fuel economy and the price you expect to pay.

No sign-up Private calculationsHow it’s calculated

The method

How to calculate fuel cost for a trip

Use the total distance you expect to drive. In US units, miles divided by miles per US gallon gives US gallons. In metric units, multiply kilometers by liters per 100 km and divide by 100. Multiply the unrounded fuel amount by your price per gallon or liter.

Fuel needed in US gallonsTotal miles ÷ miles per US gallon
Fuel needed in litersTotal kilometers × liters per 100 km ÷ 100
Estimated trip fuel costUnrounded fuel needed × entered price per fuel unit
Fuel cost per mile or kilometerFuel used per mile or kilometer × entered price per fuel unit

Example 1

Gas for a 250-mile drive or round trip

At 25 US mpg and $3.50 per US gallon, a 250-mile drive uses 10 gallons and costs $35.00, or $0.14 per mile. Driving the same distance back makes 500 miles total and $70.00 in fuel. At 35 US mpg and the same fuel price, a different vehicle costs $25.00 for the 250-mile drive.

250 miles at 25 US mpg
$35.00
500 miles at 25 US mpg
$70.00
250 miles at 35 US mpg
$25.00

Example 2

Fuel for 100 km at 8 L/100 km

In metric mode, 100 km at 8 L/100 km uses 8 liters. At an illustrative $1.50 USD per liter, fuel costs $12.00 for the trip, or $0.12 per kilometer.

Fuel needed
8 L
Trip cost
$12.00
Cost per kilometer
$0.12

Before you calculate

Assumptions & limits

  • Enter distance from your navigation app or odometer, then use measured fuel economy or the vehicle’s rated economy and your expected pump price. Traffic, terrain and speed can change actual fuel use.
  • US mode pairs US gallons with US mpg. Metric mode pairs liters with L/100 km. Prices are in USD in both modes. Use matching units for both vehicles.
  • One fuel economy and one price apply to the full distance for each vehicle. Estimate tolls, parking, maintenance and reimbursements separately.
  • Trip totals round to cents after calculation. Fuel quantities and cost per mile or kilometer show up to four decimal places.

Keep in mind

Common mix-ups

When should I add an equal-distance return?

Turn it on when you entered only the outward distance and expect to drive the same distance back. For different legs, add their distances yourself and enter the total with the option off.

Can the two vehicles use different fuel prices?

Yes. Enter the price each vehicle uses, such as gasoline for one and diesel for the other. Both must use the selected fuel unit and USD. Both estimates cover the same trip distance.

What happens if the distance is zero?

The trip uses zero fuel and costs $0.00. Cost per mile or kilometer still follows your entered economy and fuel price.

Sources & calculation notes

US Department of Energy · Vehicle Cost Calculator methodology

Explains how fuel expenditures depend on the distances driven, vehicle fuel economy and fuel prices.

NIST · Conversion factors for SI units

Defines the volume conversion factors for US and Imperial gallons and liters.

Method and input rules checked: . Engineering validation; no professional specialist review is claimed.